forked from erick-otenyo/leaflet-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·71 lines (67 loc) · 3.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TZB180BXE8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-TZB180BXE8');
</script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#000000">
<meta name="description" content="A flag game">
<meta name="author" content="Tony Gaetani">
<title>Flag Game</title>
<!-- link the css files -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css">
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<!-- navbar starts hidden -->
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation" id="navbar" style="display: none">
<div class="col-xs-12">
<div id="flag"></div>
</div>
<div class="col-xs-6">
<div id="guess" class="display-value h6">Click flag's capital city</div>
<button class="btn btn-default" id="next-button" disabled="true">Next</button>
</div>
<div class="col-xs-6">
<div id="total-score" class="display-value h6">Score: 0</div>
<div id="last-score" class="display-value h6">Last score: 0</div>
<div id="game-timer" class="display-value h6">Time left: 120 seconds</div>
</div>
</div>
<div id="start-end-game">
<marquee class="h3">F L A G G A M E</marquee>
<div class="preamble h6">To play the game, click as close as possible to the capital city of the country whose
flag is displayed.</div>
<p />
<div class="preamble h6">Your score is calculated based on how close you are, as long as your guess is within
1000 km. Bonus points for guessing quickly.</div>
<p />
<div class="preamble h6">You have 2 minutes of guessing time. The clock stops between each guess until you hit
the "next" button.</div>
<p />
<div class="preamble h6">Click the button to start the game. Good luck!</div>
<p />
<button class="btn btn-default btn-lg" onClick="startGame();">Start</button>
</div>
<div id="container">
<!-- the map will go inside this div below -->
<div id="map" style="display: none"></div>
<!-- link to the js files -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js"></script>
<script src="js/flags.js"></script>
<script src="js/emoji.js"></script>
<script src="js/app.js"></script>
</div>
</body>
</html>