[mirotalksfu] - fix typo

هذا الالتزام موجود في:
Miroslav Pejic
2024-05-04 19:22:57 +02:00
الأصل afe88a3a5e
التزام 3668ff66ec

عرض الملف

@@ -138,7 +138,6 @@ let noun = nouns[Math.floor(Math.random() * nouns.length)];
let num = getRandomNumber(5); let num = getRandomNumber(5);
noun = noun.charAt(0).toUpperCase() + noun.substring(1); noun = noun.charAt(0).toUpperCase() + noun.substring(1);
adjective = adjective.charAt(0).toUpperCase() + adjective.substring(1); adjective = adjective.charAt(0).toUpperCase() + adjective.substring(1);
document.getElementById('roomName').value = '';
// #################################################################### // ####################################################################
// TYPING EFFECT // TYPING EFFECT
@@ -150,13 +149,17 @@ let speed = 100;
function typeWriter() { function typeWriter() {
if (i < txt.length) { if (i < txt.length) {
document.getElementById('roomName').value += txt.charAt(i); roomName.value += txt.charAt(i);
i++; i++;
setTimeout(typeWriter, speed); setTimeout(typeWriter, speed);
} }
} }
typeWriter(); const roomName = document.getElementById('roomName');
if (roomName) {
roomName.value = '';
typeWriter();
}
// #################################################################### // ####################################################################
// LANDING | NEW ROOM // LANDING | NEW ROOM
@@ -175,17 +178,23 @@ const genRoomButton = document.getElementById('genRoomButton');
const joinRoomButton = document.getElementById('joinRoomButton'); const joinRoomButton = document.getElementById('joinRoomButton');
const adultCnt = document.getElementById('adultCnt'); const adultCnt = document.getElementById('adultCnt');
genRoomButton.onclick = (e) => { if (genRoomButton) {
genRoom(); genRoomButton.onclick = () => {
}; genRoom();
};
}
joinRoomButton.onclick = (e) => { if (joinRoomButton) {
joinRoom(); joinRoomButton.onclick = () => {
}; joinRoom();
};
}
adultCnt.onclick = (e) => { if (adultCnt) {
adultContent(); adultCnt.onclick = () => {
}; adultContent();
};
}
document.getElementById('roomName').onkeyup = (e) => { document.getElementById('roomName').onkeyup = (e) => {
if (e.keyCode === 13) { if (e.keyCode === 13) {