-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
99 lines (91 loc) · 3.84 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>
<head lang="en">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="robots" content="noindex">
<title>Mule Snake</title>
<!-- Link our styles from main.css -->
<link rel="stylesheet" type="text/css" href="main.css"/>
<link rel="stylesheet" type="text/css" href="countdown.css"/>
<link rel="icon" type="image/png" href="/images/favicon.png">
</head>
<body class="light-top-gradient">
<img src="images/max.webp" alt="Max the Mule" class="max-img-background">
<img src="images/Astro_Max_rocket.png" alt="Happy Max the Mule" class="max2-img-background">
<div class="titleContainer">Max the Mule's Breakfast</div>
<!-- #gameContainer is the main game board-->
<div class="mainContainer">
<div id="timer" class="timer hide-timer"></div>
<div id="gameContainer">
<table id="foodTable"></table>
</div>
</div>
<!-- #scoreContainer contains the scores -->
<div id="scoreContainer">
<div class="scoreBoard">Legacy replaced: <span id="pointsEarned">0</span></div>
<div class="scoreBoard">Time passed: <span id="blocksTravelled">0</span>s</div>
</div>
<!-- #onScreenControllers contains the navigation buttons for mobile screens -->
<!-- <div id="onScreenControllers">
<button id="leftButton">◀️</button>
<div>
<button id="upButton">🔼</button>
<button id="downButton">🔽</button>
</div>
<button id="rightButton">▶️</button>
</div> -->
<div class="developerDetails">
<div>
<span class="boldFont">Goal:</span> Eat (aka replace) as many legacy solutions as possible. Don't bite your tail. <br>
<span class="boldFont">How to play:</span> Use the arrow keys on your keyboard to change the snake's direction of travel. <br>
Presented by Damian from MuleSoft. <a href="https://github.com/hansjakobli/mule-snake" target="_blank">More about this game.</a>
</div>
</div>
<dialog id="gameOverDialog">
<form method="dialog">
<header>
<h3 id="gameOverHeader">Default header</h3>
</header>
<article>
<p id="gameOverText">Default body</p>
<div id="joinLeaderboard">
<p class="joinLeaderboardText">Submit your result to the leaderbaord</p>
<input type="text" id="nicknameInput" required minlength="4" maxlength="16" placeholder="Name">
<input type="text" id="emailInput" required minlength="4" maxlength="64" placeholder="Email (hidden from leaderbaord)">
<button class="button" id="submitButton">Submit</button>
<p style="display: none;" id="errorLeaderboardText">Placeholder</p>
</div>
</article>
<footer>
<button class="button" id="restartButton">Restart</button>
</footer>
</form>
</dialog>
<dialog id="leaderboardDialog">
<form method="dialog">
<header>
<h3 id="gameOverHeader">Topscorers to beat</h3>
</header>
<article>
<table id="leaderboardTable">
<tr>
<td></td>
<td></td>
<td>Score</td>
<td>Efficiency</td>
<td>Date (UTC)</td>
</tr>
</table>
</article>
<footer>
<button class="button" id="beginButton">Press 'Enter' to start</button>
</footer>
</form>
</dialog>
</body>
<!-- #Load our jscript.js containing the game logic -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.16/d3.min.js"></script>
<script src="countdown.js"></script>
<script src="jscript.js"></script>
</html>