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 3: Line 3:
<script type = "text/javascript">
<script type = "text/javascript">
$(document).ready(function() {
$(document).ready(function() {
$('#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:');
    $('#executeGo').click(function() {
$('#pend').val('[[Pill Shape::Round]]');
        $('#textHere').append('<string>{|class="wikitable sortable" cellpadding="5" !Drug Name !! Pill Imprint !! Dosage !! Ingredients !! Pill Color !! Pill Shape !! Pill Size (mm) !! Score !! NDC !! Pill Image|-{{#ask:</string>');
$('#append').val('|?Pill Imprint|?Pill Dosage|?Pill Ingred|?Pill Color|?Pill Shape|?Pill Size (mm)|?Pill Scoring |?NDC|?Pill Name|format=template|template=PillID}} |}')
        $('#textHere').append('<string>[[Pill Shape::Round]]</string>');
});
        $('#textHere').append('<string>|?Pill Imprint|?Pill Dosage|?Pill Ingred|?Pill Color|?Pill Shape|?Pill Size (mm)|?Pill Scoring |?NDC|?Pill Name|format=template|template=PillID}} |}</string>');
    });


$('#executeGo').click( function() {
  $('#prepend').css("visibility","visible");
  $('#pend').css("visibility","visible");
  $('#append').css("visibility","visible");
});
});
</script>
</script>
<input type="button" id="executeGo" value="Go" />
<div id="textHere"></div>
<input type="hidden" id="prepend" />
<input type="button" id="executeGo" value="Go" />
<input type="hidden" id="pend" />
<input type="hidden" id="append" />
</includeonly>
</includeonly>

Revision as of 16:15, 28 May 2014