Difference between revisions of "MediaWiki:Sandbox.js"
Jump to navigation
Jump to search
Nussnougat (talk | contribs) |
Nussnougat (talk | contribs) |
||
Line 1: | Line 1: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
+ | console.log(window.location.hostname); | ||
$.ajax({ | $.ajax({ | ||
type: "GET", | type: "GET", |
Revision as of 06:11, 6 August 2019
$(document).ready(function() { console.log(window.location.hostname); $.ajax({ type: "GET", dataType: "json", url: window.location.hostname+"/vv-api/get-creatures.php", success: function(data) { console.log(data); }, error: function(status, exec) { console.log(status); } }); $('#sandbox-output').html('Sandbox JS loaded!'); });