Widget:CJP: Difference between revisions

Jump to navigation Jump to search
Christopher Popma (talk | contribs)
No edit summary
Christopher Popma (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<script type = "text/javascript">
<script type = "text/javascript">
$(document).ready(function(){
$(document).ready(function() {
$(#prepend).val("{|class=&quot;wikitable sortable&quot; cellpadding=&quot;5&quot; !Drug Name !! Pill Imprint !! Dosage !! Ingredients !! Pill Color !! Pill Shape !! Pill Size (mm) !! Score !! NDC !! Pill Image
$('#prepend').val('{|class="wikitable sortable" cellpadding="5" !Drug Name !! Pill Imprint !! Dosage !! Ingredients !! Pill Color !! Pill Shape !! Pill Size (mm) !! Score !! NDC !! Pill Image|-{{#ask:');
|-{{#ask:");
$('#pend').val('[[Pill Shape::Round]]');
$(#pend).val([[Pill Shape::Round]]
$('#append').val('|?Pill Imprint|?Pill Dosage|?Pill Ingred|?Pill Color|?Pill Shape|?Pill Size (mm)|?Pill Scoring |?NDC|?Pill Name|format=template|template=PillID}} |}')
$(#append).val("|?Pill Imprint|?Pill Dosage|?Pill Ingred|?Pill Color|?Pill Shape|?Pill Size (mm)|?Pill Scoring |?NDC|?Pill Name|format=template|template=PillID}} |}"
});
});


$('#executeGo').click( function() {
$('#executeGo').click( function() {
   $('#prepend').type = "visible";
   $('#prepend').css("visibility","visible");
   $('#pend').type = "visible";
   $('#pend').css("visibility","visible");
   $('#apend').type = "visible";
   $('#apend').css("visibility","visible");
});
});
</script>
</script>

Revision as of 15:34, 28 May 2014