-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.html
582 lines (576 loc) · 31 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>PoE Sniper</title>
<link rel="stylesheet" href="style.css">
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="http://hammerjs.github.io/dist/hammer.min.js"></script>
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="./materialize/css/materialize.min.css">
<!-- Fontin -->
<link rel="stylesheet" href="./font/stylesheet.css">
<!-- Compiled and minified JavaScript -->
<script src="./materialize/js/materialize.min.js"></script>
<!-- Spectrum.js -->
<script src='./spectrum/spectrum.js'></script>
<link rel='stylesheet' href='./spectrum/spectrum.css' />
</head>
<body class="grey darken-4">
<div class="row dark-form underpriced-form" style="padding-top: 20px; ">
<form>
<div class="input-field col s2">
<input type="number" id="underpriced-percentage" value="70">
<label>%</label>
</div>
<span class="col s1 input-field" style="font-size: 1.3em; top: 3px; left: -150px"> of </span>
<select id="underpriced-metric" class="input-field col s2">
<option value="min_mode_median">Min( median price, mode price )</option>
<option value="min">Min price</option>
<option value="mode">Mode price</option>
<option value="median">Median price</option>
</select>
<span class="col s1 input-field" style="font-size: 1.3em; top: 3px; left: -270px; width: 0.5%;"> in </span>
<select id="underpriced-league" class="input-field col s2">
</select>
<span class="col s2 input-field" style="font-size: 1.3em; top: 3px; left: -250px"> league ranging from </span>
<div class="input-field col s1" style="left: -300px">
<input type="number" id="underpriced-min-price" value="5">
<label>min</label>
</div>
<span class="col input-field" style="font-size: 1.3em; top: 3px; left: -300px"> to </span>
<div class="input-field col" style="left: -300px">
<input type="number" id="underpriced-max-price">
<label>max</label>
</div>
<span class="input-field" style="font-size: 1.3em; top: 3px; left: -350px"> price </span>
<!-- <a class="waves-effect waves-light btn col s1 z-depth-2 green" style="top:-10px!important" id="underpriced-apply"><i class="material-icons" style="top: 0">thumb_up</i><span style="top: -5px;position: relative;left: 10px;font-size: 1.4em">Apply</span></a> -->
</form>
</div>
<div class="row dark-form filter-form" style="padding-top: 20px; ">
<form class="col s12">
<div class="input-field col s2">
<!--Item-->
<!--<i class="material-icons prefix">search</i>-->
<div class="input-field item-name">
<input type="text" id="item" class="autocomplete">
<label>Item name</label>
</div>
<!--Item type-->
<div class="input-field item-type">
<input type="text" id="item-type" class="autocomplete">
<label>Item type</label>
</div>
<div class="input-field">
<input type="text" id="armor">
<label for="armor">Armor</label>
</div>
<div class="input-field">
<input type="text" id="es">
<label for="es">Shield</label>
</div>
<div class="input-field">
<input type="text" id="evasion">
<label for="evasion">Evasion</label>
</div>
</div>
<div class="input-field col s4" style="top: -10px;">
<div id="conditions" style="font-size: 1.2em;">
</div>
<div class="row">
<div class="input-field col s6">
<input type="text" id="affixes" placeholder="Affixes" class="autocomplete">
</div>
<div class="input-field col s3 form-affix-value">
<input type="number" id="affix-min">
<label for="affix-min">Aff. Min</label>
</div>
<div class="input-field col s3 form-affix-value">
<input type="number" id="affix-max">
<label for="affix-max">Aff. Max</label>
</div>
<div class="input-field col s6 form-affix-weight" style="display: none">
<input type="number" id="affix-weight">
<label for="affix-weight">Weight</label>
</div>
</div>
<div class="row affix-form">
<div class="input-field col s2">
<input type="number" id="mod-group-min" disabled>
<label for="mod-group-min">G. Min</label>
</div>
<div class="input-field col s2">
<input type="number" id="mod-group-max" disabled>
<label for="mod-group-max">G. Max</label>
</div>
<select id="condition-selector" class="input-field col s3">
<option value="and" selected>AND</option>
<option value="if">IF</option>
<option value="sum">SUM</option>
<option value="not">NOT</option>
<option value="count">COUNT</option>
<option value="weight">WEIGHT</option>
</select>
<a class="waves-effect waves-light btn col s2 z-depth-1 disabled" id="cancel-affix" style="font-size: 1.3em!important; top: -8px!important; left: 10px">Cancel</a>
<span class="col s1"></span>
<a class="waves-effect waves-light btn col s2 z-depth-1 disabled" id="add-affix" style="font-size: 1.3em!important; top: -8px!important;">Add</a>
</div>
<!-- <div id="affixes-list">
</div> -->
</div>
<div class="input-field col s3">
<!--<i class="material-icons prefix">link</i>-->
<select id="links">
<option value="any" selected>Links</option>
<option value="0">Fewer than 5 links</option>
<option value="5">5 links</option>
<option value="45">Fewer than 6 links</option>
<option value="6">6 links</option>
</select>
<div class="row" style="margin-bottom: 0">
<div class="row">
<div class="input-field col s4" style="
padding: 0!important;">
<input type="text" id="sockets-total">
<label for="sockets-total">Sockets</label>
</div>
<div class="input-field col s2">
<input type="text" id="sockets-red">
<label for="sockets-red">R</label>
</div>
<div class="input-field col s2">
<input type="text" id="sockets-green">
<label for="sockets-green">G</label>
</div>
<div class="input-field col s2">
<input type="text" id="sockets-blue">
<label for="sockets-blue">B</label>
</div>
<div class="input-field col s2">
<input type="text" id="sockets-white">
<label for="sockets-white">W</label>
</div>
</div>
</div>
<div class="input-field row">
<div class="input-field col s4" style="padding: 0!important;">
<input type="text" id="level">
<label for="level">Item Level</label>
</div>
<div class="input-field col s4">
<input type="text" id="quality">
<label for="quality">Quality</label>
</div>
<div class="input-field col s4">
<input type="text" id="experience">
<label for="experience">Gem XP (%)</label>
</div>
</div>
<div class="row">
<div class="input-field col s4" style="padding: 0!important;">
<input type="text" id="tier">
<label for="tier">Tier</label>
</div>
<div class="input-field col s4">
<input type="text" id="open-prefixes">
<label for="open-prefixes">Open Prfx.</label>
</div>
<div class="input-field col s4">
<input type="text" id="open-suffixes">
<label for="open-suffixes">Open Sufx.</label>
</div>
</div>
<div class="input-field row map-group">
<div class="input-field col s4" style="padding: 0!important;">
<input type="text" id="map-quantity">
<label for="map-quantity">Map Quantity</label>
</div>
<div class="input-field col s4">
<input type="text" id="map-rarity">
<label for="map-rarity">Map Rarity</label>
</div>
<div class="input-field col s4">
<input type="text" id="map-pack-size">
<label for="map-pack-size">Pack Size</label>
</div>
</div>
</div>
<div class="input-field col s1">
<!--<i class="material-icons prefix">home</i>-->
<select id="corrupted">
<option value="any" selected>Corrupted</option>
<option value="true">Yes</option>
<option value="false">No</option>
</select>
<select id="crafted">
<option value="any" selected>Crafted</option>
<option value="true">Yes</option>
<option value="false">No</option>
</select>
<select id="enchanted">
<option value="any" selected>Enchanted</option>
<option value="true">Yes</option>
<option value="false">No</option>
</select>
<select id="identified">
<option value="any" selected>Identified</option>
<option value="true">Yes</option>
<option value="false">No</option>
</select>
<select id="rarity">
<option value="any" selected>Rarity</option>
<option value="0">Normal</option>
<option value="1">Magic</option>
<option value="2">Rare</option>
<option value="3">Unique</option>
<option value="not-unique">Not unique</option>
<option value="9">Legacy</option>
<option value="shaper">Shaped</option>
<option value="elder">Elder</option>
</select>
</div>
<div class="input-field col s2" style="
padding: 0!important;">
<div class="row dps-group" style="margin-bottom: 0">
<div class="input-field col s4" style="
padding: 0!important;">
<input type="text" id="dps">
<label for="dps">DPS</label>
</div>
<div class="input-field col s4" style="
padding: 0!important;">
<input type="text" id="pdps">
<label for="pdps">pDPS</label>
</div>
<div class="input-field col s4" style="
padding: 0!important;">
<input type="text" id="edps">
<label for="edps">eDPS</label>
</div>
</div>
<!--<i class="material-icons prefix">home</i>-->
<select id="league">
</select>
<div class="input-field" style="
padding: 0!important;">
<div class="row" style="margin-bottom: 0">
<div class="input-field col s5" style="
padding: 0!important;">
<input type="text" id="price">
<label for="price">Price</label>
</div>
<div class="input-field col s7" style="
padding: 0!important; top: -10px">
<p class="col s6" style="padding: 0">
<input type="checkbox" class="filled-in cb" id="convert-currency" checked/>
<label for="convert-currency">Conversion</label>
</p>
</div>
</div>
</div>
<select id="currency">
<option value="chaos" selected>Chaos</option>
<option value="exa">Exalted</option>
<option value="alch">Alchemy</option>
<option value="alt">Alteration</option>
<option value="fuse">Fusing</option>
<option value="divine">Divine</option>
<option value="chance">Chance</option>
<option value="jew">Jeweller</option>
<option value="chisel">Chisel</option>
<option value="vaal">Vaal</option>
<option value="regret">Regret</option>
<option value="regal">Regal</option>
<option value="gcp">GCP</option>
<option value="chrom">Chromatic</option>
<option value="scour">Scouring</option>
<option value="bless">Blessed</option>
</select>
<div style="padding: 0; position: relative; top: -15px; left: -10px;">
<p class="col s6" style="padding: 0">
<input type="checkbox" class="filled-in cb" id="price-bo" checked/>
<label for="price-bo">BO only</label>
</p>
<p class="col s6" style="padding: 0">
<input type="checkbox" class="filled-in cb" id="clipboard"/>
<label for="clipboard">Clipboard</label>
</p>
</div>
</div>
</form>
</div>
<div class="progress" style="display: none">
<div class="indeterminate"></div>
</div>
<div class="row filter-interaction">
<span class="col s3" style="position: relative; top: 10px"><i class="material-icons prefix">info_outline</i><span id="current-change-id">...</span></span>
<!--<div class="col s1"></div>-->
<!-- <div class="col s1"></div> -->
<div class="switch col s2 input-field">
<label style="font-size: 1em!important; position: relative; top: 20px!important;">
Filters
<input type="checkbox" id="toggle-mispriced">
<span class="lever"></span>
Underpriced
</label>
</div>
<a class="waves-effect waves-light btn col s1 z-depth-2" id="import-poe-trade" href="#import-poe-trade-modal"><i class="material-icons">cloud_download</i><span>Import filter</span></a>
<p class="col s1 grey darken-4">
<input type="checkbox" class="filled-in cb" id="global-clipboard" checked/>
<label for="global-clipboard" style="font-size: 1em!important;">Clipboard</label>
</p>
<!--<span><input type="checkbox" class="filled-in col s1" id="global-clipboard" checked/>Global clipboard</span>-->
<a class="waves-effect waves-light btn col s1 z-depth-2" id="cancel-filter"><i class="material-icons">delete</i><span>Clear filter</span></a>
<a class="waves-effect waves-light btn col s1 z-depth-2" id="add-filter" style="left: 10px"><i class="material-icons">playlist_add</i><span>Add filter</span></a>
<a class="waves-effect waves-light btn col s1 z-depth-2" id="settings" href="#settings-modal" style="left: 20px"><i class="material-icons">settings</i><span>Settings</span></a>
<a class="waves-effect waves-light btn col s1 right z-depth-2" id="snipe"><i class="material-icons">play_arrow</i><span>Snipe</span></a>
</div>
<div class="row filter-list">
<form class="col s12">
<div class="col s12">
<span class="title col s1">
<b>Filters (<span id="filters-amount">0</span>)</b>
<i id="fold-filters" class="material-icons">keyboard_arrow_down</i>
</span>
<input id="filter-filter" class="col s3" type="text" placeholder="Filter filters">
<span id="filter-processing-total-time" class="col s3 title">Total processing time: <span id="total-processing-time">0ms</span></span>
<a href="#!" id="add-group" class="waves-effect waves-light btn z-depth-2" style="font-size: 1.2em!important; position: relative; top: -10px!important; "><i class="material-icons" style="position: relative; top: 0">tab</i><span style="position: relative; top: -5px; left: 5px">Add group</span></a>
</div>
<div class="col s12" id="filters">
<ul class="collection filter-collection" style="border: none;" ondrop="drop(event)" ondragover="dragOver(event)" ondragend="dragEnd(event)" ondragleave="dragLeave(event)">
</ul>
</div>
</form>
</div>
<div class="row filter-results">
<form class="col s12">
<div class="col s12">
<span class="title col s1"><b>Results (<span id="results-amount">0</span>)</b></span>
<input id="item-filter" class="col s3" type="text" placeholder="Filter items">
<span class="col s8">
<i class="material-icons right" id="clear-entries" style="cursor: pointer; position: relative; top: 0px; left: -8px">delete</i>
</span>
</div>
<div class="col s12" id="results">
<ul class="collection results" style="border: none; padding-top: 7px">
</ul>
</div>
</form>
</div>
</div>
<div id="poe-trade-output"></div>
<div id="poe-trade-search-output"></div>
<div id="poe-trade-link"></div>
<div id="poe-trade-forms"></div>
<div id="status-bar">
<span id="status-message"></span>
<span id="stats"></span>
</div>
<div class="new-update">
<div class="update-title"></div>
<div class="update-date"></div>
<div class="update-body"></div>
<br>
<div class="row">
<a class="waves-effect waves-dark btn white black-text col s3 left z-depth-2" id="dismiss-update" style="font-size: 1em!important;">Dismiss</a>
<a class="waves-effect waves-dark btn white black-text col s4 right z-depth-2" id="download-update" style="font-size: 1em!important;">Download</a>
</div>
</div>
<div class="cover">
</div>
<div id="import-poe-trade-modal" class="modal dark-form">
<div class="modal-content">
<h5>Import from poe.trade</h5>
<p>Enter poe.trade search URL</p>
<input type="text" id="poe-trade-url" placeholder="poe.trade search url" class="col s10">
</div>
<div class="modal-footer dark-form">
<a href="#!" id="import" class="modal-action waves-effect waves-light btn col s1 z-depth-2 modal-close">Import</a>
</div>
</div>
<div id="blacklist-modal" class="modal bottom-sheet dark-form">
<div class="modal-content">
<h5>Blacklist</h5>
<p>You're about to blacklist the account <span class="blacklist-account">test</span>. You can enter the reason why to keep track later on.</p>
<div class="row input-field">
<input type="text" id="blacklist-reason" class="col s5" style="font-size: 1em!important;" placeholder="I am blacklisting that player because...">
</div>
</div>
<div class="modal-footer dark-form">
<a href="#!" id="blacklist" class="modal-action waves-effect waves-light btn col s1 z-depth-2 modal-close">Blacklist</a>
</div>
</div>
<div id="settings-modal" class="modal dark-form">
<div class="modal-content">
<h5>Configuration</h5><br>
<div class="row">
<span class="section">Notifications</span>
</div>
<!-- Audio notifications -->
<div class="row">
<div class="switch col s7">
<label>
<input type="checkbox" id="use-audio-notifications">
<span class="lever"></span>
Use audio notifications
</label>
</div>
</div>
<div class="row">
<div class="input-field col s3">
<input type="number" id="sound-volume" max="100" min="0" value="0">
<label for="sound-volume">Sound volume</label>
</div>
<div class="input-field col s3">
<select id="sound-effect">
<option value="sound1">Sound effect 1</option>
<option value="sound2">Sound effect 2</option>
</select>
</div>
<div class="input-field col s3">
<a href="#!" id="play-sound" class="waves-effect waves-light btn z-depth-2" style="font-size: 1.2em!important; position: relative; top: -10px!important; "><i class="material-icons" style="position: relative; top: 0">play_arrow</i><span style="position: relative; top: -5px; left: 5px">Play</span></a>
</div>
</div>
<!-- Visual notifications -->
<div class="row">
<div class="switch col s7">
<label>
<input type="checkbox" id="use-visual-notifications">
<span class="lever"></span>
Use visual notifications
</label>
</div>
</div>
<div class="row">
<div class="input-field col s3">
<input type="number" id="notification-duration" max="10" min="1" value="0">
<label for="notification-duration">Notification duration</label>
</div>
<div class="switch col s7">
<label>
<input type="checkbox" id="notify-clipboard-copy">
<span class="lever"></span>
Notify clipboard copy
</label>
</div>
</div>
<hr><br>
<div class="row">
<span class="section">Message</span>
</div>
<div class="row">
<p style="font-size: 1.3em">
Whisper and barter message use the same format as poe.trade in their default configuration. You can change them if you wish. The tags are : <span class="tag"><account></span>, <span class="tag"><item></span>, <span class="tag"><price></span>, <span class="tag"><league></span>, <span class="tag"><stashTab></span>, <span class="tag"><left></span> and <span class="tag"><top></span>.
</p>
</div>
<div class="row">
<div class="col s6">
<label for="whisper-message">Whisper message</label>
<textarea id="whisper-message" class="materialize-textarea">
</textarea>
</div>
<div class="col s6">
<label for="whisper-preview">Whisper preview</label>
<textarea id="whisper-preview" class="materialize-textarea" disabled>
</textarea>
</div>
</div>
<div class="row">
<div class="col s6">
<label for="barter-message">Barter message</label>
<textarea id="barter-message" class="materialize-textarea">
</textarea>
</div>
<div class="col s6">
<label for="barter-preview">Barter preview</label>
<textarea id="barter-preview" class="materialize-textarea" disabled>
</textarea>
</div>
</div>
<hr><br>
<div class="row">
<span class="section">Performances</span>
</div>
<div class="input-field col s3">
<input type="number" id="entry-amount-limit" max="1000" min="100" value="0">
<label for="entry-amount-limit">Max. amount of displayed results (100 - 1000)</label>
</div>
<hr><br>
<div class="row">
<span class="section">POE Trade stats</span>
</div>
<div class="row">
<div class="switch">
<label>
<input type="checkbox" id="use-poeTradeStats">
<span class="lever"></span>
Show poe.trade stats in the filters
</label>
</div>
</div>
<hr><br>
<div class="row">
<span class="section">Search engines</span>
</div>
<div class="row">
<div class="switch">
<label>
<input type="checkbox" id="show-poe-trade-search-link">
<span class="lever"></span>
Show poe.trade search link
</label>
</div>
</div>
<div class="row">
<div class="switch">
<label>
<input type="checkbox" id="show-poe-ninja-search-link">
<span class="lever"></span>
Show poe.ninja search link
</label>
</div>
</div>
<div class="row">
<div class="switch">
<label>
<input type="checkbox" id="show-poe-rates-search-link">
<span class="lever"></span>
Show poe-rates.com search link
</label>
</div>
</div>
<div class="row">
<div class="switch">
<label>
<input type="checkbox" id="show-poe-wiki-search-link">
<span class="lever"></span>
Show wiki search link
</label>
</div>
</div>
<hr><br>
<div class="row">
<span class="section">Debug information</span>
</div>
<div class="row">
<div class="switch">
<label>
<input type="checkbox" id="show-filter-processing-time">
<span class="lever"></span>
Show filter processing time
</label>
</div>
</div>
</div>
<div class="modal-footer dark-form">
<a href="#!" id="apply-settings" class="waves-effect waves-light btn col s1 z-depth-2 modal-action modal-close" style="font-size: 1.2em!important;">Apply</a>
</div>
</div>
</body>
<script>
// You can also require other files to run in this process
require( './renderer.js' )
</script>
<iframe id="google-analytics" src="http://poe-rates.com/sniper-1.5.7.html" width="0" height="0" style="visibility:hidden;display:none"/>
</html>