-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgame.min.html
128 lines (108 loc) · 5.24 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
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
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html lang="en" ng-app="myApp" ng-strict-di manifest="game.appcache">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Halatafl</title>
<meta name="description" content="Halatafl game">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular.min.js"></script>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular-touch.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.12.1/ui-bootstrap-tpls.min.js"></script>
<script src="dist/everything.min.js"></script>
<script>window.angularTranslationLanguages = ['en', 'zh'];</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-cloak ng-controller="Ctrl">
<!--<div style="position:absolute; bottom:0.3px; left: 2px";>-->
<div style="position:absolute; bottom:0.3px; left: 2px; z-index:10;">
<span ng-click="isHelpModalShown = true"
class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>
</div>
<div class="overlayModal" ng-show="isHelpModalShown" aria-hidden="true">
<div class="modal-backdrop in"></div>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" ng-click="isHelpModalShown = false" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">
{{ 'RULES_OF_HALATAFL' | translate }}
</h4>
</div>
<div class="modal-body">
<carousel style="height: 150px">
<slide>
<table>
<tr>
<td>
{{ 'RULES_SLIDE1' | translate }}
</td>
<td>
<img src="imgs/HelpSlide1.png" style="height:150px;">
</td>
</tr>
</table>
</slide>
<slide>
<table>
<tr>
<td>
{{ 'RULES_SLIDE2' | translate }}
</td>
<td>
<img src="imgs/HelpSlide2.png" style="height:150px;">
</td>
</tr>
</table>
</slide>
<slide>
<table>
<tr>
<td>
{{ 'RULES_SLIDE3' | translate }}
</td>
</tr>
</table>
</slide>
</carousel>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" ng-click="isHelpModalShown = false">
{{ 'CLOSE' | translate }}
</button>
</div>
</div>
</div>
</div>
<div id="gameArea">
<img ng-src = "imgs/background.png" width = "100%" height = "100%">
<img src="imgs/sheep.png" style="position: absolute; top: 1%; left: 2%; width: 8.5%;height: 6%;"/>
<img src="imgs/fox.png" style="position: absolute; top: 8%; left: 2%; width: 7.5%;height: 5.2%;"/>
<div id = "first" class = "font1">
<p> {{countArrivedSheep()}}/9</p>
</div>
<div id = "second" class = "font2">
<p> {{countEatenSheep()}}/12</p>
</div>
<div ng-repeat="row in [0, 1, 2, 3, 4, 5, 6]"
style="position:absolute; top:{{row * 10.5 + 13}}%; left:0; width:100%; height:13%;">
<div ng-repeat="col in [0, 1, 2, 3, 4, 5, 6]"
style="position:absolute; top:0; left:{{col * 14 + 3.5}}%; width:12%; height:100%;"
class="square"
ng-click="cellClicked(row, col)"
id="{{'e2e_test_div_' + row + 'x' + col}}">
<img ng-show="true">
<!--ng-class="{enlarge0: true}"-->
<img ng-class="{enlarge1: true}"
ng-src = "{{getSquare(row, col).content === -1 ? 'imgs/empty.png' : (getSquare(row, col).content === 0 ? (getSquare(row,col).isSelected === false ? 'imgs/sheep.png' : 'imgs/sheep_selected.png') : (getSquare(row,col).isSelected === false ? 'imgs/fox.png' : 'imgs/fox_selected.png'))}}" width = "100%" height = "66.66%"
style="position:absolute;"
id = "{{'e2e_test_img_' + row + 'x' + col}}">
<!--id="MyPiece{{row}}x{{col}}">-->
<div>
</div>
</div>
</body>
</html>