MediaWiki:Skin/Kamelopedia:Statistik.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
J* (Diskussion | Beiträge) |
J* (Diskussion | Beiträge) |
||
Zeile 13: | Zeile 13: | ||
} | } | ||
} | } | ||
+ | |||
+ | $("#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"], | ||
+ | ]); |
Version vom 14. April 2012, 21:12 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"],
]);