-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
452 lines (390 loc) · 24.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>TF Generator</title>
<link rel="stylesheet" href="public/styles.css">
<script src="public/result.js"></script>
<script src="public/values.js"></script>
<script src="public/helpers.js"></script>
<script src="public/websiteFunctions.js"></script>
<script src="public/character_values.js"></script>
<link href="icons/css/fontawesome.min.css" rel="stylesheet">
<link href="icons/css/brands.min.css" rel="stylesheet">
<link href="icons/css/solid.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Secular+One&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<link rel='icon' href='public/icon.png' type='image/x-icon'>
</head>
<body>
<div class="main">
<!--Header-->
<header>
<h1 style="color: var(--accent-color); background: -webkit-linear-gradient(60deg, #7868ca, #c574f3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; width: max-content;">TF GENERATOR</h1>
<b style="color: var(--accent-color);" id="count">
<i>Over 250,000 visits!</i>
</b>
<div class="modetoggle" id="modetoggle" title="Toggle between light & dark mode">
<i class="fas fa-moon" id="toggleicon"></i>
</div>
<br><br><div class="hr"></div><br>
</header>
<div>
<!--Character result box-->
<div class="result-container">
<p class="result-title"><b>Character</b></p>
<p id="character-result" class="characterresult"></p>
<label class="lock-checkbox" style="display: none;" id="character-lock">
<input type="checkbox" id="lock-character-toggle">
<i class="fas fa-lock-open unchecked" title="Lock the character result?"></i>
<i class="fas fa-lock checked" title="Unlock the character result?"></i>
</label>
</div>
<br>
<!--Transformation result box-->
<div class="result-container">
<p class="result-title"><b>Transformation</b></p>
<p id="tf-result" class="tfresult"></p>
<label class="lock-checkbox" style="display: none;" id="tf-lock">
<input type="checkbox" id="lock-tf-toggle">
<i class="fas fa-lock-open unchecked" title="Lock the transformation scenario?"></i>
<i class="fas fa-lock checked" title="Unlock the transformation scenario?"></i>
</label>
</div>
<!--Result sharing options-->
<div id="result-options">
<br>
<button id="copybutton" onclick="CopyResult();" class="smallButton" title="Copy your result?" disabled><i class="fas fa-copy"></i> Copy</button>
<a class="smallButton disabled" id="tweetbutton" href="" target="_blank" title="Tweet your result?"><i class="fa-brands fa-x-twitter"></i> Tweet</a>
</div>
<div class="hr"></div><br>
<!--Character settings collapsible-->
<button type="button" class="collapsible" title="Click to open the character settings">
<i class="fas fa-user" style="color: var(--accent-color);"></i> Character settings
</button>
<div class="content">
<!--Character settings: Create character and gender-->
<div class="column">
<br><b>Generate character?</b><br>
<!--Create character toggle-->
<label class="container">
<small><i> Creates a random description of a character</i></small>
<input type="checkbox" id="create-character" checked> <span class="checkmark"></span>
</label>
<div class="paddhr">1</div>
<!--Gender setting-->
<b>Gender</b><br>
<label class="radio-container container">Female
<input type="radio" name="gender" value="female" id="female">
<span class="radio-checkmark checkmark"></span>
</label>
<label class="radio-container container">Male
<input type="radio" name="gender" value="male" id="male">
<span class="radio-checkmark checkmark"></span>
</label>
<label class="radio-container container">Other
<input type="radio" name="gender" value="person" id="other" checked>
<span class="radio-checkmark checkmark"></span>
</label>
<hr class="hr showOnMobile" style="margin: 15px 0 0 0;">
</div>
<!--Character settings: Character name and clothing-->
<div class="column">
<!--Name input-->
<br><b>Character name</b><br>
<input type="text" name="charname" placeholder="Leave blank for none" id="charname"><br>
<!--Random name checkbox-->
<label class="container" style="padding-top: 2px;">
<small><i> Set a random name?</i></small>
<input type="checkbox" id="random-name"> <span class="checkmark"></span>
</label>
<hr class="hr showOnMobile" style="margin: 15px 0 0 0;">
<!--Clothing checkbox-->
<br><b>Clothing</b><br>
<label class="container">
<small><i> Generate clothing?</i></small>
<input type="checkbox" id="clothing" checked> <span class="checkmark"></span>
</label>
</div>
</div>
<div class="paddhr">1</div>
<!--Transformation settings collapsible-->
<button type="button" class="collapsible" title="Click to open the transformation settings">
<i class="fa-solid fa-wand-magic-sparkles" style="color: var(--accent-color);"></i> Transformation settings
</button>
<div class="content">
<!--Transformation settings: Transformation categories-->
<div class="column">
<br><b>Transformation categories</b> <i class="fa-regular fa-circle-question help-btn" onclick="showModal(true);" title="See more information about the categories"></i><br>
<!--Select and unselect all buttons-->
<div class="checkbox-selection">
<span onclick="typeSelection(true)" title="Select all categories?">Select all</span> |
<span onclick="typeSelection(false)" title="Unselect all categories?">Unselect all</span>
</div>
<!--Transformation category checkboxes-->
<div>
<label class="container">Animal
<input type="checkbox" id="A" checked> <span class="checkmark"></span>
</label>
<label class="container">Creature
<input type="checkbox" id="C" checked> <span class="checkmark"></span>
</label>
<label class="container">Expansion
<input type="checkbox" id="E" checked> <span class="checkmark"></span>
</label>
<label class="container">Inanimate
<input type="checkbox" id="I" checked> <span class="checkmark"></span>
</label>
<label class="container">Body modification
<input type="checkbox" id="B" checked> <span class="checkmark"></span>
</label>
<label class="container">Food
<input type="checkbox" id="F" checked> <span class="checkmark"></span>
</label>
<label class="container">Plant
<input type="checkbox" id="P" checked> <span class="checkmark"></span>
</label>
<label class="container">Character
<input type="checkbox" id="CR" checked> <span class="checkmark"></span>
</label>
<label class="container">Pokémon / Digimon
<input type="checkbox" id="MON" checked> <span class="checkmark"></span>
</label>
<label class="container">Age progression
<input type="checkbox" id="AP" checked> <span class="checkmark"></span>
</label>
<label class="container">Age regression
<input type="checkbox" id="AR" checked> <span class="checkmark"></span>
</label>
<label class="container">Bimbo <small class="nsfwtag"><i>NSFW</i></small>
<input type="checkbox" id="BIMBO" checked> <span class="checkmark"></span>
</label>
<label class="container">Other
<input type="checkbox" id="O" checked> <span class="checkmark"></span>
</label>
<!--Holiday options-->
<div style="padding-top: 1em; display: none;" id="XMAS-option">
<label class="container">Christmas
<input type="checkbox" id="XMAS" tabindex="-1"> <span class="checkmark"></span>
</label>
</div>
<div style="padding-top: 1em; display: none;" id="HALLOWEEN-option">
<label class="container">Halloween
<input type="checkbox" id="HALLOWEEN" tabindex="-1"> <span class="checkmark"></span>
</label>
</div>
</div>
<hr class="hr showOnMobile" style="margin: 15px 0 0 0;">
</div>
<!--Transformation settings: Gender and prompt settings-->
<div class="column">
<br><b>Gender options</b><br>
<div style="padding-bottom: 1em;"><small><i>Anything besides "Character's gender" includes TG. If you only want TG prompts, unselect all of the TF categories</i></small></div>
<!--Gender selector (for TG)-->
<select id="target-gender">
<option value="char-gender">Character's gender (No TG)</option>
<option value="MTF">MTF</option>
<option value="FTM">FTM</option>
<option value="FUTA">FUTA</option>
</select>
<!--Include vanilla TG checkbox
<label class="container" style="padding-top: 2px;">
<small><i> Include vanilla TG results?</i></small>
<input type="checkbox" id="vanilla-tg"> <span class="checkmark"></span>
</label>-->
<hr class="hr" style="margin-bottom: 1em;">
<!--NSFW toggle-->
<b>NSFW</b><br>
<label class="container">
<small><i>Include adult themes?</i></small>
<input type="checkbox" id="nsfw" checked onchange="turnOffNSFW()"> <span class="checkmark"></span>
</label>
<div class="paddhr">1</div>
<!--Speech toggle-->
<b>Speech</b><br>
<label class="container">
<small><i> Include speech changes? (e.g. "you start mooing")</i></small>
<input type="checkbox" id="speech-toggle" checked> <span class="checkmark"></span>
</label>
<div class="paddhr">1</div>
<!--Altering toggle-->
<b>Mental / world changes</b><br>
<label class="container">
<small><i> Include changes to the world or your mind?</i></small>
<input type="checkbox" id="altering-toggle" checked> <span class="checkmark"></span>
</label>
<br>
</div>
</div>
<div class="smallhr"></div>
<!--Description-->
<p>
Are you feeling adventurous, curious, or creative? Do you want to explore the possibilities of transforming into something else? Well then you're at the right place!
<br><br>
Just choose the settings above and let the generator do the rest!
</p>
<div class="smallhr"></div>
<!--History-->
<button type="button" class="collapsible" id="historytab" title="Click to open the history menu">
<i class="fas fa-history" style="color: var(--accent-color);"></i> History
</button>
<div class="content history" id="historycont">
<div><br><p id="history-description" style="text-align: center; width: 100%; margin: 0;">No history...</p></div>
<button id="clear-history-btn" onclick="ClearHistory();" style="display: none; margin: 0 auto;" class="smallButton" title="Clear your TF history?"><i class="fa-solid fa-trash-can"></i> Clear history</button>
<div class="historycontent" id="History1"></div>
<div class="historycontent" id="History2"></div>
<div class="historycontent" id="History3"></div>
</div>
<br>
</div>
<!--Footer-->
<footer>
<p><a href="https://www.deviantart.com/unidentified-tf" target="_blank">Deviantart</a> | <a href="https://www.furaffinity.net/user/unidentified-tf/" target="_blank">Furaffinity</a> | <a href="https://twitter.com/UnidentifiedTF" target="_blank">Twitter</a> | <a href="https://www.patreon.com/unidentifiedtf" target="_blank">Patreon</a><br><br><small>2020-2024 - Unidentified-TF</small></p><small><a href="https://github.com/Unidentified-TF/TF-Generator" target="_blank"><i class="fa-brands fa-github"></i> Github</a></small>
<p><a class="feedbackButton" href="https://forms.gle/DbJgrzru7vn83p9o9" target="_blank" title="Send feedback about the generator?"><i class="far fa-lightbulb" style="font-size: 18px; padding-right: 6px;"></i><b> Give feedback</b></a></p><br>
<div class="tf-button-container">
<button onclick="CreatePrompt();" class="tfButton" title="*notices button* OwO what's this?">Transform!</button>
</div>
<br>
</footer>
<!--Information modal-->
<div id="modal" style="display: none;">
<div id="modal-content">
<div class="modal-header">
<div style="display: flex; gap: 1em; align-items: center;">
<h2 id="modal-header-text">Categories</h2>
</div>
<span class="close-btn" onclick="showModal(false);" title="Close menu"><i class="fa-solid fa-x"></i></span>
</div>
<div class="modal-body">
<h4><i class="fa-solid fa-paw"></i> Animal</h4>
<p>Includes: animal TFs, this also includes dinosaurs.</p>
<h4><i class="fa-solid fa-spaghetti-monster-flying"></i> Creature</h4>
<p>Includes: creature TFs, such as demons, centaurs, mermaids and etc.</p>
<h4><i class="fa-solid fa-up-right-and-down-left-from-center"></i> Expansion</h4>
<p>Includes: expansion and growth, with a little sprinkle of shrinking.</p>
<h4><i class="fa-solid fa-shapes"></i> Inanimate</h4>
<p>Includes: inanimate TFs, such as furniture, objects, liquids and etc.</p>
<h4><i class="fa-solid fa-eye"></i> Body Modification</h4>
<p>Includes: bodymod TFs, such as extra arms, mutants, fusion and etc.</p>
<h4><i class="fa-solid fa-pizza-slice"></i> Food</h4>
<p>Includes: food TFs, such as blueberry, gummy, bread and etc.</p>
<h4><i class="fa-solid fa-seedling"></i> Plant</h4>
<p>Includes: plant TFs, such as trees, flowers, succplants and etc.</p>
<h4><i class="fa-solid fa-people-arrows"></i> Character</h4>
<p>Includes: character TFs, such as Rapunzel, Hulk, Zelda and etc.</p>
<h4><i class="fa-solid fa-baseball"></i> Pokémon / Digimon</h4>
<p>Includes: pokémon and digimon TFs.</p>
<h4><i class="fa-solid fa-hourglass-end"></i> Age Progression</h4>
<p>Includes: age progression TFs, aging up.</p>
<h4><i class="fa-solid fa-hourglass-start"></i> Age Regression</h4>
<p>Includes: age progression TFs, aging down.</p>
<h4><i class="fa-solid fa-spray-can-sparkles"></i> Bimbo</h4>
<p>Includes: bimbo TFs.</p>
<h4><i class="fa-solid fa-robot"></i> Other</h4>
<p>Includes: other TFs, such as robots, goths, rubber drones and etc.</p>
</div>
</div>
<div id="modal-background" onclick="showModal(false);"></div>
</div>
<!--Unchecks selected categories if NSFW is turned off-->
<script>
function turnOffNSFW() {
if (!document.getElementById("nsfw").checked) {
// turn of bimbo checkmark
document.getElementById("BIMBO").checked = false;
}
}
</script>
<!--Collapsables-->
<script>
var coll = document.getElementsByClassName("collapsible");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function() {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.maxHeight){
content.style.maxHeight = null;
content.style.paddingBottom = "0";
} else {
content.style.maxHeight = content.scrollHeight + "px";
content.style.paddingBottom = "1em";
}
});
}
</script>
<!--Dark mode-->
<script>
var darklighttoggle = document.getElementById("modetoggle");
if (userhistory.getItem("dark") !== null) {
if (userhistory.getItem("dark") == 1) PutInDark();
} else {
// If no history exists, set the theme based on the system's theme
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
PutInDark();
userhistory.setItem("dark", 1);
} else {
userhistory.setItem("dark", 0);
}
}
darklighttoggle.onclick = function(){
document.body.classList.toggle("dark-theme")
if(document.body.classList.contains("dark-theme")){
document.getElementById("toggleicon").className = "fas fa-sun";
userhistory.setItem("dark", 1);
}
else{
document.getElementById("toggleicon").className = "fas fa-moon";
userhistory.setItem("dark", 0);
}
}
// Remembers if the user had dark mode the last time
function PutInDark() {
document.body.classList.add("dark-theme");
document.getElementById("toggleicon").className = "fas fa-sun";
}
</script>
<!--Selects or unselects all categories-->
<script>
function typeSelection(v) {
document.getElementById("A").checked = v;
document.getElementById("C").checked = v;
document.getElementById("E").checked = v;
document.getElementById("I").checked = v;
document.getElementById("B").checked = v;
document.getElementById("F").checked = v;
document.getElementById("P").checked = v;
document.getElementById("CR").checked = v;
document.getElementById("MON").checked = v;
document.getElementById("AP").checked = v;
document.getElementById("AR").checked = v;
if (document.getElementById("nsfw").checked)
document.getElementById("BIMBO").checked = v;
document.getElementById("O").checked = v;
}
</script>
<!--Modal-->
<script>
function showModal(show) {
if (show) {
document.getElementById("modal").style.display = "block";
} else {
document.getElementById("modal").style.display = "none";
}
}
</script>
<!--Holidays-->
<script>
let currentMonth = new Date().getMonth();
// If the current month is November or December, show the christmas option
if (currentMonth >= 10) {
document.getElementById("XMAS-option").style.display = "block";
}
// If the current month is October, show the halloween option
else if (currentMonth == 9) {
document.getElementById("HALLOWEEN-option").style.display = "block";
}
</script>
</div>
</body>
</html>