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) |
||
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); | ||
} | } | ||
− | function makeTimedots($el, arr) { | + | function makeTimedots($el, color, 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], color); |
} | } | ||
} | } |
Version vom 14. April 2012, 21:03 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, color, arr) {
for (var i=0; i<arr.length; i++) {
makeTimedot($el, arr[i][0], arr[i][1], arr[i][2], color);
}
}