Difference between revisions of "Team:Purdue/Quiz"

Line 31: Line 31:
 
var question4=1;
 
var question4=1;
 
var question5=1;
 
var question5=1;
 
+
var divi = document.createElement("div");
var link = new Element("a");
+
function createLink(url,desc,p){
 +
        link = document.createElement("a");
 +
        link.href=url;
 +
        link.innerHTML= desc;
 +
        link.target= "_blank";
 +
        p.appendChild(link);
 +
        divi.appendChild(p);
 +
 
 +
}
  
  
Line 197: Line 205:
 
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.innerHTML = "Click here for more info on men's yeast infection.";
 
                link1.href= "https://www.bmj.com/content/2/6079/93.abstract";
 
                link1.target="_blank";
 
                link2 = 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 217: Line 213:
 
                 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.";
 +
                createLink("https://www.bmj.com/content/2/6079/93.abstract","Click here for more info about men's yeast infection",para1);
 
                 para2.innerHTML="For more information about C.Albicans and its two different form, check out this link.";
 
                 para2.innerHTML="For more information about C.Albicans and its two different form, check out this link.";
 +
                createLink("http://journals.plos.org/plospathogens/article?id=10.1371/journal.ppat.1003661","Click here for more info on C.Albicans.",para2);
 
                 para3.innerHTML="For more information about pH used to detect yeast infections, check out this link.";
 
                 para3.innerHTML="For more information about pH used to detect yeast infections, check out this link.";
                 para1.appendChild(link1);
+
                 createLink("https://www.fda.gov/MedicalDevices/ProductsandMedicalProcedures/InVitroDiagnostics/HomeUseTests/ucm126074.html", See what FDA say about pH tests for yeast infections,para3);
                para2.appendChild(link2);
+
                divi.appendChild(para1);
+
                divi.appendChild(para2);
+
                divi.appendChild(para3);
+
                divi.appendChild(para4);
+
                divi.appendChild(para5);
+
 
                 document.body.append(divi);
 
                 document.body.append(divi);
 
                  
 
                  

Revision as of 16:25, 11 June 2018

Question 1

Men can also get yeast infections?