MediaWiki:Wikia.js: diferència entre les revisions
m Correcció de codis  | 
				 Ja no neva...  | 
				||
| (Hi ha 3 revisions intermèdies que no es mostren del mateix usuari) | |||
| Línia 1: | Línia 1: | ||
/* Etiqueta amb el flag */  | |||
    (function () {  | |||
        "use strict";  | |||
        var userRightsList = {  | |||
            "MarcmpujolBot": ["Bot"]  | |||
        };  | |||
        if ($('.masthead-info hgroup').length) {  | |||
            var name = $('.masthead-info h1[itemprop="name"]').text();  | |||
            if (userRightsList[name] !== undefined) {  | |||
                var i;  | |||
                for (i = 0; i < userRightsList[name].length; i++) {  | |||
                    $('.masthead-info hgroup').append('<span class="tag">' + userRightsList[name][i] + '</span>');  | |||
                }  | |||
            }  | |||
        }  | |||
    }());  | |||
/* Etiqueta per inactius */  | /* Etiqueta per inactius */  | ||
InactiveUsers = { text: 'Inactiu' };  | InactiveUsers = { text: 'Inactiu' };  | ||
| Línia 4: | Línia 22: | ||
// **************************************************  | // **************************************************  | ||
// Notícies  | //                    Notícies  | ||
// **************************************************  | // **************************************************  | ||
/* Afegeix en les notícies un header especial - prova */  | /* Afegeix en les notícies un header especial - prova */  | ||
$('body.ns-116 .WikiHeader .wordmark.graphic ').bind('click.capçalera', function(){ window.location.href = 'http://ca.detectiuconan.wikia.com/wiki/  | $('body.ns-116 .WikiHeader .wordmark.graphic ').bind('click.capçalera', function(){ window.location.href = 'http://ca.detectiuconan.wikia.com/wiki/Noticia:Índex'; return false; });  | ||
$(function(){  | $(function(){  | ||