-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
286 lines (286 loc) · 14.3 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
<!DOCTYPE html>
<html lang='en'>
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Signika+Negative:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./style.css">
<!--Include wheel.js-->
<script src="./wheel.js"></script>
</head>
<body>
<nav>
<h1 class="title" title="V1.5.2">Phasmophobia Ghost Casino</h1>
<div class="buttons">
<button class="resetBTN button" tabindex="-1"
title="Resets all settings made by the user to default (ghost colors, page colors and spin time)."
onclick=reset()>Reset
page</button>
<button class="selectGhostBTN button" tabindex="-1" title="Select a ghost to spin for"
onclick=selectGhosts()>Select
Ghosts</button>
<button class="settingsBTN button" tabindex="-1"
title="Change the current settings (ghost types and colors)">Change
Settings</button>
<button class="shareBTN button" tabindex="-1"
title="Share the current ghost selection and ghost colors. Page colors are currently not included."
onclick=share()>Share</button>
<button class="saveBTN button" tabindex="-1" title="Save the current settings" onclick=SaveSetup()>Save
setup</button>
<!-- <button class="shareBTN button" title="Load settings shared by another user" onclick=loadsettings()>Load</button> -->
<button class="aboutBTN button" tabindex="-1" title="About this page (redirect to github.com)"
onclick=about()>Help &
About</button>
</div>
</nav>
<main class="triggers_wheel">
<div class="the_wheel triggers_wheel">
<div class="needle triggers_wheel">
<canvas class="triggers_wheel"></canvas>
</div>
<div class="wheel rotate triggers_wheel">
<canvas>
<p>Sorry, your browser doesn't support canvas. Please try another.</p>
</canvas>
</div>
</div>
<div class="ghost_and_evidence_selection">
<div class="evidence_window">
<h1>Evidence</h1>
<div>
<div class="evidence emf_5" onclick="FilterEvidence('emf_5')">
<img src="./images/evidence/emf_5.webp">
<h3>EMF Level 5</h3>
</div>
<div class="evidence dots" onclick="FilterEvidence('dots')">
<img src="./images/evidence/dots.webp">
<h3>D.O.T.S. Projector</h3>
</div>
<div class="evidence uv" onclick="FilterEvidence('uv')">
<img src="./images/evidence/uv.webp">
<h3>UV Evidence</h3>
</div>
<div class="evidence orbs" onclick="FilterEvidence('orbs')">
<img src="./images/evidence/orbs.webp">
<h3>Ghost Orbs</h3>
</div>
<div class="evidence writing" onclick="FilterEvidence('writing')">
<img src="./images/evidence/writing.webp">
<h3>Ghost Writing</h3>
</div>
<div class="evidence spirit_box" onclick="FilterEvidence('spirit_box')">
<img src="./images/evidence/spirit_box.webp">
<h3>Spirit Box</h3>
</div>
<div class="evidence freezing" onclick="FilterEvidence('freezing')">
<img src="./images/evidence/freezing.webp">
<h3>Freezing Temperatures</h3>
</div>
</div>
<div class="evidence_selection_buttons">
<button class="button" onclick="Filter_Selection('clear_evidence')">Clear evidence</button>
<button class="button" onclick="Filter_Selection('clear_selection')">Clear selection</button>
<button class="button" onclick="Filter_Selection('clear_all')">Clear all</button>
<button class="button" onclick="Filter_Selection('filtered')">Select filtered</button>
<button class="button" onclick="Filter_Selection('select_all')">Select all</button>
</div>
</div>
<div class="ghost_selection">
<h1>Ghost Selection</h1>
<div>
<div class='ghost'>
<h4>Banshee </h4>
</div>
</div>
</div>
</div>
</main>
<div class="PopUp">
<div class="PopUpContent">
<div class="Winning_Ghost">
<h1 class="winning_ghost_text"></h1>
<div class="winning_ghost_evidence">
<div class="evidence_1">
<img>
<h3></h3>
</div>
<div class="evidence_2">
<img>
<h3></h3>
</div>
<div class="evidence_3">
<img>
<h3></h3>
</div>
<div style="display:none;" class="orbs">
<img src="./images/evidence/orbs.webp">
<h3>Ghost Orbs</h3>
</div>
</div>
</div>
<div class="Settings">
<div class="ConfirmSelectionPopUp">
<h3>Are you sure you want to delete ${Ghost}?</h3>
<p>This instantly deletes the ghost from local storage</p>
<div style="margin: 5px">
<button class="SelectionConfirm button remove_ghost">Yes</button>
<button class="SelectionCancel button">No</button>
</div>
</div>
<div class="Select_Evidence">
<h1>Select the evidence for ${Ghost}</h1>
<div class="Current_Evidence">
<div class="evidence evidence_1">
<img>
<select class="evidence_select" onchange="UpdateEvidence(1)">
<option value="emf_5">EMF Level 5</option>
<option value="uv">Ultraviolet Evidence</option>
<option value="writing">Ghost Writing</option>
<option value="freezing">Freezing Temperatures</option>
<option value="dots">D.O.T.S. Projector</option>
<option value="orbs">Ghost Orbs</option>
<option value="spirit_box">Spirit Box</option>
</select>
</div>
<div class="evidence evidence_2">
<img>
<select class="evidence_select" onchange="UpdateEvidence(2)">
<option value="emf_5">EMF Level 5</option>
<option value="uv">Ultraviolet Evidence</option>
<option value="writing">Ghost Writing</option>
<option value="freezing">Freezing Temperatures</option>
<option value="dots">D.O.T.S. Projector</option>
<option value="orbs">Ghost Orbs</option>
<option value="spirit_box">Spirit Box</option>
</select>
</div>
<div class="evidence evidence_3">
<img>
<select class="evidence_select" onchange="UpdateEvidence(3)">
<option value="emf_5">EMF Level 5</option>
<option value="uv">Ultraviolet Evidence</option>
<option value="writing">Ghost Writing</option>
<option value="freezing">Freezing Temperatures</option>
<option value="dots">D.O.T.S. Projector</option>
<option value="orbs">Ghost Orbs</option>
<option value="spirit_box">Spirit Box</option>
</select>
</div>
</div>
<div class="Confirm_Evidence">
<button class="button" style="margin:none; margin-right:10px;">Confirm</button>
<button class="button remove_ghost" style="margin:none;">Cancel</button>
</div>
</div>
<h1>Settings & Ghost Selection</h1>
<!-- table of ghosts -->
<table>
<tr class="legend">
<th>Ghost</th>
<th>Color</th>
<th>Text Color</th>
<th>Evidence</th>
<th>Remove</th>
</tr>
<tr class="ghost_entry template">
<td>
<input class="ghost_name" type="text" placeholder="Ghost Name"></input>
</td>
<td>
<input style="cursor:pointer;" type="color" class="ghost_color" value="#0000ff">
</td>
<td>
<input style="cursor:pointer;" type="color" class="text_color" value="#FFFFFF">
</td>
<td>
<button class="evidence_popup button">Change</button>
</td>
<td>
<button class="remove_ghost button">Remove</button>
</td>
</tr>
</table>
<h3>Change page colors here:</h3>
<table class="page_colors">
<tr>
<td>Main Color (for unselected items):</td>
<td>
<input class="main_color color_picker" type="color"></input>
</td>
<td>
<input class="main_color_revert button" type="button" value="Revert"
onclick="RevertColor('main_color')"></input>
</td>
</tr>
<tr>
<td>Secondary Color (for selected items and details):</td>
<td>
<input class="secondary_color color_picker" type="color"></input>
</td>
<td>
<input class="secondary_color_revert button" type="button" value="Revert"
onclick="RevertColor('secondary_color')"></input>
</td>
</tr>
<tr>
<td>Accent color (for buttons and filtered):</td>
<td>
<input class="accent_color color_picker" type="color"></input>
</td>
<td>
<input class="accent_color_revert button" type="button" value="Revert"
onclick="RevertColor('accent_color')"></input>
</td>
</tr>
<tr>
<td>Accent color negative (for dangerous buttons):</td>
<td>
<input class="accent_color_negative color_picker" type="color"></input>
</td>
<td>
<input class="accent_color_negative_revert button" type="button" value="Revert"
onclick="RevertColor('accent_color_negative')"></input>
</td>
</tr>
<tr>
<td>Text color:</td>
<td>
<input class="text_color color_picker" type="color"></input>
</td>
<td>
<input class="text_color_revert button" type="button" value="Revert"
onclick="RevertColor('text_color')"></input>
</td>
</tr>
<tr>
<td>Background color:</td>
<td>
<input class="background_color color_picker" type="color"></input>
</td>
<td>
<input class="background_color_revert button" type="button" value="Revert"
onclick="RevertColor('background_color')"></input>
</td>
</tr>
</table>
<div class="SpinSpeed">
<h3>Change the time the wheel spins (default is 5s)</h3>
<!-- Slider input from 1 to 20 seconds -->
<input type="range" min="1" max="20" value="4" class="TimeSlider"></input>
<p>10s</p>
</div>
<div class="font_size">
<h3>Change the font size on the wheel</h3>
<input type="range" min="20" max="80" value="50" class="FontSizeSlider"></input>
<p>This is the size example</p>
</div>
<div class="setting_buttons">
<button class="add_ghost button" onclick="add_ghost()">Add Ghost</button>
<button class="save_settings button" onclick="SaveSettings()">Save</button>
<button class="button" onclick="HidePopUp()">Cancel</button>
</div>
</div>
</div>
</div>
</body>
</html>