Widget:PillIdentifier: Difference between revisions

Jump to navigation Jump to search
Christopher Popma (talk | contribs)
No edit summary
Christopher Popma (talk | contribs)
No edit summary
Line 86: Line 86:


function resetForm(){
function resetForm(){
$('pillShapeOption').children("img").css("border","");
$('.pillShapeOption').children("img").css("border","");
$('pillColorOption').children("img").css("border","");
$('.pillColorOption').children("img").css("border","");
$('pillScoreOption').children("img").css("border","");
$('.pillScoreOption').children("img").css("border","");


$("#selectedShape").val("");
$("#selectedShape").val("");
Line 162: Line 162:
var jsonURL = "http://www.wikidoc.org/api.php?action=ask&query="+queryParameters+printoutRequests+"&format=json";
var jsonURL = "http://www.wikidoc.org/api.php?action=ask&query="+queryParameters+printoutRequests+"&format=json";
$.getJSON(jsonURL, function (data) {
$.getJSON(jsonURL, function (data) {
console.log(data.query.results);
$.each(data.query.results, function(ind, val) {
$.each(data.query.results, function(ind, val) {
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////

Revision as of 00:25, 3 August 2015