-
Notifications
You must be signed in to change notification settings - Fork 0
/
balls.html
46 lines (44 loc) · 2.48 KB
/
balls.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
<!DOCTYPE html>
<html>
<head>
<title>Ball is Life</title>
<style type="text/css">
.circle {
display: block;
background: radial-gradient(circle at 100px 100px, #eef, #001);
border-radius: 100%;
height: 300px;
width: 300px;
margin: 0;
position: absolute;
}
.effect
{
box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
}
</style>
</head>
<body>
<div id="ballBoard" style="height:100%; width: 100%; position: fixed; top: 0; left:0; background: #eef;" onclick="updateClicks()">
<div class="effect" style="max-width: 120px; margin-left: 10px; margin-top: 10px; background: rgba(255,255,255,0.3); padding-left: 10px; padding-right: 10px; padding-top: 10px; padding-bottom: 10px;">
<button onclick="window.history.go(-1); return false;" style="height:50px; width:100px; display: block; margin: 0 auto;">Go Back</button>
<button id="startButton" onclick="startGame()" style="height:50px;width:100px; display: block; margin: 0 auto;">Start Game</button>
<div id="clickCounter" style="height:50px;width:100px; background: grey; text-align: center; padding-top: 25px; margin: 0 auto;">0 clicks</div>
<div id="timer" style="height:50px;width:100px; background: grey; text-align: center; padding-top: 25px; margin: 0 auto;"></div>
<div class="effect" style="height:50px;width:100px; background: white; text-align: center; padding-top: 5px; padding-bottom:5px; margin: 0 auto;"> Select Difficulty Below</div>
<div style="margin: 0 auto; text-align: center;">
<button style="height:auto;width:100px; background: green; text-align: center; color: white;" onclick="setGameDifficultyLevel(3)" autofocus="true">Padawan</button>
<button style="height:auto;width:100px; background: red; text-align: center; color: white;" onclick="setGameDifficultyLevel(5)">Jedi BallMaster</button>
<button style="height:auto;width:100px; background: black; text-align: center; color: white;" onclick="setGameDifficultyLevel(7)">Jedi NutCracker</button>
</div>
<div id="gif"></div>
<audio id="victoryMusic" autostart="false"></audio>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="./globals.js"></script>
<script type="text/javascript" src="./BallAnimator.js"></script>
<script type="text/javascript" src="./Ball.js"></script>
<script type="text/javascript" src="./balls.js"></script>
</body>
</html>