Difference between revisions of "MediaWiki:Sandbox.js"

From Virtuverse Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
$(document).ready(function() {
 
$(document).ready(function() {
 +
 +
  $.ajax({
 +
    type: "GET",
 +
    dataType: "json",
 +
    url: window.location.host+"/vv-api/get-creatures.php",
 +
    success: function(data) {
 +
        console.log(data);
 +
    },
 +
    error: function(status, exec) {
 +
        console.log(status);
 +
    }
 +
  });
 +
 
   $('#sandbox-output').html('Sandbox JS loaded!');
 
   $('#sandbox-output').html('Sandbox JS loaded!');
 
});
 
});

Revision as of 06:09, 6 August 2019

$(document).ready(function() {

  $.ajax({
     type: "GET",
     dataType: "json",
     url: window.location.host+"/vv-api/get-creatures.php",
     success: function(data) {
        console.log(data);
     },
     error: function(status, exec) {
        console.log(status);
     }
  });

  $('#sandbox-output').html('Sandbox JS loaded!');
});