Difference between revisions of "Team:Purdue/Quiz"

 
(39 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
 
{{:Team:Purdue/NavBar}}
 
{{:Team:Purdue/NavBar}}
 +
<html>
  
  
<html>
+
<!-- TODO: add pictures to the questions -->
  
 
<head>
 
<head>
<link rel="stylesheet" type="text/css" href="https://2018.igem.org/Team:Purdue/NavBarCSS?action=raw&ctype=text/css" />
 
<link rel="stylesheet" type="text/css" href="https://2018.igem.org/Team:Purdue/BootstrapCSS?action=raw&ctype=text/css" />
 
<link rel="stylesheet" type="text/css" href="https://2018.igem.org/Team:Purdue/Templates/StandardStyling?action=raw&ctype=text/css" />
 
 
   
 
   
 
<style>
 
<style>
Line 23: Line 20:
  
 
<body>
 
<body>
 
<div class="basic-page-body" id="body">
 
<h1 id = "questionNumber"> Question 1 </h1>
 
<p id="question" style="font-size:24px;text-align: center;"> Men can also get yeast infections? </p>
 
 
<div class="spacer-small"></div>
 
<div class="spacer-small"></div>
 +
<div class="spacer-small"></div>
 +
<div style="display:flex;justify-content:center;">
 +
<table style="border-style:solid;border-width:2px;width:1200px;height:800px;">
 +
<tr>
 +
<td>
 +
<div class="basic-page-body" id="body" >
 +
<h1 id = "questionNumber"> Question 1 </h1>
 +
<p id="question" style="font-size:24px;text-align:center;"> Men can also get yeast infections? </p>
 +
<div class="clear"></div>
 +
<div class="clear"></div>
 
<button id="yes" class="btn btn-warning" style="Width:49%;" onclick="correct=yesAnswer(counter,correct)"> Yes </button>
 
<button id="yes" class="btn btn-warning" style="Width:49%;" onclick="correct=yesAnswer(counter,correct)"> Yes </button>
 
<button id="no" class="btn btn-warning" style="Width:49%;" onclick="correct=noAnswer(counter,correct)"> No </button>
 
<button id="no" class="btn btn-warning" style="Width:49%;" onclick="correct=noAnswer(counter,correct)"> No </button>
Line 34: Line 37:
 
<div class="clear"></div>
 
<div class="clear"></div>
 
<div class="clear"></div>
 
<div class="clear"></div>
 +
<div style="border-style:solid;visibility:hidden;" id="button">
 
<p id="Description"></p>
 
<p id="Description"></p>
 
+
<div class="spacer-small" ></div>
<button style="visibility:hidden;Width:59%;" class="btn btn-warning" onclick="counter=nextQuestion(counter)" id="button">Next Question</button>
+
<button style="Width:59%;" class="btn btn-warning" onclick="counter=nextQuestion(counter)" id="btn" >Next Question</button>
 +
<div class="clear"></div>
 +
<div class="clear"></div>
 +
</div>
 +
</div>
 +
</td>
 +
</tr>
 +
</table>
 
</div>
 
</div>
 
<script>
 
<script>
Line 77: Line 88:
 
document.getElementById("Commentary").innerHTML="Correct!";
 
document.getElementById("Commentary").innerHTML="Correct!";
 
                 document.getElementById("Commentary").style.color="green";
 
                 document.getElementById("Commentary").style.color="green";
document.getElementById("Description").innerHTML="The main way men get yeast infections is through "+
+
document.getElementById("Description").innerHTML="The most common way men can contract yeast infections is during intercourse with another women who has a yeast infection.";
"intercourse with women whom is infected.";
+
 
document.getElementById("button").style.visibility = "visible";
 
document.getElementById("button").style.visibility = "visible";
 
numCorrect =numCorrect + 1;
 
numCorrect =numCorrect + 1;
Line 88: Line 98:
 
document.getElementById("Commentary").innerHTML="Correct!";
 
document.getElementById("Commentary").innerHTML="Correct!";
 
                 document.getElementById("Commentary").style.color="green";
 
                 document.getElementById("Commentary").style.color="green";
document.getElementById("Description").innerHTML="C. Albicans exists in two different forms. There is a white form and an opaque form. <br>"+
+
document.getElementById("Description").innerHTML="<i>C. Albicans</i> exists in two different forms. There is a white form and an opaque form. <br>"+
"white gains the ability to borrow through skin and is often the cause of yeast infections in the blood <br>"+
+
"The white form gains the ability to borrow through skin and is often the cause of yeast infections in the blood. <br>"+
"opaque is a more fertile form where it can reproduce upwards to 300% faster. This form normally causes mucosal infections";
+
"The opaque form is a more fertile form where it can reproduce upwards to 300% faster. This form normally causes mucosal infections.";
 
document.getElementById("button").style.visibility= "visible";
 
document.getElementById("button").style.visibility= "visible";
 
numCorrect = numCorrect + 1;
 
numCorrect = numCorrect + 1;
Line 101: Line 111:
 
document.getElementById("Commentary").innerHTML="Incorrect!";
 
document.getElementById("Commentary").innerHTML="Incorrect!";
 
                 document.getElementById("Commentary").style.color="red";
 
                 document.getElementById("Commentary").style.color="red";
document.getElementById("Description").innerHTML=" While the test is okay to use to determine a yeast infection, the test doesn't directly detect for a yeast.<br>"+
+
document.getElementById("Description").innerHTML=" The test doesn't detect for the presence of yeast directly.<br>"+
"Instead, it checks the pH of the region. If it is a bacterial infection, it will have a raised pH, otherwise it is likely a yeast infection,<br>"+
+
"Instead, it detects the pH of the region. If it is a bacterial infection, it will have a higher pH. Otherwise, it is likely a yeast infection.<br>"+
"This leaves room for error, as sometimes, the symptoms of a yeast infection can be from an alergic reaction, this will also not raise pH.<br>"+
+
"This leaves room for error because the symptoms of a yeast infection can be from an allergic reaction, this will also not raise pH. <br>"+
"Also, sometimes things like creams or viral STI's or other things can cause a rise in the pH, making the test read a bacterial infection instead of a yeast infection.";
+
"Also, sometimes things like creams or viral STI's or other things can cause a rise in the pH, making the test read a bacterial infection instead of a yeast infection. There are many other factors other than these that can skew pH to cause inaccurate results.";
 
document.getElementById("button").style.visibility="visible";
 
document.getElementById("button").style.visibility="visible";
 
                 question3 = 0;
 
                 question3 = 0;
Line 115: Line 125:
 
document.getElementById("Commentary").innerHTML="Correct";
 
document.getElementById("Commentary").innerHTML="Correct";
 
                 document.getElementById("Commentary").style.color="green";
 
                 document.getElementById("Commentary").style.color="green";
document.getElementById("Description").innerHTML="We use split Tyrosinase and pqsR and join each half with a split HRP. In the presence in Farnesol and Tyrosol, Tyrosinase and pqsR will bond to it<br>"+
+
document.getElementById("Description").innerHTML="We use split tyrosinase and pqsR and join each half with a split HRP. In the presence in farnesol and tyrosol, tyrosinase and pqsR will bond to it.<br>"+
"Each half will come together and reform, this will then allow the HRP to reform and catalyze a reaction to produce a visible blue substrate.";
+
"Each half will come together and reform. This will then allow the HRP to reform and catalyze a reaction to produce a visible blue substrate.";
 
document.getElementById("button").style.visibility="visible";
 
document.getElementById("button").style.visibility="visible";
 
numCorrect = numCorrect  + 1;
 
numCorrect = numCorrect  + 1;
Line 160: Line 170:
 
document.getElementById("Commentary").innerHTML="Incorrect";
 
document.getElementById("Commentary").innerHTML="Incorrect";
 
                 document.getElementById("Commentary").style.color="red";
 
                 document.getElementById("Commentary").style.color="red";
document.getElementById("Description").innerHTML="C. Albicans exists in two different forms. There is a white form and an opaque form. <br>"+
+
document.getElementById("Description").innerHTML="<i>C. Albicans</i> exists in two different forms. There is a white form and an opaque form. <br>"+
 
"white gains the ability to borrow through skin and is often the cause of yeast infections in the blood <br>"+
 
"white gains the ability to borrow through skin and is often the cause of yeast infections in the blood <br>"+
 
"opaque is a more fertile form where it can reproduce upwards to 300% faster. This form normally causes mucosal infections";
 
"opaque is a more fertile form where it can reproduce upwards to 300% faster. This form normally causes mucosal infections";
Line 186: Line 196:
 
document.getElementById("Commentary").innerHTML="Incorrect";
 
document.getElementById("Commentary").innerHTML="Incorrect";
 
                 document.getElementById("Commentary").style.color="red";
 
                 document.getElementById("Commentary").style.color="red";
document.getElementById("Description").innerHTML="We use split Tyrosinase and pqsR and join each half with a split HRP. In the presence in Farnesol and Tyrosol, Tyrosinase and pqsR will bond to it<br>"+
+
document.getElementById("Description").innerHTML="We use split tyrosinase and pqsR and join each half with a split HRP. In the presence in farnesol and tyrosol, tyrosinase and pqsR will bond to it<br>"+
 
"Each half will come together and reform, this will then allow the HRP to reform and catalyze a reaction to produce a visible blue substrate.";
 
"Each half will come together and reform, this will then allow the HRP to reform and catalyze a reaction to produce a visible blue substrate.";
 
document.getElementById("button").style.visibility="visible";
 
document.getElementById("button").style.visibility="visible";
Line 217: Line 227:
 
// Second Question
 
// Second Question
 
if(cnt==0){
 
if(cnt==0){
                 questionReset("C. Albicans can exisit in two different forms which produce different molecules?","Question 2");
+
                 questionReset("<i>C. Albicans</i> can exisit in two different forms which produce different molecules?","Question 2");
 
}
 
}
 
// Third Question
 
// Third Question
 
else if(cnt==1){
 
else if(cnt==1){
                 questionReset("Yeast infection kits that you buy from over the counter test specifically for yeast when diagnosing a yeast infection?","Question 3");
+
                 questionReset("Over-the-counter yeast infection tests specifically test for the presence of invasive yeast when diagnosing a yeast infection?","Question 3");
 
}
 
}
 
// Fourth Question
 
// Fourth Question
 
else if(cnt==2){
 
else if(cnt==2){
                 questionReset("Split Proteins are proteins that are transcribed in two different halves, but then form together to create a functional protein?","Question 4");
+
                 questionReset("Split proteins are proteins that are transcribed as two different halves of one protein, but after translation can form together to create a functional protein?","Question 4");
 
}
 
}
 
 
 
// Fifth Question
 
// Fifth Question
 
else if(cnt==3){
 
else if(cnt==3){
        questionReset("Invasive Yeast Infections are cheap to diagnose, (besides growing a culture from blood.) ","Question5");
+
        questionReset("Invasive yeast infections are cheap to diagnose, (other than using a blood culture test). ","Question5");
 
 
 
}
 
}
Line 238: Line 248:
 
document.getElementById("questionNumber").innerHTML= "Results";
 
document.getElementById("questionNumber").innerHTML= "Results";
 
document.getElementById("question").innerHTML= "Thank you for taking our quiz";
 
document.getElementById("question").innerHTML= "Thank you for taking our quiz";
document.getElementById("button").style.visibility="hidden";
+
document.getElementById("btn").style.visibility="hidden";
 
document.getElementById("Commentary").innerHTML="";
 
document.getElementById("Commentary").innerHTML="";
 
document.getElementById("Description").innerHTML="You got " +correct+" out of 5 correct";
 
document.getElementById("Description").innerHTML="You got " +correct+" out of 5 correct";

Latest revision as of 01:32, 18 October 2018

Bootstrap Example

Question 1

Men can also get yeast infections?