-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (40 loc) · 1.54 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href='https://fonts.googleapis.com/css?family=VT323' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/style.css">
<title>Memory Card Game</title>
</head>
<body>
<header>
<h1>Memory Card Game</h1>
</header>
<main>
<section>
<div class="cards-left">Cards Left: <span data-bind="text: cards().length"></span></div>
<div class="number-selector-container">
<select data-bind="options: $root.numberOfPairsArray, optionsCaption: 'Number of Pairs', value: $root.numberOfPairs"></select>
</div>
<div class="game-container" data-bind="foreach: cards">
<div class="card-container">
<div class="back" data-bind="style: { color: color }, css: icon"></div>
<div class="front" data-bind="click: $parent.checkSelected, css: { selected: selected() }"></div>
</div>
</div>
<div class="winner-message hidden">You won!</div>
</section>
<section>
<h2>Instructions</h2>
<p>Select the number of pairs by using the drop-down box. Then match symbols until the cards are all gone.</p>
</section>
</main>
<footer>
<h3><a href="http://ikisler.github.io/portfolio/">by Isabeau Kisler</a></h3>
</footer>
<script src="js/knockout-3.3.0.js"></script>
<script src="js/app.js"></script>
</body>
</html>