Jumat, 03 Juli 2026

Kuis Mufrodat Sehari-hari

Memuat Kuis...

๐Ÿ•Œ

KUIS
KOSAKATA
BAHASA ARAB

Tebak kosakata Bahasa Arab dari emoji.

✅ 10 soal acak
✅ Nilai maksimal 100

/* ========================================================== BAGIAN 2 : CSS MODERN BLOGGER ========================================================== */ /* ========================================================== BAGIAN 3A : BANK SOAL (1-50) ========================================================== */ const vocabBank = [ /* Hewan */ {word:"ูƒَู„ْุจٌ",emoji:"๐Ÿถ"}, {word:"ู‚ِุทَّุฉٌ",emoji:"๐Ÿฑ"}, {word:"ุทَุงุฆِุฑٌ",emoji:"๐Ÿฆ"}, {word:"ุณَู…َูƒَุฉٌ",emoji:"๐ŸŸ"}, {word:"ู†َู…ِุฑٌ",emoji:"๐Ÿฏ"}, {word:"ุฃَุณَุฏٌ",emoji:"๐Ÿฆ"}, {word:"ูِูŠู„ٌ",emoji:"๐Ÿ˜"}, {word:"ุญِุตَุงู†ٌ",emoji:"๐Ÿด"}, {word:"ุจَู‚َุฑَุฉٌ",emoji:"๐Ÿฎ"}, {word:"ุฎَุฑُูˆูٌ",emoji:"๐Ÿ‘"}, {word:"ุฏَุฌَุงุฌَุฉٌ",emoji:"๐Ÿ”"}, {word:"ุจَุทَّุฉٌ",emoji:"๐Ÿฆ†"}, {word:"ุซُุนْุจَุงู†ٌ",emoji:"๐Ÿ"}, {word:"ุถِูْุฏَุนٌ",emoji:"๐Ÿธ"}, {word:"ู‚ِุฑْุฏٌ",emoji:"๐Ÿต"}, {word:"ุจَุงู†ْุฏَุง",emoji:"๐Ÿผ"}, {word:"ุฏُุจٌّ",emoji:"๐Ÿป"}, {word:"ุฃَุฑْู†َุจٌ",emoji:"๐Ÿฐ"}, {word:"ูَุฃْุฑٌ",emoji:"๐Ÿญ"}, {word:"ุฏُู„ْูِูŠู†ٌ",emoji:"๐Ÿฌ"}, {word:"ุญُูˆุชٌ",emoji:"๐Ÿณ"}, {word:"ู‚ِุฑْุดٌ",emoji:"๐Ÿฆˆ"}, {word:"ุชِู…ْุณَุงุญٌ",emoji:"๐ŸŠ"}, {word:"ุณُู„َุญْูَุงุฉٌ",emoji:"๐Ÿข"}, {word:"ุนَู†ْูƒَุจُูˆุชٌ",emoji:"๐Ÿ•ท️"}, {word:"ู†َู…ْู„َุฉٌ",emoji:"๐Ÿœ"}, {word:"ู†َุญْู„َุฉٌ",emoji:"๐Ÿ"}, {word:"ูَุฑَุงุดَุฉٌ",emoji:"๐Ÿฆ‹"}, {word:"ุญَู„َุฒُูˆู†ٌ",emoji:"๐ŸŒ"}, {word:"ุฌَู…َู„ٌ",emoji:"๐Ÿซ"}, /* Alam */ {word:"ุดَู…ْุณٌ",emoji:"☀️"}, {word:"ู‚َู…َุฑٌ",emoji:"๐ŸŒ™"}, {word:"ู†َุฌْู…ٌ",emoji:"⭐"}, {word:"ุณَุญَุงุจَุฉٌ",emoji:"☁️"}, {word:"ู…َุทَุฑٌ",emoji:"๐ŸŒง️"}, {word:"ุจَุฑْู‚ٌ",emoji:"⚡"}, {word:"ุซَู„ْุฌٌ",emoji:"❄️"}, {word:"ู†َุงุฑٌ",emoji:"๐Ÿ”ฅ"}, {word:"ู…َุงุกٌ",emoji:"๐Ÿ’ง"}, {word:"ุฌَุจَู„ٌ",emoji:"⛰️"}, {word:"ุดَุฌَุฑَุฉٌ",emoji:"๐ŸŒณ"}, {word:"ุฒَู‡ْุฑَุฉٌ",emoji:"๐ŸŒธ"}, {word:"ูˆَุฑَู‚َุฉٌ",emoji:"๐Ÿƒ"}, {word:"ุฃَุฑْุถٌ",emoji:"๐ŸŒ"}, {word:"ุจَุญْุฑٌ",emoji:"๐ŸŒŠ"}, {word:"ุดَุงุทِุฆٌ",emoji:"๐Ÿ–️"}, {word:"ุจَูŠْุชٌ",emoji:"๐Ÿ "}, {word:"ู…َุฏْุฑَุณَุฉٌ",emoji:"๐Ÿซ"}, {word:"ู…ُุณْุชَุดْูَู‰",emoji:"๐Ÿฅ"}, {word:"ู…َุณْุฌِุฏٌ",emoji:"๐Ÿ•Œ"} ]; , /* ========================================================== MAKANAN & MINUMAN (51–80) ========================================================== */ {word:"ุชُูَّุงุญَุฉٌ",emoji:"๐ŸŽ"}, {word:"ู…َูˆْุฒٌ",emoji:"๐ŸŒ"}, {word:"ุจُุฑْุชُู‚َุงู„ٌ",emoji:"๐ŸŠ"}, {word:"ุจِุทِّูŠุฎٌ",emoji:"๐Ÿ‰"}, {word:"ุนِู†َุจٌ",emoji:"๐Ÿ‡"}, {word:"ูَุฑَุงูˆِู„َุฉٌ",emoji:"๐Ÿ“"}, {word:"ูƒَุฑَุฒٌ",emoji:"๐Ÿ’"}, {word:"ุฃَู†َุงู†َุงุณٌ",emoji:"๐Ÿ"}, {word:"ู…َุงู†ْุฌُูˆ",emoji:"๐Ÿฅญ"}, {word:"ุฌَูˆْุฒُ ุงู„ْู‡ِู†ْุฏِ",emoji:"๐Ÿฅฅ"}, {word:"ุทَู…َุงุทِู…ٌ",emoji:"๐Ÿ…"}, {word:"ุจَุงุฐِู†ْุฌَุงู†ٌ",emoji:"๐Ÿ†"}, {word:"ุจَุทَุงุทِุณٌ",emoji:"๐Ÿฅ”"}, {word:"ุฌَุฒَุฑٌ",emoji:"๐Ÿฅ•"}, {word:"ุฐُุฑَุฉٌ",emoji:"๐ŸŒฝ"}, {word:"ุฎُุจْุฒٌ",emoji:"๐Ÿž"}, {word:"ุฌُุจْู†ٌ",emoji:"๐Ÿง€"}, {word:"ุจَูŠْุถَุฉٌ",emoji:"๐Ÿฅš"}, {word:"ู„َุญْู…ٌ",emoji:"๐Ÿฅฉ"}, {word:"ุฏَุฌَุงุฌٌ",emoji:"๐Ÿ—"}, {word:"ุฑُุฒٌّ",emoji:"๐Ÿš"}, {word:"ู‡َู…ْุจُุฑْุบَุฑ",emoji:"๐Ÿ”"}, {word:"ู…ُุซَู„َّุฌَุงุชٌ",emoji:"๐Ÿจ"}, {word:"ูƒَุนْูƒَุฉٌ",emoji:"๐Ÿฐ"}, {word:"ุดُูˆูƒُูˆู„َุงุชَุฉٌ",emoji:"๐Ÿซ"}, {word:"ุญَู„ْูˆَู‰",emoji:"๐Ÿฌ"}, {word:"ู‚َู‡ْูˆَุฉٌ",emoji:"☕"}, {word:"ุดَุงูŠٌ",emoji:"๐Ÿต"}, {word:"ุญَู„ِูŠุจٌ",emoji:"๐Ÿฅ›"}, {word:"ุนَุตِูŠุฑٌ",emoji:"๐Ÿงƒ"}, /* ========================================================== BENDA & TRANSPORTASI (81–100) ========================================================== */ {word:"ุณَูŠَّุงุฑَุฉٌ",emoji:"๐Ÿš—"}, {word:"ุญَุงูِู„َุฉٌ",emoji:"๐ŸšŒ"}, {word:"ู‚ِุทَุงุฑٌ",emoji:"๐Ÿš‚"}, {word:"ุทَุงุฆِุฑَุฉٌ",emoji:"✈️"}, {word:"ุณَูِูŠู†َุฉٌ",emoji:"๐Ÿšข"}, {word:"ุฏَุฑَّุงุฌَุฉٌ",emoji:"๐Ÿšฒ"}, {word:"ุฏَุฑَّุงุฌَุฉٌ ู†َุงุฑِูŠَّุฉٌ",emoji:"๐Ÿ️"}, {word:"ุณَุงุนَุฉٌ",emoji:"⌚"}, {word:"ู†َุธَّุงุฑَุฉٌ",emoji:"๐Ÿ‘“"}, {word:"ุญِุฐَุงุกٌ",emoji:"๐Ÿ‘Ÿ"}, {word:"ู‚َู…ِูŠุตٌ",emoji:"๐Ÿ‘•"}, {word:"ุจِู†ْุทَุงู„ٌ",emoji:"๐Ÿ‘–"}, {word:"ู‚ُุจَّุนَุฉٌ",emoji:"๐Ÿงข"}, {word:"ุญَู‚ِูŠุจَุฉٌ",emoji:"๐ŸŽ’"}, {word:"ู…ِุธَู„َّุฉٌ",emoji:"☂️"}, {word:"ูƒِุชَุงุจٌ",emoji:"๐Ÿ“–"}, {word:"ู‚َู„َู…ٌ",emoji:"✏️"}, {word:"ุญَุงุณُูˆุจٌ",emoji:"๐Ÿ’ป"}, {word:"ู‡َุงุชِูٌ",emoji:"๐Ÿ“ฑ"}, {word:"ุณَุฑِูŠุฑٌ",emoji:"๐Ÿ›️"} ]; /* ========================================================== BAGIAN 4A MESIN KUIS ========================================================== */ // ---------------------------- // Variabel Global // ---------------------------- let currentQuestions = []; let currentQuestion = 0; let score = 0; let isAnswered = false; // ---------------------------- // Ambil Elemen HTML // ---------------------------- const loadingScreen = document.getElementById("quizLoading"); const startScreen = document.getElementById("startScreen"); const quizScreen = document.getElementById("quizScreen"); const resultScreen = document.getElementById("resultScreen"); const startBtn = document.getElementById("startBtn"); const playAgainBtn = document.getElementById("playAgainBtn"); const emojiDisplay = document.getElementById("emojiDisplay"); const optionContainer = document.getElementById("optionContainer"); const questionNumber = document.getElementById("questionNumber"); const currentScore = document.getElementById("currentScore"); const progressFill = document.getElementById("progressFill"); const finalScore = document.getElementById("finalScore"); const resultMessage = document.getElementById("resultMessage"); const resultIcon = document.getElementById("resultIcon"); // ---------------------------- // Loading // ---------------------------- window.addEventListener("load", function () { setTimeout(function () { loadingScreen.style.display = "none"; startScreen.style.display = "block"; },600); }); // ---------------------------- // Acak Array (Fisher-Yates) // ---------------------------- function shuffle(array){ let currentIndex = array.length; while(currentIndex !== 0){ let randomIndex = Math.floor(Math.random()*currentIndex); currentIndex--; [ array[currentIndex], array[randomIndex] ] = [ array[randomIndex], array[currentIndex] ]; } return array; } // ---------------------------- // Mulai Permainan // ---------------------------- function startGame(){ score = 0; currentQuestion = 0; isAnswered = false; currentScore.textContent = "0"; progressFill.style.width = "10%"; resultScreen.style.display = "none"; startScreen.style.display = "none"; quizScreen.style.display = "block"; // Mengacak seluruh bank soal const bank = shuffle([...vocabBank]); // Ambil 10 soal pertama currentQuestions = bank.slice(0,10); // Muat soal pertama loadQuestion(); } // ---------------------------- // Event Listener // ---------------------------- startBtn.addEventListener("click",startGame); playAgainBtn.addEventListener("click",startGame); /* ========================================================== BAGIAN 4B LOAD QUESTION ========================================================== */ function loadQuestion(){ isAnswered = false; // Bersihkan pilihan lama optionContainer.innerHTML = ""; // Ambil soal aktif const question = currentQuestions[currentQuestion]; // Nomor soal questionNumber.textContent = currentQuestion + 1; // Progress bar progressFill.style.width = ((currentQuestion + 1) / 10 * 100) + "%"; // Emoji emojiDisplay.textContent = question.emoji; // Animasi emoji emojiDisplay.classList.remove("pop"); void emojiDisplay.offsetWidth; emojiDisplay.classList.add("pop"); // ==================================== // Membuat Pilihan Jawaban // ==================================== let options = []; // Jawaban benar options.push(question.word); // Ambil jawaban salah const wrongAnswers = shuffle( vocabBank.filter(function(item){ return item.word !== question.word; }) ); options.push(wrongAnswers[0].word); options.push(wrongAnswers[1].word); options.push(wrongAnswers[2].word); // Acak urutan pilihan options = shuffle(options); // ==================================== // Tampilkan Tombol // ==================================== options.forEach(function(answer){ const button = document.createElement("button"); button.className = "optionBtn"; button.textContent = answer; button.dataset.answer = answer; button.addEventListener( "click", function(){ checkAnswer( answer, question.word, button ); } ); optionContainer.appendChild(button); }); } /* ========================================================== BAGIAN 4C-1 CHECK ANSWER ========================================================== */ function checkAnswer(selectedAnswer, correctAnswer, clickedButton){ // Mencegah klik dua kali if(isAnswered) return; isAnswered = true; const allButtons = document.querySelectorAll(".optionBtn"); // ---------------------------- // Jawaban Benar // ---------------------------- if(selectedAnswer === correctAnswer){ score += 10; currentScore.textContent = score; clickedButton.classList.add("correct"); if(typeof playCorrectSound === "function"){ playCorrectSound(); } } // ---------------------------- // Jawaban Salah // ---------------------------- else{ clickedButton.classList.add("wrong"); clickedButton.classList.add("shake"); if(typeof playWrongSound === "function"){ playWrongSound(); } // Tandai jawaban benar allButtons.forEach(function(btn){ if(btn.textContent === correctAnswer){ btn.classList.add("correct"); } }); } // ---------------------------- // Nonaktifkan semua tombol // ---------------------------- allButtons.forEach(function(btn){ btn.disabled = true; btn.style.pointerEvents = "none"; }); // ---------------------------- // Lanjut ke soal berikutnya // ---------------------------- setTimeout(function(){ currentQuestion++; if(currentQuestion < 10){ loadQuestion(); }else{ showResult(); } },1200); } /* ========================================================== BAGIAN 4C-2 HASIL AKHIR ========================================================== */ function showResult(){ // Sembunyikan layar kuis quizScreen.style.display = "none"; // Tampilkan hasil resultScreen.style.display = "block"; // Nilai akhir finalScore.textContent = score; // Reset icon resultIcon.classList.remove("pop"); // ----------------------------- // Pesan sesuai nilai // ----------------------------- if(score === 100){ resultIcon.textContent = "๐Ÿ†"; resultMessage.innerHTML = "Luar Biasa!
Kamu menjawab semua soal dengan benar."; if(typeof playHooraySound === "function"){ playHooraySound(); } } else if(score >= 80){ resultIcon.textContent = "๐Ÿฅ‡"; resultMessage.innerHTML = "Hebat!
Sedikit lagi mendapatkan nilai sempurna."; if(typeof playCorrectSound === "function"){ playCorrectSound(); } } else if(score >= 60){ resultIcon.textContent = "๐Ÿ‘"; resultMessage.innerHTML = "Bagus!
Terus berlatih agar semakin mahir."; if(typeof playCorrectSound === "function"){ playCorrectSound(); } } else if(score >= 40){ resultIcon.textContent = "๐Ÿ™‚"; resultMessage.innerHTML = "Cukup Baik
Masih perlu latihan lagi."; } else{ resultIcon.textContent = "๐Ÿ’ช"; resultMessage.innerHTML = "Jangan Menyerah!
Coba main lagi agar nilainya lebih tinggi."; } // Animasi icon setTimeout(function(){ resultIcon.classList.add("pop"); },100); }

Tidak ada komentar:

Posting Komentar