New wiki-page
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
//Thats all the user input | //Thats all the user input | ||
$.getJSON("http:// | $.getJSON("http://w.ikabodo.se/api.php?action=browsebysubject&subject=Cymric_Male_Names&format=json", function(data) { | ||
$(data.query.data).each(function(key, data){ | $(data.query.data).each(function(key, data){ | ||
if(( data.property == message )){ | if(( data.property == message )){ |
Revision as of 08:21, 14 August 2017
<script type="text/javascript">
var colour =; //If there is no colour well set it to red
var message = ; //We should have a message
var divid = ; //Remove quotes
//Thats all the user input
$.getJSON("http://w.ikabodo.se/api.php?action=browsebysubject&subject=Cymric_Male_Names&format=json", function(data) {
$(data.query.data).each(function(key, data){ if(( data.property == message )){ var text=data.dataitem[0].item.split('_').join(' '); // get rid of _
document.getElementById(divid).innerHTML = '