MediaWiki:Skin/Kamelopedia:Statistik.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
J* (Diskussion | Beiträge) (AZ: Die Seite wurde neu angelegt.) |
J* (Diskussion | Beiträge) (Syntaxfehler) |
||
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | function makeTimedot($el, left, top, title) { | + | function makeTimedot($el, left, top, title, color) { |
var d = $('<div class="timedot"></div>'); | var d = $('<div class="timedot"></div>'); | ||
d.css("left", left); | d.css("left", left); | ||
d.css("top", top); | d.css("top", top); | ||
+ | d.css("background-color",color); | ||
d[0].title = title; | d[0].title = title; | ||
$el.append(d); | $el.append(d); | ||
Zeile 9: | Zeile 10: | ||
function makeTimedots($el, arr) { | function makeTimedots($el, arr) { | ||
for (var i=0; i<arr.length; i++) { | for (var i=0; i<arr.length; i++) { | ||
− | makeTimedot($el, arr[i][0], arr[i][1], arr[i][2]); | + | 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"] | ||
+ | ]); |
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"]
]);