-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
124 lines (119 loc) · 5.25 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
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ray Meibaum | Simon</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Anton">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://raymeibaum.github.io"><span class="logo" id="navbar-logo">SIMON</span> by Ray Meibaum</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="#" id="clear-highscores">Clear Highscores</a></li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</nav>
<div class="container">
<div class="game-wrapper">
<div class="game">
<div class="box" id="green" data-index="0"></div>
<div class="box" id="red" data-index="1"></div>
<div class="box" id="blue" data-index="2"></div>
<div class="box" id="yellow" data-index="3"></div>
<div class="game-center">
<h1 class="logo hidden-xs" id="big-simon-logo">SIMON</h1>
<h1 class="logo visible-xs" id="small-simon-logo">SIMON</h1>
<div class="center-controls">
<h3 class="score hidden-xs" id="big-score">0</h3>
<h3 class="score visible-xs" id="small-score">0</h3>
<i class="fa fa-3x fa-circle hidden-xs start" aria-hidden="true"></i>
<i class="fa fa-2x fa-circle visible-xs start" aria-hidden="true"></i>
</div>
</div>
</div>
</div>
<div class="below-game-container">
<p><strong>Instructions:</strong> To begin playing <span class="logo" id="instructions-logo">SIMON</span>, simply press the green circle in the middle of the game.</p>
<h3>Highscores</h3>
<table class="table">
<thead>
<tr>
<th>Position</th>
<th>Name</th>
<th>Score</th>
</tr>
</thead>
<tbody id="highscores">
<tr>
<td></td>
<td><p class="text-center"><em>Highscores will appear here.</em></p></td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Footer -->
<nav class="navbar navbar-inverse navbar-fixed-bottom">
<div class="container">
<p class="navbar-text">©2017 <a href="https://raymeibaum.github.io/" id="footer-link">Ray Meibaum</a>. All rights reserved.</p>
</div>
</nav>
<!-- Modal -->
<div class="modal fade" id="postgame-modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Game Over</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-sm-4 text-center">
<h1 id="modal-score"></h1>
</div>
<div class="col-sm-8">
<form class="form-inline">
<div class="form-group">
<label class="sr-only" for="input-name">Name</label>
<input type="text" class="form-control" id="input-name" placeholder="Name" required>
</div>
<button type="submit" id="modal-submit" class="btn btn-primary">Submit Score</button>
</form>
<p class="text-success text-center" id="validation-message"></p>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">OK</button>
<a id="tweet-button" role="button" target="_blank" class="btn btn-info"><i class="fa fa-twitter" aria-hidden="true"></i> Tweet Score</a>
</div>
</div>
</div>
</div>
<script src="https://use.fontawesome.com/8e9a454024.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script type="text/javascript" src="js/simon.js"></script>
<script type="text/javascript" src="js/controller.js"></script>
<script type="text/javascript" src="js/presenter.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>