-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (75 loc) · 2.82 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
<!DOCTYPE html>
<html>
<head>
<title>M:tG Life Counter</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="mtgcounter.css">
<link href="https://fonts.googleapis.com/css?family=Spectral:400,600" rel="stylesheet">
</head>
<body>
<div id="menuContainer">
<h1>Life Total Counter</h1>
<h2>For <em><a href="http://magic.wizards.com" title="MAGIC: THE GATHERING" target="_blank">Magic: the Gathering</a></em></h2>
<hr>
<p>How many players?</p>
<div>
<button class="playerCountBtn selected">Two</button>
<button class="playerCountBtn">Three</button>
<button class="playerCountBtn">Four</button>
</div>
<div>
<button id="playNowBtn">Play Now</button>
<button id="customBtn">Customize</button>
</div>
<p class="disclaimer">All symbols and terms owned by <a href="http://company.wizards.com/" title="Wizards of the Coast" target="_blank">Wizards of the Coast</a>. I just made this thing for fun.</p>
</div>
<div id="choiceContainer" class="hidden">
<!-- <h2 id="customPlayerH2">gaerh</h2> -->
<label class="nameLabel"><input type="text" name="playerName" value="Player 1" maxlength="20"></label>
<label class="lifeLabel"><input type="number" name="startingLife" value=20></label>
<button id="playerDone">Ready to Play</button>
<h3>Click to customize icon and color</h3>
<div id="choiceIconPicker"><img id="symbolImg" src="img/w.png"></div>
<div id="choiceColorPicker"> </div>
</div>
<div id="playContainer" class="hidden">
<span class="row">
<div class="playerBox" id="boxP1" onclick="changeLife(event,0)">
<p class="pLife noselect">20</p>
<h3 class="pName noselect">Player 1</h3>
<div class="zeroLife">
<button class="resBtn">Revive</button>
<button class="endGameBtn">Restart</button>
</div>
</div>
<div class="playerBox" id="boxP2" onclick="changeLife(event,1)">
<p class="pLife noselect">20</p>
<h3 class="pName noselect">Player 2</h3>
<div class="zeroLife">
<button class="resBtn">Revive</button>
<button class="endGameBtn">Restart</button>
</div>
</div>
</span>
<span class="row">
<div class="playerBox" id="boxP3" onclick="changeLife(event,2)">
<p class="pLife noselect">20</p>
<h3 class="pName noselect">Player 3</h3>
<div class="zeroLife">
<button class="resBtn">Revive</button>
<button class="endGameBtn">Restart</button>
</div>
</div>
<div class="playerBox" id="boxP4" onclick="changeLife(event,3)">
<p class="pLife noselect">20</p>
<h3 class="pName noselect">Player 4</h3>
<div class="zeroLife">
<button class="resBtn">Revive</button>
<button class="endGameBtn">Restart</button>
</div>
</div>
</span>
</div>
<script type="text/javascript" src="mtgcounter.js"></script>
</body>
</html>