Widget:520Jeopardy: Difference between revisions

From Doc-Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
==Usage==
==Usage==
  <nowiki>{{#widget:520Jeapordy}}</nowiki>
  <nowiki>{{#widget:520Jeapordy}}</nowiki>
</noinclude><includeonly><iframe style="width:100%;height:800px;border:none;" srcdoc="<!DOCTYPE html><html><head><style>*{margin:0;padding:0;box-sizing:border-box}body{font-family:Arial,sans-serif;background:linear-gradient(135deg,rgb(30,58,95),rgb(12,25,41));padding:15px;min-height:100vh}.title{text-align:center;color:rgb(251,191,36);font-size:1.8rem;font-weight:bold;margin-bottom:5px}.sub{text-align:center;color:rgb(147,197,253);margin-bottom:10px;font-size:.85rem}.scores{display:flex;justify-content:center;gap:20px;margin-bottom:10px}.team{background:rgb(30,64,175);padding:8px 15px;border-radius:8px;text-align:center}.team.on{box-shadow:0 0 12px rgb(251,191,36)}.team h3{color:white;margin-bottom:3px;font-size:.85rem}.score{font-size:1.2rem;font-weight:bold}.pos{color:rgb(74,222,128)}.neg{color:rgb(248,113,113)}.turn{text-align:center;color:rgb(251,191,36);font-size:.9rem;margin-bottom:10px}.board{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;margin-bottom:10px}.cat{background:rgb(30,64,175);color:white;padding:8px 4px;text-align:center;font-weight:bold;font-size:.7rem;border-radius:4px 4px 0 0;min-height:40px;display:flex;align-items:center;justify-content:center}.cell{background:rgb(37,99,235);color:rgb(251,191,36);padding:12px 4px;text-align:center;font-size:1rem;font-weight:bold;border-radius:4px;cursor:pointer;border:none}.cell:hover{background:rgb(59,130,246)}.cell.done{background:rgb(30,58,95);color:transparent;cursor:default}.btns{text-align:center;margin-bottom:8px}.btn{padding:6px 12px;border-radius:4px;font-weight:bold;cursor:pointer;border:none;margin:0 3px}.reset{background:rgb(220,38,38);color:white}.mute{background:rgb(30,64,175);color:white}.tips{text-align:center;color:rgb(147,197,253);font-size:.65rem}.qview{background:rgb(30,64,175);border-radius:8px;padding:15px;color:white;max-width:600px;margin:0 auto}.qhead{text-align:center;margin-bottom:10px}.qcat{display:inline-block;background:rgb(251,191,36);color:rgb(30,58,95);padding:4px 12px;border-radius:12px;font-weight:bold;font-size:.8rem}.qteam{color:rgb(251,191,36);margin-top:5px;font-size:.85rem}.timer{text-align:center;margin-bottom:8px}.tbadge{display:inline-block;padding:5px 12px;border-radius:12px;font-size:1rem;font-weight:bold;background:rgb(251,191,36);color:rgb(30,58,95)}.tbadge.warn{background:rgb(220,38,38);color:white}.sbox{background:rgb(29,78,216);border-radius:6px;padding:10px;margin-bottom:8px}.sbox h4{color:rgb(251,191,36);margin-bottom:4px;font-size:.8rem}.sbox p{font-size:.85rem;line-height:1.3}.qbox{background:rgb(37,99,235);border-radius:6px;padding:10px;margin-bottom:8px}.qbox h4{color:rgb(251,191,36);margin-bottom:4px;font-size:.8rem}.qbox p{font-size:.9rem;font-weight:600}.abox{background:rgb(22,101,52);border-radius:6px;padding:10px;margin-bottom:8px}.abox h4{color:rgb(251,191,36);margin-bottom:4px;font-size:.8rem}.abox p{font-size:.85rem;line-height:1.3}.qbtns{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:10px}.qbtn{padding:8px 16px;border-radius:4px;font-weight:bold;cursor:pointer;border:none;font-size:.85rem}.reveal{background:rgb(251,191,36);color:rgb(30,58,95)}.correct{background:rgb(34,197,94);color:white}.wrong{background:rgb(239,68,68);color:white}.over{text-align:center;padding:20px}.over h1{font-size:1.8rem;color:rgb(251,191,36);margin-bottom:10px}.final{font-size:1rem;color:white;margin-bottom:5px}.winner{font-size:1.3rem;color:rgb(251,191,36);font-weight:bold;margin-bottom:15px}</style></head><body><div id=g></div><script>var cats=[{name:'Cardiovascular',q:[{pts:200,s:'A 58-year-old patient with heart failure is prescribed digoxin. Before administering, the nurse checks the apical pulse and finds it to be 52 bpm.',q:'What should the nurse do?',a:'Hold the medication and notify the healthcare provider. Digoxin should be held if apical pulse is below 60 bpm due to risk of toxicity and bradycardia.'},{pts:400,s:'A patient taking warfarin for atrial fibrillation has an INR of 4.8. The patient reports dark, tarry stools and dizziness.',q:'What is the priority nursing intervention?',a:'Hold warfarin, notify provider immediately, prepare for possible Vitamin K administration. Patient shows signs of GI bleeding with supratherapeutic INR.'},{pts:600,s:'A post-MI patient on a cardiac monitor suddenly shows a wide QRS complex rhythm at 180 bpm with no detectable pulse.',q:'What is this rhythm and immediate action?',a:'Ventricular tachycardia (pulseless VT). Begin CPR immediately and prepare for defibrillation per ACLS protocol.'},{pts:800,s:'A patient with chronic heart failure is started on carvedilol. Two weeks later, reports increased SOB and weight gain of 5 lbs.',q:'Why might this occur?',a:'Beta-blockers can initially worsen heart failure symptoms before providing long-term benefit. Assess for fluid retention, monitor daily weights.'},{pts:1000,s:'A hypertensive patient on lisinopril develops a persistent dry cough. The provider switches to losartan.',q:'What is the best explanation?',a:'ACE inhibitors cause dry cough due to bradykinin accumulation. ARBs like losartan work similarly but dont cause bradykinin buildup.'}]},{name:'Pain Mgmt',q:[{pts:200,s:'A post-surgical patient rates pain as 7/10 and requests PRN morphine. Last dose was 3 hours ago, ordered every 4 hours.',q:'What is the appropriate action?',a:'Offer non-pharmacological interventions and reassess in 1 hour. Cannot give morphine until 4-hour interval has passed.'},{pts:400,s:'An elderly patient with dementia is grimacing, guarding abdomen, and restless but cannot verbally report pain.',q:'What pain assessment tool should be used?',a:'Use behavioral pain scale such as PAINAD or FLACC scale. Assess for nonverbal cues.'},{pts:600,s:'A patient with chronic back pain on oxycodone for 6 months now requires higher doses for same relief.',q:'What phenomenon is this vs addiction?',a:'Tolerance - physiological adaptation requiring higher doses. Differs from addiction which involves compulsive use despite harm.'},{pts:800,s:'A patient on IV morphine PCA has respiratory rate of 8, difficult to arouse, pinpoint pupils.',q:'What is occurring and priority interventions?',a:'Opioid overdose. Stop PCA, stimulate patient, call for help, prepare naloxone, support airway and breathing.'},{pts:1000,s:'A cancer patient on around-the-clock MS Contin still has breakthrough pain episodes.',q:'What medication modification to anticipate?',a:'Add immediate-release morphine for breakthrough pain, typically 10-15% of total 24-hour dose.'}]},{name:'Teaching',q:[{pts:200,s:'A newly diagnosed diabetic needs insulin teaching. Patient appears anxious and keeps checking phone.',q:'What should nurse do first?',a:'Assess readiness to learn. Address anxiety first, minimize distractions, determine learning style and priorities.'},{pts:400,s:'An elderly patient with newly prescribed warfarin has mild hearing loss and reads at 6th-grade level.',q:'What teaching strategies to employ?',a:'Face patient when speaking, use simple language, provide written materials at appropriate reading level with large print, use teach-back method.'},{pts:600,s:'A patient being discharged on metformin asks if they can drink alcohol on weekends.',q:'What education should nurse provide?',a:'Alcohol increases risk of lactic acidosis with metformin and can cause hypoglycemia. Limit alcohol, never drink on empty stomach.'},{pts:800,s:'A CHF patient is being discharged. Nurse has 15 minutes to teach about medications, diet, activity, warning signs.',q:'How to prioritize teaching?',a:'Focus on survival skills: daily weights (report 2+ lb gain), sodium restriction basics, medication names/times, warning signs needing immediate attention.'},{pts:1000,s:'A 16-year-old with newly diagnosed epilepsy needs phenytoin teaching. Mother wants to handle all medication.',q:'What developmental considerations?',a:'Adolescents need autonomy. Include teen in teaching, address appearance concerns (gingival hyperplasia) and driving restrictions.'}]},{name:'GI/Hepatic',q:[{pts:200,s:'A cirrhosis patient has ammonia level of 95 mcg/dL (normal 15-45). Patient is confused with asterixis.',q:'What medication to anticipate and why?',a:'Lactulose - acidifies colon converting ammonia to ammonium which cannot be absorbed, promotes bowel movements to eliminate ammonia.'},{pts:400,s:'A post-cholecystectomy patient complains of severe right shoulder pain despite abdominal surgery.',q:'What causes this?',a:'Referred pain from CO2 used during laparoscopic surgery irritating diaphragm. Encourage ambulation to absorb gas.'},{pts:600,s:'A patient with peptic ulcer disease is prescribed omeprazole, clarithromycin, and amoxicillin for 14 days.',q:'What is this treating and essential teaching?',a:'H. pylori eradication (triple therapy). Complete entire course even if feeling better, take PPI before meals.'},{pts:800,s:'A patient with acute pancreatitis has NG tube to suction, IV fluids, NPO status. Asks why they cant eat.',q:'Best explanation?',a:'Pancreas needs rest to heal. Eating stimulates pancreatic enzyme secretion which worsens inflammation and pain.'},{pts:1000,s:'A Crohns patient on long-term prednisone develops round face, central obesity, blood glucose 180.',q:'What is occurring?',a:'Cushing syndrome from chronic corticosteroid use. Never stop medication abruptly, report infection signs, monitor blood glucose.'}]},{name:'Med Admin',q:[{pts:200,s:'A nurse is preparing IV vancomycin. Pharmacy sends it to infuse over 30 minutes.',q:'What concern should nurse have?',a:'Vancomycin too rapidly causes Red Man Syndrome - flushing, hypotension, rash. Should infuse over at least 60 minutes.'},{pts:400,s:'MAR shows potassium chloride 40 mEq IV ordered. Nurse receives medication as 40 mEq vial.',q:'What must nurse verify?',a:'IV potassium must NEVER be given as bolus push - causes fatal arrhythmias. Verify diluted appropriately, via pump, max 10-20 mEq/hour.'},{pts:600,s:'Nurse is to administer insulin lispro (Humalog) and insulin glargine (Lantus) before breakfast.',q:'How should these be administered?',a:'Give in SEPARATE syringes - Lantus should never be mixed with other insulins as it alters action of both.'},{pts:800,s:'A patient on IV heparin drip has aPTT of 120 seconds (therapeutic 60-80). Patient needs invasive procedure.',q:'What should nurse do?',a:'Hold heparin infusion, notify provider. If urgent reversal needed, protamine sulfate is antidote. Monitor for bleeding.'},{pts:1000,s:'Patient receiving first IV penicillin dose develops hives, wheezing, BP drop to 80/50 after 5 minutes.',q:'What is occurring and priority interventions?',a:'Anaphylaxis. 1) Stop infusion, 2) Call for help, 3) Epinephrine IM, 4) Maintain airway, 5) IV fluids, 6) Diphenhydramine.'}]},{name:'Pathophys',q:[{pts:200,s:'A patient with uncontrolled diabetes has glucose 450, breathing rapidly and deeply, fruity breath.',q:'What condition and what causes symptoms?',a:'DKA. Lack of insulin causes fat breakdown producing ketones. Metabolic acidosis triggers Kussmaul respirations.'},{pts:400,s:'A COPD patient on 2L nasal cannula has O2 increased to 6L by family. Patient becomes drowsy.',q:'What is happening physiologically?',a:'CO2 narcosis. COPD patients rely on hypoxic drive. High-flow O2 removes this drive causing hypoventilation and CO2 retention.'},{pts:600,s:'A post-thyroidectomy patient develops tingling around mouth, muscle cramps, positive Chvosteks sign.',q:'What complication and why?',a:'Hypocalcemia due to parathyroid gland damage during surgery. Treat with IV calcium gluconate.'},{pts:800,s:'Trauma patient receives 6 units PRBCs. Labs: pH 7.28, K+ 6.2, calcium 7.8, hypothermia.',q:'What massive transfusion complications?',a:'Metabolic acidosis, hyperkalemia (K+ leaks from stored RBCs), hypocalcemia (citrate binds calcium), hypothermia.'},{pts:1000,s:'Severe sepsis patient has BP 78/40, HR 128, lactate 6, urine output 10 mL/hr for 2 hours.',q:'What is occurring and priority interventions?',a:'Septic shock. Fluid resuscitation 30 mL/kg, obtain cultures, broad-spectrum antibiotics within 1 hour, vasopressors if needed.'}]}];var st={s1:0,s2:0,tm:1,done:{},cur:null,tmr:30,ti:null};function render(){var g=document.getElementById('g');if(st.cur===null){var h='<h1 class=title>🏥 Nursing Jeopardy</h1><p class=sub>NSG 520 - Pathophysiology and Pharmacology</p>';h+='<div class=scores><div class=\"team'+(st.tm===1?' on':'')+'\"><h3>Team 1</h3><div class=\"score '+(st.s1>=0?'pos':'neg')+'\">$'+st.s1+'</div></div>';h+='<div class=\"team'+(st.tm===2?' on':'')+'\"><h3>Team 2</h3><div class=\"score '+(st.s2>=0?'pos':'neg')+'\">$'+st.s2+'</div></div></div>';h+='<p class=turn>🎯 Team '+st.tm+' Pick</p><div class=board>';for(var c=0;c<6;c++)h+='<div class=cat>'+cats[c].name+'</div>';for(var r=0;r<5;r++)for(var c=0;c<6;c++){var k=c+'-'+r;h+=st.done[k]?'<button class=\"cell done\"></button>':'<button class=cell onclick=\"pick('+c+','+r+')\">$'+cats[c].q[r].pts+'</button>';}h+='</div><div class=btns><button class=\"btn reset\" onclick=reset()>Reset</button></div><p class=tips>💡 Questions increase in difficulty</p>';g.innerHTML=h;}else if(st.cur.show){var c=cats[st.cur.c],q=c.q[st.cur.r];var h='<div class=qview><div class=qhead><span class=qcat>'+c.name+' - $'+q.pts+'</span><p class=qteam>Team '+st.tm+'</p></div>';h+='<div class=sbox><h4>📋 Scenario:</h4><p>'+q.s+'</p></div>';h+='<div class=qbox><h4>❓ Question:</h4><p>'+q.q+'</p></div>';h+='<div class=abox><h4>✅ Answer:</h4><p>'+q.a+'</p></div>';h+='<div class=qbtns><button class=\"qbtn correct\" onclick=\"ans(1)\">✓ Correct +$'+q.pts+'</button><button class=\"qbtn wrong\" onclick=\"ans(0)\">✗ Wrong -$'+q.pts+'</button></div></div>';g.innerHTML=h;}else{var c=cats[st.cur.c],q=c.q[st.cur.r];var h='<div class=qview><div class=qhead><span class=qcat>'+c.name+' - $'+q.pts+'</span><p class=qteam>Team '+st.tm+'</p></div>';h+='<div class=timer><span class=\"tbadge'+(st.tmr<=10?' warn':'')+'\">⏱️ '+st.tmr+'s</span></div>';h+='<div class=sbox><h4>📋 Scenario:</h4><p>'+q.s+'</p></div>';h+='<div class=qbox><h4>❓ Question:</h4><p>'+q.q+'</p></div>';h+='<div class=qbtns><button class=\"qbtn reveal\" onclick=reveal()>Reveal Answer</button></div></div>';g.innerHTML=h;}}function pick(c,r){if(st.done[c+'-'+r])return;st.cur={c:c,r:r,show:false};st.tmr=30;clearInterval(st.ti);st.ti=setInterval(function(){st.tmr--;if(st.tmr<=0)clearInterval(st.ti);render();},1000);render();}function reveal(){clearInterval(st.ti);st.cur.show=true;render();}function ans(ok){clearInterval(st.ti);var q=cats[st.cur.c].q[st.cur.r];if(st.tm===1)st.s1+=ok?q.pts:-q.pts;else st.s2+=ok?q.pts:-q.pts;st.done[st.cur.c+'-'+st.cur.r]=true;st.tm=st.tm===1?2:1;st.cur=null;if(Object.keys(st.done).length===30){var w=st.s1>st.s2?'Team 1 Wins!':st.s2>st.s1?'Team 2 Wins!':'Tie!';document.getElementById('g').innerHTML='<div class=\"qview over\"><h1>🏆 Game Over!</h1><p class=final>Team 1: $'+st.s1+'</p><p class=final>Team 2: $'+st.s2+'</p><p class=winner>'+w+'</p><button class=\"qbtn reveal\" onclick=reset()>Play Again</button></div>';}else render();}function reset(){clearInterval(st.ti);st.s1=0;st.s2=0;st.tm=1;st.done={};st.cur=null;st.tmr=30;render();}render();</script></body></html>"></iframe></includeonly>
</noinclude><includeonly><div id="jepApp">Loading game...</div>
<script type="text/javascript">
//<![CDATA[
(function(){
var J={s1:0,s2:0,tm:1,done:{},cur:null,tmr:30,ti:null,el:null,mute:false,actx:null};
var C=[
{n:"Cardiovascular",q:[
{p:200,s:"A 58-year-old patient with heart failure is prescribed digoxin. Before administering, the nurse checks the apical pulse and finds it to be 52 bpm.",q:"What should the nurse do?",a:"Hold the medication and notify the healthcare provider. Digoxin should be held if apical pulse is below 60 bpm due to risk of toxicity and bradycardia."},
{p:400,s:"A patient taking warfarin for atrial fibrillation has an INR of 4.8 with dark, tarry stools and dizziness.",q:"What is the priority nursing intervention?",a:"Hold warfarin, notify provider immediately, prepare for possible Vitamin K. Patient shows GI bleeding signs with supratherapeutic INR."},
{p:600,s:"A post-MI patient shows wide QRS complex rhythm at 180 bpm with no detectable pulse.",q:"What is this rhythm and immediate action?",a:"Pulseless VT. Begin CPR immediately and prepare for defibrillation per ACLS protocol."},
{p:800,s:"A CHF patient started on carvedilol reports increased SOB and 5 lb weight gain after two weeks.",q:"Why might this occur?",a:"Beta-blockers can initially worsen heart failure symptoms before long-term benefit. Assess fluid retention, monitor daily weights."},
{p:1000,s:"A hypertensive patient on lisinopril develops persistent dry cough. Provider switches to losartan.",q:"Best explanation for this change?",a:"ACE inhibitors cause dry cough from bradykinin accumulation. ARBs work similarly without this effect."}
]},
{n:"Pain Mgmt",q:[
{p:200,s:"Post-surgical patient rates pain 7/10, requests PRN morphine. Last dose 3 hours ago, ordered q4h.",q:"Appropriate nursing action?",a:"Offer non-pharmacological interventions, reassess in 1 hour. Cannot give morphine until 4-hour interval passes."},
{p:400,s:"Elderly dementia patient grimacing, guarding abdomen, restless but cannot verbally report pain.",q:"What pain assessment tool to use?",a:"Behavioral pain scale like PAINAD or FLACC. Assess nonverbal cues."},
{p:600,s:"Chronic back pain patient on oxycodone 6 months now needs higher doses for same relief.",q:"What is this vs addiction?",a:"Tolerance - physiological adaptation. Differs from addiction which involves compulsive use despite harm."},
{p:800,s:"Patient on IV morphine PCA has RR of 8, difficult to arouse, pinpoint pupils.",q:"What is occurring and priority interventions?",a:"Opioid overdose. Stop PCA, stimulate patient, prepare naloxone, support airway."},
{p:1000,s:"Cancer patient on MS Contin still has breakthrough pain episodes.",q:"What medication modification to anticipate?",a:"Add immediate-release morphine for breakthrough, typically 10-15 percent of 24-hour dose."}
]},
{n:"Teaching",q:[
{p:200,s:"New diabetic needs insulin teaching but appears anxious and keeps checking phone.",q:"What should nurse do first?",a:"Assess readiness to learn. Address anxiety, minimize distractions, determine learning style."},
{p:400,s:"Elderly patient on new warfarin has hearing loss and reads at 6th-grade level.",q:"Teaching strategies to employ?",a:"Face patient, simple language, large print materials at appropriate level, teach-back method."},
{p:600,s:"Patient discharged on metformin asks about drinking alcohol on weekends.",q:"What education to provide?",a:"Alcohol increases lactic acidosis risk with metformin. Limit alcohol, never on empty stomach."},
{p:800,s:"CHF patient discharge - nurse has 15 minutes to teach meds, diet, activity, warning signs.",q:"How to prioritize?",a:"Survival skills: daily weights, sodium restriction basics, med names and times, warning signs."},
{p:1000,s:"16-year-old with new epilepsy needs phenytoin teaching. Mother wants to handle all meds.",q:"Developmental considerations?",a:"Adolescents need autonomy. Include teen, address appearance concerns and driving restrictions."}
]},
{n:"GI/Hepatic",q:[
{p:200,s:"Cirrhosis patient has ammonia 95 (normal 15-45), confused with asterixis.",q:"What medication and why?",a:"Lactulose - acidifies colon, converts ammonia to ammonium, promotes elimination."},
{p:400,s:"Post-cholecystectomy patient has severe right shoulder pain despite abdominal surgery.",q:"What causes this?",a:"Referred pain from CO2 irritating diaphragm. Encourage ambulation to absorb gas."},
{p:600,s:"PUD patient prescribed omeprazole, clarithromycin, amoxicillin for 14 days.",q:"What is this treating?",a:"H. pylori triple therapy. Complete entire course, PPI before meals."},
{p:800,s:"Acute pancreatitis patient with NG tube, IV fluids, NPO asks why they cannot eat.",q:"Best explanation?",a:"Pancreas needs rest. Eating stimulates enzyme secretion worsening inflammation."},
{p:1000,s:"Crohns patient on long-term prednisone has moon face, central obesity, glucose 180.",q:"What is occurring?",a:"Cushing syndrome from steroids. Never stop abruptly, monitor glucose, report infections."}
]},
{n:"Med Admin",q:[
{p:200,s:"Nurse preparing IV vancomycin - pharmacy says infuse over 30 minutes.",q:"What concern?",a:"Too fast causes Red Man Syndrome. Should infuse over at least 60 minutes."},
{p:400,s:"MAR shows KCl 40 mEq IV. Nurse receives 40 mEq vial.",q:"What must nurse verify?",a:"Never IV push - fatal arrhythmias. Dilute properly, use pump, max 10-20 mEq per hour."},
{p:600,s:"Nurse to give insulin lispro and glargine before breakfast.",q:"How to administer?",a:"SEPARATE syringes - Lantus never mixed with other insulins."},
{p:800,s:"Patient on heparin drip has aPTT 120 (therapeutic 60-80), needs procedure.",q:"What should nurse do?",a:"Hold heparin, notify provider. Protamine sulfate for urgent reversal."},
{p:1000,s:"First IV penicillin dose - patient develops hives, wheezing, BP 80/50.",q:"What and priority interventions?",a:"Anaphylaxis. Stop infusion, call help, epinephrine IM, airway, IV fluids."}
]},
{n:"Pathophys",q:[
{p:200,s:"Uncontrolled diabetic: glucose 450, rapid deep breathing, fruity breath.",q:"Condition and symptom causes?",a:"DKA. No insulin causes fat breakdown and ketones. Acidosis triggers Kussmaul respirations."},
{p:400,s:"COPD patient on 2L O2 - family increases to 6L. Patient becomes drowsy.",q:"What is happening?",a:"CO2 narcosis. High O2 removes hypoxic drive causing hypoventilation."},
{p:600,s:"Post-thyroidectomy: mouth tingling, muscle cramps, positive Chvostek sign.",q:"Complication and why?",a:"Hypocalcemia from parathyroid damage. Treat with IV calcium gluconate."},
{p:800,s:"Trauma patient got 6 units PRBCs. Labs: pH 7.28, K+ 6.2, Ca 7.8, hypothermia.",q:"Massive transfusion complications?",a:"Acidosis, hyperkalemia, hypocalcemia, hypothermia."},
{p:1000,s:"Sepsis: BP 78/40, HR 128, lactate 6, urine 10 mL/hr x2 hours.",q:"What occurring and priorities?",a:"Septic shock. Fluids 30 mL per kg, cultures, antibiotics within 1 hour, vasopressors."}
]}
];
function initAudio(){
if(!J.actx){try{J.actx=new(window.AudioContext||window.webkitAudioContext)();}catch(e){}}
if(J.actx&&J.actx.state==="suspended"){J.actx.resume();}
}
function tone(f,d,t,v){
if(J.mute||!J.actx)return;
try{
var o=J.actx.createOscillator();
var g=J.actx.createGain();
o.connect(g);
g.connect(J.actx.destination);
o.frequency.value=f;
o.type=t||"sine";
g.gain.value=v||0.3;
g.gain.exponentialRampToValueAtTime(0.01,J.actx.currentTime+d);
o.start();
o.stop(J.actx.currentTime+d);
}catch(e){}
}
function sndSelect(){
initAudio();
tone(523,0.1,"sine",0.2);
setTimeout(function(){tone(659,0.1,"sine",0.2);},50);
setTimeout(function(){tone(784,0.15,"sine",0.2);},100);
}
function sndCorrect(){
initAudio();
var n=[523,659,784,1047];
for(var i=0;i<n.length;i++){
(function(x){setTimeout(function(){tone(n[x],0.2,"sine",0.25);},x*100);})(i);
}
}
function sndWrong(){
initAudio();
tone(200,0.3,"sawtooth",0.15);
setTimeout(function(){tone(150,0.4,"sawtooth",0.15);},150);
}
function sndReveal(){
initAudio();
tone(440,0.1,"triangle",0.2);
setTimeout(function(){tone(554,0.1,"triangle",0.2);},100);
setTimeout(function(){tone(659,0.2,"triangle",0.2);},200);
}
var css='<style>#jepApp .jG{font-family:Arial,sans-serif;background:linear-gradient(135deg,rgb(30,58,95),rgb(12,25,41));padding:15px;border-radius:8px;color:white}#jepApp .jG *{margin:0;padding:0;box-sizing:border-box}#jepApp .t{text-align:center;color:rgb(251,191,36);font-size:1.6rem;font-weight:bold;margin-bottom:5px}#jepApp .st{text-align:center;color:rgb(147,197,253);margin-bottom:10px;font-size:.8rem}#jepApp .sb{display:flex;justify-content:center;gap:20px;margin-bottom:8px}#jepApp .tm{background:rgb(30,64,175);padding:8px 15px;border-radius:6px;text-align:center}#jepApp .tm.on{box-shadow:0 0 10px rgb(251,191,36)}#jepApp .tm h3{color:white;font-size:.8rem;margin-bottom:2px}#jepApp .sc{font-size:1.1rem;font-weight:bold}#jepApp .ps{color:rgb(74,222,128)}#jepApp .ng{color:rgb(248,113,113)}#jepApp .tr{text-align:center;color:rgb(251,191,36);font-size:.85rem;margin-bottom:8px}#jepApp .bd{display:grid;grid-template-columns:repeat(6,1fr);gap:3px;margin-bottom:10px}#jepApp .ct{background:rgb(30,64,175);color:white;padding:6px 3px;text-align:center;font-weight:bold;font-size:.65rem;border-radius:3px 3px 0 0;min-height:35px;display:flex;align-items:center;justify-content:center}#jepApp .cl{background:rgb(37,99,235);color:rgb(251,191,36);padding:10px 3px;text-align:center;font-size:.9rem;font-weight:bold;border-radius:3px;cursor:pointer;border:none}#jepApp .cl:hover{background:rgb(59,130,246)}#jepApp .cl.dn{background:rgb(30,58,95);color:transparent;cursor:default}#jepApp .bt{text-align:center}#jepApp .rs{background:rgb(220,38,38);color:white;padding:5px 10px;border-radius:3px;font-weight:bold;cursor:pointer;border:none;font-size:.75rem;margin-right:5px}#jepApp .mt{background:rgb(30,64,175);color:white;padding:5px 10px;border-radius:3px;font-weight:bold;cursor:pointer;border:none;font-size:.9rem}#jepApp .qv{background:rgb(30,64,175);border-radius:6px;padding:12px;max-width:550px;margin:0 auto}#jepApp .qh{text-align:center;margin-bottom:8px}#jepApp .qc{display:inline-block;background:rgb(251,191,36);color:rgb(30,58,95);padding:3px 10px;border-radius:10px;font-weight:bold;font-size:.75rem}#jepApp .qt{color:rgb(251,191,36);margin-top:4px;font-size:.75rem}#jepApp .ti{text-align:center;margin-bottom:6px}#jepApp .tb{display:inline-block;padding:4px 10px;border-radius:10px;font-size:.9rem;font-weight:bold;background:rgb(251,191,36);color:rgb(30,58,95)}#jepApp .tb.w{background:rgb(220,38,38);color:white}#jepApp .sx{background:rgb(29,78,216);border-radius:4px;padding:8px;margin-bottom:6px}#jepApp .sx h4{color:rgb(251,191,36);font-size:.7rem;margin-bottom:3px}#jepApp .sx p{font-size:.8rem;line-height:1.3}#jepApp .qx{background:rgb(37,99,235);border-radius:4px;padding:8px;margin-bottom:6px}#jepApp .qx h4{color:rgb(251,191,36);font-size:.7rem;margin-bottom:3px}#jepApp .qx p{font-size:.85rem;font-weight:600}#jepApp .ax{background:rgb(22,101,52);border-radius:4px;padding:8px;margin-bottom:6px}#jepApp .ax h4{color:rgb(251,191,36);font-size:.7rem;margin-bottom:3px}#jepApp .ax p{font-size:.8rem;line-height:1.3}#jepApp .qb{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:8px}#jepApp .bn{padding:6px 12px;border-radius:3px;font-weight:bold;cursor:pointer;border:none;font-size:.75rem}#jepApp .rv{background:rgb(251,191,36);color:rgb(30,58,95)}#jepApp .cr{background:rgb(34,197,94);color:white}#jepApp .wr{background:rgb(239,68,68);color:white}#jepApp .ov{text-align:center;padding:15px}#jepApp .ov h1{font-size:1.5rem;color:rgb(251,191,36);margin-bottom:8px}#jepApp .fn{font-size:.9rem;margin-bottom:3px}#jepApp .wn{font-size:1.1rem;color:rgb(251,191,36);font-weight:bold;margin-bottom:12px}</style>';
function board(){
var h=css+'<div class="jG"><h1 class="t">Nursing Jeopardy</h1><p class="st">NSG 520 - Click any tile to start!</p>';
h+='<div class="sb"><div class="tm'+(J.tm===1?' on':'')+'"><h3>Team 1</h3><div class="sc '+(J.s1>=0?'ps':'ng')+'">$'+J.s1+'</div></div>';
h+='<div class="tm'+(J.tm===2?' on':'')+'"><h3>Team 2</h3><div class="sc '+(J.s2>=0?'ps':'ng')+'">$'+J.s2+'</div></div></div>';
h+='<p class="tr">Team '+J.tm+' Pick</p><div class="bd">';
for(var i=0;i<6;i++)h+='<div class="ct">'+C[i].n+'</div>';
for(var r=0;r<5;r++)for(var c=0;c<6;c++){var k=c+'-'+r;h+=J.done[k]?'<button class="cl dn"></button>':'<button class="cl" onclick="jepPick('+c+','+r+')">$'+C[c].q[r].p+'</button>';}
h+='</div><div class="bt"><button class="rs" onclick="jepReset()">Reset</button><button class="mt" onclick="jepMute()">'+(J.mute?'🔇':'🔊')+'</button></div></div>';
J.el.innerHTML=h;
}
function question(){
var c=C[J.cur.c],q=c.q[J.cur.r];
var h=css+'<div class="jG"><div class="qv"><div class="qh"><span class="qc">'+c.n+' - $'+q.p+'</span><p class="qt">Team '+J.tm+'</p></div>';
h+='<div class="ti"><span class="tb'+(J.tmr<=10?' w':'')+'">'+J.tmr+'s</span></div>';
h+='<div class="sx"><h4>Scenario:</h4><p>'+q.s+'</p></div>';
h+='<div class="qx"><h4>Question:</h4><p>'+q.q+'</p></div>';
h+='<div class="qb"><button class="bn rv" onclick="jepReveal()">Reveal Answer</button></div></div></div>';
J.el.innerHTML=h;
}
function answer(){
var c=C[J.cur.c],q=c.q[J.cur.r];
var h=css+'<div class="jG"><div class="qv"><div class="qh"><span class="qc">'+c.n+' - $'+q.p+'</span><p class="qt">Team '+J.tm+'</p></div>';
h+='<div class="sx"><h4>Scenario:</h4><p>'+q.s+'</p></div>';
h+='<div class="qx"><h4>Question:</h4><p>'+q.q+'</p></div>';
h+='<div class="ax"><h4>Answer:</h4><p>'+q.a+'</p></div>';
h+='<div class="qb"><button class="bn cr" onclick="jepAns(1)">Correct +$'+q.p+'</button><button class="bn wr" onclick="jepAns(0)">Wrong -$'+q.p+'</button></div></div></div>';
J.el.innerHTML=h;
}
function gameover(){
var w=J.s1>J.s2?'Team 1 Wins!':J.s2>J.s1?'Team 2 Wins!':'Tie!';
var h=css+'<div class="jG"><div class="qv ov"><h1>Game Over!</h1><p class="fn">Team 1: $'+J.s1+'</p><p class="fn">Team 2: $'+J.s2+'</p><p class="wn">'+w+'</p><button class="bn rv" onclick="jepReset()">Play Again</button></div></div>';
J.el.innerHTML=h;
}
window.jepPick=function(c,r){
if(J.done[c+'-'+r])return;
sndSelect();
J.cur={c:c,r:r};
J.tmr=30;
clearInterval(J.ti);
J.ti=setInterval(function(){J.tmr--;if(J.tmr<=0)clearInterval(J.ti);question();},1000);
question();
};
window.jepReveal=function(){
clearInterval(J.ti);
sndReveal();
answer();
};
window.jepAns=function(ok){
clearInterval(J.ti);
if(ok){sndCorrect();}else{sndWrong();}
var q=C[J.cur.c].q[J.cur.r];
if(J.tm===1)J.s1+=ok?q.p:-q.p;else J.s2+=ok?q.p:-q.p;
J.done[J.cur.c+'-'+J.cur.r]=true;
J.tm=J.tm===1?2:1;
J.cur=null;
Object.keys(J.done).length===30?gameover():board();
};
window.jepReset=function(){
clearInterval(J.ti);
J.s1=0;J.s2=0;J.tm=1;J.done={};J.cur=null;J.tmr=30;
board();
};
window.jepMute=function(){
J.mute=!J.mute;
board();
};
function init(){J.el=document.getElementById("jepApp");if(J.el)board();}
if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",init);}else{init();}
})();
//]]>
</script></includeonly>

Latest revision as of 01:29, 11 January 2026

Nursing Pharmacology Jeopardy Game for NSG 520

Usage

{{#widget:520Jeapordy}}