Utilisateur:Misdre/common.js
Apparence
Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.
- Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
- Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
- Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
/*$.getScript("http://www.pokepedia.fr/annexes/moment.min.js"); $.getScript("http://www.pokepedia.fr/annexes/fr.js", function(){ alert(moment("12-25-1995", "MM-DD-YYYY").format()); alert(moment("22 décembre 2013 14:13", "DD MMM YYYY HH:mm", "fr").format()); $(".date-signature").each(function(){ alert($(this) .text()); $(this) .text(moment.utc($(this) .text(), "DD MMMM YYYY [à] HH:mm [(UTC)]", "fr").local().format("DD MMMM YYYY [à] HH:mm")); console.log( 'bouh.'); }); });*/ /* Boutons afficher/masquer */ /*jQuery( function() { var boutonsAfficherMasquer = $( 'button[type=button][name][value=afficher], button[type=button][name][value=masquer]' ); $.each( boutonsAfficherMasquer, function() { var classe = $( this ).attr( 'name' ); var element = $( '.' + classe ); if ( $( this ).html() === "" ) { $( this ).html( '[afficher]' ); } if ( $( this ).attr( 'title' ) === undefined || $( this ).attr( 'title' ) === "" ) { $( this ).attr( 'title', '[masquer]' ); } if ( $( this ).val() == "afficher" ) { element.hide(); } $( this ).click( function() { if ( element.css( 'display' ) == "none" ) { element.show(); } else { element.hide(); } var boutons = $( 'button[type=button][name=' + classe + '][value=afficher], button[type=button][name=' + classe + '][value=masquer]' ); $.each( boutons, function() { var title = $( this ).html(); $( this ).html( $( this ).attr( 'title' ) ); $( this ).attr( 'title', title ); } ); } ); } ); } );*/ /*CSS : button[type=button][name][value=afficher], button[type=button][name][value=masquer] { border: none; background: none; color: #0645ad; } button[type=button][name][value=afficher]:hover, button[type=button][name][value=masquer]:hover { text-decoration: underline; } button[type=button][name][value=afficher]:active, button[type=button][name][value=masquer]:active { color: #faa700; }*/