-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (74 loc) · 3.01 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
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sumplete</title>
<meta name="description"
content="A simple game where you have to complete the grid by making sure the sum of the numbers in each row and column is the same." />
<meta name=" keywords" content="sumplete clone, sumplete" />
<meta name="author" content="Stecca" />
<meta name="language" content="en_US" />
<meta name="canonical" content="https://sumplete.stecca.dev" />
<meta property="og:title" content="Stecca" />
<meta property="og:description"
content="A simple game where you have to complete the grid by making sure the sum of the numbers in each row and column is the same." />
<meta property="og:image" content="https://sumplete.stecca.dev/1234.png" />
<meta property="og:url" content="https://sumplete.stecca.dev" />
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
<link rel="icon" href="1234.png" type="image/png">
<link rel="stylesheet" href="center.css">
<script src="game.js"></script>
<script src="theme.js"></script>
<script defer src="https://t.stecca.dev/script.js" data-website-id="6246cced-4bd3-472e-be57-cef7153a132d"></script>
<script>
let game;
window.onload = function () {
game = new Game(5);
game.start();
setInterval(() => game.timer(), 1000);
}
</script>
</head>
<body>
<div class="section">
<div class="center space">
<div>
<input style="width: 5em;" class="input" id="size" type="number" min="2" max="7">
<button class="button is-primary" onclick='
let size = document.getElementById("size").value;
game = new Game(size);
game.start();
'>change</button>
</div>
<button class="button" onclick="toggleTheme()">
<p id="theme" src="img/moon.svg">🌜</p>
</button>
</div>
<hr>
<div class="center content">
<div class="tag is-warning is-medium" id="timer">0</div>
</div>
<div id="game" class="center is-unselectable"></div>
</div>
<div class="section">
<div class="center">
<h1 class="is-size-1">Rules</h1>
</div>
<div class="center">
<p>The sum of the numbers in each row and column must be the same.</p>
</div>
<div class="center">
<p>Clicking one time on a number will mark it as valid.</p>
</div>
<div class="center">
<p>Clicking two times will mark it as invalid.</p>
</div>
<div class="center">
<p>Clicking three times will reset it.(Game only checks invalid marks)</p>
</div>
</div>
</body>
</html>