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'); | ||
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() { |