-
Notifications
You must be signed in to change notification settings - Fork 0
/
Spotifight.html
99 lines (93 loc) · 3.19 KB
/
Spotifight.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
<head>
<title>Spotifight</title>
<script>
</script>
</head>
<body>
{{> outer}}
{{> generation}}
{{> players}}
{{> cards}}
</body>
<template name="outer">
{{activity}}
</template>
<template name="generation">
{{#if notEnoughCards}}
<div id="greyBG2">
<div id = "addCard">
<p class="userTitle">{{getActivePlayer}} is now choosing...</p>
<p>Choose a song to do battle with!</p>
<input id ='songname' class="songAddField" type = 'text' value ="" placeholder="...">
<input id='initButton' class="confirmButton" type = 'button' value ="Choose song">
</div>
</div>
{{/if}}
</template>
<template name="players">
<div id="greyBG">
<div id="loginBox">
<div id="loginInfo">
<p class="loginLabel">1st player:</p> <input id="username" class="username" type="text" value="" placeholder="...">
<p class="loginLabel">2nd players:</p> <input id="username2" class="username" type="text" value="" placeholder="...">
</div>
<div>
<input type="button" id="startButton" class="confirmButton" value="Confirm">
</div>
</div>
</div>
</template>
<template name="cards">
<div id="backg">
<div id="board">
<div id="yourHand"> <p id="userSide" class="player">Player One</p>
<div id="tempCard" style="display: none; position: absolute;"> </div>
<ul id="cardList">
{{#each cards1}}
<li>
<div class="card">
<span class="cardname">{{cardname}}</span>
<div class="portrait" style="background-image: url(' {{url}} ');"> </div>
<span class="attack">{{attack}}</span>
<span class="defense">{{defense}}</span>
</div>
</li>
{{/each}}
</ul>
</div>
<div id="sharedArea">
<img id="explosion" border="0" src="http://download.amplific.org/explosion.gif" />
<div id="yourBattleArea">
<div id="playerOneActive" class="activeCard">
<span class="cardname">[noname]</span>
<div class="portrait" style="background-size: cover; background-position:center;">
<p>Choose your card.</p>
</div>
<span class="attack">/</span>
<span class="defense">/</span>
</div>
</div>
<div id="choices">
<input id="battleButton" class="inactiveButton confirmButton" type="button" value="Ready for battle">
</div>
<div id="opponentChoice">
<div id="playerTwoActive" class="activeCard"> </div>
</div>
</div>
<div id="opponentArea"> <p id="enemySide" class="player">Player Two</p>
<ul id="cardList2">
{{#each cards2}}
<li>
<div class="card">
<span class="cardname">{{cardname}}</span>
<div class="portrait" style="background-image: url(' {{url}} ');"> </div>
<span class="attack">{{attack}}</span>
<span class="defense">{{defense}}</span>
</div>
</li>
{{/each}}
</ul>
</div>
</div>
</div>
</template>