forked from hussien89aa/TeachKidsProgramming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathControlMath.html
More file actions
155 lines (128 loc) · 4.7 KB
/
ControlMath.html
File metadata and controls
155 lines (128 loc) · 4.7 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<html>
<head>
<title>Tech Kids</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap/css/bootstrap.min.css">
<script src="css/bootstrap/jquery.min.js"></script>
<script src="css/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="binSource/soyutils.js"></script>
<script type="text/javascript" src="js/simple.js"></script>
<link rel="stylesheet" type="text/css" href="css/StyleSheet.css">
<link rel="stylesheet" type="text/css" href="css/prettify.css">
<script src="binSource/blocks/blockly_compressed.js"></script>
<script src="binSource/blocks/blocks_compressed.js"></script>
<script src="binSource/blocks/javascript_compressed.js"></script>
<script src="binSource/blocks/python_compressed.js"></script>
<script src="binSource/blocks/php_compressed.js"></script>
<script src="binSource/blocks/dart_compressed.js"></script>
<script src="binSource/blocks/acorn_interpreter.js"></script>
<script src="binSource/soyutils_usegoog.js"></script>
<script type="text/javascript" src="js/stepOver.js"></script>
<script src="js/prettify.js"></script>
<script type="text/javascript" src="binSource/langauge/js/en.js"></script>
<script type="text/javascript" src="js/ControlMath.js"></script>
<!--
<script type="text/javascript" src="js/blocks.js"></script>
<script type="text/javascript" src="js/stepOver.js"></script>
-->
</head>
<body>
<!--
<script type="text/javascript">
document.write(examples.simple.helloWorld());
// Exercise the .helloName template
document.write('<hr>' + examples.simple.helloName({name: 'Ana'}));
// Exercise the .helloNames template
document.write('<hr>' + examples.simple.helloNames(
{name: 'Ana', additionalNames: ['Bob', 'Cid', 'Dee']}));
</script>
-->
<div class="container boxColor">
<!-- question box -->
<div class="RunBox"> </div>
<div class="alert alert-info">
<h3> <p id="questionText" /> </h3>
</div>
<div class="row">
<div class="col-md-8">
<!-- Blukly Drawing area -->
<div id="blocklyDiv" class="BlockyBox"></div>
</div>
<!-- Real code in origin langauge -->
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">Python Code</div>
<div class="panel-body">
<pre id="pyahtonCode" class="content"></pre>
</div>
</div>
</div>
</div>
<!-- run code box -->
<div class="RunBox">
<button type="button" class="btn btn-danger" onclick="RunCode()">
<span class="glyphicon glyphicon-play"></span> Run
</button>
<button onclick="stepCode()" class="btn btn-danger" id="stepButton" disabled="disabled">
<span class="glyphicon glyphicon-play-button"></span> Step overs
</button>
</div>
<!-- Run the code box -->
<div class="RunBox"> </div>
<div class="panel panel-default">
<div class="panel-heading">Results</div>
<div class="panel-body">
<p id="pResults"/>
</div>
</div>
<!-- Tool box used -->
<xml id="toolbox" style="display: none">
<block type="math_number"></block>
<block type="math_arithmetic"></block>
<block type="variables_set" inline="true" x="20" y="20">
<field name="VAR">a</field>
</block>
<block type="variables_get" inline="true" x="20" y="20">
<field name="VAR">a</field>
</block>
<block type="text_print" inline="false">
<value name="TEXT">
<block type="variables_get">
<field name="VAR">z</field>
</block>
</value>
</block>
<!--
<block type="plane_set_seats" deletable="false" x="70" y="70">
</block>-->
</xml>
</div>
<!-- Modal start-->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content start-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Message</h4>
</div>
<div class="modal-body">
<table>
<tr>
<td style='width:110px'>
<img id='myImg' width='100' height='100'/>
</td>
<td>
<h3 id='msg'></h3>
</td>
</tr>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Okey</button>
</div>
</div>
<!-- Modal content end-->
</body>
</html>