Difference between revisions of "Team:Purdue/Quiz"

Line 9: Line 9:
 
<h1> Question 1</h1>
 
<h1> Question 1</h1>
 
<p> Men can also get yeast infections? </p>
 
<p> Men can also get yeast infections? </p>
<button id="yes" onclick="counter=yesAnswer(counter)"> Yes </button>
+
<button id="yes" onclick="counter=yesAnswer(counter);"> Yes </button>
<button id="no" onclick="counter=noAnswer(counter)"> No </button>
+
<button id="no" onclick="counter=noAnswer(counter);"> No </button>
 
<h2 id="Commentary"></h2>
 
<h2 id="Commentary"></h2>
 
<div class="clear"></div>
 
<div class="clear"></div>
Line 17: Line 17:
 
<p id="Description"></p>
 
<p id="Description"></p>
 
<button style="visibility:hidden;" onclick="counter=nextQuestion(counter)" id="button">Next Question</button>
 
<button style="visibility:hidden;" onclick="counter=nextQuestion(counter)" id="button">Next Question</button>
 +
 
<script>
 
<script>
 
var counter=0;
 
var counter=0;
Line 44: Line 45:
 
}
 
}
  
nextQuestion(cnt){
 
 
if(cnt==0){
 
 
 
 
 
}
 
 
 
 
}
 
  
  

Revision as of 13:33, 25 May 2018


Question 1

Men can also get yeast infections?