-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
105 lines (95 loc) · 2.33 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8"/>
<title>Bubbles</title>
<script src="bubble.js"></script>
<style type="text/css">
#container {
position:relative;
margin-left:auto;
margin-right:auto;
width:300px;
}
canvas {
position:absolute;
top:0px;
left:0px;
border:1px solid;
}
#menu-pause {
position:absolute;
top:100px;
left:100px;
width:200px;
padding:0px;
margin:0px;
list-style-type: none;
background-color:rgba(0,0,128,0.6);
border-radius: 8px;
}
.menu-items {
padding:0px;
}
.menu-items li{
display:block;
margin-top: 10px;
margin-bottom: 10px;
background-color:rgba(0,0,180,0.7);
font-family: sans-serif;
color: #FFF;
width:86%;
margin-left:7%;
height:50px;
line-height:50px;
text-align:center;
border:1px solid #00F;
border-radius: 8px;
}
.menu-items li:hover{
background-color:rgba(0,0,128,1);
}
#menu-game-over {
position:absolute;
display:block;
top:100px;
left:100px;
width:200px;
padding:0px;
margin:0px;
list-style-type: none;
background-color:rgba(0,0,128,0.6);
border-radius: 8px;
font-family:sans-serif;
color:white;
}
#menu-game-over h1,h2 {
text-align:center;
}
</style>
</head>
<body>
<h1 style="text-align:center;">Bubbles</h1>
<div id="container">
<canvas id="c" width="300" height="400" ></canvas>
<canvas id="c2" width="300" height="400"></canvas>
<div id="menu-pause">
<ul class="menu-items">
<li id="action_restart">Restart</li>
<li id="action_resume">Resume</li>
<li id="action_about">About</li>
</ul>
</div>
<div id="menu-game-over" >
<h1 id="txt-win-lose"> Game Over! </h1>
<h2 style="display:none" id="txt-score"> Score: xx </h2>
<ul class="menu-items">
<li id="action_replay">Play Again</li>
</ul>
</div>
</div>
<!--
<textarea cols="100" rows="23" id="console" disabled="disabled" style="background:#000000; color:#00FF00"></textarea>
-->
</body>
</html>