MediaWiki:Common.js

From PlayOnLinux
Revision as of 20:37, 26 February 2015 by Tinou (talk | contribs)
Jump to: navigation, search
/* Tout JavaScript ici sera chargé avec chaque page accédée par n’importe quel utilisateur. */

$.getScript( "http://www.playonlinux.com/js/highlighter/shCore.js", function( data, textStatus, jqxhr ) {

$.getScript( "http://www.playonlinux.com/js/highlighter/shAutoloader.js", function( data, textStatus, jqxhr ) {

$(".code.playonlinux").each( function( ) {
		$(this).attr('class', 'brush: playonlinux;');
	});
	$(".code.diff").each( function( ) {
		$(this).attr('class', 'brush: diff;');
	});
	SyntaxHighlighter.autoloader(
   	 ['diff','http://www.playonlinux.com/js/highlighter/diff.js'],
	 ['playonlinux','http://www.playonlinux.com/js/highlighter/playonlinux.js']

    );
	SyntaxHighlighter.all();

});

});