Difference between revisions of "Team:Purdue/Quiz"

Line 26: Line 26:
 
var correct=0;
 
var correct=0;
  
 +
var question1=1;
 +
var question2=1;
 +
var question3=1;
 +
var question4=1;
 +
var question5=1;
  
  
Line 55: Line 60:
 
"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, as sometimes, the symptoms of a yeast infection can be from an alergic 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.";
document.getElementById("button").style.visibility="visible";
+
document.getElementById("button").style.visibility="visible";
 +
                question3 = 0;
 
}
 
}
 
 
Line 72: Line 78:
 
"The T2Dx system is a bit cheaper, but the cost of the instrument is still high.";
 
"The T2Dx system is a bit cheaper, but the cost of the instrument is still high.";
 
document.getElementById("button").style.visibility="visible";
 
document.getElementById("button").style.visibility="visible";
 +
                question5=0;
 
}
 
}
 
// Else there's an error somewhere
 
// Else there's an error somewhere
Line 91: Line 98:
 
"intercourse with women whom is infected.";
 
"intercourse with women whom is infected.";
 
document.getElementById("button").style.visibility = "visible";
 
document.getElementById("button").style.visibility = "visible";
 +
                question1=0;
 
}
 
}
 
// Second Question Answer
 
// Second Question Answer
Line 98: Line 106:
 
"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";
document.getElementById("button").style.visibility="visible";
+
document.getElementById("button").style.visibility="visible";'
 +
                question2=;
 
}
 
}
 
 
Line 117: Line 126:
 
"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";
 +
                question4=0;
 
}
 
}
 
else if(cnt==4){
 
else if(cnt==4){
Line 185: Line 195:
 
document.getElementById("yes").style.visibility="hidden";
 
document.getElementById("yes").style.visibility="hidden";
 
document.getElementById("no").style.visibility="hidden";
 
document.getElementById("no").style.visibility="hidden";
 +
                link1 = document.createElement(a);
 +
                link1.innerHTML = "Click here for more info on men's yeast infection.";
 +
                link1.location.href= "https://www.bmj.com/content/2/6079/93.abstract";
 +
                link2 = document.createElement(a);
 +
                link3 = document.createElement(a);
 +
                link4 = document.createElement(a);
 +
                link5 = document.createElement(a);
 +
                para2 = document.createElement(p);
 +
                para3 = dpcument.createElement(p);
 +
                para4 = document.createElement(p);
 +
                para5 = document.createElement(p);
 +
                para1 = document.createElement(p);
 +
                para1.innerHTML="For more information about yeast infections in men and as an STI check out this link.";
 +
                para1.appendChild(link1);
 +
                document.body.append(para1);
 +
               
 +
}
 +
 +
 +
 +
                paragraph.innerHTML="
 
}
 
}
  

Revision as of 15:26, 11 June 2018

Question 1

Men can also get yeast infections?