daily calendar works

This commit is contained in:
Jörg Henke
2022-07-26 17:52:07 +02:00
parent f754832ee0
commit 676fa63471
6 changed files with 68 additions and 9 deletions

View File

@ -41,7 +41,6 @@ class Schedule {
var hours = parseInt(timeArray[0]);
var minutes = parseInt(timeArray[1]);
var pixels = parseInt((hours + (minutes / 60)) * hourHeight);
console.log("convert " + time + " to " + pixels);
return pixels;
}
@ -57,7 +56,6 @@ class Schedule {
var w = dayWidth;
var h = parseInt(this.time2pixel(until, hourHeight) - y);
ctx.beginPath();
console.log("draw " + x + "," + y + " -> +" + w + "," + h);
ctx.fillRect(x, y, w, h);
ctx.strokeRect(x, y, w, h);
}