|
|
(Une révision intermédiaire par le même utilisateur non affichée) |
Ligne 1 : |
Ligne 1 : |
− | function OngletPurge() {
| |
− | addPortletLink('p-cactions', wgScript + '?title=' + wgPageName + '&action=purge', 'purger', 'ca-purge', 'purger le cache de la page', 'p');
| |
− | if( wgAction == 'purge') addClass(document.getElementById('ca-purge'), 'selected');
| |
− | }
| |
− | if( wgNamespaceNumber >= 0 && (wgAction == 'view' || wgAction == 'purge') ) addOnloadHook(OngletPurge);
| |
− |
| |
− | addOnloadHook(function() {
| |
− | addPortletLink('p-cactions', '/Utilisateur:HertzZ/Notes', 'Notes');
| |
− | });
| |
− |
| |
− | //-----------------------------------------------------------
| |
− | // Onglet Purge
| |
− |
| |
− | obtenir("OngletPurge");
| |
| | | |
− | function TodayDate()
| |
− | {
| |
− | m = new Array("janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre");
| |
− | tableau = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
| |
− |
| |
− | today = new Date();
| |
− | day = today.getDate();
| |
− | month = today.getMonth();
| |
− | year = today.getYear() + 1900;
| |
− |
| |
− | if ( today.getHours() >= 12 )
| |
− | {
| |
− | day ++;
| |
− | if ( day > tableau[month] )
| |
− | {
| |
− | day = 1;
| |
− | month++;
| |
− | }
| |
− | }
| |
− | return (day + " " + m[month] + " " + year);
| |
− | }
| |
− |
| |
− |
| |
− | function WeekNumber()
| |
− | {
| |
− | tableau = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
| |
− | today = new Date();
| |
− | month = today.getMonth();
| |
− |
| |
− | somme = today.getDate() + 10 ; /* 7 + 3 jours manquant à la première semaine de 2009 */
| |
− | for(i = 0; i < month; i++) somme += tableau[i];
| |
− |
| |
− | return parseInt(somme / 7) ;
| |
− | }
| |
− |
| |
− | //Auteur : Darkoneko, ajouté le 09/01/2008
| |
− | //pour avoir l'édit_count avec addContribLinkNearTalkPageInContributions. pour l'instant, ça ne fonctionne pas sous IE.
| |
− | window.addContribLinkNearTalkPageInContributions_editcount = true
| |
− |
| |
− | function customizeTopBar() {
| |
− | var logout = document.getElementById("pt-logout")
| |
− | if (!logout) return
| |
− | var topBarUl = logout.parentNode
| |
− | var topBarLiArray = topBarUl.getElementsByTagName("li")
| |
− |
| |
− | //changer l'en tete pour "Page de discussion"
| |
− | topBarLiArray[1].getElementsByTagName("a")[0].firstChild.nodeValue = "discussions"
| |
− |
| |
− | //changer l'en tete pour "Préférences"
| |
− | topBarLiArray[2].getElementsByTagName("a")[0].firstChild.nodeValue = "prefs"
| |
− |
| |
− | //changer l'en tete pour "Liste de suivi"
| |
− | topBarLiArray[3].getElementsByTagName("a")[0].firstChild.nodeValue = "watchlist"
| |
− |
| |
− | //changer l'en tete pour "Contributions"
| |
− | topBarLiArray[4].getElementsByTagName("a")[0].firstChild.nodeValue = "contribs"
| |
− |
| |
− | //changer l'en tete pour "Deconnexion"
| |
− | logout.getElementsByTagName("a")[0].firstChild.nodeValue = "déconnecter"
| |
− |
| |
− | //ajouter "log" a gauche de déconnexion
| |
− | topBarUl.insertBefore( createLiAdressNode('/index.php?title=Special:Journal&user=HertzZ', 'log'), logout )
| |
− | }
| |