Widget:MedIDMaker: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly> <script type = "text/javascript"> function ensureLoggedIn() { mw.loader.load('mediaWiki.user'); if ($.isEmptyObject(wgUserName)) { alert("Please ..." |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 25: | Line 25: | ||
token : mw.user.tokens.get('editToken'), | token : mw.user.tokens.get('editToken'), | ||
text : chapterText, | text : chapterText, | ||
title : $("# | title : $("#pillName").val(), | ||
format : 'json' | format : 'json' | ||
}) | }) | ||
Line 31: | Line 31: | ||
alert("Great success?"); | alert("Great success?"); | ||
$('option:selected', 'select').removeAttr('selected').next('option').attr('selected', 'selected'); | $('option:selected', 'select').removeAttr('selected').next('option').attr('selected', 'selected'); | ||
pageContent(); | |||
}); | }); | ||
} | } | ||
Line 50: | Line 50: | ||
}); | }); | ||
} | } | ||
function | function pageContent() { | ||
resetForm(); | resetForm(); | ||
$("#chapterContent2").css("visibility", "visible"); | $("#chapterContent2").css("visibility", "visible"); | ||
Line 58: | Line 56: | ||
$("#pend").val("|blackBoxWarningBody="); | $("#pend").val("|blackBoxWarningBody="); | ||
$("#append").val("}}"); | $("#append").val("}}"); | ||
$("#instructions").html("These are some instructions"); | $("#instructions").html("These are some instructions"); | ||
} | } | ||
function clearHeading() { | function clearHeading() { | ||
Line 104: | Line 86: | ||
$(document).ready(ensureLoggedIn); | $(document).ready(ensureLoggedIn); | ||
</script> | </script> | ||
<div id="instructions"> | <div id="instructions"> | ||
</div> | </div> | ||
Pill Image Name: <input type="text" id="pillName" /><br /> | |||
<br /> | |||
< | Please enter the name of the page to which this pill is associated: <input type="text" id="drugName" /><br /> | ||
< | |||
< | Pill Imprint: <input type="text" id="pillImprint" /><br /> | ||
< | <br /> | ||
< | Pill Dosage: <input type="text" id="dosageValue" /> <select id="dosageUnit"> | ||
< | <option>kg</option> | ||
<option> | <option>uL</option> | ||
<option> | <option>mL (cc)</option> | ||
<option> | <option>dL</option> | ||
<option> | <option>L</option> | ||
<option> | <option>gtt(s)</option> | ||
<option> | <option>AU</option> | ||
<option> | <option>IU</option> | ||
<option> | <option>umol</option> | ||
<option> | <option>mmol</option< | ||
<option> | <option>U</option> | ||
< | |||
<option> | |||
</select><br /> | </select><br /> | ||
If the dosage does not fit the above format, you may enter it here: <input type="text" id="dosageFreeText" /><br /> | |||
<br /> | |||
Pill Size: <input type="text" id="pillSize" /><br /> | |||
<br /> | |||
Pill Shape: <select id="pillShape"> | |||
<option>Round</option> | |||
<option>Oval</option> | |||
<option>Square</option> | |||
<option>Rectangular</option> | |||
<option>Triangular</option> | |||
<option>Capsule</option> | |||
<option>Pentagon</option> | |||
<option>Hexagon</option> | |||
<option>Diamond</option> | |||
<option>Gear</option> | |||
<option>DoubleCircle</option> | |||
<option>Clover</option> | |||
<option>TearDrop</option> | |||
<option>Octagon</option> | |||
<option>SemiCircle</option> | |||
<option>Bullet</option> | |||
<option>Trapezoid</option> | |||
<option>Freeform</option> | |||
</select><br /> | |||
<br /> | |||
Pill Color: <select id="pillColor"> | |||
<option>Brown</option> | |||
<option>Red</option> | |||
<option>Orange</option> | |||
<option>Yellow</option> | |||
<option>Green</option> | |||
<option>Turquoise</option> | |||
<option>Blue</option> | |||
<option>Purple</option> | |||
<option>Pink</option> | |||
<option>Black</option> | |||
<option>Grey</option> | |||
<option>White</option> | |||
</select><br /> | |||
<br /> | |||
Pill Scoring: <select id="pillScoring"> | |||
<option>1</option> | |||
<option>2</option> | |||
<option>3</option> | |||
<option>4</option> | |||
<option>5</option> | |||
<option>6</option> | |||
<option>7</option> | |||
<option>8</option> | |||
<option>9</option> | |||
<option>10</option> | |||
</select><br /> | |||
<br /> | |||
Direct link to the Pill Image: <input type="text" id="pillImage" value="http://static.wikidoc.org/0/0e/No_image.jpg" /> | |||
<br /> | |||
<div id="headingDiv" style="visibility:hidden;"> | <div id="headingDiv" style="visibility:hidden;"> | ||
</div><br /> | </div><br /> | ||