-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
116 lines (100 loc) · 3.96 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--FONT LINK-->
<link href="https://fonts.googleapis.com/css?family=Acme&display=swap" rel="stylesheet">
<!--BOOTSTRAP LINK-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<!--CSS LINK-->
<link rel="stylesheet" href="assets/css/styles.css">
<title>Guess the Flag</title>
</head>
<body onload="loadmodal()">
<!--*******HEADER SECTION*******-->
<div class="header-section">
<h1 class="header">Guess the flag</h1>
<p class="description">30 or 60 seconds to guess as many flags as possible</p>
</div>
<!--*******GAME*******-->
<div class="game-section">
<!--*******Timer Options and Start Button*******-->
<div id="seconds-select">
<form id="timer-form">
<h3 class="game-instructions-header">Select how many seconds?</h3>
<label class="seconds-text">
<input type="radio" class="timer-select" name="seconds" value=30 checked/> 30 Seconds
</label>
<label class="seconds-text">
<input type="radio" class="timer-select" name="seconds" value=60 /> 60 Seconds
</label>
<button type="button" id="startbtn" onclick="startgame()">Start</button>
</form>
</div>
<!--*******SCORE AND TIMER*******-->
<div class="game-details row">
<div id="score-section" class="col-6">
<div id="score-para"></div>
</div>
<div class="timer-section col-6">
<div id="timer"></div>
</div>
</div>
<!--*******FLAG*******-->
<div class="flag-section">
<div id="flag-div"></div>
</div>
<!--*******CORRECT OR INCORRECT*******-->
<div id="truthsection"></div>
<!--*******OPTIONS*******-->
<div id="answers-section-width">
<div class="answers-section row">
<div id="button1" class="answer-buttons col-6"></div>
<div id="button2" class="answer-buttons col-6"></div>
<div id="button3" class="answer-buttons col-6"></div>
<div id="button4" class="answer-buttons col-6"></div>
</div>
</div>
<!--*******HIGH SCORE*******-->
<div id="highscoresection"></div>
<!--*******Finshed Game*******-->
<div id="cover-game">
<div id="finalscoresection"></div>
<div id="playagain-section"></div>
</div>
</div>
<!--*******MODAL LOAD IN*******-->
<div class="modal fade" tabindex="-1" role="dialog" id='modal'>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Welcome to Guess the flag</h4>
<button type="button" class="close" data-dismiss="modal" style="text-align: right;" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body">
<p class="modal-subtitle">How To Play:</p>
<p>You have 30 or 60 seconds to guess the country's flag you will have 4 options to pick from.</p>
<p>Select how many seconds you want on the timer and click start to start the game</p>
</div>
<div class="modal-footer">
<button type="button" class="btn modal-btn" data-dismiss="modal">Let's Play!</button>
</div>
</div>
</div>
</div>
<!--*******SCRIPTS*******-->
<script src="index.js"></script>
<script src="assets/js/countrylist.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous">
</script>
</body>
</html>