Difference between revisions of "Team:Purdue/Quiz"

Line 11: Line 11:
 
<button id="yes" onclick="counter=yesAnswer(counter)"> Yes </button>
 
<button id="yes" onclick="counter=yesAnswer(counter)"> Yes </button>
 
<button id="no"> No </button>
 
<button id="no"> No </button>
<p id="Commentary"> Placeholder</p>
+
<h2 id="Commentary"> Placeholder</h2>
 
+
<div class="clear"></div>
 
+
<div class="clear"></div>
 +
<div class="clear"></div>
 +
<p id="Description"></p>
 +
<button style="visibility:hidden;" onclick="nextQuestion(counter)" id="button">Next Question</button>
 
<script>
 
<script>
 
var counter=0;
 
var counter=0;
Line 20: Line 23:
 
   if(cnt==0){
 
   if(cnt==0){
 
   document.getElementById("Commentary").innerHTML="Correct!";
 
   document.getElementById("Commentary").innerHTML="Correct!";
 +
  document.getElementById("Description").innerHTML="Up to god knows how many men get diagnosed with testicular yeast infections per year.";
 +
  document.getElementById("button").style.visibility = "visible";
 +
 
}
 
}
 
else{
 
else{
 
document.getElementById("Commentary").innerHTML="Oops!";
 
document.getElementById("Commentary").innerHTML="Oops!";
 
}
 
}
return cnt+1;
+
return cnt;
 
}
 
}
  
 +
function noAnswer(cnt){
  
 +
 +
 +
}
  
 
</script>
 
</script>

Revision as of 13:25, 25 May 2018


Question 1

Men can also get yeast infections?

Placeholder