-
Notifications
You must be signed in to change notification settings - Fork 74
/
BonusLevel22.html
70 lines (57 loc) · 1.75 KB
/
BonusLevel22.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
---
layout: default
title: Level 22
lang: en
number: 22
---
<p id="goal">
<b>Goal:</b> Construct a regular hexagon given one side AB.
</p>
<p id="winningimg">
<img src="http://i.snag.gy/EBDZu.jpg"/ >
</p>
<div id="hidden" style="display: none">
<p id="level">
Go to <a href="/Level23/">level 23</a> !
</p>
</div>
<script type="text/javascript">
{% include parameters480p.js %}
parameters.customToolBar = "501 | 5 | 15 | 18 | 10 | 100001 | 100002 | 9 | 4 | 3 | 100003 | 53";
parameters.ggbBase64 = "{% base64 ggb/Level22.ggb %}" ;
parameters.language = "en"
</script>
<div id="applet_container">
</div>
<script type="text/javascript">
{% include testobjects.js %}
checkobject("pointC",-0.5,0.5);
checkobject("pointLT",0.2,0);
checkobject("pointR",0.2,0);
checkobject("pointRT",1,0);
checkobject("pointLT",-1.2,0);
checkobject("pointL",-1.2,0);
checksegment("segmentLB");
checksegment("segmentRB");
checksegment("segmentLT");
checksegment("segmentRT");
checksegment("segmentT");
if (drawn("pointC"))
{
Command('progress = 10');
}
if (drawn("segmentLT") + drawn("segmentRT") + drawn("segmentLB") + drawn("segmentRB") + drawn("segmentT") === 1){
Command('progress = 20');
}
if (drawn("segmentLT") + drawn("segmentRT") + drawn("segmentLB") + drawn("segmentRB") + drawn("segmentT") === 2){
Command('progress = 40');
}
if (drawn("segmentLT") + drawn("segmentRT") + drawn("segmentLB") + drawn("segmentRB") + drawn("segmentT") === 3){
Command('progress = 60');
}
if (drawn("segmentLT") + drawn("segmentRT") + drawn("segmentLB") + drawn("segmentRB") + drawn("segmentT") === 4){
Command('progress = 80');
}
LevelCompleted(drawn("segmentLT") && drawn("segmentRT") && drawn("segmentLB") && drawn("segmentRB") && drawn("segmentT"),6);
}
</script>