<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.objclt.ca/wiki/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AMonobook.js</id>
	<title>MediaWiki:Monobook.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.objclt.ca/wiki/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AMonobook.js"/>
	<link rel="alternate" type="text/html" href="http://wiki.objclt.ca/wiki/index.php?title=MediaWiki:Monobook.js&amp;action=history"/>
	<updated>2026-04-15T07:35:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>http://wiki.objclt.ca/wiki/index.php?title=MediaWiki:Monobook.js&amp;diff=1278&amp;oldid=prev</id>
		<title>Nicolas: Created page with &quot;///////////////////////////////////////////////////////// // Code snippet to make your sidebar items expandable.  // Use this code ONLY for the Monobook skin.  /////////////////////////////////////////////////////////  $( document ).ready( function() { 	// Set the default expanded items by their headline 	var defaultExpandItems = [&#039;Navigation&#039;, &#039;Orga&#039;]; 	// Set the basic-name for the cookies, which save the current state of expanding 	var expandCookieName = &#039;disdance_pro...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.objclt.ca/wiki/index.php?title=MediaWiki:Monobook.js&amp;diff=1278&amp;oldid=prev"/>
		<updated>2023-01-09T04:57:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;///////////////////////////////////////////////////////// // Code snippet to make your sidebar items expandable.  // Use this code ONLY for the Monobook skin.  /////////////////////////////////////////////////////////  $( document ).ready( function() { 	// Set the default expanded items by their headline 	var defaultExpandItems = [&amp;#039;Navigation&amp;#039;, &amp;#039;Orga&amp;#039;]; 	// Set the basic-name for the cookies, which save the current state of expanding 	var expandCookieName = &amp;#039;disdance_pro...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/////////////////////////////////////////////////////////&lt;br /&gt;
// Code snippet to make your sidebar items expandable. &lt;br /&gt;
// Use this code ONLY for the Monobook skin. &lt;br /&gt;
/////////////////////////////////////////////////////////&lt;br /&gt;
&lt;br /&gt;
$( document ).ready( function() {&lt;br /&gt;
	// Set the default expanded items by their headline&lt;br /&gt;
	var defaultExpandItems = [&amp;#039;Navigation&amp;#039;, &amp;#039;Orga&amp;#039;];&lt;br /&gt;
	// Set the basic-name for the cookies, which save the current state of expanding&lt;br /&gt;
	var expandCookieName = &amp;#039;disdance_project_wiki_nav_expanded_&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
var maxHeights = [];&lt;br /&gt;
	var expandeds = [];&lt;br /&gt;
	var labels = [];&lt;br /&gt;
	initNav();&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
function initNav() {&lt;br /&gt;
	$( &amp;#039;#p-logo&amp;#039; ).css({&amp;#039;position&amp;#039;: &amp;#039;relative&amp;#039;, &amp;#039;display&amp;#039;: &amp;#039;block&amp;#039;});&lt;br /&gt;
	$( &amp;#039;.generated-sidebar h5,#p-tb h5 &amp;#039;).each( function( i ) {&lt;br /&gt;
		var id = $( this ).parent().attr( &amp;#039;id&amp;#039; );&lt;br /&gt;
		maxHeights[id] = $( this ).next( &amp;#039;div&amp;#039; ).height();&lt;br /&gt;
		var str = $( this ).html();&lt;br /&gt;
		labels[id] = str;&lt;br /&gt;
&lt;br /&gt;
if ( $.cookie( expandCookieName + id ) == &amp;#039;false&amp;#039; ) {&lt;br /&gt;
			expandeds[id] = false;&lt;br /&gt;
			minimize( $( this ) );&lt;br /&gt;
		} else if ( $.cookie( expandCookieName + id ) == &amp;#039;true&amp;#039; ) {&lt;br /&gt;
			expandeds[id] = true;&lt;br /&gt;
			maximize( $( this ) );&lt;br /&gt;
		} else if ( defaultExpandItems.indexOf( str ) == -1 ) {&lt;br /&gt;
			expandeds[id] = false;&lt;br /&gt;
			minimize( $( this ) );&lt;br /&gt;
		} else {&lt;br /&gt;
			expandeds[id] = true;&lt;br /&gt;
			maximize( $( this ) );&lt;br /&gt;
		}&lt;br /&gt;
		$( this ).css({&amp;#039;cursor&amp;#039;: &amp;#039;pointer&amp;#039;});&lt;br /&gt;
		$( this ).click( toggleNav );&lt;br /&gt;
	} );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function minimize( target ) {&lt;br /&gt;
	var id = $( target ).parent().attr( &amp;#039;id&amp;#039; );&lt;br /&gt;
	// You can change the expires parameter to save the cookie longer/shorter than 7 days like in this code&lt;br /&gt;
	$.cookie( expandCookieName + id, &amp;#039;false&amp;#039;, { expires: 7} );&lt;br /&gt;
	var str = labels[id] + &amp;#039;  ►&amp;#039;;&lt;br /&gt;
	$( target ).next( &amp;#039;div&amp;#039; ).animate({&amp;#039;height&amp;#039;: &amp;#039;0px&amp;#039;});&lt;br /&gt;
	$( target ).html( str );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function maximize( target ) {&lt;br /&gt;
	var id = $( target ).parent().attr( &amp;#039;id&amp;#039; );&lt;br /&gt;
	// You can change the expires parameter to save the cookie longer/shorter than 7 days like in this code&lt;br /&gt;
	$.cookie( expandCookieName + id, &amp;#039;true&amp;#039;, { expires: 7} );&lt;br /&gt;
	var str = labels[id] + &amp;#039;  ▼&amp;#039;;&lt;br /&gt;
	var newHeight = maxHeights[id];&lt;br /&gt;
	$( target ).next( &amp;#039;div&amp;#039; ).animate({&amp;#039;height&amp;#039;: newHeight + &amp;#039;px&amp;#039;});&lt;br /&gt;
	$( target ).html( str );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function toggleNav( e ) {&lt;br /&gt;
	var id = $(e.target ).parent().attr( &amp;#039;id&amp;#039; );&lt;br /&gt;
	expandeds[id] = !expandeds[id];&lt;br /&gt;
	if( expandeds[id] == true ) {&lt;br /&gt;
		maximize( e.target );&lt;br /&gt;
	} else {&lt;br /&gt;
		minimize( e.target );&lt;br /&gt;
	}&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>
	</entry>
</feed>