Difference between revisions of "MediaWiki:Common.js"

From Multi Theft Auto: Wiki
Line 6: Line 6:
 
     $.getScript( "https://forum.mtasa.com/uploads/javascript_syntax/mtafuncs.js" ).done(function() {
 
     $.getScript( "https://forum.mtasa.com/uploads/javascript_syntax/mtafuncs.js" ).done(function() {
 
$.getScript( "/extensions/_MTAThemeExtensions/mtahighlight.js" ).done(function() {
 
$.getScript( "/extensions/_MTAThemeExtensions/mtahighlight.js" ).done(function() {
+
$('<link/>', {
 +
rel: 'stylesheet',
 +
type: 'text/css',
 +
href: '//cdn.rawgit.com/darkdreamingdan/MTA-prettify/master/mtahighlight.min.css'
 +
}).appendTo('head');
 
});
 
});
 
});
 
});
 
});
 
});

Revision as of 23:09, 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( "/extensions/_MTAThemeExtensions/mtahighlight.js" ).done(function() {
			$('<link/>', {
					rel: 'stylesheet',
					type: 'text/css',
					href: '//cdn.rawgit.com/darkdreamingdan/MTA-prettify/master/mtahighlight.min.css'
				}).appendTo('head');
		});
	});
});