forked from kasperpeulen/euclidthegame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Level1.html
64 lines (52 loc) · 1.7 KB
/
Level1.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
---
layout: default
title: Level 1
cat: level
number: 1
---
<p id="goal">
<b>Goal:</b> Construct an equilateral triangle such that the segment AB is one of its sides.
</p>
<script>
$(document).ready(function(){
$("#button").click(function(){
$("#hint").toggle();
});
});
</script>
<p><span id="button"><b>Show hint </b></span> <span style="display:none" id="hint"> Don't randomnly create new (blue) points, but create 2 circles with radius AB.</span></p>
<p id="winningimg">
<img src="data:image/png;base64, {% base64 img/Level1.png %}">
</p>
<div id="hidden" style="display: none">
<p id="level" onclick="location.href='/Level2/';" style="cursor:pointer;">
You unlocked a new tool: Constructing equilateral triangles! Go to <a href="/Level2/">level 2</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/Level1.ggb %}" ;
parameters.language = "en"
</script>
<div id="applet_container">
</div>
<script type="text/javascript">
{% include testobjects.js %}
checkobject("pointtop",-0.4,0.3);
checkobject("pointbottom",-0.4,-0.3);
//checkobject("circleleft");
//checkobject("circleright");
checksegment("segmentLB",-1.1,0);
checksegment("segmentRB",0,0);
checksegment("segmentLT",-1.1,0);
checksegment("segmentRT",0,0);
if (drawn("pointtop") || drawn("pointbottom")) {
Command('progress = 33');
}
if (drawn("segmentLT") || drawn("segmentLB") || drawn("segmentRB") || drawn("segmentRT")){
Command('progress = 66');
}
LevelCompleted((drawn("segmentLT") && drawn("segmentRT")) || (drawn("segmentLB") && drawn("segmentRB")),4);
}
</script>