आप कितने सुरक्षित है?
$('#toggle').click(() => $('#square').toggle()); var divs=document.getElementsByClassName('divs'); var emoji=document.getElementById('emoji'); var scoreShower=document.getElementById('scoreShower'); var scoreView=document.getElementById('score'); var current=document.getElementById('current'); var currentTotal=document.getElementById('currentTotal'); var selectVal=document.getElementById("option1").value; var selectVa2=document.getElementById("option2").value; var quest=document.getElementById('quest'); var option1=document.getElementById('option1'); var option2=document.getElementById('option2'); var button1=document.getElementById('btn1'); var section1=document.getElementById('start'); var section2=document.getElementById('questions'); var myName = ""; button1.onclick=function(){ var input = document.getElementById("userInput").value; nameshow.innerHTML=input; nameshow1.innerHTML=input; section1.style.display="none"; section2.style.display="block"; myName = input; renderQuestion(); } let questions=[ { question:"
क्या आपको बुखार है?", choiceA:" ", choiceB:" ", correct:"NO", }, { question:"
क्या आपको खासी हो रही है?", choiceA:" ", choiceB:" ", correct:"NO", }, { question:"
क्या आप बिमार लोगो के साथ निकट संपर्क रखते है?", choiceA:" ", choiceB:" ", correct:"NO", }, { question:"
क्या आप लॉकडाउन अवधि के दौरान यात्रा कर रहे हैं?", choiceA:" ", choiceB:" ", correct:"NO", }, { question:"
क्या आप अक्सर अपना चेहरा छूते हैं?", choiceA:"", choiceB:"", correct:"NO", }, { question:"
क्या आप अक्सर अपने हाथ धोते हैं? यदि नहीं, तो हाँ का चयन करें।", choiceA:" ", choiceB:" ", correct:"NO", }, { question:"
फेस मास्क का उपयोग नहीं? यदि नहीं, तो हाँ चुनें?", choiceA:" ", choiceB:" ", correct:"NO", }, { question:"
क्या आपको सिरदर्द महसूस हो रहा है?", choiceA:" ", choiceB:" ", correct:"NO", } ] var counts=1; var totalScore=0; var runningQuestion=0; function renderQuestion(){ let q=questions[runningQuestion]; quest.innerHTML=q.question; option1.innerHTML=q.choiceA; option2.innerHTML=q.choiceB; } var buttons=document.getElementsByClassName('options'); for(i=0;i