-
Notifications
You must be signed in to change notification settings - Fork 70
/
index.html
62 lines (59 loc) · 2.44 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
<!DOCTYPE html>
<!-- build:[manifest] index.min.appcache -->
<html lang="en" ng-app="myApp" ng-strict-di>
<!-- /build -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>TicTacToe</title>
<meta name="description" content="TicTacToe game">
<link rel="shortcut icon" type="image/x-icon" href="data:image/x-icon;,"><!-- Suppress browser request for favicon.ico -->
<!-- To ensure CSS files are downloaded in parallel, always include external CSS before external JavaScript. -->
<!-- build:[href] css/everything.min.css -->
<link rel="stylesheet" type="text/css" href="css/game.css">
<!-- /build -->
<!-- build:js js/everything.min.js -->
<script src="lib/angular.js"></script>
<script src="lib/turnBasedServices.4.js"></script>
<script src="ts_output_readonly_do_NOT_change_manually/src/gameLogic.js"></script>
<script src="ts_output_readonly_do_NOT_change_manually/src/game.js"></script>
<script src="ts_output_readonly_do_NOT_change_manually/src/aiService.js"></script>
<!-- /build -->
</head>
<body ng-cloak>
<div id="gameArea">
<div ng-repeat="row in [0, 1, 2]"
style="position:absolute; top:{{row * 33}}%; left:0; width:100%; height:33%;">
<div ng-repeat="col in [0, 1, 2]"
style="position:absolute; top:0; left:{{col * 33}}%; width:33%; height:100%;"
ng-class="{r: col < 2, b: row < 2}"
ng-click="game.cellClicked(row, col)"
id="{{'e2e_test_div_' + row + 'x' + col}}">
<div style="width:100%; height: 100%"
ng-class="{slowlyAppear: game.shouldSlowlyAppear(row, col)}"
ng-style="game.getCellStyle(row, col)"
ng-if="game.shouldShowImage(row, col)">
<svg ng-if="game.isPieceO(row, col)"
id="{{'e2e_test_pieceO_' + row + 'x' + col}}"
width="100%" height="100%">
<circle cx="50%" cy="50%" r="27%"
stroke="blue" stroke-width="5%" fill="white" />
</svg>
<svg ng-if="game.isPieceX(row, col)"
id="{{'e2e_test_pieceX_' + row + 'x' + col}}"
width="100%" height="100%">
<line x1="25%" y1="25%"
x2="75%" y2="75%"
stroke="red"
stroke-width="5%"/>
<line x1="25%" y1="75%"
x2="75%" y2="25%"
stroke="red"
stroke-width="5%"/>
</svg>
</div>
</div>
</div>
</div>
</body>
</html>