-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
108 lines (101 loc) · 1.91 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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Set</title>
</head>
<body>
<script data-main="scripts/main" src="scripts/lib/require-2.1.10.js"></script>
<style type="text/css">
html {
font-family: sans-serif;
}
button {
color: #fff;
background-color: #428bca;
border-color: #357ebd;
padding: 6px 12px;
border-radius: 4px;
border: 1px solid transparent;
cursor: pointer;
}
button:hover {
background-color: #3276b1;
border-color: #285e8e;
}
button[disabled] {
cursor: not-allowed;
pointer-events: none;
opacity: .65;
}
button#submitSet {
background-color: #5cb85c;
border-color: #4cae4c;
}
button#submitSet:hover {
background-color: #47a447;
border-color: #398439;
}
.alert {
padding: 6px;
border-radius: 4px;
background-color: #f2dede;
border-color: #ebccd1;
color: #a94442;
}
#controls {
width: 150px;
position: fixed;
}
#controls button {
width: 100%;
}
#cardList {
margin-left: 160px;
}
#cardList ul {
width: 1000px;
}
#cardList li {
display: inline-block;
width: 300px;
height: 150px;
background-color: #eee;
margin: 10px;
cursor: pointer;
}
#cardList li:hover {
background-color: #ddd;
}
#cardList li.selected {
background-color: #ccc;
}
.image svg {
display: block;
margin: 21px auto;
}
</style>
<section id="setApp">
<div id="controls">
<h1>Set</h1>
<div id="summary"></div>
</div>
<div id="cardList">
<ul></ul>
</div>
</section>
<!-- Get some underscore templating going -->
<script type="text/template" id="summary-template">
<button id="newGame" type="button">New Game</button>
<p>{{setsFound}} {{setsFoundUnit}} found<br>
{{cardsLeft}} cards left<br>
{{numberOfSets}} possible {{numberOfSetsUnit}}</p>
<button id="moreCards" type="button">More Cards</button>
<button id="submitSet" type="button">Set</button>
<div class="alert">That is not a set.</div>
</script>
<script type="text/template" id="card-template">
<div class="image"></div>
</script>
</body>
</html>