-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
85 lines (83 loc) · 4.34 KB
/
index.html
File metadata and controls
85 lines (83 loc) · 4.34 KB
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
<!doctype html>
<html>
<head>
<title>parity</title>
<meta name="description" content="An addicting numbers puzzle game.">
<script src="sdk/mesa-sdk.js?v=7"></script>
<script src="scripts/production.min.js?v=7"></script>
<link href='https://fonts.googleapis.com/css?family=Poiret+One|Open+Sans' rel='stylesheet' type='text/css'>
<link href="styles/style.css?v=7" rel="stylesheet" type="text/css" />
<link href="styles/mobile.css?v=7" rel="stylesheet" type="text/css" media="screen and (max-device-width:800px)" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<meta name="viewport" content="initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
</head>
<body>
<div id="page-wrapper">
<div id="container">
<div id="box">
<div id="overlay">
<h1></h1>
<div id="content"></div>
<!-- this button is in a holder so that I can center it and control its height properly -->
<div id="holder">
<button> </button>
</div>
</div>
<div id="swipeArea"></div>
<div class="dSelected" id="selector"></div>
<!-- The arrow that guides the user for the very first level -->
<div id="introtutorial"></div>
<table id="board">
<tbody id="board_body">
<tr>
<td class="cell center" data-x="0" data-y="0">4</td>
<td class="cell center" data-x="1" data-y="0">4</td>
<td class="cell center" data-x="2" data-y="0">4</td>
</tr>
<tr>
<td class="cell center" data-x="0" data-y="1">4</td>
<td class="cell center" data-x="1" data-y="1">4</td>
<td class="cell center" data-x="2" data-y="1">4</td>
</tr>
<tr>
<td class="cell center" data-x="0" data-y="2">4</td>
<td class="cell center selected" data-x="1" data-y="2">4</td>
<td class="cell center" data-x="2" data-y="2">4</td>
</tr>
<tr>
<td colspan="2">
<a id="level" href="#" class="light left">Level #</a>
<a id="reset-progress" href="#" class="reset-progress-btn" title="Reset to Level 1"><img src="images/reset.png" style="width:16px;opacity:0.5;" /></a>
</td>
<td colspan="2" class="right">
<a id="reset" href="#" class="poiret" title="Reset actual level"><img src="images/reset.png" style="width:24px;" /></a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Instructions sidebar - visible on desktop only -->
<div id="instructions">
<h1 id="title">PARITY</h1>
<h2>How to play</h2>
<p>Parity is a numbers puzzle game. The aim is to get each number on the 3x3 board to be exactly the same.</p>
<p>One number is always selected. Move it using the <strong>arrow keys</strong> or <strong>swipe</strong>.</p>
<p>Each time you move, the number you land on increases by one.</p>
</div>
</div>
<!-- Reset Progress Modal -->
<div id="reset-modal" style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.8);z-index:10000;justify-content:center;align-items:center;">
<div style="background:#2b3036;padding:24px 32px;border-radius:12px;text-align:center;border:1px solid rgba(255,255,255,0.1);max-width:320px;">
<h3 style="font-family:'Open Sans',Arial,sans-serif;font-size:20px;font-weight:400;color:#fff;margin-bottom:12px;">Reset Progress?</h3>
<p style="font-size:14px;color:#aaa;margin-bottom:20px;line-height:1.5;">This will reset your progress back to Level 1. Are you sure?</p>
<div style="display:flex;gap:12px;justify-content:center;">
<button id="modal-cancel" style="padding:10px 24px;border:none;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;background:#444;color:#ccc;">Cancel</button>
<button id="modal-confirm" style="padding:10px 24px;border:none;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;background:#ff6b6b;color:#fff;">Reset</button>
</div>
</div>
</div>
</body>
</html>