Widget:CJP: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
$('#searchParameters').append('<string>[[Pill Shape::</string>'+$('#selectPillShape option:selected').val() +'<string>]]</string>'); | $('#searchParameters').append('<string>[[Pill Shape::</string>'+$('#selectPillShape option:selected').val() +'<string>]]</string>'); | ||
$('#pillTable').css('visibility','visible'); | $('#pillTable').css('visibility','visible'); | ||
var api = new mw.Api(); | |||
api.parse( $('#pillTable') ) | |||
.done( function ( html ) { | |||
console.log( 'Parsed result:', html ); | |||
} ); | |||
}); | }); | ||
$('#executeReset').click(function() { | $('#executeReset').click(function() { | ||
Line 13: | Line 19: | ||
}); | }); | ||
</script> | </script> | ||
Pill Shape: <select id="selectPillShape"> | |||
<option>Round</option> | |||
<option>Oval</option> | |||
<option>Capsule</option> | |||
</select><br /> | |||
<input type="button" id="executeGo" value="Go" /> | <input type="button" id="executeGo" value="Go" /> | ||
<input type="button" id="executeReset" value="Reset" /> | <input type="button" id="executeReset" value="Reset" /> |