-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·93 lines (93 loc) · 4.79 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
<!DOCTYPE html>
<html>
<head>
<title>"Ten or Equal" number puzzle</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link href="css/reset.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script src="js/libs/jquery.js" type="text/javascript"></script>
<script src="js/libs/knockout.js" type="text/javascript"></script>
<script src="js/logic.js" type="text/javascript"></script>
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create', 'UA-101525584-1', 'auto');ga('send', 'pageview');</script>
</head>
<body>
<table id="ct">
<tbody>
<tr class="head">
<td>
<div><select id="selectLevel" data-bind="options: levels, optionsText: function(item) { return item.name }, value:selectedLevel, event:{ change: OnLevelChanged}"></select></div>
</td>
</tr>
<tr class="cont">
<td>
<div class="spacer">
<table id="gt">
<tbody data-bind="foreach: rows">
<tr data-bind="foreach: items, visible:show">
<td data-bind="text: value, click: onItemClick, css:{'selected':isSelected, 'closed':isClosed}"></td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
<tr class="btns">
<td>
<div id="buttomAddRow" class="bt" data-bind="click:AddNewSet">Add cells in order</div>
</td>
</tr>
<tr class="stats" data-bind="with:stats">
<td>
<table>
<tbody>
<tr>
<td>Addition pairs:</td>
<td data-bind="text:additionPairs"></td>
<td class="st2">Time:</td>
<td data-bind="text:timeLiteral"></td>
</tr>
<tr>
<td>Equality pairs:</td>
<td data-bind="text:equalityPairs"></td>
<td class="st2">Total adds:</td>
<td data-bind="text:nrOfAdds"></td>
</tr>
<tr>
<td>Total pairs:</td>
<td data-bind="text:totalPairs"></td>
<td class="st2">Total rows:</td>
<td data-bind="text:nrTotalRows"></td>
</tr>
<tr>
<td>Rows deleted:</td>
<td data-bind="text:rowsDeleted"></td>
<td class="st2">Level:</td>
<td data-bind="text:level"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="btnsOpt">
<td>
<div class="bt" data-bind="click:Restart">Restart</div>
</td>
</tr>
<tr class="">
<td>
<div class="help">
<p><span>-</span> Select two identical numbers or two with sum of 10</p>
<p><span>-</span> Two numbers should be on same axes - horizontal or vertical</p>
<p><span>-</span> Numbers can be apart but numbers between should be used</p>
<p><span>-</span> Numbers wrap - rows last number can be paired with next rows first number</p>
<p><span>-</span> If no pairs can be found you can append all unused numbers as new rows</p>
<p><span>-</span> Source code available on <a style="color:#808080;" target="_blank" href="https://github.com/artursgirons/number-puzzle">Github</a></p>
</div>
</td>
</tr>
</tbody>
</table>
</body>
</html>