-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
101 lines (99 loc) · 3.39 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
<!DOCTYPE html>
<html>
<head>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300|Roboto+Condensed:300|Unica+One" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet" type="text/css">
<script src="js/jquery-3.2.1.js"></script>
<script src="js/scripts.js"></script>
<title>Magic Square</title>
</head>
<body>
<div class="container-fluid">
<header class="jumbotron">
<img src="img/magic-square-2.jpg" alt="Making a magic square" />
<h1>Magic<sup>2</2></h1>
<h2>It's all in the numbers</h2>
</header>
<div class="container main">
<img src="img/numbers-transparent.png" alt="floating numbers" />
<div id="rules">
<h3>Rules</h3>
<hr></hr>
<ul>
<li>Enter the numbers 1–9 inclusive into the squares so that all rows, columns, and diagonals add up to the same number.</li>
<li>The first position is given to you.</li>
<li>Digits cannot be repeated.</li>
<li>Press <code>Enter</code> after each entry.</li>
<li>Incorrect entries are indicated with a <span id="red">red</span> background.</li>
<li>Correct entries are displayed with a <span id="green">green</span> background.</li>
</ul>
</div> <!-- rules closing -->
<table id="square">
<thead>
</thead>
<tbody>
<tr id="row1">
<td id="cell1">
<form id="form1">
<input type="text" name="box" id="text1">
</form>
</td>
<td id="cell2">
<form id="form2">
<input type="text" name="box" id="text2" placeholder="1">
</form>
</td>
<td id="cell3">
<form id="form3">
<input type="text" name="box" id="text3">
</form>
</td>
</tr>
<tr id="row2">
<td id="cell4">
<form id="form4">
<input type="text" name="box" id="text4">
</form>
</td>
<td id="cell5">
<form id="form5">
<input type="text" name="box" id="text5">
</form>
</td>
<td id="cell6">
<form id="form6">
<input type="text" name="box" id="text6">
</form>
</td>
</tr>
<tr id="row3">
<td id="cell7">
<form id="form7">
<input type="text" name="box" id="text7">
</form>
</td>
<td id="cell8">
<form id="form8">
<input type="text" name="box" id="text8">
</form>
</td>
<td id="cell9">
<form id="form9">
<input type="text" name="box" id="text9">
</form>
</td>
</tr>
</tbody>
</table>
<div id="well-container">
<div class="well">
<h2 id="win-message">
</h2>
</div>
</div>
</div>
<footer>© 2017 Jake Ruleaux, Michelle Poterek, Nicole Freed</footer>
</div>
</body>
</html>