Line 7: | Line 7: | ||
− | <h1> Question 1 </h1> | + | <h1 id = "questionNumber> Question 1 </h1> |
− | <p> Men can also get yeast infections? </p> | + | <p id="question"> Men can also get yeast infections? </p> |
<button id="yes" onclick="yesAnswer(counter)"> Yes </button> | <button id="yes" onclick="yesAnswer(counter)"> Yes </button> | ||
<button id="no" onclick="noAnswer(counter)"> No </button> | <button id="no" onclick="noAnswer(counter)"> No </button> | ||
Line 48: | Line 48: | ||
} | } | ||
+ | function nextQuestion(cnt){ | ||
+ | if(cnt==0){ | ||
+ | document.getElementById("questionNumber").innerHTML= "Question 2"; | ||
+ | document.getElementById("question").innerHTML= "Are Traps Gay?"; | ||
+ | document.getElementById("button").style.visibility="hidden"; | ||
+ | document.getElementById("Commentary").innerHTML=""; | ||
+ | document.getElementById("Description").innerHTML=""; | ||
+ | } | ||
+ | |||
+ | else{} | ||
+ | |||
+ | |||
+ | return cnt+1; | ||
+ | } | ||
Revision as of 13:46, 25 May 2018