Widget:WJG Sandbox: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 755: Line 755:
$("#examSpace").html(htmlStuff);
$("#examSpace").html(htmlStuff);


$("#examSpace").prepend("<div id='details' style='display:none'> The .slideToggle() method animates the height of the matched elements. This causes lower parts of the page to slide up or down, appearing to reveal or conceal the items. If the element is initially displayed, it will be hidden; if hidden, it will be shown. The display property is saved and restored as needed. If an element has a display value of inline, then is hidden and shown, it will once again be displayed inline. When the height reaches 0 after a hiding animation, the display style property is set to none to ensure that the element no longer affects the layout of the page</div>");
$("#examSpace").prepend("<div id='details' style='display:none'> <table class="tg">  <tr>    <th class="tg-031e">Sodium (Na+)</th>    <th class="tg-031e">135-145 mEq/L</th>  </tr>  <tr>    <td class="tg-031e">Potassium (K+)</td>    <td class="tg-031e">3.5-4.0 mEq/L</td>  </tr>  <tr>    <td class="tg-031e">Chloride (Cl-)</td>    <td class="tg-031e">95-105 mEq/L</td>  </tr>  <tr>    <td class="tg-031e">Bicarbonate (HCO3-)</td>    <td class="tg-031e">22-28 mEq/L</td>  </tr>  <tr>    <td class="tg-031e">Magnesium (Mg2+)</td>    <td class="tg-031e"></td>  </tr></table></div>");
if (exam.examQuestions[exam.currentQuestion].selectedAnswer !== 'F') {
if (exam.examQuestions[exam.currentQuestion].selectedAnswer !== 'F') {
$("#" + exam.examQuestions[exam.currentQuestion].selectedAnswer).addClass("boxed");
$("#" + exam.examQuestions[exam.currentQuestion].selectedAnswer).addClass("boxed");
Line 786: Line 786:
})
})
$("#lab_vals").click(function(){
$("#lab_vals").click(function(){
$("#details").slideToggle("slow");
$("#details").slideToggle("slow");});
alert("Coming Soon!")});





Revision as of 00:57, 19 May 2014