MediaWiki:Skin/Kamelopedia:Statistik.js: Unterschied zwischen den Versionen

aus Kamelopedia, der wüsten Enzyklopädie
Zur Navigation springen Zur Suche springen
(Syntaxfehler)
 
Zeile 23: Zeile 23:
 
     [355, 52, "Ka-Mel-Oh-Reanimation", "black"],
 
     [355, 52, "Ka-Mel-Oh-Reanimation", "black"],
 
     [361, 78, "Kamelionary-Namensraum", "green"],
 
     [361, 78, "Kamelionary-Namensraum", "green"],
     [450, 68, "KameloNews-Namensraum", "blue"],
+
     [450, 68, "KameloNews-Namensraum", "blue"]
 
]);
 
]);
  

Aktuelle Version vom 14. April 2012, 23:42 Uhr

function makeTimedot($el, left, top, title, color) {
    var d = $('<div class="timedot"></div>');
    d.css("left", left);
    d.css("top", top);
    d.css("background-color",color);
    d[0].title = title;
    $el.append(d);
}

function makeTimedots($el, arr) {
    for (var i=0; i<arr.length; i++) {
        makeTimedot($el, arr[i][0], arr[i][1], arr[i][2], arr[i][3]);
    }
}

$("#ltplots .thumbinner").css("position","relative");

/* erstes Diagramm: Namensräume */

makeTimedots($("#ltplots .thumbinner:first"), [
    [180, 70, "Bürokratenspiel", "black"],
    [245, 32, "Ka-Mel-Oh", "black"],
    [355, 52, "Ka-Mel-Oh-Reanimation", "black"],
    [361, 78, "Kamelionary-Namensraum", "green"],
    [450, 68, "KameloNews-Namensraum", "blue"]
]);

makeTimedots($("#ltplots .thumbinner:eq(1)"), [
    [160, 75, "GaGA-Wahlen", "red"],
    [270, 70, "Teule sagt tschüss", "red"]
]);

makeTimedots($("#ltplots .thumbinner:eq(2)"), [
    [235, 55, "Bild-Vorlage", "blue"],
    [274, 145, "Teule sagt tschüss", "red"],
    [405, 125, "Luzis Pyramidenverbot", "red"]
]);