-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (48 loc) · 1.53 KB
/
index.html
File metadata and controls
52 lines (48 loc) · 1.53 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Game</title>
<link type="text/css" rel="stylesheet" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" />
<style>
#content {
position: relative;
}
.menu {
position: absolute;
border-radius: 10px;
border: 2px solid #eee;
box-shadow: 0px 2px 10px rgba(0,0,0,.5);
background: rgba(255,255,255,.5);
max-width: 100px;
padding: 20px;
}
.menu .action:not(:last-child) {
margin-bottom:10px;
}
.menu .action button {
width: 100%;
border-radius: 10px;
}
.menu .hotkey {
text-decoration: underline;
}
</style>
</head>
<body>
<div>
<div id="content">
<div id="context-menu" class="container menu" style="display: none;">
<div class="action">
<button id="btn-attack" class="btn btn-danger"><span class="hotkey">A</span>ttack</button>
</div>
<div class="action">
<button id="btn-wait" class="btn btn-default"><span class="hotkey">W</span>ait</button>
</div>
<div class="action">
<button id="btn-cancel" class="btn btn-default"><span class="hotkey">C</span>ancel</button>
</div>
</div>
</div>
</div>
</body>