-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex2.html
439 lines (380 loc) · 18.6 KB
/
index2.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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/shadows.css">
</head>
<body ng-app="shadowrun_app" class="ng-scope">
<div class="app_container" ng-controller="ShadowrunCtrl" ng-cloak>
<div class="navigation">
<a class="row" href ng:click="selected_tab=1" ng-class="{selected: selected_tab===1}">Priority</a>
<a class="row" href ng:click="selected_tab=2" ng-class="{selected: selected_tab===2}">Stats</a>
<a class="row" href ng:click="selected_tab=3" ng-class="{selected: selected_tab===3}">Skills</a>
<a class="row" href ng:click="selected_tab=4" ng-class="{selected: selected_tab===4}">Qualities</a>
<a class="row" href ng:click="selected_tab=5" ng-class="{selected: selected_tab===5}">Powers</a>
<a class="row" href ng:click="selected_tab=6" ng-class="{selected: selected_tab===6}">Spells</a>
<a class="row" href ng:click="selected_tab=7" ng-class="{selected: selected_tab===7}">Augments</a>
<a class="row" href ng:click="selected_tab=8" ng-class="{selected: selected_tab===8}">Gear</a>
<a class="row" href ng:click="selected_tab=9" ng-class="{selected: selected_tab===9}">Summary</a>
<a class="row about" href ng:click="selected_tab=0" ng-class="{selected: selected_tab===0}">About</a>
</div>
<!-- Priority -->
<div class="priorities" ng-show="selected_tab == 1">
<div class="col explain">
<h2> </h2>
<div class="priority_row row_A">
<span>A <div class="clear yellow" ng-click="clear_priority('A')">x</div></span>
</div>
<div class="priority_row row_B">
<span>B <div class="clear yellow" ng-click="clear_priority('B')">x</div></span>
</div>
<div class="priority_row row_C">
<span>C <div class="clear yellow" ng-click="clear_priority('C')">x</div></span>
</div>
<div class="priority_row row_D">
<span>D <div class="clear yellow" ng-click="clear_priority('D')">x</div></span>
</div>
<div class="priority_row row_E">
<span>E <div class="clear yellow" ng-click="clear_priority('E')">x</div></span>
</div>
</div>
<div class="col metatype">
<h2>Metatype <div class="clear yellow" ng-click="clear_priority('metatypes')">x</div></h2>
<div class="row row_{{priority.label}}"
ng-repeat="priority in data_priorities"
ng-click="choose_priority(priority.label, 'metatypes')"
ng-class="{'disabled': priorities[priority.label] !== '', 'selected': priorities['metatypes'] === priority.label}"
>
<div class="corners" ng-bind-html="priority.metatypes"></div>
</div>
</div>
<div class="col stats">
<h2>Attributes <div class="clear yellow" ng-click="clear_priority('stats')">x</div></h2>
<div class="row row_{{priority.label}}"
ng-repeat="priority in data_priorities"
ng-click="choose_priority(priority.label, 'stats')"
ng-class="{'disabled': priorities[priority.label] !== '', 'selected': priorities['stats'] === priority.label}"
>
<span>{{priority.stats}}</span>
<div class="corners"></div>
</div>
</div>
<div class="col magic">
<h2>Magic / Resonance <div class="clear yellow" ng-click="clear_priority('magic')">x</div></h2>
<div class="row row_{{priority.label}}"
ng-repeat="priority in data_priorities"
ng-click="choose_priority(priority.label, 'magic')"
ng-class="{'disabled': priorities[priority.label] !== '', 'selected': priorities['magic'] === priority.label}"
>
<div class="corners" ng-bind-html="priority.magic"></div>
</div>
</div>
<div class="col skills">
<h2>Skills <div class="clear yellow" ng-click="clear_priority('skills')">x</div></h2>
<div class="row row_{{priority.label}}"
ng-repeat="priority in data_priorities"
ng-click="choose_priority(priority.label, 'skills')"
ng-class="{'disabled': priorities[priority.label] !== '', 'selected': priorities['skills'] === priority.label}"
>
<span>{{priority.skills}}</span>
<div class="corners"></div>
</div>
</div>
<div class="col resources">
<h2>Resources <div class="clear yellow" ng-click="clear_priority('resources')">x</div></h2>
<div class="row row_{{priority.label}}"
ng-repeat="priority in data_priorities"
ng-click="choose_priority(priority.label, 'resources')"
ng-class="{'disabled': priorities[priority.label] !== '', 'selected': priorities['resources'] === priority.label}"
>
<span>{{priority.resources}}</span>
<div class="corners"></div>
</div>
</div>
<div class="row_container">
<!-- Metatype Container -->
<div class="container metatype">
<h2>Metatype ({{ priorities['metatypes'] || 'Not selected'}}) <div class="clear yellow" ng-click="clear_race_selection()">x</div></h2>
<div ng-repeat="race in races"
ng-race="{{race.race}}"
class="row"
ng-attributes="{{race.attributes}}"
ng-racials="{{race.racials}}"
ng-priorities="{{race.priorities}}">
{{race.race}}
<span ng-show="((priorities['metatypes'] !== '') && (race.priorities[priorities['metatypes']] !== '-'))">
({{race.priorities[priorities['metatypes']]}})
</span>
<div class="corners"></div>
</div>
</div>
<!-- Magic Container -->
<div class="container magic">
<h2>Magic / Resonance ({{priorities['magic'] || 'Not selected'}}) <div class="clear yellow" ng-click="clear_magic_selection()">x</div></h2>
<div class="full_row">
<div ng-repeat="mage in magic"
ng-magic="{{mage.label}}"
class="row"
ng-priorities="{{mage.priorities}}">
{{mage.label}}
<div class="corners"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Stats -->
<div class="basics_container" ng-show="selected_tab == 2">
<h2>Stats</h2>
<div class="row_container basics">
<div class="summary_container" ng-stat>
<h2>Racial Modifiers</h2>
<div class="summary_block">
<span ng-bind="my_racials || 'None'"></span>
</div>
<h2>Attributes ({{stat_points.current}} Points Remaining)</h2>
<div class="summary_block">
<div ng-repeat="attribute in my_attributes"
ng-hide="attribute.type === 'special'"
ng-attribute>
<div class="list-item">
<div class="item">
{{attribute.label}}
</div>
<div class="rank">
{{attribute.current}} / {{attribute.maximum}}
</div>
<div class="controls">
<span ng-click="increase_attribute(attribute)" class="add">+</span>
<span ng-click="decrease_attribute(attribute)" class="sub">-</span>
</div>
</div>
</div>
</div>
</div>
<div class="summary_container">
<h2>Specials ({{race_points.current}} Points Remaining)</h2>
<div class="summary_block">
<div ng-repeat="attribute in my_attributes"
ng-hide="attribute.type !== 'special'"
ng-special>
<div class="list-item">
<div class="item">
{{attribute.label}}
</div>
<div class="rank">
{{attribute.current}} / {{attribute.maximum}}
</div>
<div class="controls">
<span ng-click="increase_attribute(attribute)" class="add">+</span>
<span ng-click="decrease_attribute(attribute)" class="sub">-</span>
</div>
</div>
</div>
<div class="list-item">
<div class="item">Essence</div>
<div class="rank" ng-bind="get_stats('essence')"></div>
</div>
</div>
<h2>Initiative</h2>
<div class="summary_block">
<div class="list-item">
<div class="item">Physical / Rigging / Matrix</div>
<div class="rank" ng-bind="get_initiative('physical')"></div>
</div>
<div class="list-item">
<div class="item">Astral</div>
<div class="rank" ng-bind="get_initiative('astral')"></div>
</div>
<div class="list-item">
<div class="item">VR Hot</div>
<div class="rank" ng-bind="get_initiative('vrhot')"></div>
</div>
<div class="list-item">
<div class="item">VR Cold</div>
<div class="rank" ng-bind="get_initiative('vrcold')"></div>
</div>
</div>
</div>
<div class="summary_container">
<h2>Stats</h2>
<div class="summary_block">
<div class="list-item">
<div class="item">Physical Limit</div>
<div class="rank" ng-bind="get_stats('physical')"></div>
</div>
<div class="list-item">
<div class="item">Mental Limit</div>
<div class="rank" ng-bind="get_stats('mental')"></div>
</div>
<div class="list-item">
<div class="item">Social Limit</div>
<div class="rank" ng-bind="get_stats('social')"></div>
</div>
</div>
<div class="summary_block">
</div>
<div class="summary_block">
<div class="list-item">
<div class="item">Composure</div>
<div class="rank" ng-bind="get_stats('composure')"></div>
</div>
<div class="list-item">
<div class="item">Judge Intentions</div>
<div class="rank" ng-bind="get_stats('judge')"></div>
</div>
<div class="list-item">
<div class="item">Memory</div>
<div class="rank" ng-bind="get_stats('memory')"></div>
</div>
</div>
<div class="summary_block">
<div class="list-item">
<div class="item">Lift / Carry</div>
<div class="rank" ng-bind="get_stats('strength')"></div>
</div>
<div class="list-item">
<div class="item">Walk / Run</div>
<div class="rank" ng-bind="get_stats('speed')"></div>
</div>
<div class="list-item">
<div class="item">Physical / Stun Damage</div>
<div class="rank" ng-bind="get_stats('damage')"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Skills -->
<div class="basics_container" ng-show="selected_tab == 3">
<h2>Skills ({{skill_points.single}} Skill Points / {{skill_points.group}} Group Points Remaining)</h2>
<div class="row_container skills" skills-section>
<div class="summary_container">
<my-table rows='skills_col_1'></my-table>
</div>
<div class="summary_container">
<my-table rows='skills_col_2'></my-table>
</div>
</div>
<h2>Knowledge Skills ({{knowledge_points}} Skill Points Remaining)</h2>
<div class="row_container skills" knowledge-skills>
<div class="summary_container">
<div class="list-skill-group">
<h2>Interests (<a class="add_skill" data-attribute="Int">Add Skill</a>)</h2>
<div class="skills"></div>
</div>
<div class="list-skill-group">
<h2>Street (<a class="add_skill" data-attribute="Int">Add Skill</a>)</h2>
<div class="skills"></div>
</div>
<div class="list-skill-group">
<h2>Language (<a class="add_skill" data-attribute="Int">Add Skill</a>)</h2>
<div class="skills"></div>
</div>
</div>
<div class="summary_container">
<div class="list-skill-group">
<h2>Academic (<a class="add_skill" data-attribute="Log">Add Skill</a>)</h2>
<div class="skills"></div>
</div>
<div class="list-skill-group">
<h2>Professional (<a class="add_skill" data-attribute="Log">Add Skill</a>)</h2>
<div class="skills"></div>
</div>
</div>
</div>
</div>
<!-- Qualities -->
<div class="basics_container" ng-show="selected_tab == 4">
<h2>Qualities (<span ng-class="{error: quality_points_current < 0}">{{quality_points_current}} Karma Remaining</span>)</h2>
<div class="row_container qualities">
<div class="my_qualities">
<div class="summary_container my_quality_list">
<h2>My Qualities <span class="description">(Click to remove)</span></h2>
</div>
<div class="summary_container my_drawback_list">
<h2>My Drawbacks <span class="description">(Click to remove)</span></h2>
</div>
</div>
<div class="list_qualities">
<div class="summary_container qualities">
<h2>Qualities <span class="description">(Click to add)</span></h2>
<div class="qualities_container">
<div ng-repeat="quality in qualities" class="quality_item">
<div ng-show="!quality.levels" class="no_levels" ng-class="{available_quality: !quality.levels}" data-points="{{quality.cost}}" data-type="quality" quality-item>
<span class="quality_name">{{quality.name}}</span>
<div class="quality_hover hidden">
<div class="name">{{quality.name}}</div>
<div class="cost">{{quality.cost}} Karma</div>
<div class="description">{{quality.description}}</div>
</div>
</div>
<div ng-show="quality.levels" class="levels" ng-class="{available_quality: quality.levels}" data-type="quality" quality-tiered>
<span class="quality_name disabled">{{quality.name}}</span>
<div class="rating_labels">
- Rating:
<div class="level_rating"
ng-repeat="level in quality.levels"
data-ranking="{{level.name}}"
data-points="{{level.cost}}"
data-type="quality"
quality-ranking>{{level.name}}</div>
</div>
<div class="quality_hover hidden">
<div class="name">{{quality.name}}</div>
<div class="cost">{{quality.cost}} Karma per Rating</div>
<div class="description">{{quality.description}}</div>
</div>
</div>
</div>
</div>
</div>
<div class="summary_container drawbacks">
<h2>Drawbacks <span class="description">(Click to add)</span></h2>
<div class="qualities_container">
<div ng-repeat="drawback in drawbacks" class="quality_item">
<div ng-show="!drawback.levels" class="no_levels" ng-class="{available_quality: !drawback.levels}" data-points="{{drawback.cost}}" data-type="drawback" quality-item>
<span class="quality_name">{{drawback.name}}</span>
<div class="quality_hover hidden">
<div class="name">{{drawback.name}}</div>
<div class="cost">{{drawback.cost}} Karma</div>
<div class="description">{{drawback.description}}</div>
</div>
</div>
<div ng-show="drawback.levels" class="levels" ng-class="{available_quality: drawback.levels}" quality-tiered>
<span class="quality_name disabled">{{drawback.name}}</span>
<div class="rating_labels">
- Rating:
<div class="level_rating"
ng-repeat="level in drawback.levels"
data-ranking="{{level.name}}"
data-points="{{level.cost}}"
data-type="drawback"
quality-ranking>{{level.name}}</div>
</div>
<div class="quality_hover hidden">
<div class="name">{{drawback.name}}</div>
<div class="cost">{{drawback.cost}} Karma per Rating</div>
<div class="description">{{drawback.description}}</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="lib/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="lib/angular.min.js"></script>
<script type="text/javascript" src="lib/angular-resource.min.js"></script>
<script type="text/javascript" src="lib/angular-sanitize.min.js"></script>
<script type="text/javascript" src="bootstrap.js"></script>
<script type="text/javascript" src="shadowrun-controller.js"></script>
<script type="text/javascript" src="directives/race-directive.js"></script>
<script type="text/javascript" src="directives/magic-directive.js"></script>
<script type="text/javascript" src="directives/special-directive.js"></script>
<script type="text/javascript" src="directives/stat-directive.js"></script>
<script type="text/javascript" src="directives/skill-directive.js"></script>
<script type="text/javascript" src="directives/quality-directive.js"></script>
<script type="text/javascript" src="directives/knowledge-directive.js"></script>
</body>
</html>