forked from bbccyy/chineseChecker
-
Notifications
You must be signed in to change notification settings - Fork 3
/
game.min.html
49 lines (40 loc) · 1.97 KB
/
game.min.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
<!DOCTYPE html>
<html lang="en" ng-app="myApp" ng-strict-di manifest="game.appcache">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Chinese checkers</title>
<meta name="description" content="Chinese checkers game">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular-touch.min.js"></script>
<script src="dist/everything.min.js"></script>
<script>
window.angularTranslationLanguages = ['en'];
</script>
<script src="http://yoav-zibin.github.io/emulator/dist/turnBasedServices.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://yoav-zibin.github.io/emulator/main.css">
<link rel="stylesheet" type="text/css" href="game.css">
</head>
<body ng-controller="Ctrl" data-ng-init="init()">
<div id="gameArea">
<div id="board">
<div ng-repeat="row in board track by $index">
<div ng-repeat="cell in row track by $index"
ng-style="{
position:'absolute',
top: setPagePositionTop($parent.$index, $index),
left: setPagePosition($index, $parent.$index) }"
ng-class="{
checkerCell: cell != ' ',
valid: isSelectable($parent.$index, $index) }"
data-row="{{$parent.$index}}" data-col="{{$index}}">
<div ng-class="getCheckerClass(board.indexOf(row), $index)"
id="{{'checker_' + $parent.$index + 'x' + $index}}"
data-row="{{$parent.$index}}" data-col="{{$index}}" >
</div>
</div>
</div>
</div>
</div>
</body>
</html>