-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (68 loc) · 3.49 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
<!DOCTYPE html>
<!--
Unofficial web port of Flowit
Copyright © 2022 by luk3yx
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- <meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes"> -->
<title>Flowit web</title>
<script src="main.js"></script>
<link rel="stylesheet" href="style.css">
<link rel="icon" href="https://raw.githubusercontent.com/Flowit-Game/Flowit/v3.2/app/src/main/play/listings/en-US/graphics/icon/ic_launcher_web.png">
<link rel="manifest" href="flowit.webmanifest">
</head>
<body>
<div id="main-menu">
<div class="logo" onclick="setActiveScreen(packSelector)"></div>
<div id="select-pack" class="screen active">
Unofficial web port
<h1>Select pack</h1>
<div class="btn-wrapper">
<button class="arrow-btn" style="--y: 5;" onclick="loadLevelList('levelsEasy.xml')"></button>
</div>
<div class="btn-wrapper">
<button class="arrow-btn" style="--y: 6;" onclick="loadLevelList('levelsMedium.xml')"></button>
</div>
<div class="btn-wrapper">
<button class="arrow-btn" style="--y: 7;" onclick="loadLevelList('levelsHard.xml')"></button>
</div>
<div class="btn-wrapper">
<button class="arrow-btn" style="--x: 6; --y: 14;" onclick="loadLevelList('levelsCommunity.xml')"></button>
</div>
<button onclick="unregisterServiceWorkersAndReload()" class="bottom-left-btn">Update web app</button>
</div>
<div id="select-level" class="screen">
</div>
</div>
<div id="game-screen" class="screen">
<button onclick="currentLevel.returnToLevelSelector()" class="bottom-left-btn">Back</button>
<nav>
<button onclick="currentLevel.previous()?.go()" class="icon" style="--x: 0; --y: 10;"></button>
<button onclick="currentLevel.reset()" class="icon" style="--x: 2; --y: 10;"></button>
<div class="icon" style="--x: 12; --y: 10; --w: 3; width: 6.3rem;"></div>
<span style="flex-grow: 1;">
<span id="moves"></span><br>
<span id="best-score"></span>
</span>
<div class="icon" id="completed-icon"></div>
<button onclick="currentLevel.goToNextLevel()" class="icon" style="--x: 1; --y: 10;"></button>
</nav>
<div id="game-wrapper"></div>
<div id="levelCompleted" onclick="currentLevel.goToNextLevel()"></div>
</div>
</body>
</html>