-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
71 lines (47 loc) · 1.99 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
<!DOCTYPE html>
<html>
<head>
<title>Initiative Tracker</title>
<link rel="stylesheet" href="css/build/style.css" />
<!-- Angular -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<!-- Angular Animations -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.js"></script>
<link rel="icon" type="image/png" href="favicon.png" />
</head>
<body>
<p class="docs"><a href="docs.html" target="_blank">Documentation</a></p>
<h1>Initiative Tracker</h1>
<div ng-app="myApp" ng-controller="myCtrl">
<div class="panel"><button class="btn add" ng-click="add()">Add Character</button>
<button class="btn clear" ng-click="clearInit()">Clear Initiative</button>
<button class="btn clear" ng-click="clearNotes()">Clear Notes</button>
</div>
<ul class="character-items">
<li class="character-item" ng-repeat="char in charList | orderBy : '-initiative'">
<label class="initiative">
<span>Initiative</span>
<input type="number" ng-model="char.initiative">
</label>
<div class="meta-btns">
<button tabindex="-1" class="btn-remove" ng-click="remove(char)" title="remove">×</button>
<button tabindex="-1" class="btn-duplicate" ng-click="duplicate(char)" title="duplicate">+</button>
</div>
<div class="name-boxes" >
<input class="box-char" type="text" ng-model="char.charName" placeholder="Character">
<input class="box-player" type="text" ng-model="char.playerName" placeholder="Player">
</div>
<div class="hp">
<button tabindex="-1" class="less" ng-click="lessHp(char)">-</button>
<input type="number" ng-model="char.hp" placeholder="HP">
<button tabindex="-1" class="more" ng-click="moreHp(char)">+</button>
</div>
<div class="notes">
<input type="text" ng-model="char.notes" placeholder="Notes">
</div>
</li>
</ul>
</div>
<script src="js/app.js"></script>
</body>
</html>