Difference between revisions of "Team:Purdue/Quiz"

Line 31: Line 31:
 
var question4=1;
 
var question4=1;
 
var question5=1;
 
var question5=1;
 +
 +
var link = new Element("a");
  
  
Line 195: Line 197:
 
document.getElementById("yes").style.visibility="hidden";
 
document.getElementById("yes").style.visibility="hidden";
 
document.getElementById("no").style.visibility="hidden";
 
document.getElementById("no").style.visibility="hidden";
 +
                divi = document.createElement("div");
 
                 link1 = document.createElement("a");
 
                 link1 = document.createElement("a");
 
                 link1.innerHTML = "Click here for more info on men's yeast infection.";
 
                 link1.innerHTML = "Click here for more info on men's yeast infection.";
Line 200: Line 203:
 
                 link1.target="_blank";
 
                 link1.target="_blank";
 
                 link2 = document.createElement("a");
 
                 link2 = document.createElement("a");
                 link3 = document.createElement("a");
+
                link2.innerHTML = "Click here for more info on C.Albicans."
 +
                link2.href= "http://journals.plos.org/plospathogens/article?id=10.1371/journal.ppat.1003661";
 +
                link2.target= "_blank";
 +
                 link3 = document.createElement("a");      
 +
  link3.href="https://www.fda.gov/MedicalDevices/ProductsandMedicalProcedures/InVitroDiagnostics/HomeUseTests/ucm126074.html";
 +
               
 
                 link4 = document.createElement("a");
 
                 link4 = document.createElement("a");
 
                 link5 = document.createElement("a");
 
                 link5 = document.createElement("a");
Line 209: Line 217:
 
                 para1 = 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.innerHTML="For more information about yeast infections in men and as an STI check out this link.";
 +
                para2.innerHTML="For more information about C.Albicans and its two different form, check out this link.";
 +
                para3.innerHTML="For more information about pH used to detect yeast infections, check out this link.";
 
                 para1.appendChild(link1);
 
                 para1.appendChild(link1);
                 document.body.append(para1);
+
                para2.appendChild(link2);
 +
                divi.appendChild(para1);
 +
                divi.appendChild(para2);
 +
                divi.appendChild(para3);
 +
                divi.appendChild(para4);
 +
                divi.appendChild(para5);
 +
                 document.body.append(divi);
 
                  
 
                  
 
}
 
}

Revision as of 16:13, 11 June 2018

Question 1

Men can also get yeast infections?