Spaces:
Running
Running
Add 2 files
Browse files- README.md +7 -5
- index.html +432 -19
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: queervernacular
|
3 |
+
emoji: π³
|
4 |
+
colorFrom: gray
|
5 |
+
colorTo: purple
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,432 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Gay to Bro Translatorβ’</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
@keyframes rainbow {
|
11 |
+
0% { background-position: 0% 50%; }
|
12 |
+
50% { background-position: 100% 50%; }
|
13 |
+
100% { background-position: 0% 50%; }
|
14 |
+
}
|
15 |
+
|
16 |
+
@keyframes sparkle {
|
17 |
+
0% { transform: scale(1); opacity: 1; }
|
18 |
+
50% { transform: scale(1.5); opacity: 0.5; }
|
19 |
+
100% { transform: scale(1); opacity: 1; }
|
20 |
+
}
|
21 |
+
|
22 |
+
@keyframes shake {
|
23 |
+
0%, 100% { transform: translateX(0); }
|
24 |
+
10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
|
25 |
+
20%, 40%, 60%, 80% { transform: translateX(5px); }
|
26 |
+
}
|
27 |
+
|
28 |
+
@keyframes float {
|
29 |
+
0% { transform: translateY(0px); }
|
30 |
+
50% { transform: translateY(-10px); }
|
31 |
+
100% { transform: translateY(0px); }
|
32 |
+
}
|
33 |
+
|
34 |
+
.rainbow-bg {
|
35 |
+
background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #00ff00, #0000ff, #8000ff, #ff00ff, #ff0000);
|
36 |
+
background-size: 400% 400%;
|
37 |
+
animation: rainbow 5s linear infinite;
|
38 |
+
}
|
39 |
+
|
40 |
+
.sparkle {
|
41 |
+
animation: sparkle 1s infinite;
|
42 |
+
}
|
43 |
+
|
44 |
+
.shake {
|
45 |
+
animation: shake 0.5s;
|
46 |
+
}
|
47 |
+
|
48 |
+
.float {
|
49 |
+
animation: float 3s ease-in-out infinite;
|
50 |
+
}
|
51 |
+
|
52 |
+
.disco-ball {
|
53 |
+
background: radial-gradient(circle at 30% 30%, #fff, #ddd 10%, #bbb 20%, transparent 30%),
|
54 |
+
radial-gradient(circle at 70% 70%, #fff, #ddd 10%, #bbb 20%, transparent 30%),
|
55 |
+
radial-gradient(circle at 30% 70%, #fff, #ddd 10%, #bbb 20%, transparent 30%),
|
56 |
+
radial-gradient(circle at 70% 30%, #fff, #ddd 10%, #bbb 20%, transparent 30%);
|
57 |
+
background-color: #ccc;
|
58 |
+
}
|
59 |
+
|
60 |
+
.drag-queen {
|
61 |
+
transition: all 0.3s ease;
|
62 |
+
}
|
63 |
+
|
64 |
+
.drag-queen:hover {
|
65 |
+
transform: scale(1.05) rotate(5deg);
|
66 |
+
filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.7));
|
67 |
+
}
|
68 |
+
|
69 |
+
.vogue {
|
70 |
+
animation: vogue 2s infinite;
|
71 |
+
}
|
72 |
+
|
73 |
+
@keyframes vogue {
|
74 |
+
0%, 100% { transform: rotate(0deg); }
|
75 |
+
25% { transform: rotate(5deg); }
|
76 |
+
50% { transform: rotate(-5deg); }
|
77 |
+
75% { transform: rotate(5deg); }
|
78 |
+
}
|
79 |
+
</style>
|
80 |
+
</head>
|
81 |
+
<body class="min-h-screen bg-gradient-to-b from-pink-200 to-purple-300 flex flex-col items-center p-4">
|
82 |
+
<!-- Disco ball -->
|
83 |
+
<div class="disco-ball w-16 h-16 rounded-full absolute top-10 right-10 shadow-lg float"></div>
|
84 |
+
|
85 |
+
<!-- Main container -->
|
86 |
+
<div class="w-full max-w-2xl mt-16 bg-white bg-opacity-80 backdrop-blur-lg rounded-xl shadow-2xl overflow-hidden border-4 border-purple-500">
|
87 |
+
<!-- Rainbow header -->
|
88 |
+
<div class="rainbow-bg p-4 text-center">
|
89 |
+
<h1 class="text-4xl font-bold text-white drop-shadow-lg">
|
90 |
+
<span class="sparkle">G</span>
|
91 |
+
<span class="sparkle" style="animation-delay: 0.2s">A</span>
|
92 |
+
<span class="sparkle" style="animation-delay: 0.4s">Y</span>
|
93 |
+
<span class="mx-4">β¨</span>
|
94 |
+
<span class="sparkle" style="animation-delay: 0.6s">B</span>
|
95 |
+
<span class="sparkle" style="animation-delay: 0.8s">R</span>
|
96 |
+
<span class="sparkle" style="animation-delay: 1s">O</span>
|
97 |
+
<span class="text-xs align-top">β’</span>
|
98 |
+
</h1>
|
99 |
+
<p class="text-white text-sm mt-2">The Official (Not Really) Translator of the Queer Vernacular</p>
|
100 |
+
</div>
|
101 |
+
|
102 |
+
<!-- Drag queen character -->
|
103 |
+
<div class="drag-queen absolute left-10 top-1/3 bg-pink-500 text-white p-2 rounded-lg shadow-lg text-center w-24 vogue">
|
104 |
+
<div class="text-4xl">π</div>
|
105 |
+
<div class="text-xs font-bold">Miss Translation 2023</div>
|
106 |
+
</div>
|
107 |
+
|
108 |
+
<!-- Content area -->
|
109 |
+
<div class="p-6">
|
110 |
+
<!-- Input area -->
|
111 |
+
<div class="mb-6">
|
112 |
+
<label class="block text-purple-800 font-bold mb-2" for="gay-input">
|
113 |
+
Enter your gayest phrase:
|
114 |
+
</label>
|
115 |
+
<div class="relative">
|
116 |
+
<input type="text" id="gay-input" class="w-full p-4 border-2 border-pink-300 rounded-lg focus:outline-none focus:border-purple-500 text-lg" placeholder="Yaaas queen! Slay!">
|
117 |
+
<button id="clear-btn" class="absolute right-2 top-2 bg-gray-200 hover:bg-gray-300 text-gray-700 p-1 rounded-full">
|
118 |
+
<i class="fas fa-times"></i>
|
119 |
+
</button>
|
120 |
+
</div>
|
121 |
+
<button id="translate-btn" class="mt-4 w-full bg-purple-600 hover:bg-purple-700 text-white font-bold py-3 px-4 rounded-lg transition-all duration-300 transform hover:scale-105 active:scale-95 flex items-center justify-center">
|
122 |
+
<i class="fas fa-language mr-2"></i> TRANSLATE TO BRO
|
123 |
+
<i class="fas fa-dumbbell ml-2"></i>
|
124 |
+
</button>
|
125 |
+
</div>
|
126 |
+
|
127 |
+
<!-- Output area -->
|
128 |
+
<div class="mb-6">
|
129 |
+
<label class="block text-purple-800 font-bold mb-2" for="bro-output">
|
130 |
+
Bro translation:
|
131 |
+
</label>
|
132 |
+
<div id="bro-output" class="w-full min-h-32 p-4 bg-gray-100 border-2 border-gray-300 rounded-lg text-lg font-mono">
|
133 |
+
<div class="text-gray-400 italic">Translation will appear here...</div>
|
134 |
+
</div>
|
135 |
+
<button id="copy-btn" class="mt-2 bg-blue-500 hover:bg-blue-600 text-white py-2 px-4 rounded-lg text-sm">
|
136 |
+
<i class="fas fa-copy mr-1"></i> Copy to clipboard
|
137 |
+
</button>
|
138 |
+
<button id="speak-btn" class="mt-2 ml-2 bg-green-500 hover:bg-green-600 text-white py-2 px-4 rounded-lg text-sm">
|
139 |
+
<i class="fas fa-volume-up mr-1"></i> Speak it
|
140 |
+
</button>
|
141 |
+
</div>
|
142 |
+
|
143 |
+
<!-- Soundboard -->
|
144 |
+
<div class="mt-8">
|
145 |
+
<h3 class="text-purple-800 font-bold mb-3 text-center">BRO SOUNDBOARD</h3>
|
146 |
+
<div class="grid grid-cols-3 gap-3">
|
147 |
+
<button class="sound-btn bg-red-500 hover:bg-red-600 text-white p-3 rounded-lg" data-sound="bruh">
|
148 |
+
<i class="fas fa-user mr-1"></i> "Bruh"
|
149 |
+
</button>
|
150 |
+
<button class="sound-btn bg-blue-500 hover:bg-blue-600 text-white p-3 rounded-lg" data-sound="swole">
|
151 |
+
<i class="fas fa-dumbbell mr-1"></i> "Gains"
|
152 |
+
</button>
|
153 |
+
<button class="sound-btn bg-green-500 hover:bg-green-600 text-white p-3 rounded-lg" data-sound="chug">
|
154 |
+
<i class="fas fa-beer mr-1"></i> "Chug!"
|
155 |
+
</button>
|
156 |
+
<button class="sound-btn bg-yellow-500 hover:bg-yellow-600 text-white p-3 rounded-lg" data-sound="no-homo">
|
157 |
+
<i class="fas fa-handshake mr-1"></i> "No homo"
|
158 |
+
</button>
|
159 |
+
<button class="sound-btn bg-indigo-500 hover:bg-indigo-600 text-white p-3 rounded-lg" data-sound="bet">
|
160 |
+
<i class="fas fa-hand-holding-usd mr-1"></i> "Bet"
|
161 |
+
</button>
|
162 |
+
<button class="sound-btn bg-pink-500 hover:bg-pink-600 text-white p-3 rounded-lg" data-sound="savage">
|
163 |
+
<i class="fas fa-fire mr-1"></i> "Savage"
|
164 |
+
</button>
|
165 |
+
</div>
|
166 |
+
</div>
|
167 |
+
</div>
|
168 |
+
|
169 |
+
<!-- Footer -->
|
170 |
+
<div class="bg-gray-100 p-3 text-center text-sm text-gray-600">
|
171 |
+
<p>This translator is 100% accurate (not really) | Not affiliated with any bros or queers | Made with β€οΈ and β¨</p>
|
172 |
+
</div>
|
173 |
+
</div>
|
174 |
+
|
175 |
+
<!-- Floating emojis that appear on translate -->
|
176 |
+
<div id="emoji-party" class="fixed inset-0 pointer-events-none z-10 overflow-hidden"></div>
|
177 |
+
|
178 |
+
<audio id="sound-bruh" src="https://www.soundjay.com/misc/sounds/bruh-01.mp3"></audio>
|
179 |
+
<audio id="sound-swole" src="https://www.soundjay.com/misc/sounds/muscle-grunt-01.mp3"></audio>
|
180 |
+
<audio id="sound-chug" src="https://www.soundjay.com/misc/sounds/bubbles-01.mp3"></audio>
|
181 |
+
<audio id="sound-no-homo" src="https://www.soundjay.com/misc/sounds/snap-fingers-01.mp3"></audio>
|
182 |
+
<audio id="sound-bet" src="https://www.soundjay.com/misc/sounds/cash-register-01.mp3"></audio>
|
183 |
+
<audio id="sound-savage" src="https://www.soundjay.com/misc/sounds/fire-01.mp3"></audio>
|
184 |
+
<audio id="sound-translate" src="https://www.soundjay.com/misc/sounds/magic-chime-01.mp3"></audio>
|
185 |
+
<audio id="sound-error" src="https://www.soundjay.com/misc/sounds/fart-01.mp3"></audio>
|
186 |
+
|
187 |
+
<script>
|
188 |
+
document.addEventListener('DOMContentLoaded', function() {
|
189 |
+
// DOM elements
|
190 |
+
const gayInput = document.getElementById('gay-input');
|
191 |
+
const broOutput = document.getElementById('bro-output');
|
192 |
+
const translateBtn = document.getElementById('translate-btn');
|
193 |
+
const clearBtn = document.getElementById('clear-btn');
|
194 |
+
const copyBtn = document.getElementById('copy-btn');
|
195 |
+
const speakBtn = document.getElementById('speak-btn');
|
196 |
+
const soundBtns = document.querySelectorAll('.sound-btn');
|
197 |
+
const emojiParty = document.getElementById('emoji-party');
|
198 |
+
|
199 |
+
// Translation dictionary (very scientific)
|
200 |
+
const gayToBroDictionary = {
|
201 |
+
"yaaas": "hell yeah",
|
202 |
+
"queen": "bro",
|
203 |
+
"slay": "kill it",
|
204 |
+
"werk": "get after it",
|
205 |
+
"fierce": "jacked",
|
206 |
+
"hunty": "dude",
|
207 |
+
"sis": "bro",
|
208 |
+
"mother": "daddy",
|
209 |
+
"serving": "bringing",
|
210 |
+
"lewk": "fit",
|
211 |
+
"snatched": "ripped",
|
212 |
+
"gagging": "pumped",
|
213 |
+
"throwing shade": "talking trash",
|
214 |
+
"reading": "roasting",
|
215 |
+
"the house down": "out of the park",
|
216 |
+
"spill the tea": "what's the gossip",
|
217 |
+
"no tea no shade": "no offense",
|
218 |
+
"living": "winning",
|
219 |
+
"dead": "wrecked",
|
220 |
+
"extra": "tryhard",
|
221 |
+
"blessed": "lucky",
|
222 |
+
"mawma": "bro",
|
223 |
+
"purse first": "dip first",
|
224 |
+
"tongue pop": "burp",
|
225 |
+
"henny": "brewski",
|
226 |
+
"kiki": "bro time",
|
227 |
+
"trade": "bro",
|
228 |
+
"butch": "alpha",
|
229 |
+
"femme": "soft",
|
230 |
+
"fishy": "bro",
|
231 |
+
"tuck": "flex",
|
232 |
+
"pad": "pump",
|
233 |
+
"beat": "shredded",
|
234 |
+
"boots": "facts",
|
235 |
+
"the library is open": "truth bomb incoming",
|
236 |
+
"shante": "later",
|
237 |
+
"you stay": "peace out"
|
238 |
+
};
|
239 |
+
|
240 |
+
// Sound effects
|
241 |
+
const sounds = {
|
242 |
+
bruh: document.getElementById('sound-bruh'),
|
243 |
+
swole: document.getElementById('sound-swole'),
|
244 |
+
chug: document.getElementById('sound-chug'),
|
245 |
+
"no-homo": document.getElementById('sound-no-homo'),
|
246 |
+
bet: document.getElementById('sound-bet'),
|
247 |
+
savage: document.getElementById('sound-savage'),
|
248 |
+
translate: document.getElementById('sound-translate'),
|
249 |
+
error: document.getElementById('sound-error')
|
250 |
+
};
|
251 |
+
|
252 |
+
// Event listeners
|
253 |
+
translateBtn.addEventListener('click', translateToBro);
|
254 |
+
clearBtn.addEventListener('click', clearInput);
|
255 |
+
copyBtn.addEventListener('click', copyToClipboard);
|
256 |
+
speakBtn.addEventListener('click', speakTranslation);
|
257 |
+
|
258 |
+
// Soundboard buttons
|
259 |
+
soundBtns.forEach(btn => {
|
260 |
+
btn.addEventListener('click', function() {
|
261 |
+
const sound = this.getAttribute('data-sound');
|
262 |
+
playSound(sound);
|
263 |
+
createEmoji(this.textContent.includes("Bruh") ? "πͺ" :
|
264 |
+
this.textContent.includes("Gains") ? "ποΈ" :
|
265 |
+
this.textContent.includes("Chug") ? "πΊ" :
|
266 |
+
this.textContent.includes("homo") ? "β" :
|
267 |
+
this.textContent.includes("Bet") ? "π°" : "π₯");
|
268 |
+
});
|
269 |
+
});
|
270 |
+
|
271 |
+
// Translation function
|
272 |
+
function translateToBro() {
|
273 |
+
const inputText = gayInput.value.trim().toLowerCase();
|
274 |
+
|
275 |
+
if (!inputText) {
|
276 |
+
broOutput.innerHTML = '<div class="text-red-500">Honey, you need to enter something first!</div>';
|
277 |
+
playSound('error');
|
278 |
+
document.body.classList.add('shake');
|
279 |
+
setTimeout(() => document.body.classList.remove('shake'), 500);
|
280 |
+
return;
|
281 |
+
}
|
282 |
+
|
283 |
+
playSound('translate');
|
284 |
+
|
285 |
+
// Create emoji party
|
286 |
+
createEmojiParty();
|
287 |
+
|
288 |
+
// Simple word replacement
|
289 |
+
let translatedText = inputText;
|
290 |
+
for (const [gay, bro] of Object.entries(gayToBroDictionary)) {
|
291 |
+
const regex = new RegExp(gay, 'gi');
|
292 |
+
translatedText = translatedText.replace(regex, bro);
|
293 |
+
}
|
294 |
+
|
295 |
+
// Capitalize first letter
|
296 |
+
translatedText = translatedText.charAt(0).toUpperCase() + translatedText.slice(1);
|
297 |
+
|
298 |
+
// Add bro punctuation
|
299 |
+
if (!translatedText.endsWith('!') && !translatedText.endsWith('.')) {
|
300 |
+
translatedText += Math.random() > 0.5 ? ' bro!' : ', dude.';
|
301 |
+
}
|
302 |
+
|
303 |
+
// Display with typing animation
|
304 |
+
broOutput.innerHTML = '';
|
305 |
+
typeWriter(translatedText, broOutput);
|
306 |
+
}
|
307 |
+
|
308 |
+
// Typing animation
|
309 |
+
function typeWriter(text, element, i = 0) {
|
310 |
+
if (i < text.length) {
|
311 |
+
element.innerHTML = text.substring(0, i+1) + '<span class="blinking-cursor">|</span>';
|
312 |
+
setTimeout(() => typeWriter(text, element, i+1), 50);
|
313 |
+
} else {
|
314 |
+
element.innerHTML = text;
|
315 |
+
}
|
316 |
+
}
|
317 |
+
|
318 |
+
// Clear input
|
319 |
+
function clearInput() {
|
320 |
+
gayInput.value = '';
|
321 |
+
broOutput.innerHTML = '<div class="text-gray-400 italic">Translation will appear here...</div>';
|
322 |
+
}
|
323 |
+
|
324 |
+
// Copy to clipboard
|
325 |
+
function copyToClipboard() {
|
326 |
+
const text = broOutput.textContent;
|
327 |
+
if (text.includes("Translation will appear")) {
|
328 |
+
playSound('error');
|
329 |
+
return;
|
330 |
+
}
|
331 |
+
|
332 |
+
navigator.clipboard.writeText(text).then(() => {
|
333 |
+
const originalText = copyBtn.innerHTML;
|
334 |
+
copyBtn.innerHTML = '<i class="fas fa-check mr-1"></i> Copied!';
|
335 |
+
setTimeout(() => {
|
336 |
+
copyBtn.innerHTML = originalText;
|
337 |
+
}, 2000);
|
338 |
+
});
|
339 |
+
}
|
340 |
+
|
341 |
+
// Text-to-speech
|
342 |
+
function speakTranslation() {
|
343 |
+
const text = broOutput.textContent;
|
344 |
+
if (text.includes("Translation will appear")) {
|
345 |
+
playSound('error');
|
346 |
+
return;
|
347 |
+
}
|
348 |
+
|
349 |
+
const utterance = new SpeechSynthesisUtterance(text);
|
350 |
+
utterance.rate = 0.9;
|
351 |
+
utterance.pitch = 0.8;
|
352 |
+
utterance.volume = 1;
|
353 |
+
|
354 |
+
// Try to get a "bro" voice if available
|
355 |
+
const voices = window.speechSynthesis.getVoices();
|
356 |
+
const broVoice = voices.find(v => v.name.includes('Male')) || voices[0];
|
357 |
+
if (broVoice) utterance.voice = broVoice;
|
358 |
+
|
359 |
+
window.speechSynthesis.speak(utterance);
|
360 |
+
}
|
361 |
+
|
362 |
+
// Play sound effect
|
363 |
+
function playSound(sound) {
|
364 |
+
if (sounds[sound]) {
|
365 |
+
sounds[sound].currentTime = 0;
|
366 |
+
sounds[sound].play();
|
367 |
+
}
|
368 |
+
}
|
369 |
+
|
370 |
+
// Create emoji party
|
371 |
+
function createEmojiParty() {
|
372 |
+
// Clear previous emojis
|
373 |
+
emojiParty.innerHTML = '';
|
374 |
+
|
375 |
+
const emojis = ['π', 'β¨', 'π', 'π
', 'πͺ', 'πΊ', 'π₯', 'π°', 'ποΈ'];
|
376 |
+
|
377 |
+
// Create 20 random emojis
|
378 |
+
for (let i = 0; i < 20; i++) {
|
379 |
+
const emoji = document.createElement('div');
|
380 |
+
emoji.className = 'absolute text-3xl';
|
381 |
+
emoji.style.left = `${Math.random() * 100}%`;
|
382 |
+
emoji.style.top = `${Math.random() * 100}%`;
|
383 |
+
emoji.style.transform = `scale(${Math.random() * 2 + 1}) rotate(${Math.random() * 360}deg)`;
|
384 |
+
emoji.style.opacity = 0;
|
385 |
+
emoji.textContent = emojis[Math.floor(Math.random() * emojis.length)];
|
386 |
+
|
387 |
+
// Animate in
|
388 |
+
emoji.style.transition = 'all 1s ease-out';
|
389 |
+
setTimeout(() => {
|
390 |
+
emoji.style.opacity = 1;
|
391 |
+
emoji.style.top = `${Math.random() * 100}%`;
|
392 |
+
emoji.style.left = `${Math.random() * 100}%`;
|
393 |
+
}, 10);
|
394 |
+
|
395 |
+
// Animate out
|
396 |
+
setTimeout(() => {
|
397 |
+
emoji.style.opacity = 0;
|
398 |
+
setTimeout(() => {
|
399 |
+
emoji.remove();
|
400 |
+
}, 1000);
|
401 |
+
}, 2000);
|
402 |
+
|
403 |
+
emojiParty.appendChild(emoji);
|
404 |
+
}
|
405 |
+
}
|
406 |
+
|
407 |
+
// Create single emoji
|
408 |
+
function createEmoji(emojiChar) {
|
409 |
+
const emoji = document.createElement('div');
|
410 |
+
emoji.className = 'absolute text-3xl';
|
411 |
+
emoji.style.left = `${Math.random() * 100}%`;
|
412 |
+
emoji.style.top = `${Math.random() * 100}%`;
|
413 |
+
emoji.style.transform = `scale(${Math.random() * 2 + 1})`;
|
414 |
+
emoji.textContent = emojiChar;
|
415 |
+
|
416 |
+
// Animate
|
417 |
+
emoji.style.transition = 'all 1s ease-out';
|
418 |
+
setTimeout(() => {
|
419 |
+
emoji.style.top = `${parseFloat(emoji.style.top) - 20}%`;
|
420 |
+
emoji.style.opacity = 0;
|
421 |
+
}, 10);
|
422 |
+
|
423 |
+
setTimeout(() => {
|
424 |
+
emoji.remove();
|
425 |
+
}, 1000);
|
426 |
+
|
427 |
+
emojiParty.appendChild(emoji);
|
428 |
+
}
|
429 |
+
});
|
430 |
+
</script>
|
431 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - <a href="https://enzostvs-deepsite.hf.space?remix=stinkyyy/queervernacular" style="color: #fff;text-decoration: underline;" target="_blank" >𧬠Remix</a></p></body>
|
432 |
+
</html>
|