MediaWiki:Sidebar: differenze tra le versioni

Da Wiki GNA.
Nessun oggetto della modifica
Etichetta: Annullato
Nessun oggetto della modifica
 
(7 versioni intermedie di uno stesso utente non sono mostrate)
Riga 1: Riga 1:
/////////////////////////////////////////////////////////
// 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 = ['Navigation', 'Orga'];
// Set the basic-name for the cookies, which save the current state of expanding
var expandCookieName = 'disdance_project_wiki_nav_expanded_';
var maxHeights = [];
var expandeds = [];
var labels = [];
initNav();
});
function initNav() {
$( '#p-logo' ).css({'position': 'relative', 'display': 'block'});
$( '.generated-sidebar h5,#p-tb h5 ').each( function( i ) {
var id = $( this ).parent().attr( 'id' );
maxHeights[id] = $( this ).next( 'div' ).height();
var str = $( this ).html();
labels[id] = str;
if ( $.cookie( expandCookieName + id ) == 'false' ) {
expandeds[id] = false;
minimize( $( this ) );
} else if ( $.cookie( expandCookieName + id ) == 'true' ) {
expandeds[id] = true;
maximize( $( this ) );
} else if ( defaultExpandItems.indexOf( str ) == -1 ) {
expandeds[id] = false;
minimize( $( this ) );
} else {
expandeds[id] = true;
maximize( $( this ) );
}
$( this ).css({'cursor': 'pointer'});
$( this ).click( toggleNav );
} );
}
function minimize( target ) {
var id = $( target ).parent().attr( 'id' );
// You can change the expires parameter to save the cookie longer/shorter than 7 days like in this code
$.cookie( expandCookieName + id, 'false', { expires: 7} );
var str = labels[id] + '  ►';
$( target ).next( 'div' ).animate({'height': '0px'});
$( target ).html( str );
}
function maximize( target ) {
var id = $( target ).parent().attr( 'id' );
// You can change the expires parameter to save the cookie longer/shorter than 7 days like in this code
$.cookie( expandCookieName + id, 'true', { expires: 7} );
var str = labels[id] + '  ▼';
var newHeight = maxHeights[id];
$( target ).next( 'div' ).animate({'height': newHeight + 'px'});
$( target ).html( str );
}
function toggleNav( e ) {
var id = $(e.target ).parent().attr( 'id' );
expandeds[id] = !expandeds[id];
if( expandeds[id] == true ) {
maximize( e.target );
} else {
minimize( e.target );
}
}
///////////////////////////////////////////////////////
///////////////////////////////////////////////////////
* navigation
* navigation
** mainpage|Home
** mainpage|Home
** Indice|Indice
** Indice|Indice
* Il progetto
** Il progetto|Il progetto
** Il progetto|Finalità del progetto Geoportale Nazionale dell’Archeologia (Valeria Boi)
** La_struttura_del_progetto|La struttura del progetto
** Istruzioni_operative|Istruzioni operative
** Compilare il MOPR|Compilare il MOPR
** Compilare il MOPR|Compilare il MOPR
** Compilare il MOSI|Compilare il MOSI
** Compilare il MOSI|Compilare il MOSI
Riga 86: Riga 11:
** Compilare_il_MOPR#VRP_-_Carta_del_potenziale|VRP - Carta del potenziale
** Compilare_il_MOPR#VRP_-_Carta_del_potenziale|VRP - Carta del potenziale
** Compilare_il_MOPR#VRD_-_Carta del rischio|VRD - Carta del rischio
** Compilare_il_MOPR#VRD_-_Carta del rischio|VRD - Carta del rischio
** Casi d'uso|Casi d'uso
** Brevi note su QGIS|Brevi note su QGIS
** Brevi note su QGIS|Brevi note su QGIS
** Per stampare|Per stampare
** Per stampare|Per stampare
** Vocabolari e strumenti terminologici|Vocabolari e strumenti terminologici
** Vocabolari e strumenti terminologici|Vocabolari e strumenti terminologici
** Casi d'uso|Casi d'uso
** Qualche applicazione specifica|Qualche applicazione specifica
<ref>** recentchanges-url|recentchanges</ref>  
<ref>** recentchanges-url|recentchanges</ref>  
<ref>** randompage-url|randompage</ref>  
<ref>** randompage-url|randompage</ref>  
<ref>** helppage|help-mediawiki</ref>  
<ref>** helppage|help-mediawiki</ref>  
* SEARCH
* SEARCH

Versione attuale delle 19:00, 28 mar 2024

  • navigation
    • mainpage|Home
    • Indice|Indice
    • Il progetto|Il progetto
    • La_struttura_del_progetto|La struttura del progetto
    • Istruzioni_operative|Istruzioni operative
    • Compilare il MOPR|Compilare il MOPR
    • Compilare il MOSI|Compilare il MOSI
    • RCG_multipolygon|RCG - Modulo per le ricognizioni
    • DSC_multipolygon|DSC - Modulo per gli scavi archeologici
    • Compilare_il_MOPR#VRP_-_Carta_del_potenziale|VRP - Carta del potenziale
    • Compilare_il_MOPR#VRD_-_Carta del rischio|VRD - Carta del rischio
    • Brevi note su QGIS|Brevi note su QGIS
    • Per stampare|Per stampare
    • Vocabolari e strumenti terminologici|Vocabolari e strumenti terminologici
    • Casi d'uso|Casi d'uso
    • Qualche applicazione specifica|Qualche applicazione specifica

<ref>** recentchanges-url|recentchanges</ref> <ref>** randompage-url|randompage</ref> <ref>** helppage|help-mediawiki</ref>

  • SEARCH