MediaWiki:Common.js: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
 (ready)  | 
				 (asd)  | 
				||
| Line 2: | Line 2: | ||
$(document).ready(function() {  | $(document).ready(function() {  | ||
    $.getScript("/ageVerify/ageVerify.js", function(){  |     $.getScript("/ageVerify/ageVerify.js")  | ||
  .done(function( script, textStatus ) {  | |||
    console.log( textStatus );  | |||
  })  | |||
  .fail(function( jqxhr, settings, exception ) {  | |||
    $( "div.log" ).text( "Triggered ajaxError handler." );  | |||
});  | });  | ||
Revision as of 08:54, 8 February 2016
/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready(function() {
   $.getScript("/ageVerify/ageVerify.js")
  .done(function( script, textStatus ) {
    console.log( textStatus );
  })
  .fail(function( jqxhr, settings, exception ) {
    $( "div.log" ).text( "Triggered ajaxError handler." );
});