New wiki-page
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
//Thats all the user input
//Thats all the user input


$(document).ready(
var text=tetetetet
 
document.write(text + 'test <br>');  
$.getJSON("http://w.ikabodo.se/api.php?action=browsebysubject&subject=Cymric_Male_Names&format=json", function(data) {
      $(data.query.data).each(function(key, data){
              var text=data.dataitem[0].item.split('_').join(' '); // get rid of _
                document.write(text + 'test <br>');
      });
});
);


</script>
</script>

Revision as of 08:29, 14 August 2017

<script type="text/javascript">


var message = ; //We should have a message //Thats all the user input

var text=tetetetet document.write(text + 'test
');

</script>