Difference between revisions of "MediaWiki:Common.js"

From Multi Theft Auto: Wiki
 
Line 11: Line 11:
 
href: 'https://cdn.rawgit.com/darkdreamingdan/MTA-prettify/master/mtahighlight.min.css'
 
href: 'https://cdn.rawgit.com/darkdreamingdan/MTA-prettify/master/mtahighlight.min.css'
 
}).appendTo('head');
 
}).appendTo('head');
 +
$(document).ready(applyMTAMarkup);
 
});
 
});
 
});
 
});
 
});
 
});

Latest revision as of 23:13, 25 December 2016

$.ajaxSetup({
  cache: true
});

$.getScript( "https://forum.mtasa.com/uploads/javascript_syntax/luafuncs.js" ).done(function() {
    $.getScript( "https://forum.mtasa.com/uploads/javascript_syntax/mtafuncs.js" ).done(function() {
		$.getScript( "https://cdn.rawgit.com/darkdreamingdan/MTA-prettify/master/mtahighlight.min.js" ).done(function() {
			$('<link/>', {
					rel: 'stylesheet',
					type: 'text/css',
					href: 'https://cdn.rawgit.com/darkdreamingdan/MTA-prettify/master/mtahighlight.min.css'
				}).appendTo('head');
			$(document).ready(applyMTAMarkup);
		});
	});
});