-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
293 lines (293 loc) · 21.9 KB
/
Copy pathindex.html
File metadata and controls
293 lines (293 loc) · 21.9 KB
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
<!doctype html>
<html>
<head>
<title>SWRPG Destiny Point Tracker</title>
<meta name="description" content="A Star Wars RPG destiny point tracker for FFG's SWRPG system. Keep track of destiny points for your star wars FFG games.">
<meta name="author" content="Ryan Miller">
<meta name="keywords" content="SWRPG, FFG, AOTOR , Star Wars, destiny points, star wars, tool, destiny, starwars, edge of the empire, starwarsrpg, fantasy flight games, star wars eote, destiny point, swrpg destiny point tracker">
<link rel="shortcut icon" type="image/jpg" href="images/light.png"/>
<meta charset="UTF-8">
<meta property="og:title" content="SWRPG Destiny Point Tracker">
<meta property="og:type" content="website">
<meta property="og:description" content="A tool for tracking destiny points in your SWRPG game.">
<meta property="og:image" content="https://aerilym.github.io/images/swrpgogimage.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="styles/app.css">
<link rel="stylesheet" href="styles/tooltips.css">
<link rel="stylesheet" href="styles/modals.css">
<link rel="stylesheet" href="styles/dropdown.css">
<meta name="google-site-verification" content="JXiCPcHwWWSvY49Q13vgBNr9dVnXF40Bsi2DltOY-ek" />
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DBKTVX6696"></script>
<script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-DBKTVX6696');</script>
<script src="https://kit.fontawesome.com/8874fa11a1.js" crossorigin="anonymous"></script>
</head>
<body>
<div id="darksrc" class="" style="display: none;">images/dark0.png</div>
<div id="lightsrc" class="" style="display: none;">images/light.png</div>
<script src="js/scripts.js"></script>
<script src="js/app.js"></script>
<script src="js/mousetrap.min.js"></script>
<script src="js/tooltips.js"></script>
<script src="js/tutorial.js"></script>
<noscript style="font-size: 60px; font-weight:bold">
Sorry, this application requires JavaScript to run. Here is <a href="https://www.enable-javascript.com/"> how to enable JavaScript</a>. Without JavaScript it's impossible to do the things that need to be done to make this tool work. JavaScript is the only way to make websites and webtools dynamic and fully functional.
</noscript>
<script>checkdarkpref()</script>
<div class="maincont" id="maincontent">
<div id="destinytracker" class="destinytracker">
<h1 class="counterheading">USED</h1>
<div class="counterimg lightbg" style="background-image: url(images/light.png);">
<a id="lightcounter" class="countertxt">0</a>
</div>
<div id="useddarkdiv" class="counterimg darkbg" style="background-image: url(images/dark0.png);">
<a id="darkcounter" class="countertxt">0</a>
</div>
</div>
<div id="destinynumber" class="destinytracker">
<h1 class="counterheading">NUM</h1>
<div class="counterimg lightbg" style="background-image: url(images/light.png);">
<a id="lightnumber" class="countertxt">0</a>
</div>
<div id="numdarkdiv" class="counterimg darkbg" style="background-image: url(images/dark0.png);">
<a id="darknumber" class="countertxt">0</a>
</div>
</div>
<div id="destinytray" class="destinytray">
<h1 id="destinypointsheading" class="counterheading" style="display: none;">DESTINY POINTS</h1>
</div>
</div>
<div id="marginsplit" class="marginsplit"></div>
<div id="settingsbuttons" style="display: inline-flex; padding: 4px;">
<div id="hidebutton">
<a id="eyebutton" class="eyebtn" href="#" onclick="togglehide('settings','block')"><i class="fas fa-eye-slash" title="Hide Controls"></i></a>
</div>
<div class="dropdown">
<a id="settingsbutton" onclick="togglehide('featuresdropdown','block')" class="dropbtn"><i class="fas fa-sliders-h" title="Settings"></i></a>
<div id="featuresdropdown" class="dropdown-content" style="display: none;">
<div class="buttonblock">
<h2>Toggle Features</h2>
<button id="numbertoggle" class="button buttonu buttonf" onclick="togglehide('destinynumber','inline-block')">NUM Counter</button>
<br>
<button id="usagetrackertoggle" class="button buttonu buttonf" onclick="togglehide('destinytracker','inline-block')">USED Counter</button>
<br>
<button id="darktoggle" class="button buttonu buttonf" onclick="darkmodetoggle()">Dark Mode</button>
<br>
<button id="alignrightbutton" class="button buttonu buttonf" onclick="rightalign()">Align Right</button>
<br>
<button id="tutorialbutton" class="button buttonu buttonf" onclick="togglehide('featuresdropdown','block');tutorial();tutorialendbutton();">Begin Tutorial</button>
<br>
<button id="toggletooltipbutotn" class="button buttonu buttonf" onclick="infotooltips();">Enable Tooltips</button>
</div>
<div class="buttonblock">
<h2>Move Elements</h2>
<button id="moveusedrightbutton" class="button buttonu buttonmove" onclick="flippos('destinytracker')">Move USED Right</button>
<br>
<button id="movenumrightbutton" class="button buttonu buttonmove" onclick="flippos('destinynumber')">Move NUM Right</button>
<br>
<button id="movetokensrightbutton" class="button buttonu buttonmove" onclick="flippos('destinytray')">Move Tokens Right</button>
<div style="display: none;">
<h3>Eye & Setting Button</h3>
<button id="eyetopleft" class="button buttonu eyemover" onclick="eyemover('tl')">TOP LEFT</button><button id="eyetopright" class="button buttonu eyemover" onclick="eyemover('tr')">TOP RIGHT</button>
<br>
<button id="eyebottomleft" class="button buttonu eyemover" onclick="eyemover('bl')">BOTTOM LEFT</button><button class="button buttonu eyemover" onclick="eyemover('br')">BOTTOM RIGHT</button>
<br>
<button id="hideeyebutton" class="button buttonu eyemover" style=" width: 140px" onclick="deleteeye()">Hide Eye & Settings buttons</button>
<br>
<button id="eyeresetbutton" class="button buttonu eyemover" style=" width: 140px" onclick="eyemover('')">RESET Buttons</button>
</div>
</div>
<div class="buttonblock">
<h2>Used Counter Controls</h2>
<button id="counteraddlight" class="button buttong usedcountercontrol" onclick="update_counter('light','+')">+ Light</button>
<button id="counteradddark" class="button buttong usedcountercontrol" onclick="update_counter('dark','+')">+ Dark</button>
<br>
<button id="counterremovelight" class="button buttonr usedcountercontrol" onclick="update_counter('light','-')">- Light</button>
<button id="counterremovedark" class="button buttonr usedcountercontrol" onclick="update_counter('dark','-')">- Dark</button>
<br>
<button id="counterreset" class="button buttonu" style="width: 97%;" onclick="update_counter('reset')">Reset USED Counter</button>
</div>
</div>
</div>
</div>
<div id="settings">
<hr style="margin:0px">
<div style="display: inline-flex;">
<div class="buttoncontainer">
<div class="dropdown" style="width: 100%; padding: 10px;">
<button id="changetokensbutton" onclick="togglehide('tokenlist','inline-flex')" class="button buttonu">Change Token Images</button>
<div id="tokenlist" class="dropdown-content" style="display: none;">
<table class="tokenchangetable">
<tr>
<th></th>
<th>Default</th>
<th>Alternative 1</th>
<th><a class="imagechangeheadingbuttons" href="https://linktr.ee/AuditorsPodcast" target="_blank"><img width="100%" src="images/aotortextlogo.png"></th>
<th><a class="imagechangeheadingbuttons" href="https://linktr.ee/AuditorsPodcast" target="_blank"><img width="100%" src="images/aotortextlogo.png"></a></th>
<th><a class="imagechangeheadingbuttons" href="https://rpgsessions.com/" target="_blank"><img width="100%" src="images/rpgsessions.png"></a></th>
<th><a class="imagechangeheadingbuttons" href="https://rpgsessions.com/" target="_blank"><img width="100%" src="images/rpgsessions.png"></th>
<th>Custom Upload</th>
<th>Custom URL</th>
</tr>
<tr>
<th>Light</th>
<td><a href="#" onclick="changeimage('light','images/light.png')"><img class="destinyexamples" src="images/light.png"></a></td>
<td><a href="#" onclick="changeimage('light','images/ligh2.png')"><img class="destinyexamples" src="images/ligh2.png"></a></td>
<td><a href="#" onclick="changeimage('light','images/aotorl.png')"><img class="destinyexamples" src="images/aotorl.png"></a></td>
<td><a href="#" onclick="changeimage('light','images/aotorogl.png')"><img class="destinyexamples" src="images/aotorogl.png"></a></td>
<td><a href="#" onclick="changeimage('light','https://unbound-legends.imgix.net/story-points/player/eote.svg')"><img class="destinyexamples" src="https://unbound-legends.imgix.net/story-points/player/eote.svg"></a></td>
<td><a href="#" onclick="changeimage('light','https://unbound-legends.imgix.net/story-points/player/rpg.svg')"><img class="destinyexamples" src="https://unbound-legends.imgix.net/story-points/player/rpg.svg"></a></td>
<td>
<input type="file" accept="image/*" name="image" id="filelight" onchange="customtokenlight(event)" style="display: none;">
<label class="button buttonu buttonupload" id="customlighttokenlabel" for="filelight" style="cursor: pointer;">Upload Image</label>
<a id="placeholdercustomlight" class="placeholdercustom" onclick="clickID('customlighttokenlabel')" style="display: block;"></a>
<a href="#" onclick="" style="display: none;"><img id="customlighttoken" class="destinyexamples" src=""></a>
</td>
<td>
<form class="urlinput">
<input id="tokenurllight" type="text" name="url"><br>
<input id="tokenurlsublight" type="button" onclick="customtokenurllight()" value="Submit URL">
</form>
<a id="placeholdercustomlighturl" class="placeholdercustom" style="display: block;"></a>
<a href="#" onclick="" style="display: none;"><img id="customlighttokenurl" class="destinyexamples" src=""></a>
</td>
</tr>
<tr>
<th>Dark</th>
<td><a href="#" onclick="changeimage('dark','images/dark0.png')"><img class="destinyexamples" src="images/dark0.png"></a></td>
<td><a href="#" onclick="changeimage('dark','images/dark0.png')"><img class="destinyexamples" src="images/dark0.png"></a></td>
<td><a href="#" onclick="changeimage('dark','images/aotord.png')"><img class="destinyexamples" src="images/aotord.png"></a></td>
<td><a href="#" onclick="changeimage('dark','images/aotorogd.png')"><img class="destinyexamples" src="images/aotorogd.png"></a></td>
<td><a href="#" onclick="changeimage('dark','https://unbound-legends.imgix.net/story-points/gm/eote.svg')"><img class="destinyexamples" src="https://unbound-legends.imgix.net/story-points/gm/eote.svg"></a></td>
<td><a href="#" onclick="changeimage('dark','https://unbound-legends.imgix.net/story-points/gm/rpg.svg')"><img class="destinyexamples" src="https://unbound-legends.imgix.net/story-points/gm/rpg.svg"></a></td>
<td>
<input type="file" accept="image/*" name="image" id="filedark" onchange="customtokendark(event)" style="display: none;">
<label class="button buttonu buttonupload" id="customdarktokenlabel" for="filedark" style="cursor: pointer;">Upload Image</label>
<a id="placeholdercustomdark" class="placeholdercustom" onclick="clickID('customdarktokenlabel')" style="display: block;"></a>
<a href="#" onclick="" style="display: none;"><img id="customdarktoken" class="destinyexamples" src=""></a>
</td>
<td>
<form class="urlinput">
<input id="tokenurldark" type="text" name="url"><br>
<input id="tokenurlsubdark" type="button" onclick="customtokenurldark()" value="Submit URL">
</form>
<a id="placeholdercustomdarkurl" class="placeholdercustom" style="display: block;"></a>
<a href="#" onclick="" style="display: none;"><img id="customdarktokenurl" class="destinyexamples" src=""></a>
</td>
</tr>
</table>
</div>
</div>
<div class="buttonblock">
<h2>Destiny Controls</h2>
<button id="adddestiny" class="button buttong symbolcontrol" onclick="add_destiny()">+</button>
<button id="fliplight" class="button buttonu" onclick="flip('light')">Flip to light</button>
<br>
<button id="removedestiny" class="button buttonr symbolcontrol" onclick="remove_destiny()">-</button>
<button id="flipdark" class="button buttonu" onclick="flip('dark')">Flip to dark</button>
</div>
</div>
<div class="keybindcontainer">
<h1 id="keybindhead">Keybinds <button id="altkeybindbutton" class="button buttong" onclick="altkeybinds()">Enable non-shift keybinds</button><button id="altkeybindbutton" class="button buttonu" onclick="setkeybinds(bindsmap)">Reset keybinds</button></h1>
<table class="keybindtable">
<tr>
<th>Action</th>
<th> Keybind 1 </th>
<th> Keybind 2 </th>
<th> Non-shift </th>
</tr>
<tr>
<td class="subth">Add Destiny Point:</td>
<td><kbd id="KBadddestiny0">+</kbd></td>
<td><kbd id="KBadddestiny1">=</kbd></td>
<td><kbd id="KBadddestiny2"></kbd></td>
</tr>
<tr>
<td class="subth">Remove Destiny Point:</td>
<td><kbd id="KBremovedestiny0">-</kbd></td>
<td><kbd id="KBremovedestiny1">_</kbd></td>
<td><kbd id="KBremovedestiny2"></kbd></td>
</tr>
<tr>
<td class="subth">Flip Point to Light:</td>
<td><kbd id="KBfliptolight0">shift + up</kbd></td>
<td><kbd id="KBfliptolight1"></kbd></td>
<td><kbd id="KBfliptolight2">up</kbd></td>
</tr>
<tr>
<td class="subth">Flip Point to Dark:</td>
<td><kbd id="KBfliptodark0">shift + down</kbd></td>
<td><kbd id="KBfliptodark1"></kbd></td>
<td><kbd id="KBfliptodark2">down</kbd></td>
</tr>
<tr>
<td class="subth">Hide/Unhide Settings:</td>
<td><kbd id="KBhidebuttons0">shift + h</kbd></td>
<td><kbd id="KBhidebuttons1"></kbd></td>
<td><kbd id="KBhidebuttons2">h</kbd></td>
</tr>
<tr>
<td class="subth">Hide/Unhide Eye Button:</td>
<td><kbd id="KBhideeye0">shift + e</kbd></td>
<td><kbd id="KBhideeye1"></kbd></td>
<td><kbd id="KBhideeye2">e</kbd></td>
</tr>
<tr>
<td class="subth">Hide/Unhide Used Counter:</td>
<td><kbd id="KBtoggleused0">shift + u</kbd></td>
<td><kbd id="KBtoggleused1"></kbd></td>
<td><kbd id="KBtoggleused2">u</kbd></td>
</tr>
<tr>
<td class="subth">Hide/Unhide Num Counter:</td>
<td><kbd id="KBtogglenum0">shift + n</kbd></td>
<td><kbd id="KBtogglenum1"></kbd></td>
<td><kbd id="KBtogglenum2">n</kbd></td>
</tr>
</table>
</table>
<p style="font-size: smaller;">NOTE: If a keybind isn't working, try using <kbd>ctrl</kbd> in place of <kbd>shift</kbd>. Eg. Instead of <kbd>shift + up</kbd> try <kbd>ctrl + up</kbd></p>
</div>
</div>
<br>
<hr>
<div style="font-size: smaller;">
<button id="information" class="button buttonu">Information</button>
<a href="https://github.com/Aerilym/SWRPG-Destiny-Point-Tracker/releases" target="_blank"><button id="download" class="button buttonu">Download</button></a>
<a href="https://github.com/Aerilym/SWRPG-Destiny-Point-Tracker#obs-open-broadcaster-software-guide" target="_blank"><button id="download" class="button buttonu">Use as an overlay or browser source</button></a>
<p>Created by <a href="https://aerilym.github.io/" target="_blank">Ryan Miller</a>. I also do a Star Wars RPG podcast called <a href="https://linktr.ee/AuditorsPodcast" target="_blank">Auditors of the Outer Rim</a> </p>
<p>I am not associated with FFG Star Wars RPG</p>
</div>
</div>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
<h2>Information</h2>
</div>
<div class="modal-body">
<p>For guides, detailed information, help, and download links head to the Github repo here: <a href="https://github.com/Aerilym/SWRPG-Destiny-Point-Tracker" target="_blank">github.com/Aerilym/SWRPG-Destiny-Point-Tracker</a></p>
<p>This tool can be used <a href="https://aerilym.github.io/SWRPG-Destiny-Point-Tracker/" target="_blank">online</a>, <a href="https://github.com/Aerilym/SWRPG-Destiny-Point-Tracker#local-guide" target="_blank">locally in a web browser</a>, or as <a href="https://github.com/Aerilym/SWRPG-Destiny-Point-Tracker#obs-open-broadcaster-software-guide"target="_blank">a browser source on OBS</a> or other streaming/webcam studio apps.</p>
<p>Keybinds are handled by a small JavaScript library called <a href="https://craig.is/killing/mice" target="_blank">Mousetrap.js</a>. This is the only external library used.</p>
<p>The total size of the tool is approximately 20KB.</p>
<a href="https://github.com/Aerilym/SWRPG-Destiny-Point-Tracker/#Frequently-Asked-Questions" target="_blank"><button id="FAQ" class="button buttonu">Frequently Asked Questions</button></a>
<a href="https://github.com/Aerilym/SWRPG-Destiny-Point-Tracker/#other-star-wars-rpg-tools-i-use" target="_blank"><button id="otherpplstools" class="button buttonu">SWRPG tools I use</button></a>
</div>
<div class="modal-footer">
<a title="Support me on ko-fi.com" class="kofi-button" style="background-color:#7a27c2;" href="https://linktr.ee/Aerilym" target="_blank"> <span class="kofitext">Links</span></a>
<a title="Support me on ko-fi.com" class="kofi-button" style="background-color:#7a27c2;" href="mailto:aerilymbiz@gmail.com" target="_blank"> <span class="kofitext">Contact</span></a>
<script type='text/javascript' src='https://storage.ko-fi.com/cdn/widget/Widget_2.js'></script><script type='text/javascript'>kofiwidget2.init('Buy me a coffee', '#7a27c2', 'Y8Y85AWOK');kofiwidget2.draw();</script>
</div>
</div>
</div>
<div id="altscriptunbind"></div>
<script src="js/keybinds.js"></script>
<script src="js/modals.js"></script>
<script>writekeybinds()</script>
<script>userstate()</script>
<script>destinycontrolhandle()</script>
<script>startup()</script>
</body>
</html>