Benutzer:Phorgo/SIG: Unterschied zwischen den Versionen

Aus Stupidedia, der sinnfreien Enzyklopädie!
Wechseln zu: Navigation, Suche
K
K (So?)
 
(22 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<b>&nbsp; &nbsp; [[Benutzer:Phorgo|Phorgo]] &nbsp; [[Benutzer Diskussion:Phorgo|@]] &nbsp; [[Spezial:Benutzer/sysop|<big>&#9773;</big>]] &nbsp; &nbsp;</b>
+
<b class="benutzer-phorgo-sig">&nbsp; &mdash; &nbsp; [[Benutzer:Phorgo|Phorgo]] &nbsp; [[Benutzer Diskussion:Phorgo|@]] &nbsp; [[Spezial:Benutzer/sysop|&#9773;]] &nbsp; &mdash; &nbsp;</b><js>
 +
mw.loader.using( 'jquery.colorUtil', function() {
 +
    $( function() {
 +
 
 +
        if ( window.sigColorChange || typeof window.addCSS !== 'function' ) {
 +
            return;
 +
        }
 +
 
 +
        addCSS( '', 'benutzer-phorgo-sig-style' );
 +
        window.sigColorChange = new Object();
 +
        var colorChange = window.sigColorChange;
 +
 
 +
        colorChange.h = 0.6024096385542169;
 +
        colorChange.interval = 10000;
 +
 
 +
        colorChange.change = function() {
 +
            var rgb = $.colorUtil.hslToRgb( colorChange.h, 0.9222222222222222, 0.35294117647058826 );
 +
            var r = Math.round( rgb[0] );
 +
            var g = Math.round( rgb[1] );
 +
            var b = Math.round( rgb[2] );
 +
            var color = 'rgb( ' + r + ', ' + g + ', ' + b + ' )';
 +
            var css = 'div#content b.benutzer-phorgo-sig a { color: ' + color + ' !important; -webkit-transition: color ' + colorChange.interval + 'ms; transition: color ' + colorChange.interval + 'ms; -webkit-transition-timing-function: linear; transition-timing-function: linear; }';
 +
            var element = document.getElementById( 'benutzer-phorgo-sig-style' );
 +
            // IE ist Mist
 +
            if ( element.styleSheet ) {
 +
                element.styleSheet.cssText = css;
 +
            }
 +
            else {
 +
                element.innerHTML = css;
 +
            }
 +
            colorChange.h += colorChange.interval / 100000;
 +
            if ( colorChange.h > 1 ) {
 +
                colorChange.h = 0;
 +
            }
 +
            window.setTimeout( 'sigColorChange.change();', colorChange.interval );
 +
        }
 +
 
 +
        colorChange.change();
 +
 
 +
    } );
 +
} );
 +
</js><css>
 +
div#content b.benutzer-phorgo-sig,
 +
div#content b.benutzer-phorgo-sig * {
 +
    font-family: sans-serif !important;
 +
}
 +
</css>

Aktuelle Version vom 24. März 2014, 19:31 Uhr

  —   Phorgo   @     —  


Linktipps: Faditiva und 3DPresso