-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
113 lines (112 loc) · 4.85 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1.0">
<title>Klotski</title>
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<script src="util.js" defer="defer"></script>
<script src="undo.js" defer="defer"></script>
<script src="main.js" defer="defer"></script>
<script src="data.js" defer="defer"></script>
<script src="cookies.js" defer="defer"></script>
<script src="variant.js" defer="defer"></script>
<script src="start.js" defer="defer"></script>
</head>
<body>
<div id="variants" class="panel hidden">
<p class="panel-title">Select a variant:</p>
<button class="panel-close circle" onclick="ToggleVariantPanel()">
<span class="material-symbols-outlined">close</span>
</button>
<ul id="variant-list" class="tile-list">
<li id="variant-list-template">
<div class="tile-icon"></div>
<div class="tile-list-txt">
<p class="variant-title">Title</p>
<p class="variant-difficulty">Difficulty</p>
</div>
<p>
</li>
</ul>
</div>
<div id="delete-panel" class="panel hidden">
<p class="panel-title">Are you sure?</p>
<button class="panel-close circle" onclick="ToggleDeletePanel()">
<span class="material-symbols-outlined">close</span>
</button>
<p>Your are going to delete all your progress... Are you sure?</p>
<button onclick="DeleteCookiesWithoutPanel()">
<span class="material-symbols-outlined">delete</span>
Absolutely
</button>
<button onclick="ToggleDeletePanel()">
<span class="material-symbols-outlined">undo</span>
No
</button>
</div>
<div class="main">
<div class="tutorial hidden">
<p class="tuto-title">Welcome!</p>
<p>
Move the blocks with the mouse, to make the red block reach the bottom of the grid.
</p>
<p>
This is the easiest puzzle, but you can select harder variants.
</p>
<p>
This website also uses cookies to save your progress.
</p>
<button onclick="HideTutorial()">
<span class="material-symbols-outlined">done</span>
<span>Okay</span>
</button>
</div>
<div id="area">
<div class="target" ></div>
</div>
<div class="right">
<div class="moves">
<span id="move-count">99</span>
<span id="move-count-label">moves</span>
<span id="move-count-best" class="disabled">99</span>
<span id="move-count-label-best" class="disabled">best solution</span>
</div>
<div class="btn-list">
<button class="circle" id="undo" onclick="Undo()">
<span class="material-symbols-outlined">undo</span>
<div class="btn-info">Undo</div>
</button>
<button class="circle" id="redo" onclick="Redo()">
<span class="material-symbols-outlined">redo</span>
<div class="btn-info">Redo</div>
</button>
<button class="circle" id="undo-ten" onclick="UndoMany(10)">
<span class="material-symbols-outlined">replay_10</span>
<div class="btn-info">Undo 10 times</div>
</button>
<button class="circle" id="redo-ten" onclick="RedoMany(10)">
<span class="material-symbols-outlined">forward_10</span>
<div class="btn-info">Redo 10 times</div>
</button>
<button class="circle" id="restart" onclick="UndoMany(10000)">
<span class="material-symbols-outlined">refresh</span>
<div class="btn-info">Restart</div>
</button>
</div>
<div class="btn-list">
<button class="circle" id="variant-btn" onclick="ToggleVariantPanel()">
<span class="material-symbols-outlined">content_copy</span>
<div class="btn-info">Select variant</div>
</button>
<button class="circle" id="open-bookmarks" onclick="DeleteCookies()">
<span class="material-symbols-outlined">delete_forever</span>
<div class="btn-info">Delete progress</div>
</button>
</div>
</div>
</div>
</body>
</html>