-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (92 loc) · 4.08 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=424, initial-scale=1.0">
<meta property="og:image" content="https://repository-images.githubusercontent.com/155340706/dad3a300-93d9-11e9-9e53-19f514f5e3b7" />
<script src="https://imlolman.github.io/js/controller.js"></script>
<title>S Game</title>
<link rel="stylesheet" href="assets/style.css">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-142979168-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', '{{ site.google_analytics }}');
</script>
</head>
<body bgcolor="#222" style="text-align:center;">
<h1>DragnDrop Color Names by Satyam#imLolman</h1>
<div class="scoreDiv">
<div>
<div class="scorer">
Heighest Score: <span class="score" id="score">30s</span>
</div>
<div class="timer">
Stopwatch: <span class="time" id="time">00:00:00</span><br>
<button onclick="window.location = window.location.href" id="btn1" class="btn" style=""><svg height="20px"
aria-hidden="true" focusable="false" data-prefix="fas" data-icon="sync-alt" role="img"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-sync-alt fa-w-16 fa-2x">
<path fill="currentColor"
d="M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"
class=""></path>
</svg></button>
</div>
</div>
</div>
<div class="rules" id="hrules1">
<p>
<ul>
<li>Mode 1: Left Side color Boxes have same color as Right Side.<br>
</li>
</ul>
</p>
</div>
<div class="rules" id="hrules2">
<p>
<ul>
<li>Mode 2: Left Side color Boxes have same color text as Right Side.<br>
</li>
</ul>
</p>
</div>
<div class="rules" id="rules">
<p>
How to Play:
<ul>
<li>Any one of two gaming modes code appear randomly.</li>
<li>You have to match Right boxes to Left Side</li>
<li>Mode 1: Left Side color Boxes have same color as Right Side.<br>
<canvas id="mode1"></canvas>
</li>
<li>Mode 2: Left Side color Boxes have same color text as Right Side.<br>
<canvas id="mode2"></canvas>
</li>
<li>Press Enter to Start</li>
</ul>
</p>
<p>
Rules:
<ul>
<li>Stopwatch 🕛 Will Begin as Soon as You Click Start.</li>
<li>Stopwatch Will end immidiately, as Soon as You Match all Color Names to Colors. 🎨</li>
<li>Your Best Score Will Stay On Your Cache, Don't Clear it. 📫</li>
<li>Don't Try to Break the Game, Enjoy it 😃</li>
</ul>
</p>
</div><br>
<button onclick="startGame()" id="btn" class="btn" autofocus>Start Game</button>
<canvas id="demo" style="display:none"></canvas><br>
<canvas
id="gameCanvas"
onmousedown="mousedown(event)" ontouchstart="mousedown(event.touches[0])"
onmouseup="mouseup(event)" ontouchend="mouseup(event)"
onmousemove="mousemove(event)" ontouchmove="mousemove(event.touches[0])"
onmouseout="mouseout(event)" ontouchcancel="mouseout(event.touches[0])"
style="display:none;"></canvas>
</body>
<script src="assets/script.js"></script>
</html>