forked from hussien89aa/TeachKidsProgramming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathControlBalloons.html
More file actions
158 lines (129 loc) · 5.18 KB
/
ControlBalloons.html
File metadata and controls
158 lines (129 loc) · 5.18 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
156
157
158
<html>
<head>
<title>Tech Kids</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="binSource/soyutils.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/ControlBalloons.js"></script>
<link rel="stylesheet" href="css/bootstrap/css/bootstrap.min.css">
<script src="css/bootstrap/jquery.min.js"></script>
<script src="css/bootstrap/jqueryRotate.js"></script>
<script src="css/bootstrap/js/bootstrap.min.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>
-->
</br>
<div class="row">
<div class="col-md-6">
<!-- Blukly Drawing area -->
<div id="blocklyDiv" class="BlockyBox"></div>
<!-- run code box -->
<div class="RunBox">
<p id="datadis">Data</p>
<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">
<div id="ResultsDiv" class="alert alert-info">
Your Balloons hit Skills is <strong id="pResults"> --- </strong>
</div>
</div>
</div>
<!-- Tool box used -->
</div>
<!-- Real code in origin langauge -->
<div class="col-md-6">
<div id="playerAread" class="panel panel-default">
<div class="panel-heading">Balloons Game </div>
<div class="panel-body" id="PlayBody" style="text-align: center;height:500px">
<img id="imgBallon" style=" position:absolute;" src='images/BallonShooterAssets/Balloon0.png' width='100' height='100'> </img>
<img id="imgBallonShooter" style=" position:absolute;top:350px" src='images/BallonShooterAssets/irow.png' width='18' height='60'> </img>
<img id="imgBallonShooterShoter" style=" position:absolute;top:350px" src='images/BallonShooterAssets/BalloonShooter.png' width='100' height='100'> </img>
<!-- <p id="pyahtonCode" class="content"></p> -->
</div>
</div>
</div>
</div>
<xml id="toolbox" style="display: none">
<block type="math_number"></block>
<block type="variables_set" inline="true" x="20" y="20">
<field name="VAR">Angle</field>
</block>
<block type="text_print" inline="false">
<value name="TEXT">
<block type="variables_get">
<field name="VAR">Angle</field>
</block>
</value>
</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>