-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·141 lines (122 loc) · 8.5 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, maximum-scale=1, minimum-scale=1, viewport-fit=cover">
<title>Skeep</title>
<link rel="canonical" href="https://skeep.glitch.me/">
<link rel="stylesheet" href="style.css" />
<link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,600" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css">
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#623189">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="apple-touch-icon" href="images/icons/icon-192x192.png">
<link href="splashscreens/iphone5_splash.png" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
<link href="splashscreens/iphone6_splash.png" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
<link href="splashscreens/iphoneplus_splash.png" media="(device-width: 621px) and (device-height: 1104px) and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image" />
<link href="splashscreens/iphonex_splash.png" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image" />
<link href="splashscreens/iphonexr_splash.png" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
<link href="splashscreens/iphonexsmax_splash.png" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image" />
<link href="splashscreens/ipad_splash.png" media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
<link href="splashscreens/ipadpro1_splash.png" media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
<link href="splashscreens/ipadpro3_splash.png" media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
<link href="splashscreens/ipadpro2_splash.png" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
</head>
<body>
<header>
<div id="record">0 - 0</div>
<div id="app-name">Skeep</div>
<div id="controls">
<button id="new-game">New</button>
<button id="toggle-help">Help</button>
</div>
</header>
<div class="help hidden" id="help">
<h2>How to Play</h2>
<p>
Be the first to play all the cards in your stock pile.
Players take turns trying to build sequences of cards from 1-12 in the 4
build piles by moving cards from your stock, one of the discard piles, or
your hand.</p>
<p>
When no moves remain, discard a card from your hand to one of
4 discard piles. If you play all 5 cards in your hand, you will be drawn
another 5 immediately.</p>
<p>
W cards are wild. Discard piles do not require a sequence.</p>
<p>
To move a card, select the card and then select the target card pile.
To deselect a selected card, select the card again.
On desktop browsers, you can also drag and drop the cards.
</p>
<p>
Long-press one of your discard piles that has two more cards to
reveal the card under the top-most card.
</p>
</div>
<div id="board">
<div class="player-area" id="cpu-player-area">
<div class="help-label hidden">Computer's Hand</div>
<div class="card-row" id="cpu-hand">
<div class="card cpu" id="cpu-hand-0"></div>
<div class="card cpu" id="cpu-hand-1"></div>
<div class="card cpu" id="cpu-hand-2"></div>
<div class="card cpu" id="cpu-hand-3"></div>
<div class="card cpu" id="cpu-hand-4"></div>
</div>
<div class="help-label hidden">Computer's Discard Piles and Stock Pile</div>
<div class="card-row" id="cpu-discard">
<div class="card cpu empty" id="cpu-discard-0"></div>
<div class="card cpu empty" id="cpu-discard-1"></div>
<div class="card cpu empty" id="cpu-discard-2"></div>
<div class="card cpu empty" id="cpu-discard-3"></div>
<div class="card cpu badge stock" id="cpu-stock" data-badge=""></div>
</div>
</div>
<div class="player-area" id="build-piles-area">
<div class="help-label hidden">Build Piles and Draw Pile</div>
<div class="card-row" id="build-piles">
<div class="card build empty" id="build-0" ondrop="dragDidDrop(event)" ondragover="dragDidHover(event)"></div>
<div class="card build empty" id="build-1" ondrop="dragDidDrop(event)" ondragover="dragDidHover(event)"></div>
<div class="card build empty" id="build-2" ondrop="dragDidDrop(event)" ondragover="dragDidHover(event)"></div>
<div class="card build empty" id="build-3" ondrop="dragDidDrop(event)" ondragover="dragDidHover(event)"></div>
<div class="card draw badge" id="draw" data-badge=""></div>
</div>
</div>
<div class="player-area" id="human-player-area">
<div class="help-label hidden">Your Discard Piles and Stock Pile</div>
<div class="card-row" id="human-discard">
<div class="card human empty discard" id="human-discard-0" draggable="true" ondragstart="dragDidStart(event)" ondragover="dragDidHover(event)" ondrop="dragDidDrop(event)"></div>
<div class="card human empty discard" id="human-discard-1" draggable="true" ondragstart="dragDidStart(event)" ondragover="dragDidHover(event)" ondrop="dragDidDrop(event)"></div>
<div class="card human empty discard" id="human-discard-2" draggable="true" ondragstart="dragDidStart(event)" ondragover="dragDidHover(event)" ondrop="dragDidDrop(event)"></div>
<div class="card human empty discard" id="human-discard-3" draggable="true" ondragstart="dragDidStart(event)" ondragover="dragDidHover(event)" ondrop="dragDidDrop(event)"></div>
<div class="card human badge stock" id="human-stock" data-badge="" draggable="true" ondragstart="dragDidStart(event)"></div>
</div>
<div class="help-label hidden">Your Hand</div>
<div class="card-row" id="human-hand">
<div class="card human" id="human-hand-0" draggable="true" ondragstart="dragDidStart(event)"></div>
<div class="card human" id="human-hand-1" draggable="true" ondragstart="dragDidStart(event)"></div>
<div class="card human" id="human-hand-2" draggable="true" ondragstart="dragDidStart(event)"></div>
<div class="card human" id="human-hand-3" draggable="true" ondragstart="dragDidStart(event)"></div>
<div class="card human" id="human-hand-4" draggable="true" ondragstart="dragDidStart(event)"></div>
</div>
</div>
</div>
<div id="discard-pile-contents" class="hidden card"></div>
<script src="game.js"></script>
<script src="app.js"></script>
<script>
if('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js', { scope: '/' })
.then(function(registration) {
console.log('Service Worker Registered');
});
navigator.serviceWorker.ready.then(function(registration) {
console.log('Service Worker Ready');
});
}
</script>
<script src="party.min.js" defer></script>
</body>
</html>