Widget:DAPTscore: Difference between revisions
Jump to navigation
Jump to search
Gerald Chi (talk | contribs) mNo edit summary |
Gerald Chi (talk | contribs) mNo edit summary |
||
(26 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
function calcScore(){ | function calcScore(){ | ||
Line 18: | Line 19: | ||
document.forms["DAPTSCORE"]["result"].value = score; | document.forms["DAPTSCORE"]["result"].value = score; | ||
if(score | if(score >= 2){document.forms["DAPTSCORE"]["longanswer"].value = "Benefit-risk favoring prolonged DAPT over aspirin alone";} | ||
if(score | if(score <= 1){document.forms["DAPTSCORE"]["longanswer"].value = "Benefit-risk favoring aspirin alone over prolonged DAPT";} | ||
} | } | ||
</script> | </script> | ||
<form name="DAPTSCORE"> | <form name="DAPTSCORE"> | ||
<table> | <table> | ||
<tbody style="border: 0; float: left; position: float; background: #104E8B; border-radius: 10px 10px 10px 10px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); margin: 0 0 0 0; padding: 5px 5px; font-weight: bold;"> | <tbody style="border: 0; float: left; position: float; background: #104E8B; border-radius: 10px 10px 10px 10px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); margin: 0 0 0 0; padding: 5px 5px; font-weight: bold;"> | ||
<tr> | <tr> | ||
<td style="text-align: center;" colspan="4"><span style="color: #ffffff;"><strong>DAPT | <td style="text-align: center;" colspan="4"><span style="color: #ffffff;"><strong>DAPT Score Calculator</strong></span></td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 91: | Line 92: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td style="text-align: left; color: #4479BA; background: #ffffff; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 0 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);" colspan="4"> DAPT Score: <input name="result" type="text" style="border: white"/></td> | <td style="text-align: left; color: #4479BA; background: #ffffff; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 0 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); font-size: 10pt;" colspan="4"> DAPT Score: <input name="result" type="text" maxlength="2" size="4" style="border: white; font-size: 10pt; font-weight: normal; font-family: Arial;"/></td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td style="text-align: left; color: #4479BA; background: #ffffff; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 0 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);" colspan="4">Interpretation: < | <td style="text-align: left; vertical-align: top; color: #4479BA; background: #ffffff; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 0 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); font-size: 10pt;" colspan="4">Interpretation:<textarea name="longanswer" wrap="soft" rows="5" cols="25" style="border: white; font-size: 10pt; font-weight: normal; font-family: Arial;"></textarea> | ||
</tr> | </tr> | ||
</tbody> | </tbody> | ||
</table> | </table> | ||
</form> | </form> | ||
</includeonly> | </includeonly> |