Widget:PillIdentifier: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
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) { | ||
///////////////////////////////////////////////////////////////////////// | ///////////////////////////////////////////////////////////////////////// |