-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (58 loc) · 2.6 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
<!DOCTYPE html>
<html ng-app="plunker">
<head>
<meta charset="utf-8" />
<title>AngularJS Plunker</title>
<script>
document.write('<base href="' + document.location + '" />');
</script>
<link rel="stylesheet" href="style.css" />
<script data-require="[email protected]" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.11/angular.min.js" data-semver="1.5.11"></script>
<script src="app.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.0/angular-material.min.css">
</head>
<body ng-controller="MainCtrl">
<div>
<md-toolbar class="md-info">
<div class="md-toolbar-tools">
<h2 class="md-flex">Lets play with snake!</h2>
</div>
</md-toolbar>
<md-content flex layout-padding>
</md-content>
</div>
<md-content class="md-padding" layout-xs="column" layout="row">
<div flex-xs flex-gt-xs="45" layout="column">
<md-card md-theme="{{ showDarkTheme ? 'dark-blue' : 'default' }}" md-theme-watch>
<md-card-title>
<md-card-title-text>
<span class="md-subhead"><md-button class="{{ showDarkTheme ? 'md-raised' : 'md-raised md-primary' }}" ng-click="startGame()">Start</md-button> <p> Hello {{name}}! your score is {{score}}</p></span>
</md-card-title-text>
</md-card-title>
<div id="snakeCell">
<div class="row" ng-repeat="cell in board">
<div class="column" ng-style="{'background-color': paintCell($parent.$index, $index)}" ng-repeat="row in cell track by $index"
ng-class="paintCell($parent.$index, $index)"></div>
</div>
</div>
</md-card>
</div>
<div layout layout-padding layout-align="center end" style="height:200px">
<md-checkbox ng-model="showDarkTheme">Use 'Dark' Themed Cards</md-checkbox>
</div>
</md-content>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-animate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-aria.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-messages.min.js"></script>
<!-- Angular Material Library -->
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.0/angular-material.min.js"></script>
<!-- Your application bootstrap -->
<script type="text/javascript">
/**
* You must include the dependency on 'ngMaterial'
*/
angular.module('BlankApp', ['ngMaterial']);
</script>
</body>
</html>