Widget:WikidocBoardReview: Difference between revisions

Jump to navigation Jump to search
Matt Pijoan (talk | contribs)
No edit summary
Matt Pijoan (talk | contribs)
No edit summary
Line 108: Line 108:
}
}
function selectExam(exam){
function selectExam(exam){
var Q = document.getElementById('question');
var Q = document.getElementById('question');
Q.innerHTML = "<center><h1>Build your own exam!</h1></center><br /><br /><b>First: Select All That Apply:</b><br /><br /><br />";
if(exam === "MCAT"){
if(exam === "USMLE Step 1"){
Q.innerHTML += "<table style='width:100%;'><tr><td style='width:49%;'><b>Specialty/Organ System</b></td><td style='width:49%;'><b>Subjects/Keywords</b></td></tr><tr><td><input type='checkbox' name='MainCat' value='Cardiovascular' />Cardiovascular</td><td><input type='checkbox' name='SubCat' value='Anatomy' />Anatomy</td></tr><tr><td><input type='checkbox' name='MainCat' value='Dermatology' />Dermatology</td><td><input type='checkbox' name='SubCat' value='Behavioral Science' />Behavioral Science</td></tr><tr><td><input type='checkbox' name='MainCat' value='Endocrine' />Endocrine</td><td><input type='checkbox' name='SubCat' value='Biochemistry' />Biochemistry</td></tr><tr><td><input type='checkbox' name='MainCat' value='Gastrointestinal' />Gastrointestinal</td><td><input type='checkbox' name='SubCat' value='Biostatistics' />Biostatistics</td></tr><tr><td><input type='checkbox' name='MainCat' value='Genitourinary' />Genitourinary</td><td><input type='checkbox' name='SubCat' value='Embryology' />Embryology</td></tr><tr><td><input type='checkbox' name='MainCat' value='Head and Neck' />Head and Neck</td><td><input type='checkbox' name='SubCat' value='Ethics' />Ethics</td></tr><tr><td><input type='checkbox' name='MainCat' value='Hematology' />Hematology</td><td><input type='checkbox' name='SubCat' value='Genetics' />Genetics</td></tr><tr><td><input type='checkbox' name='MainCat' value='Musculoskeletal/Rheumatology' />Musculoskeletal/Rheumatology</td><td><input type='checkbox' name='SubCat' value='Histology' />Histology</td></tr><tr><td><input type='checkbox' name='MainCat' value='Neurology' />Neurology</td><td><input type='checkbox' name='SubCat' value='Immunology' />Immunology</td></tr><tr><td><input type='checkbox' name='MainCat' value='Oncology' />Oncology</td><td><input type='checkbox' name='SubCat' value='Microbiology' />Microbiology</td></tr><tr><td><input type='checkbox' name='MainCat' value='Psychiatry' />Psychiatry</td><td><input type='checkbox' name='SubCat' value='Molecular Biology' />Molecular Biology</td></tr><tr><td><input type='checkbox' name='MainCat' value='Pulmonology' />Pulmonology</td><td><input type='checkbox' name='SubCat' value='Pathology' />Pathology</td></tr><tr><td><input type='checkbox' name='MainCat' value='Reproductive' />Reproductive</td><td><input type='checkbox' name='SubCat' value='Pathophysiology' />Pathophysiology</td></tr><tr><td><input type='checkbox' name='MainCat' value='Renal' />Renal</td><td><input type='checkbox' name='SubCat' value='Pharmacology' />Pharmacology</td></tr><tr><td><input type='checkbox' name='MainCat' value='Vascular' />Vascular</td><td><input type='checkbox' name='SubCat' value='Physiology' />Physiology</td></tr><tr><td><input type='checkbox' name='MainCat' value='General Principles' />General Principles</td></table>";
} else if(exam === "USMLE Step 2 CK"){
Q.innerHTML += "<table style='width:100%;'><tr><td style='width:49%;'><b>Specialty/Organ System</b></td><td style='width:49%;'><b>Subjects/Keywords</b></td></tr><tr><td><input type='checkbox' name='MainCat' value='Allergy' />Allergy</td><td><input type='checkbox' name='SubCat' value='Biostatistics' />Biostatistics</td></tr><tr><td><input type='checkbox' name='MainCat' value='Cardiovascular' />Cardiovascular</td><td><input type='checkbox' name='SubCat' value='Ethics' />Ethics</td></tr><tr><td><input type='checkbox' name='MainCat' value='Dermatology' />Dermatology</td><td><input type='checkbox' name='SubCat' value='Electrolytes' />Electrolytes</td></tr><tr><td><input type='checkbox' name='MainCat' value='Endocrine' />Endocrine</td><td><input type='checkbox' name='SubCat' value='Genetics' />Genetics</td></tr><tr><td><input type='checkbox' name='MainCat' value='Gastrointestinal' />Gastrointestinal</td><td><input type='checkbox' name='SubCat' value='Immunology' />Immunology</td></tr><tr><td><input type='checkbox' name='MainCat' value='Genitourinary' />Genitourinary</td><td><input type='checkbox' name='SubCat' value='Miscellaneous' />Miscellaneous</td></tr><tr><td><input type='checkbox' name='MainCat' value='Head and Neck' />Head and Neck</td><td></td></tr><tr><td><input type='checkbox' name='MainCat' value='Hematology' />Hematology</td><td></td></tr><tr><td><input type='checkbox' name='MainCat' value='Hepatology' />Hepatology</td><td></td></tr><tr><td><input type='checkbox' name='MainCat' value='Infectious Disease' />Infectious Disease</td><td></td></tr><tr><td><input type='checkbox' name='MainCat' value='Internal Medicine' />Internal Medicine</td><td></td></tr><tr><td><input type='checkbox' name='MainCat' value='Musculoskeletal/Rheumatology' />Musculoskeletal/Rheumatology</td><td></td></tr><tr><td><input type='checkbox' name='MainCat' value='Neurology' />Neurology</td><td></td></tr><tr><td><input type='checkbox' name='MainCat' value='Obstetrics & Gynecology' />Obstetrics & Gynecology</td><td></td></tr><tr><td><input type='checkbox' name='MainCat' value='Oncology' />Oncology</td><td></td></tr><tr><td><input type='checkbox' name='MainCat' value='Ophthalmology' />Ophthalmology</td><td></td></tr><tr><td><input type='checkbox' name='MainCat' value='Pediatrics' />Pediatrics</td><td></td></tr><tr><td><input type='checkbox' name='MainCat' value='Poisoning' />Poisoning</td><td></td></tr><tr><td><input type='checkbox' name='MainCat' value='Preventive Medicine' />Preventive Medicine</td><td></td></tr><tr><td><input type='checkbox' name='MainCat' value='Psychiatry' />Psychiatry</td><td></td></tr><tr><td><input type='checkbox' name='MainCat' value='Respiratory' />Respiratory</td><td></td></tr><tr><td><input type='checkbox' name='MainCat' value='Surgery' />Surgery</td></table>";
} else if(exam === "USMLE Step 3"){
var mc = new Array("Allergy", "Cardiovascular", "Dermatology", "Endocrine", "Gastrointestinal", "Genitourinary", "Head and Neck", "Hematology", "Hepatology", "Infectious Disease", "Internal Medicine", "Musculoskeletal/Rheumatology", "Neurology", "Obstetrics & Gynecology", "Oncology", "Ophthalmology", "Pediatrics", "Poisoning", "Preventive Medicine", "Psychiatry", "Respiratory", "Surgery");
var sc =  new Array("Biostatistics", "Community Health Center", "Ethics", "Electrolytes", "Emergency Department", "Genetics", "Immunology", "In-patient Facilities", "Intensive Care Unit", "Miscellaneous", "Office");
var tableTemp = "<table style='width:100%;'><tr><td style='width:49%;'><b>Specialty/Organ System</b></td><td style='width:49%;'><b>Subjects/Keywords</b></td></tr>";
for(var i=0;i<mc.length;i++){
tableTemp += "<tr><td><input type='checkbox' name='MainCat' value='"+mc[i]+"' />"+mc[i]+"</td>";
if(sc.length > 1){tableTemp += "<td><input type='checkbox' name='SubCat' value='"+sc[i]+"' />"+mc[i]+"</td></tr>";} else {tableTemp += "<td></td></tr>";}
}}else if(exam === "Board Review"){
var mc = new Array("Adolescent Medicine", "Advanced Heart Failure and Transplant Cardiology", "Allergy & Immunology", "Cardiovascular Disease", "Clinical Cardiac Electrophysiology", "Critical Care Medicine", "Endocrinology", "Diabetes & Metabolism", "Gastroenterology", "Geriatric Medicine", "Hematology", "Hospice & Palliative Medicine", "Hospital Medicine", "Focused Practice", "Infectious Disease", "Internal Medicine", "Interventional Cardiology", "Medical Oncology", "Nephrology", "Pulmonary Disease", "Rheumatology", "Sleep Medicine", "Sports Medicine", "Transplant Hepatology");
var sc =  new Array("Anesthesiology", "Dermatology", "Emergency Medicine", "Emergency Medicine/Critical Care Medicine", "Family Medicine", "Medical Genetics", "Neurology", "Nuclear Medicine", "Pediatrics", "Physical Medicine & Rehab", "Preventative Medicine", "Psychiatry");
var tableTemp = "<table style='width:100%;'><tr><td style='width:49%;'><b>Specialty/Organ System</b></td><td style='width:49%;'><b>Subjects/Keywords</b></td></tr>";
for(var i=0;i<mc.length;i++){
tableTemp += "<tr><td><input type='checkbox' name='MainCat' value='"+mc[i]+"' />"+mc[i]+"</td>";
if(sc.length > 1){tableTemp += "<td><input type='checkbox' name='SubCat' value='"+sc[i]+"' />"+mc[i]+"</td></tr>";} else {tableTemp += "<td></td></tr>";}
}
Q.innerHTML += tableTemp + "</table>";
} else if(exam === "MCAT"){
var mc = new Array("Biology", "Cell", "Enzymes", "Microbiology", "Cellular Metabolism", "Reproduction", "Embryology", "Musculoskeletal System", "Digestive System ", "Excretory System", "Respiratory System", "Skin", "Circulatory System", "Immune System", "Homeostasis", "Endocrine System", "Nervous System ", "Genetics", "Evolution", "Organic Chemistry", "Nomenclature", "Bonding/Structure", "Isomers", "Alkanes", "AlkenesAlkynes", "Haloalkanes", "Aromatic Compounds", "Alcohols", "Ethers", "Aldehydes ", "Ketones", "Carboxylic Acid", "Carboxylic Acid Derivatives", "Amines", "Nitrogen Containing Compounds", "Purification", "Spectroscopy", "Separations", "Carbohydrates", "Amino Acids", "Peptides", "Proteins", "Nucleic", "Acids", "Chemistry", "Atomic Structure", "Periodic Table", "Phases", "Gases", "Bonding", "Stoichiometry", "Kinetics", "Thermochemistry", "Phases", "Solutions", "Acids and Bases", "Redox Reactions", "Electrochemistry", "Physics", "Kinematics", "Fluids", "Solids", "Newtonian Mechanics", "Momentum", "Energy", "Thermodynamics", "Electrostatics", "Magnetism", "DC Circuits", "AC Circuits", "Periodic Motion", "Waves", "Sound", "Optics", "Light", "Atomic Phenomena", "Nuclear Phenomena" );
var mc = new Array("Biology", "Cell", "Enzymes", "Microbiology", "Cellular Metabolism", "Reproduction", "Embryology", "Musculoskeletal System", "Digestive System ", "Excretory System", "Respiratory System", "Skin", "Circulatory System", "Immune System", "Homeostasis", "Endocrine System", "Nervous System ", "Genetics", "Evolution", "Organic Chemistry", "Nomenclature", "Bonding/Structure", "Isomers", "Alkanes", "AlkenesAlkynes", "Haloalkanes", "Aromatic Compounds", "Alcohols", "Ethers", "Aldehydes ", "Ketones", "Carboxylic Acid", "Carboxylic Acid Derivatives", "Amines", "Nitrogen Containing Compounds", "Purification", "Spectroscopy", "Separations", "Carbohydrates", "Amino Acids", "Peptides", "Proteins", "Nucleic", "Acids", "Chemistry", "Atomic Structure", "Periodic Table", "Phases", "Gases", "Bonding", "Stoichiometry", "Kinetics", "Thermochemistry", "Phases", "Solutions", "Acids and Bases", "Redox Reactions", "Electrochemistry", "Physics", "Kinematics", "Fluids", "Solids", "Newtonian Mechanics", "Momentum", "Energy", "Thermodynamics", "Electrostatics", "Magnetism", "DC Circuits", "AC Circuits", "Periodic Motion", "Waves", "Sound", "Optics", "Light", "Atomic Phenomena", "Nuclear Phenomena" );
var tableTemp = "<table style='width:100%;'><th><td><b>Keyword</b></td></th><tr>";
var tableTemp = "<table style='width:100%;'><th><td><b>Keyword</b></td></th><tr>";
Line 138: Line 116:
if((i+1)%4 == 0){tableTemp += "</tr><tr>";}}
if((i+1)%4 == 0){tableTemp += "</tr><tr>";}}
Q.innerHTML += tableTemp + "</tr></table><input type='checkbox' name='SubCat' style='visibility:hidden' value='MCAT' checked />";
Q.innerHTML += tableTemp + "</tr></table><input type='checkbox' name='SubCat' style='visibility:hidden' value='MCAT' checked />";
} else {
var categories = new Array();
if(exam === "USMLE Step 1"){
categories['main'] = new Array("Anatomy", "Behavioral Science/Psychiatry", "Biochemistry", "Biostatistics/ Epidemiology", "Embryology", "Ethics", "Genetics", "Histology", "Immunology", "Microbiology", "Pathology", "Pathophysiology", "Pharmacology", "Physiology");
categories['sub'] = new Array("Cardiology", "Dermatology", "Endocrine", "Gastrointestinal", "Genitourinary", "Head and Neck", "Hematology", "Musculoskeletal/Rheumatology", "Neurology", "Oncology", "Pulmonology", "Reproductive", "Renal", "Vascular", "General Principles");
} else if(exam === "USMLE Step 2 CK"){
categories['main'] = new Array("Internal medicine", "Surgery", "OB/GYN", "Pediatrics", "Psychiatry");
categories['sub'] = new Array("Allergy/Immunology", "Cardiovascular", "Dermatology", "Endocrine", "Gastrointestinal", "Hepatology", "Genitourinary", "Head and Neck", "Hematology", "Infectious Disease", "Musculoskeletal/Rheumatology", "Neurology", "Obstetrics & Gynecology", "Oncology", "Ophthalmology", "Pediatrics", "Poisoning", "Preventive Medicine", "Psychiatry", "Respiratory", "Surgery", "Biostatistics/ Epidemiology", "Ethics", "Electrolytes", "Genetics", "Miscellaneous");
} else if(exam === "USMLE Step 3"){
categories['main'] = new Array("Community Medical Health Center", "Primary Care Office", "Inpatient Facilities", "Emergency Room");
categories['sub'] = new Array("Allergy/Immunology", "Cardiovascular", "Dermatology", "Endocrine", "Gastrointestinal", "Hepatology", "Genitourinary", "Head and Neck", "Hematology", "Infectious Disease", "Musculoskeletal/Rheumatology", "Neurology", "Obstetrics & Gynecology", "Oncology", "Ophthalmology", "Pediatrics", "Poisoning", "Preventive Medicine", "Psychiatry", "Respiratory", "Surgery", "Biostatistics/ Epidemiology", "Ethics", "Electrolytes", "Genetics", "Miscellaneous");
}else if(exam === "Board Review"){
categories['main'] = new Array("Adolescent Medicine", "Advanced Heart Failure and Transplant Cardiology", "Allergy & Immunology", "Cardiovascular Disease", "Clinical Cardiac Electrophysiology", "Critical Care Medicine", "Endocrinology", "Diabetes & Metabolism", "Gastroenterology", "Geriatric Medicine", "Hematology", "Hospice & Palliative Medicine", "Hospital Medicine", "Focused Practice", "Infectious Disease", "Internal Medicine", "Interventional Cardiology", "Medical Oncology", "Nephrology", "Pulmonary Disease", "Rheumatology", "Sleep Medicine", "Sports Medicine", "Transplant Hepatology");
categories['sub'] = new Array("Anesthesiology", "Dermatology", "Emergency Medicine", "Emergency Medicine/Critical Care Medicine", "Family Medicine", "Medical Genetics", "Neurology", "Nuclear Medicine", "Pediatrics", "Physical Medicine & Rehab", "Preventative Medicine", "Psychiatry");
} else {
} else {
alert('Coming Soon!');
alert('Coming Soon!');
Line 143: Line 135:
return false;
return false;
}
}
 
var table = "<center><h1>Build your own exam!</h1></center><br /><br /><b>First: Select All That Apply:</b><br /><br /><br />";
table += "<table style='width:100%;'><tr><td style='width:49%;'><b>Specialty/Organ System</b></td><td style='width:49%;'><b>Subjects/Keywords</b></td></tr>";
if(categories['sub'].length > categories['main'].length){
  for(var i=0;i<categories['sub'].length;i++){
      if(categories['main'][i]){
        table+="<tr><td><input type='checkbox' name='MainCat' value='"+categories['main'][i]+"' />"+categories['main'][i]+"</td><td><input type='checkbox' name='SubCat' value='"+categories['sub'][i]+"' />"+categories['sub'][i]+"</td></tr>";
      } else {
        table+="<tr><td></td><td><input type='checkbox' name='SubCat' value='"+categories['sub'][i]+"' />"+categories['sub'][i]+"</td></tr>";
      }
      }} else {
  for(var i=0;i<categories['main'].length;i++){
      if(categories['sub'][i]){
        table+="<tr><td><input type='checkbox' name='MainCat' value='"+categories['main'][i]+"' />"+categories['main'][i]+"</td><td><input type='checkbox' name='SubCat' value='"+categories['sub'][i]+"' />"+categories['sub'][i]+"</td></tr>";
      } else {
        table+="<tr><td><input type='checkbox' name='MainCat' value='"+categories['main'][i]+"' />"+categories['main'][i]+"</td><td></td></tr>";
     
      }}   
table += "</table>"
var Q = document.getElementById('question');
Q.innerHTML = table;
}
}
Q.innerHTML += "<div id='SelectAll' class='noSelect' style='font-family:Arial;float:left;background-color:#3366CC;height:40px;font-weight:bold; width:150px; display: table-cell; cursor: default; color:#FFFFFF; text-align: center; vertical-align: middle;margin-right:10px;'>Click here to select all</div><div id='UnselectAll' class='noSelect' style='font-family:Arial;float:left;background-color:#3366CC;height:40px;font-weight:bold; width:150px; display: table-cell; cursor: default; color:#FFFFFF; text-align: center; vertical-align: middle;'>Click here to clear all</div><br /><br /><br /><br /><b>Second: choose the number of questions you would like to answer. The maximum number of questions you can select is 45.</b><br /><br /><br />Number of questions:<input type='text' id='numQues' /><br /><br /><div id='Go' class='noSelect' style='font-family:Arial;float:left;background-color:#3366CC;height:40px;font-weight:bold; width:150px; display: table-cell; cursor: default; color:#FFFFFF; text-align: center; vertical-align: middle;'>Click here to begin the exam</div>";
Q.innerHTML += "<div id='SelectAll' class='noSelect' style='font-family:Arial;float:left;background-color:#3366CC;height:40px;font-weight:bold; width:150px; display: table-cell; cursor: default; color:#FFFFFF; text-align: center; vertical-align: middle;margin-right:10px;'>Click here to select all</div><div id='UnselectAll' class='noSelect' style='font-family:Arial;float:left;background-color:#3366CC;height:40px;font-weight:bold; width:150px; display: table-cell; cursor: default; color:#FFFFFF; text-align: center; vertical-align: middle;'>Click here to clear all</div><br /><br /><br /><br /><b>Second: choose the number of questions you would like to answer. The maximum number of questions you can select is 45.</b><br /><br /><br />Number of questions:<input type='text' id='numQues' /><br /><br /><div id='Go' class='noSelect' style='font-family:Arial;float:left;background-color:#3366CC;height:40px;font-weight:bold; width:150px; display: table-cell; cursor: default; color:#FFFFFF; text-align: center; vertical-align: middle;'>Click here to begin the exam</div>";
$("#Go").click(function() {
$("#Go").click(function() {

Revision as of 18:03, 4 February 2013