-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.html
121 lines (116 loc) · 5.6 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html>
<head>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="lib/materialize-css/dist/css/materialize.min.css" media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="lib/materialize-css/templates/starter-template/css/style.css"/>
<link type="text/css" rel="stylesheet" href="css/stylesheet.css"/>
<link type="text/bss" rel="behaviors" href="bss/stylesheet.bss"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<nav class="transparent" role="navigation">
<div class="nav-wrapper container">
<a id="logo-container" href="#" class="brand-logo">
<img src="images/c-quince.png" height="55"/>
<img src="images/logo_text.png" alt="C-Quince - Kids in Code"/>
</a>
<ul class="right hide-on-med-and-down">
<li><a href="index.html">About</a></li>
<li><a href="demo.html">Demo</a></li>
</ul>
<ul id="nav-mobile" class="side-nav">
<li><a href="index.html">About</a></li>
<li><a href="demo.html">Demo</a></li>
<li><a href="https://github.com/MallowWorld/c-quince">Fork me on GitHub!</a></li>
</ul>
<a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons orange-text text-darken-1">menu</i></a>
</div>
</nav>
<a id="forkme-banner" class="hide-on-med-and-down" href="https://github.com/MallowWorld/c-quince"></a>
<section class="section section-1 no-pad-bot">
<div class="container">
<div class="row center">
<div class="col m6">
<div id="movement-controls" class="pinned">
<a id="move-up" class="waves-effect waves-light blue-grey btn"><i class="material-icons center">keyboard_arrow_up</i></a>
<span class="button-spacer"></span>
<a id="move-left" class="waves-effect waves-light blue-grey btn"><i class="material-icons center">keyboard_arrow_left</i></a>
<a id="move-right" class="waves-effect waves-light blue-grey btn"><i class="material-icons center">keyboard_arrow_right</i></a>
<span class="button-spacer"></span>
<a id="move-down" class="waves-effect waves-light blue-grey btn"><i class="material-icons center">keyboard_arrow_down</i></a>
</div>
<div id="play-controls" class="fixed-action-btn vertical click-to-toggle pinned">
<a class="waves-effect waves-light btn-floating btn-large red">
<i class="large material-icons">movie</i>
</a>
<ul>
<li>
<a id="execute" class="btn-floating green"><i class="material-icons center">play_arrow</i></a>
</li>
<li>
<a id="stop" class="btn-floating red"><i class="material-icons center">stop</i></a>
</li>
<li>
<a id="reset" class="btn-floating blue"><i class="material-icons center">replay</i></a>
</li>
</ul>
</div>
<canvas id="demo-canvas" class="z-depth-2" width="800" height="800" style="width: 100%;"></canvas>
</div>
<div class="col m6">
<!--<div class="input-field">-->
<!--<i class="material-icons prefix light-blue-text text-darken-3">code</i>-->
<!--<label for="blocklyDiv">Workspace</label>-->
<div id="blocklyDiv" style="height: 400px; width: 100%;"></div>
<!--<textarea id="workspace" class="materialize-textarea">setSpeed(0.5);-->
<!--for (var i = 1; i <= 10; i++) {-->
<!--moveDown();-->
<!--moveRight();-->
<!--moveUp();-->
<!--moveLeft();-->
<!--}-->
<!--spin();</textarea>-->
<!--<label for="workspace">Workspace</label>-->
<!--</div>-->
</div>
</div>
<div class="row">
</div>
<div class="row">
<div class="input-field col s6">
<i class="material-icons prefix light-blue-text text-darken-3">adb</i>
<label>Character</label><br />
<input id="c-quince" name="character" class="light-blue-text" type="radio" value="cquince" checked="checked" />
<label for="c-quince">C-Quince</label>
<input id="bug" name="character" class="light-blue-text" type="radio" value="bug" />
<label for="bug">Bug</label>
</div>
<div class="input-field col s6">
<i class="material-icons prefix light-blue-text text-darken-3">compare_arrows</i>
<label for="slider">Speed</label><br />
<input id="slider" class="light-blue-text" type="range" min="0.1" max="1.0" step="0.05" value="1.0" onchange="setSpeed(this.value)" />
</div>
</div>
<br/>
<br/>
</div>
</section>
<footer class="page-footer transparent">
<div class="footer-copyright light-blue darken-3 white-text">
<p class="container">Maintained by <a class="orange-text text-darken-3" href="http://mallowworld.wordpress.com/">MallowWorld</a></p>
</div>
<br />
<br />
</footer>
<xml id="toolbox" style="display: none">
<block type="controls_repeat_times"></block>
<block type="controls_move"></block>
<block type="controls_spin"></block>
</xml>
<script type="text/javascript" src="lib/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="lib/materialize-css/dist/js/materialize.min.js"></script>
<script type="text/javascript" src="lib/materialize-css/templates/starter-template/js/init.js"></script>
<script type="text/javascript" src="bundle.js"></script>
</body>
</html>