Difference between revisions of "MediaWiki:Common.js"

From PlayOnLinux
Jump to: navigation, search
Line 26: Line 26:
 
<li><a href="https://www.playonlinux.com/en/news.html">News</a></li>
 
<li><a href="https://www.playonlinux.com/en/news.html">News</a></li>
 
<li><a href="https://www.playonlinux.com/en/download.html">Download</a></li>
 
<li><a href="https://www.playonlinux.com/en/download.html">Download</a></li>
<li class='selected'><a href="http://wiki.playonlinux.com/">Wiki</a></li>
+
<li class="selected"><a href="http://wiki.playonlinux.com/">Wiki</a></li>
 
<li><a href="https://www.playonlinux.com/en/forums.html">Forums</a></li>
 
<li><a href="https://www.playonlinux.com/en/forums.html">Forums</a></li>
 
<li><a href="https://www.playonlinux.com/en/bugs.html">Bugs</a></li>
 
<li><a href="https://www.playonlinux.com/en/bugs.html">Bugs</a></li>

Revision as of 00:23, 3 March 2015

/* 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();
	});
});

document.write('<div id="header">	
	<div class='reducer'>
	<a href="https://www.playonlinux.com"><img src="https://www.playonlinux.com/images/logos/logo96.png" alt="playonlinux" /> playonlinux</a>

	<ul id="menuul">
		<li><a href="https://www.playonlinux.com/en">Home</a></li> 
		<li><a href="https://www.playonlinux.com/en/supported_apps.html">Supported software</a></li>
		<li><a href="https://www.playonlinux.com/en/news.html">News</a></li>
		<li><a href="https://www.playonlinux.com/en/download.html">Download</a></li>
		<li class="selected"><a href="http://wiki.playonlinux.com/">Wiki</a></li>
		<li><a href="https://www.playonlinux.com/en/forums.html">Forums</a></li>
		<li><a href="https://www.playonlinux.com/en/bugs.html">Bugs</a></li>
	

	</ul>
	</div>
</div>');