Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- let quizData = [
- {question:"What is the exe for the Calculator on Windows 93?",answer:"calc",img:"apps/calc.png"},
- {question:"Does Blockly code well?",answer:["no","n","false","!console.log(){'yes'}"],img:"apps/codemirror.png"},
- {question:"Who was the first Myspace user?",answer:"tom",img:"apps/catexplorer.png"},
- {question:"What is the phone number for the merchant in Robby?",answer:"66602",img:"apps/robby.png"},
- {question:"What app is most known for being glitchy?",answer:["solitude","solitare"]},
- {question:"What cant Doctor Marburg fix? hydra, IE6, crazy, or dereg32",answer:["crazy","crazy error","crazy.exe"],img:"apps/doctor.gif"},
- {question:"Name one currently banned word on Trollbox.",answer:["sonic","discord","roblox","fornite","covid-19","corona","futur1993"],img:"apps/chat.gif"},
- {question:"What file has a special effect when you delete it?",answer:["system32.dll","system32"]}
- ];
- let index = 0;
- function quiz(){
- if(index >= quizData.length){
- $alert.info("You did the entire quiz!");
- return;
- };
- let q = quizData[index];
- $prompt({
- msg:q.question,
- img:`/c/sys/skins/w93/${q.img||"question.png"}`
- },"",function(ok,text){
- if(!ok) return;
- let answer = q.answer;
- text = text.toLowerCase().trim();
- if(!answer instanceof Array) answer = [answer];
- if(answer.includes(text)){
- index++;
- quiz();
- }else{
- $confirm("Incorrect. Retry?",function(ok){
- if(ok) quiz();
- });
- };
- });
- };
- quiz();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement