-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspacebears.html
143 lines (129 loc) · 4.8 KB
/
spacebears.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!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>spacebears@kodeaffe</title>
<meta content="kodeaffe code monkey" name="keywords">
<meta content="a website to show off the kodeaffe" name="description">
<meta content="kodeaffe" name="author">
<meta content="http://vim.org" name="generator">
<link rel="stylesheet" href="static/css/bootstrap.min.css">
<link rel="stylesheet" href="static/css/style.css">
<link rel="canonical" href="">
<link rel="shortcut icon" type="image/png" href="static/img/favicon.ico"/>
<script src="static/js/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<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 href="" class="navbar-left"><img src="static/img/logo.png" alt="logo"></a>
<div class="navbar-brand">
<a href="index.html" title="kodeaffe">kodeaffe</a>
</div>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="index.html" title="go home">home</a></li>
<li><a href="portfolio.html" title="see my portfolio">portfolio</a></li>
<li><a href="kartuliflash.html" title="learn georgian with kartuliflash">kartuliflash</a></li>
<li><a href="spacebears.html" title="play spacebears">spacebears</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div id="content" class="container" role="main">
<div id="spacebears">
<h1>spacebears</h1>
<div class="row" id="gamezone">
<div class="col-xs-12 col-lg-6">
<canvas id="board" width="550" height="413"></canvas>
</div>
<div class="col-xs-12 col-lg-6">
<div class="main" id="panel">
<h2>Catch the Space Bears!</h2>
<div id="intro">
Grab a bear to hear an awesome sound!<br />
Every miss will give you a one-point penalty.<br />
Fastest game: <span id="fastest">0</span> s
</div>
<hr />
<div id="scoreboard">
<h4>Scoreboard</h4>
<div class="row">
<div class="col-xs-12 col-sm-6">
<div class="alert alert-danger">Miss: <span id="miss">0</span></div>
</div>
<div class="col-xs-12 col-sm-6">
<div class="alert alert-success">Score: <span id="score">0</span></div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="alert alert-warning">Elapsed: <span id="elapsed">0</span> s</div>
</div>
</div>
</div>
<hr />
<div id="settings">
<h4>Settings</h4>
<form class="form form-inline">
<div class="row">
<div class="col-xs-4">
<label for="settings-winscore">Win Score</label>
<input class="form-control" id="settings-winscore" type="number" min="1" max="99" value="10" />
</div>
<div class="col-xs-4">
<label for="settings-speed">Speed</label>
<input class="form-control" id="settings-speed" type="range" min="1" max="9" value="1" />
</div>
<div class="col-xs-4">
<label for="settings-bears">Bears</label>
<input class="form-control" id="settings-bears" type="range" min="1" max="5" value="4" />
</div>
</div>
</form>
</div>
<hr />
<div id="actions">
<h4>Actions</h4>
<button class="btn btn-success" id="startpause">Start</button>
<button class="btn btn-default" id="reset">Reset</button>
</div>
</div><!-- panel -->
</div>
</div><!-- gamezone -->
<div class="modal fade" id="win" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span>×</span></button>
<h4 class="modal-title">You Win!</h4>
</div>
<div class="modal-body">
<p>You beat the game within <span id="win-elapsed">0</span> seconds with a score of <span id="win-score">0</span>.</p>
<p>CONGRATULATIONS!</p>
</div>
<div class="modal-footer">
<button class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="static/js/spacebears.js" type="text/javascript"></script>
</div>
</div>
<footer class="container">
</footer>
<script src="static/js/bootstrap.min.js"></script>
<script src="static/js/nav.js"></script>
</body>
</html>