-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·257 lines (236 loc) · 11.2 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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!doctype html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang=""> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>DND Dungeon helper</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="stylesheet" href="css/bootstrap.min.css">
<style>
body {
padding-top: 50px;
padding-bottom: 20px;
}
</style>
<link href='//fonts.googleapis.com/css?family=Neuton' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/main.css?v=2">
<script src="js/vendor/fastclick.js"></script>
<script>
window.addEventListener('load', function () {
FastClick.attach(document.body);
}, false);
</script>
<script src="js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.2.min.js"><\/script>')</script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0-rc.0/angular.min.js"></script>
<script type="text/javascript" src="js/vendor/ng-tags-input.min.js"></script>
<script type="text/javascript" src="js/vendor/ui-bootstrap-tpls-0.14.3.min.js"></script>
<script type="text/javascript" src="js/vendor/wavesurfer.min.js"></script>
<script src="js/main.js?v=2"></script>
</head>
<body data-ng-app="dndApp" data-ng-controller="tableController">
<script type="text/ng-template" id="music.html">
<h4>{{sound.title}} <br>
<small>{{sound.category}}</small>
</h4>
<div class="btn-group btn-group-sm">
<button class="btn btn-primary" data-ng-click="SoundService.start(sound.id)"><span
class="fa fa-fw fa-step-backward"></span></button>
<button class="btn btn-success" ng-show="SoundService.paused(sound.id)" data-ng-click="SoundService.toggle(sound.id)"><span
class="fa fa-fw fa-play" ></span></button>
<button class="btn btn-danger" ng-hide="SoundService.paused(sound.id)" data-ng-click="SoundService.toggle(sound.id)"><span
class="fa fa-fw fa-pause"></span></button>
<button class="btn btn-default" data-ng-click="SoundService.stop(sound.id)"><span
class="fa fa-fw fa-stop"></span></button>
<button class="btn btn-primary" ng-model="sound.loop" uib-btn-checkbox><span
class="fa fa-fw fa-repeat"></span></button>
<button class="btn btn-primary" ng-model="sound.pinned" uib-btn-checkbox><span
class="fa fa-fw fa-thumb-tack"></span></button>
</div>
<div class="pull-right soundpanel-volume">
<div class="fa fa-volume-up"></div>
<input type="range" min="0" max="1" step="any" ng-model="sound.volume"
ng-change="SoundService.volume(sound.id)" orient="horizontal">
<div class="fa fa-volume-off"></div>
</div>
<div class="clearfix"></div>
<ng-wavesurfer url="{{ sound.src }}" wave-color="#337ab7" progress-color="#23527c" height="30"
maxCanvasWidth="300" barWidth="2" audio-id="{{sound.id}}">
</ng-wavesurfer>
<small>{{sound.length}}</small>
</script>
<script type="text/ng-template" id="settings.html">
<div class="modal-header">
<h3 class="modal-title">Gegner</h3>
</div>
<div class="modal-body">
<table class="table table-striped table-responsive table-enemies-header">
<tr>
<th>Name</th>
<th class="text-right">Aktion</th>
</tr>
</table>
<div class="table-enemies">
<table class="table table-striped table-responsive ">
<tr data-ng-repeat="enemy in enemyTypes">
<td>
{{enemy.name}}
</td>
<td class="text-right">
<button class="btn btn-primary btn-sm" type="button" data-ng-click="toggle(enemy)"
data-ng-class="isActive(enemy) ? 'btn-danger' : ''">
{{ isActive(enemy) ? 'Entfernen' : 'Hinzufügen' }}
</button>
</td>
</tr>
</table>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" type="button" data-ng-click="ok()">Speichern</button>
</div>
</script>
<script type="text/ng-template" id="sound.html">
<div class="modal-header">
<h3 class="modal-title">Audio</h3>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-12 text-center" ng-show="SoundService.sounds.length == 0">
<br>
<br>
<br>
<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i>
<h3>Laden</h3>
<br>
</div>
<div class="col-md-12 category">
<div class="btn-group" role="group" aria-label="...">
<button class="btn btn-primary" ng-model="category.active" uib-btn-checkbox
data-ng-repeat="category in SoundService.getCategories()">
{{category.name}}
</button>
</div>
</div>
<music class="col-md-3 soundpanel"
data-ng-repeat="sound in SoundService.sounds | orderBy:['-pinned','category'] | filter: filterByCategory" ng-class="{'pinned': sound.pinned}"></music>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" type="button" data-ng-click="ok()">Schliessen</button>
</div>
</script>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
your browser</a> to improve your experience.</p>
<![endif]-->
<div class="col-md-12">
<h1 class="text-center">DND Helper</h1>
<table class="table">
<tr>
<th width="15%">Name</th>
<th width="20%">LP</th>
<th width="20%">AP</th>
<th width="15%">Tags</th>
<th width="30%">Aktion</th>
</tr>
<tr data-ng-repeat="enemy in enemies" data-ng-class="enemy.isDead() ? 'danger' : ''">
<td>
<input type="text" class="form-control" data-ng-model="enemy.name">
</td>
<td>
<div class="btn-group" role="group">
<button type="button" name="button" class="btn btn-default" data-ng-click="enemy.setLp(enemy.lp+1)">
+
</button>
<input type="number" class="form-control" data-ng-model="enemy.lp">
<button type="button" name="button" class="btn btn-default" data-ng-click="enemy.setLp(enemy.lp-1)">
-
</button>
</div>
</td>
<td>
<div class="btn-group" role="group">
<button type="button" name="button" class="btn btn-default" data-ng-click="enemy.setAp(enemy.ap+1)">
+
</button>
<input type="number" class="form-control" data-ng-model="enemy.ap">
<button type="button" name="button" class="btn btn-default" data-ng-click="enemy.setAp(enemy.ap-1)">
-
</button>
</div>
</td>
<td width="15%">
<tags-input data-ng-model="enemy.tags" min-length="1">
<auto-complete source="getTags($query)" min-length="1"></auto-complete>
</tags-input>
</td>
<td class="text-right button-actions" width="30%">
<button type="button" name="button" class="btn" data-ng-click="toggleTag(enemy,'vergiftet')"
data-ng-class="hasTag(enemy,'vergiftet') ? 'btn-success' : 'btn-default'">
<i class="fa fa-medkit"></i></button>
<button type="button" name="button" class="btn" data-ng-click="toggleTag(enemy,'feuer')"
data-ng-class="hasTag(enemy,'feuer') ? 'btn-success' : 'btn-default'">
<i class="fa fa-fire"></i></button>
<button type="button" name="button" class="btn" data-ng-click="toggleTag(enemy,'betäubt')"
data-ng-class="hasTag(enemy,'betäubt') ? 'btn-success' : 'btn-default'">
<i class="fa fa-bed"></i></button>
<button type="button" name="button" class="btn btn-danger" data-ng-click="instaKill(enemy)">
<i class="fa fa-heart"></i></button>
<button type="button" name="button" class="btn btn-danger" data-ng-click="remove(enemy)">
<i class="fa fa-times"></i></button>
</td>
</tr>
</table>
<div class="static-navigation">
<div class="col-md-12">
<div class="row">
<div class="col-md-7 enemy-buttons">
<span data-ng-repeat="enemyTyp in enemyTypes" class="enemyList">
<button type="button" name="button" class="btn btn-default btn-sm"
data-ng-click="addEnemy(enemyTyp.name)">
{{enemyTyp.name}}
</button>
<div class="enemyHelper">
LP: {{ enemyTyp.lp}}<br>
AP: {{ enemyTyp.ap}}<br>
Damage: {{ enemyTyp.damage}}
</div>
</span>
</div>
<div class="col-md-5 text-right">
Runde {{ round }}
<button type="button" name="button" class="btn btn-default" data-ng-click="openSettings()">
<i class="fa fa-cog"></i> Monster
</button>
<button type="button" name="button" class="btn btn-default" data-ng-click="reset()">
<i class="fa fa-trash-o"></i> Reset
</button>
<button type="button" name="button" class="btn btn-default" data-ng-click="openSound()">
<i class="fa fa-music"></i>
</button>
<button type="button" name="button" class="btn btn-danger" data-ng-click="enemies = []">
<i class="fa fa-bullseye"></i>
</button>
<button type="button" name="button" class="btn btn-primary" data-ng-click="nextRound()">Runde+
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>