-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
89 lines (86 loc) · 3.04 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tower of Hanoi</title>
<link rel="stylesheet" href="./css/Hanoi.css">
<!--[if lt IE 9]>
<style type="text/css">
.disk.active {
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50);
}
.hover {
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=60);
}
</style>
<![endif]-->
</head>
<body>
<h1 id="title">Tower of Hanoi</h1>
<ul class="bar clearfix">
<li id="new-game">New game</li>
<li id="seting">Setting</li>
<li id="help">Help</li>
<div id="steps">Steps: <span>0</span>
</div>
</ul>
<div class="content">
<div class="container clearfix">
<ul class="stack stack-left">
<div class="rob"></div>
</ul>
<ul class="stack stack-middle">
<div class="rob"></div>
</ul>
<ul class="stack stack-right">
<div class="rob"></div>
</ul>
<div class="base"></div>
</div>
<div class="content-wraper result-content">
<p>
</p>
<div class="button-wraper">
<button class="new-game-btn">Play again</button>
</div>
</div>
<div class="content-wraper choose-content">
<h4>Choose the number of disks:</h4>
<br>
<ul class="disk-choose"></ul>
<br>
<hr>
<h4>Choose the initial stack:</h4>
<br>
<ul class="stack-choose"></ul>
<div class="button-wraper">
<button class="set-game-btn">Set and restart</button>
<button class="new-or-back-btn"></button>
</div>
</div>
<div class="content-wraper help-content">
<p>
Put all the disks from the initial stack to one of the other two stacks, obeying the following rules:
<br>
<br> <span>1. Only one disk can be moved at a time.</span>
<br> <span>2. A disk can only be moved if it is the uppermost disk on a stack.</span>
<br> <span>3. No disk may be placed on top of a smaller disk. If you disobey this rule, you will lose.</span>
<br>
<br>
<a href="https://en.wikipedia.org/wiki/Tower_of_Hanoi">Know more about Tower of Hanoi >>></a>
</p>
<div class="button-wraper">
<button class="setting-btn">Setting</button>
<button class="new-or-back-btn1"></button>
</div>
</div>
<div class="hover"></div>
</div>
<div class="footer">
Developed by <a href="https://github.com/levonlin">Levon</a>
</div>
<script src="./js/miniQuery1.js"></script>
<script src="./js/Hanoi.js"></script>
<script src="./js/game.js"></script>
</body>
</html>