-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
412 lines (366 loc) · 21.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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Generate unique TF2 weapon ideas with customizable stats and settings!" />
<meta property="og:title" content="TF2 Weapon Generator" />
<meta property="og:description" content="Create custom weapons for Team Fortress 2 with unique stats and features." />
<meta property="og:url" content="https://tf2weapongenerator.netlify.app/" />
<meta property="og:type" content="website" />
<link rel="canonical" href="https://tf2weapongenerator.netlify.app/" />
<title>TF2 Weapon Generator</title>
<link rel="stylesheet" href="bootstrap.css" />
<link rel="stylesheet" href="style.css\style.css">
<link rel="icon" type="image/x-icon" href="/images/logo.ico" />
<style>
/* Mobile styles */
@media (max-width: 1199px) {
.desktop-view {
display: none;
}
}
/* Desktop styles */
@media (min-width: 1200px) {
.mobile-view {
display: none;
}
}
</style>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-P81NCPLY09"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-P81NCPLY09');
</script>
</head>
<div class="text-center container">
<body>
<!-- <img src="images\wallpaper_1.jpg" class="bg"> -->
<div style="border-radius: 20px; box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px; background-color: #9494947a; backdrop-filter: blur( 1.5px );"
class="card my-2 py-2 cornered">
<img src="/images/logotwo.png" class="head-logo-tr">
<img src="/images/logotwo.png" class="head-logo-tl">
<img src="/images/logotwo.png" class="head-logo-br">
<img src="/images/logotwo.png" class="head-logo-bl">
<!-- <img src="/tf2-weapon-generator/tf2.jpg" class="card-img-top" alt="tf2-heroes"> -->
<h1 style="font-weight: bold; text-shadow: 1px 1px 2px rgb(168, 168, 168); color:rgb(30, 30, 30);" class="card-title">TF2 Weapon Generator</h1>
<p style="font-weight: bold; color: #ededed; text-shadow: 1px 1px 2px black;" class="card-text">
Created by Aleksandar Dinkov
<br>
Built upon by seanonamonday
<br>
<i><strong>Submit your own stat ideas <a href="https://docs.google.com/forms/d/e/1FAIpQLSfc8Gwr32u7AcyKSupG7UQFk0qrexVCySvT7a7XSgFWG646yQ/viewform?usp=dialog" style="text-decoration: none; color: gray" target="_blank">here!</a></strong></i>
</p>
</div>
<div class="container mobile-view">
<div class="row justify-content-around">
<div style="border-radius: 20px; box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;"
class="col-8 px-3 py-1 bg-light d-flex justify-content-center container-fluid my-2 align-items-center cornered">
<img src="/images/logotwo.png" class="app-logo-tr">
<img src="/images/logotwo.png" class="app-logo-tl">
<img src="/images/logotwo.png" class="app-logo-br">
<img src="/images/logotwo.png" class="app-logo-bl">
<div style="margin-bottom: 50px; width: 350px; margin-top: 10px;">
<!-- <img src="/images/logotwo.png" class="app-logo"> -->
<h3 style="font-weight: bold;" class="title mb-3">Settings:</h3>
<div style="transform: translateX(15px);">
<div class="row align-items-center mb-0">
<div style="font-weight: bold;" class="col-4">Power Level</div>
<div class="col-1 text-center">:</div>
<div class="col-5">
<select id="powerLevelSelectMobile" class="form-select" style="font-weight: bold;">
<option value="-2">Dying Spree</option>
<option value="-1">Dominate</option>
<option value="0" selected>Stoppable</option>
<option value="1">Godlike</option>
<option value="2">SAXTON HAAAALE</option>
</select>
</div>
</div>
<div class="row align-items-center mb-1 mt-0">
<div style="font-weight: bold;" class="col-4">Extra Stats</div>
<div class="col-1 text-center">:</div>
<div class="col-5">
<select id="extraStatsSelectMobile" class="form-select" style="font-weight: bold;">
<option value="1">Few</option>
<option style="font-weight: bold;" value="2" selected>Couple</option>
<option value="3">Some</option>
<option value="4">Many</option>
<option value="5">Lots</option>
</select>
</div>
</div>
<div class="row align-items-center mb-1 mt-1">
<div style="font-weight: bold;" class="col-4">Class</div>
<div class="col-1 text-center">:</div>
<div class="col-5">
<select id="playerClassSelectMobile" class="form-select" style="font-weight: bold;">
<option style="font-weight: bold;" value="0" selected>Any</option>
<option value="1">Scout</option>
<option value="2">Soldier</option>
<option value="3">Pyro</option>
<option value="4">Demoman</option>
<option value="5">Heavy</option>
<option value="6">Engineer</option>
<option value="7">Medic</option>
<option value="8">Sniper</option>
<option value="9">Spy</option>
</select>
</div>
</div>
<div class="row align-items-center mb-1 mt-2">
<div style="font-weight: bold;" class="col-4">Slot</div>
<div class="col-1 text-center">:</div>
<div class="col-5">
<select id="weaponSlotSelectMobile" class="form-select" style="font-weight: bold;">
<option style="font-weight: bold;" value="0" selected>Any</option>
<option value="1">Primary</option>
<option value="2">Secondary</option>
<option value="3">Melee</option>
</select>
</div>
</div>
<div class="row align-items-center mt-1">
<div style="font-weight: bold;" class="col-4">Weapon Type</div>
<div class="col-1 text-center">:</div>
<div class="col-5">
<select id="weaponTypeSelectMobile" class="form-select" style="font-weight: bold;">
<option style="font-weight: bold;" value="0" selected>Any</option>
<option value="Backpack">Backpack</option>
<option value="Banner">Banner</option>
<option value="Boots">Boots</option>
<option value="Bow">Bow</option>
<option value="Crossbow">Crossbow</option>
<option value="Demoknight_Boots">Demoknight Boots</option>
<option value="Demoknight_Melee">Demoknight Melee</option>
<option value="Demoknight_Shield">Demoknight Shield</option>
<option value="Explosive_Melee">Explosive Melee</option>
<option value="Flamethrower">Flamethrower</option>
<option value="Flare_Gun">Flare Gun</option>
<option value="Grenade_Launcher">Grenade Launcher</option>
<option value="Heavy_Lunch_Box">Heavy Lunch Box</option>
<option value="Indivisible_Particle_Smasher">Indivisible Particle Smasher</option>
<option value="Invis_Watch">Invis Watch</option>
<option value="Knife">Knife</option>
<option value="Medi_Gun">Medi Gun</option>
<!-- <option value="Medic_Melee">Medic Melee</option> -->
<option value="Melee">Melee</option>
<option value="Melee_with_Projectile">Melee with Projectile</option>
<option value="Minigun">Minigun</option>
<option value="Pistol">Pistol</option>
<!-- <option value="Pybro_Melee">Pybro Melee</option> -->
<option value="Revolver">Revolver</option>
<option value="Rocket_Launcher">Rocket Launcher</option>
<option value="Sapper">Sapper</option>
<option value="Scattergun">Scattergun</option>
<option value="Scout_Lunch_Box">Scout Lunch Box</option>
<option value="Shotgun">Shotgun</option>
<option value="Sniper_Rifle">Sniper Rifle</option>
<option value="Stickybomb_Launcher">Stickybomb Launcher</option>
<option value="Submachine_Gun">Submachine Gun</option>
<option value="Syringe_Gun">Syringe Gun</option>
<option value="Throwable_AoE">Throwable AoE</option>
<option value="Throwable_Weapon">Throwable Weapon</option>
<option value="Wrench">Wrench</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-8 col-md-8 col-sm-8 my-2">
<div class="px-3 py-1 d-flex justify-content-center align-items-center">
<div style="width:100%; justify-content: center !important;" class="col-5 px-3 py-1 bg-light d-flex flex-column justify-content-center">
<button style="box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px; font-weight: bold;" type="button"
class="btn btn-lg btn-success btn-outline-dark my-1" id="generateBtnMobile">
Generate! (Space)
</button>
<div id="generatedWeaponAreaMobile" class="px-3 py-3 justify-center">
<div id="weapon" style="position: relative; padding: 10px; width: 300px">
<div id="weaponImage"> <img src="weapon-images/Melee_1.png" /> </div>
<div id="weaponName" class="my-2 text-uppercase">The Frying Pan</div> <!-- Maybe put in Unknown_2! -->
<div id="weaponStats" class="my-3">
<div id="weaponLevel" style="margin-bottom: 0.4rem !important;">
Level 5 Frying Pan
</div>
<div id="weaponMandatoryStats" class="my-3">
</div>
<div id="weaponPros" class="my-3">
<!-- Blank for pros -->
</div>
<div id="weaponCons" class="my-3">
<!-- Blank for cons -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container desktop-view">
<div class="row justify-content-around">
<div style="border-radius: 20px; box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px; background-color: #9494947a; backdrop-filter: blur( 1.5px )"
class="col-8 px-3 py-1 d-flex justify-content-center container-fluid my-2 align-items-center cornered">
<img src="/images/logotwo.png" class="app-logo-tr">
<img src="/images/logotwo.png" class="app-logo-tl">
<img src="/images/logotwo.png" class="app-logo-br">
<img src="/images/logotwo.png" class="app-logo-bl">
<div style="margin-bottom: 50px; width: 350px; margin-top: 10px;">
<!-- <img src="/images/logotwo.png" class="app-logo"> -->
<h3 style="font-weight: bold; text-shadow: 1px 1px 2px rgb(78, 78, 78);" class="title mb-3">Settings:</h3>
<div style="transform: translateX(15px);">
<div class="row align-items-center mb-1">
<div style="font-weight: bold; text-shadow: 1px 1px 2px rgb(87, 87, 87);" class="col-4">Power Level</div>
<div class="col-1 text-center">:</div>
<div class="col-5">
<select id="powerLevelSelectDesktop" class="form-select" style="font-weight: bold;">
<option value="-2">Dying Spree</option>
<option value="-1">Dominated</option>
<option value="0" selected>Stoppable</option>
<option value="1">Godlike</option>
<option value="2">SAXTON HAAAALE</option>
</select>
</div>
</div>
<div class="row align-items-center mb-1 mt-2">
<div style="font-weight: bold; text-shadow: 1px 1px 2px rgb(87, 87, 87)" class="col-4">Extra Stats</div>
<div class="col-1 text-center">:</div>
<div class="col-5">
<select id="extraStatsSelectDesktop" class="form-select" style="font-weight: bold;">
<option style="font-weight: bold;" value="1" selected>Few</option>
<option value="2">Couple</option>
<option value="3">Some</option>
<option value="4">Many</option>
<option value="5">Lots</option>
</select>
</div>
</div>
<div class="row align-items-center mb-1 mt-2">
<div style="font-weight: bold; text-shadow: 1px 1px 2px rgb(87, 87, 87)" class="col-4">Class</div>
<div class="col-1 text-center">:</div>
<div class="col-5">
<select id="playerClassSelectDesktop" class="form-select" style="font-weight: bold;">
<option style="font-weight: bold;" value="0" selected>Any</option>
<option value="1">Scout</option>
<option value="2">Soldier</option>
<option value="3">Pyro</option>
<option value="4">Demoman</option>
<option value="5">Heavy</option>
<option value="6">Engineer</option>
<option value="7">Medic</option>
<option value="8">Sniper</option>
<option value="9">Spy</option>
</select>
</div>
</div>
<div class="row align-items-center mb-1 mt-2">
<div style="font-weight: bold; text-shadow: 1px 1px 2px rgb(87, 87, 87)" class="col-4">Slot</div>
<div class="col-1 text-center">:</div>
<div class="col-5">
<select id="weaponSlotSelectDesktop" class="form-select" style="font-weight: bold;">
<option style="font-weight: bold;" value="0" selected>Any</option>
<option value="1">Primary</option>
<option value="2">Secondary</option>
<option value="3">Melee</option>
</select>
</div>
</div>
<div class="row align-items-center mt-1"> <!-- used mt-1 instead of mb-2 because it works idk -->
<div style="font-weight: bold; text-shadow: 1px 1px 2px rgb(87, 87, 87)" class="col-4">Weapon Type</div>
<div class="col-1 text-center">:</div>
<div class="col-5">
<select id="weaponTypeSelectDesktop" class="form-select" style="font-weight: bold;">
<option style="font-weight: bold;" value="0" selected>Any</option>
<option value="Backpack">Backpack</option>
<option value="Banner">Banner</option>
<option value="Boots">Boots</option>
<option value="Bow">Bow</option>
<option value="Crossbow">Crossbow</option>
<option value="Demoknight_Boots">Demoknight Boots</option>
<option value="Demoknight_Melee">Demoknight Melee</option>
<option value="Demoknight_Shield">Demoknight Shield</option>
<option value="Explosive_Melee">Explosive Melee</option>
<option value="Flamethrower">Flamethrower</option>
<option value="Flare_Gun">Flare Gun</option>
<option value="Grenade_Launcher">Grenade Launcher</option>
<option value="Heavy_Lunch_Box">Heavy Lunch Box</option>
<option value="Indivisible_Particle_Smasher">Indivisible Particle Smasher</option>
<option value="Invis_Watch">Invis Watch</option>
<option value="Knife">Knife</option>
<option value="Medi_Gun">Medi Gun</option>
<!-- <option value="Medic_Melee">Medic Melee</option> -->
<option value="Melee">Melee</option>
<option value="Melee_with_Projectile">Melee with Projectile</option>
<option value="Minigun">Minigun</option>
<option value="Pistol">Pistol</option>
<!-- <option value="Pybro_Melee">Pybro Melee</option> -->
<option value="Revolver">Revolver</option>
<option value="Rocket_Launcher">Rocket Launcher</option>
<option value="Sapper">Sapper</option>
<option value="Scattergun">Scattergun</option>
<option value="Scout_Lunch_Box">Scout Lunch Box</option>
<option value="Shotgun">Shotgun</option>
<option value="Sniper_Rifle">Sniper Rifle</option>
<option value="Stickybomb_Launcher">Stickybomb Launcher</option>
<option value="Submachine_Gun">Submachine Gun</option>
<option value="Syringe_Gun">Syringe Gun</option>
<option value="Throwable_AoE">Throwable AoE</option>
<option value="Throwable_Weapon">Throwable Weapon</option>
<option value="Wrench">Wrench</option>
</select>
</div>
</div>
</div>
</div>
<div style="justify-content: center !important;" class="col-5 px-3 py-1 d-flex flex-column-reverse justify-content-center">
<div class="d-flex justify-content-between">
<button style="box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px; font-weight: bold;" type="button"
class="btn btn-sm btn-success btn-outline-dark my-1 flex-fill mx-1" id="captureButton">
↓ Capture Image!
</button>
<button style="box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px; font-weight: bold;" type="button"
class="btn btn-sm btn-success btn-outline-dark my-1 flex-fill mx-1" id="changeBackgroundButton">
Switch Background! ↑
</button>
</div>
<div style="justify-content: center;">
<button style="box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px; font-weight: bold; width: 100%;" type="button"
class="btn btn-sm btn-success btn-outline-dark my-1" id="generateBtnDesktop">
Generate! (Space)
</button>
</div>
<div id="generatedWeaponAreaDesktop" class="px-3 py-3 justify-center">
<div id="weapon" style="position: relative; padding: 10px; width: 300px">
<div id="weaponImage"> <img src="weapon-images/Melee_1.png" /> </div>
<div id="weaponName" class="my-2 text-uppercase">The Frying Pan</div> <!-- Maybe put in Unknown_2! -->
<div id="weaponStats" class="my-3">
<div id="weaponLevel" style="margin-bottom: 0.4rem !important;">
Level 5 Frying Pan
</div>
<div id="weaponMandatoryStats" class="my-3">
</div>
<div id="weaponPros" class="my-3">
<!-- Blank for pros -->
</div>
<div id="weaponCons" class="my-3">
<!-- Blank for cons -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="base64.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<script src="script.js"></script>
</body>
</div>
</html>