-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathindex.html
118 lines (109 loc) · 4.07 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
<!doctype html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<script src="apps/js/libs/jquery-1.11.3.min.js"></script>
<script src="apps/js/libs/bootstrap.min.js"></script>
<link rel="stylesheet" href="apps/css/bootstrap.min.css">
<script src="apps/js/libs/angular.min.js"></script>
<script src="apps/js/app.js"></script>
<script src="apps/js/data.js"></script>
<script src="apps/js/controllers.js"></script>
<script src="apps/js/filters.js"></script>
<style type="text/css">
.margin_left_60 {
margin-left: 60px !important;
}
.margin_bottom_60 {
margin-bottom: 40px !important;
}
input.valide {
color: blue !important;
}
input.error {
color: red !important;
}
input.correct {
color: green !important;
cursor: not-allowed !important;
background: #EBE6DF !important;
}
#wrapper {
margin-top: 20px;
}
.row{
margin-bottom: 10px;
}
.site-header nav {
padding: 22px 30px;
}
.site-header nav>a {
color: #444;
margin-right: 1.8em;
font-weight: 600;
font-size: 15px;
}
.site-header nav .brand img {
height: 40px;
margin-top: -2px;
vertical-align: middle;
}
</style>
</head>
<body>
<header class="site-header">
<nav>
<a class="brand" href="/">
<img src="apps/images/logo.png" alt="Inc">
</a>
<a href="/about.html">About</a>
</nav>
</header>
<div id="wrapper" class="container" ng-app="Sudoku">
<div class="content" ng-controller="SudokuController">
<div class="row">
<div class="col-md-11 col-sm-11 col-xs-11">
<div ng-repeat="row in rows" class="row {[{ row.id | row_modulo_3 }]}">
<div ng-repeat="column in row.columns" class="col-md-1 col-sm-1 col-xs-1 {[{ column.id | column_modulo_3 }]}">
<input class="form-control {[{ column.class }]} {[{check(row.id, column.id)}]}"
type="text" name="cell-{[{row.id}]}{[{column.id}]}"
value="column.value" ng-model="column.value" type="number"
ng-maxlength="1" required
ng-click="possibilities(row.id, column.id)"
ng-change="{[{ getValue(column.value, row.id, column.id) }]}">
</div>
</div>
</div>
<div class="col-md-1 col-sm-1 col-xs-1">
<div class="row">
<button class="btn btn-default btn-block" ng-click="init()"><i
class="icon-repeat"></i> Init
</button>
<button class="btn btn-danger btn-block" ng-click="generate()"><i
class="icon-random"></i> New
</button>
<button class="btn btn-success btn-block" ng-click="solve()"><i
class="icon-ok-sign"></i> Solve
</button>
<button class="btn btn-primary btn-block" ng-click="clear()"><i
class="icon-off"></i> Clear
</button>
<a class="btn btn-info btn-block"
href="https://github.com/mouradmourafiq/angular_sudoku">fork me!</a>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-11 col-sm-11 col-xs-11 col-md-offset-1 col-sd-offset-1 col-xs-offset-1">
<button disabled="disabled" type="button" class="btn btn-default" ng-repeat="possibility in currentPossibilities">
{[{possibility}]}
</button>
</div>
</div>
<hr>
</div>
</div>
</body>
</html>