-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html.slim
615 lines (595 loc) · 24.2 KB
/
index.html.slim
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
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
html lang='en'
head
meta charset="utf-8"
// for unforgivable ie
meta http-equiv="X-UA-Compatible" content="IE=edge"
// for mobile, responsive
meta name="viewport" content="width=device-width, initial-scale=1"
// For iOS TODO
//meta name="apple-mobile-web-app-capable" content="yes"
//link rel="apple-touch-icon-precomposed" href="img/app-icon/icon-60.png"
//link rel="apple-touch-icon-precomposed" sizes="76x76" href="img/app-icon/icon-76.png"
//link rel="apple-touch-icon-precomposed" sizes="120x120" href="img/app-icon/[email protected]"
//link rel="apple-touch-icon-precomposed" sizes="152x152" href="img/app-icon/[email protected]"
// css
// vendors
// bootstrap
/! Latest compiled and minified CSS
link crossorigin="anonymous" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" rel="stylesheet" /
/! Optional theme
/link crossorigin="anonymous" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" integrity="sha384-aUGj/X2zp5rLCbBxumKTCw2Z50WgIr1vs/PFN4praOTvYXWlVyh2UtNUU0KAUhAX" rel="stylesheet" /
// datatable
link rel='stylesheet' href='https://cdn.datatables.net/1.10.10/css/dataTables.bootstrap.min.css'
// css spinner
// link rel='stylesheet' href='http://css-spinners.com/css/spinner/timer.css'
// web fonts
link href='https://fonts.googleapis.com/css?family=Rosario:400,700' rel='stylesheet' type='text/css'
link href='https://fonts.googleapis.com/css?family=Noto+Sans:400,700' rel='stylesheet' type='text/css'
// custom
link rel="stylesheet" href="css/global.css"
// js
// vendors
script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"
script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"
script src="https://cdn.datatables.net/1.10.10/js/jquery.dataTables.min.js"
script src="https://cdn.datatables.net/1.10.10/js/dataTables.bootstrap.min.js"
//script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.4/handlebars.min.js"
script src="https://cdn.datatables.net/plug-ins/1.10.10/sorting/natural.js"
script src="//cdn.datatables.net/plug-ins/1.10.10/api/sum().js"
// custom
script src="js/index.js"
// meta data
title Guild Wars 2 Inventory
link rel="icon" href="http://etblue.github.io/gw2inventory/img/favicon.png" type="image/x-icon"
link rel="shortcut icon" href="http://etblue.github.io/gw2inventory/img/favicon.png" type="image/x-icon"
meta property="og:image" content="http://etblue.github.io/gw2inventory/img/screenshot-inventory.png"
body
header#about
.panel.panel-default.no-bottom
.container
.panel-body.text-center
p
| Guild Wars 2 Inventory is built for players pursuing ultimate cross character assets management. Designed by ETBlue.1963. Source code available on
a.inline-block.text target='_blank' href='https://github.com/ETBlue/gw2inventory' GitHub
| .
nav.navbar.navbar-default.navbar-static-top#tabs.large
.container
/! Brand and toggle get grouped for better mobile display
.navbar-header
.accountname.bold.navbar-brand GW2 Inventory
button.navbar-toggle.collapsed aria-expanded="false" data-target="#navbar-collapse-level1" data-toggle="collapse" type="button"
span.glyphicon.glyphicon-menu-hamburger
span.sr-only Toggle navigation
/! Collect the nav links, forms, and other content for toggling
#navbar-collapse-level1.collapse.navbar-collapse
ul.nav.navbar-nav
li.active
a data-toggle='tab' href="#account" Account
li
a data-toggle='tab' href='#characters' Characters
li
a data-toggle='tab' href='#inventory' Inventory
//li
// a data-toggle='tab' href='#wardrobe' Wardrobe
li
a data-toggle='tab' href='#wallet' Wallet
//li
// a data-toggle='tab' href='#crafting' Crafting
//li
// a data-toggle='tab' href='#achievements' Achievements
/li
/ a data-toggle='tab' href='#trading_post' Trading Post
ul.nav.navbar-nav.navbar-right
li
a href="#about" data-click='toggleAbout' About
section.tab-content
section.tab-pane#account.active
.container
#api_key.input-group
span.input-group-addon API KEY
input#current autofocus='true' type='text' class='form-control' placeholder='Your API key here...' aria-describedby=''
span.input-group-btn
button#apikey-menu.btn.btn-default.dropdown-toggle data-toggle='dropdown' aria-haspopup='true' aria-expanded='true' type='button'
| Recent
span.caret
ul#recent.dropdown-menu.dropdown-menu-right aria-labelledby='apikey-menu'
li
a Hmmm. No history yet.
.alert.alert-info.text-center
| Don't have an API key? Get one for your account on Anet's official website!
a.inline-block.text href='https://account.arena.net/applications' target='_blank'
span.glyphicon.glyphicon-arrow-right
| Arena.net API Key Management
.container
header.text-center
h1
span.accountname.inline-block.text
| in
span.worldname.inline-block.text
p.inline-block.text
span.label.label-default Accound ID
|
span.accountid
|
p.inline-block.text
span.label.label-default Created
|
span.accountcreated
p.inline-block.text
span.label.label-default Access
|
span.access
p.inline-block.text
span.label.label-default Fractal
|
span.fractal_level
p.inline-block.text
span.label.label-default Daily
|
span.daily_ap
p.inline-block.text
span.label.label-default Monthly
|
span.monthly_ap
p.inline-block.text
span.label.label-default WvW
|
span.wvw_rank
p.text.titles
hr
section.text-center
p#account-status.status Loading account...
p#characters-status.status Loading characters...
p#inventory-status.status Loading inventory...
//p#inventory-status.status Loading wardrobe...
p#wallet-status.status Loading wallet...
//p#achievements-status.status Loading achievements...
//#guilds.container.table-responsive
// table.datatable.table.table-striped
// thead
// tr
// th Emblem
// th Background
// th Name
// th Tag
// tbody
// tr
// td.text-center colspan='4'
// .timer-loader.loading
section.tab-pane#characters
nav.navbar.collapse-top.medium
.container.border-bottom
.navbar-header
.navbar-brand
| Characters
button.navbar-toggle.collapsed aria-expanded="false" data-target="#navbar-collapse-characters" data-toggle="collapse" type="button"
span.glyphicon.glyphicon-chevron-down
span.sr-only Toggle navigation
#navbar-collapse-characters.collapse.navbar-collapse
ul.nav.navbar-nav
li.active
a.pointer data-subset='info'
| Info
span.sr-only (current)
li
a.pointer data-subset='specializations'
| Specs
/ crafting, pve, pvp, wvw, masteries
li
a.pointer data-subset='armor'
| Armor
li
a.pointer data-subset='trinkets'
| Trinkets
li
a.pointer data-subset='weapons'
| Weapons
li
a.pointer data-subset='aquatic'
| Aquatic
li
a.pointer data-subset='bags'
| Bags
li
a.pointer data-subset='gathering'
| Gathering
//ul.nav.navbar-nav.navbar-right
// li
// a.btn.btn-default data-loading-text='Refreshing...' type='button' data-click='refreshcharacters' Refresh
nav.navbar.collapse-top.small
.container
.navbar-header
.navbar-brand Profession
button.navbar-toggle.collapsed aria-expanded="false" data-target="#profession-menu-collapse" data-toggle="collapse" type="button"
span.glyphicon.glyphicon-option-horizontal
span.sr-only Toggle navigation
ul.nav.navbar-nav#profession-menu-collapse.collapse.navbar-collapse
li.active
a.pointer data-option=''
| All
li
a.pointer data-option='Elementalist'
| Ele
li
a.pointer data-option='Mesmer'
| Mes
li
a.pointer data-option='Necromancer'
| Necro
li
a.pointer data-option='Warrior'
| Warrior
li
a.pointer data-option='Guardian'
| Guard
li
a.pointer data-option='Revenant'
| Rev
li
a.pointer data-option='Ranger'
| Ranger
li
a.pointer data-option='Thief'
| Thief
li
a.pointer data-option='Engineer'
| Engi
.container.table-responsive
table#characters-table.datatable.table.table-striped width='100%'
thead
tr
th Name
// Basic Info
th data-toggle='info' Level
th data-toggle='info' Profession
th data-toggle='info' Race
//th Gender
th data-toggle='info' Age
th data-toggle='info' Deaths
th data-toggle='info' Created
th data-toggle='info' Guild
th data-toggle='info' Crafting
// Specialization
th data-toggle='specializations' PvE
th data-toggle='specializations' PvP
th data-toggle='specializations' WvW
// Armor: id, upgrades, infusions, skin
th data-toggle='armor' Helm
th data-toggle='armor' Shoulders
th data-toggle='armor' Gloves
th data-toggle='armor' Coat
th data-toggle='armor' Leggings
th data-toggle='armor' Boots
th data-toggle='trinkets' Backpack
th data-toggle='aquatic' Helm
// Trinkets
th data-toggle='trinkets' Amulet
th data-toggle='trinkets' Accessory 1
th data-toggle='trinkets' Accessory 2
th data-toggle='trinkets' Ring 1
th data-toggle='trinkets' Ring 2
// Weapon: upgrades, infusions, skin
th data-toggle='weapons' A1
th data-toggle='weapons' A2
th data-toggle='weapons' B1
th data-toggle='weapons' B2
th data-toggle='aquatic' Weapon A
th data-toggle='aquatic' Weapon B
// Bags
th data-toggle='bags' Bags
//th data-toggle='bags' Services
//th data-toggle='bags' Special
th data-toggle='bags' Buff
//th data-toggle='bags' Style
th Misc
// Gathering
th data-toggle='gathering' Sickle
th data-toggle='gathering' Axe
th data-toggle='gathering' Pick
// Inventory
//th Inventory
tfoot
tr
tbody
tr
td.text-center colspan='36'
.timer-loader.loading
section.tab-pane#inventory
nav.navbar.collapse-top.medium
.container.border-bottom
.navbar-header
.navbar-brand
| Inventory
button.navbar-toggle.collapsed aria-expanded="false" data-target="#navbar-collapse-assets" data-toggle="collapse" type="button"
span.glyphicon.glyphicon-chevron-down
span.sr-only Toggle navigation
#navbar-collapse-assets.collapse.navbar-collapse
ul.nav.navbar-nav
li.active
a.pointer data-subset='all'
| All
//span.badge.light 0
span.sr-only (current)
li
a.pointer data-subset='equipment'
| Equipment
//span.badge.light 0
li
a.pointer data-subset='utilities'
| Utilities
//span.badge.light 0
li
a.pointer data-subset='materials'
| Materials
//span.badge.light 0
//li
// a.pointer data-subset='toys'
// | Consumables
// //span.badge.light 0
li
a.pointer data-subset='misc'
| Others
//span.badge.light 0
ul.nav.navbar-nav.navbar-right
li
a.pointer data-filter='duplicated'
| Duplicated
li.dropdown
a.pointer.dropdown-toggle data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'
span#rarity All Rarity
span.caret
ul.dropdown-menu
li.active
a.pointer data-rarity='' data-target='rarity'
| All Rarity
li
a.pointer data-rarity='Legendary' data-target='rarity'
| Legendary
li
a.pointer data-rarity='Ascended' data-target='rarity'
| Ascended
li
a.pointer data-rarity='Exotic' data-target='rarity'
| Exotic
li
a.pointer data-rarity='Rare' data-target='rarity'
| Rare
li
a.pointer data-rarity='Masterwork' data-target='rarity'
| Masterwork
li
a.pointer data-rarity='Fine' data-target='rarity'
| Fine
li
a.pointer data-rarity='Basic' data-target='rarity'
| Basic
li
a.pointer data-rarity='Junk' data-target='rarity'
| Junk
//li
// a.btn.btn-default data-loading-text='Refreshing...' type='button' data-click='refreshinventory' Refresh
section.subset#equipment
nav.navbar.collapse-top.small
.container
.navbar-header
.navbar-brand Equipment
button.navbar-toggle.collapsed aria-expanded="false" data-target="#equipment-menu-collapse" data-toggle="collapse" type="button"
span.glyphicon.glyphicon-option-horizontal
span.sr-only Toggle navigation
ul.nav.navbar-nav#equipment-menu-collapse.collapse.navbar-collapse
li
a.pointer data-option='Armor'
| Armor
//span.badge.light 0
li
a.pointer data-option='Weapon'
| Weapons
//span.badge.light 0
li
a.pointer data-option='Back'
| Backpack
//span.badge.light 0
li
a.pointer data-option='Trinket'
| Trinkets
//span.badge.light 0
li
a.pointer data-option='Upgrades'
| Upgrade Components
//span.badge.light 0
section.subset#utilities
nav.navbar.collapse-top.small
.container
.navbar-header
.navbar-brand Bags and Tools
button.navbar-toggle.collapsed aria-expanded="false" data-target="#utilities-menu-collapse" data-toggle="collapse" type="button"
span.glyphicon.glyphicon-option-horizontal
span.sr-only Toggle navigation
ul.nav.navbar-nav#utilities-menu-collapse.collapse.navbar-collapse
li
a.pointer data-option='Bag'
| Bags
//span.badge.light 0
li
a.pointer data-option='Gathering'
| Gathering Tools
//span.badge.light 0
li
a.pointer data-option='Tool'
| Salvage Tools
//span.badge.light 0
//section.subset#toys
// nav.navbar.collapse-top.small
// .container
// .navbar-header
// .navbar-brand Toys and Consumables
// button.navbar-toggle.collapsed aria-expanded="false" data-target="#toys-menu-collapse" data-toggle="collapse" type="button"
// span.glyphicon.glyphicon-option-horizontal
// span.sr-only Toggle navigation
// ul.nav.navbar-nav#toys-menu-collapse.collapse.navbar-collapse
// li
// a.pointer data-option='MiniPet'
// | Miniatures
// //span.badge.light 0
section.subset#materials
nav.navbar.collapse-top.small
.container
.navbar-header
.navbar-brand Crafting Materials
button.navbar-toggle.collapsed aria-expanded="false" data-target="#materials-menu-collapse" data-toggle="collapse" type="button"
span.glyphicon.glyphicon-option-horizontal
span.sr-only Toggle navigation
ul.nav.navbar-nav#materials-menu-collapse.collapse.navbar-collapse
//li
// a.pointer data-option=''
// | All
li
a.pointer data-option='Common Crafting Materials' data-target='category'
| Common
li
a.pointer data-option='Fine Crafting Materials' data-target='category'
| Fine
li
a.pointer data-option='Rare Crafting Materials' data-target='category'
| Rare
li
a.pointer data-option='Ascended Materials' data-target='category'
| Ascended
li
a.pointer data-option='Gemstones and Jewels' data-target='category'
| Stones
li
a.pointer data-option='Cooking Materials' data-target='category'
| Cooking
li
a.pointer data-option='Festive Materials' data-target='category'
| Festive
section.subset#misc
nav.navbar.collapse-top.small
.container
.navbar-header
.navbar-brand Others
button.navbar-toggle.collapsed aria-expanded="false" data-target="#misc-menu-collapse" data-toggle="collapse" type="button"
span.glyphicon.glyphicon-option-horizontal
span.sr-only Toggle navigation
ul.nav.navbar-nav#misc-menu-collapse.collapse.navbar-collapse
li
a.pointer data-option='Consumable'
| Consumables
//span.badge.light 0
li
a.pointer data-option='Gizmo'
| Gizmo
//span.badge.light 0
li
a.pointer data-option='Container'
| Containers
//span.badge.light 0
li
a.pointer data-option='Trophy'
| Trophies
//span.badge.light 0
li
a.pointer data-option='Trait'
| Trait
//span.badge.light 0
.container.table-responsive
table#inventory-table.datatable.table.table-striped width='100%'
thead
tr
th
th Name
th Amount
th Type
th Level
th Rarity
th Position
th Binding
th Duplicated
th Category
tfoot
tr
th
th Name
th Amount
th Type
th Level
th Rarity
th Position
th Binding
th Duplicated
th Category
tbody
tr
td.text-center colspan='10'
.timer-loader.loading
//section.tab-pane#crafting
// .container crafting: recipes - character, materials,
section.tab-pane#wallet
.container.table-responsive
table#wallet-table.datatable.table.table-striped width='100%'
thead
tr
th
th Name
th Amount
th Description
th Order
tfoot
tr
th
th Name
th Amount
th Description
th Order
tbody
tr
td.text-center colspan='5'
.timer-loader.loading
//section.tab-pane#wardrobe
// .container
// p Wardrobe: skins, dyes, minis
//section.tab-pane#achievements
// .container.table-responsive
// table#achievements-table.datatable.table.table-striped width='100%'
// thead
// tr
// th Icon
// th Name
// th Progress
// th Max
// th Done
// th Description
// th Requirement
// th Type
// th Flags
// tfoot
// tr
// th Icon
// th Name
// th Progress
// th Max
// th Done
// th Description
// th Requirement
// th Type
// th Flags
// tbody
// tr
// td.text-center colspan='9'
// .timer-loader.loading
/section.tab-pane#trading_post
/ .container trading post
javascript:
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-70399553-1', 'auto');
ga('send', 'pageview');
//- inventory().each do |inventory_item|
// div
// = inventory_item.inspect
// h2
// = "#{inventory_item["name"]} X #{inventory_item["count"]}"
// img src="#{inventory_item["icon"]}"