MediaWiki:Skin/Kamelopedia:Statistik.js

function makeTimedot($el, left, top, title, color) { var d = $(' '); 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"] ]);