Update app.js

master
ainegil 2023-05-03 06:28:30 +02:00 committed by GitHub
parent 9e82f580ae
commit b1b3c54db0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -110,7 +110,8 @@ let drawWeek = function() {
if (d < 5 ){ if (d < 5 ){
g.setColor(g.theme.bg); g.setColor(g.theme.bg);
g.fillRect(pos, 175-15, pos+22, 175); g.fillRect(pos, 175-15, pos+22, 175);
}else{ g.setColor(g.blendColor(g.theme.bg,g.theme.fg,0.25)); }else{
g.setColor(g.blendColor(g.theme.bg,g.theme.fg,0.25));
g.fillRect(pos, 175-15, pos+22, 175); g.fillRect(pos, 175-15, pos+22, 175);
} }
@ -122,7 +123,7 @@ var mphaseq=-1; // moonphase 0-3
var qday = -1; // day in week quater moon var qday = -1; // day in week quater moon
var moonssince; // full moons since May 5th 2023 var moonssince; // full moons since May 5th 2023
var lundaymo; // lunation day monday var lundaymo; // lunation day monday
var tms = date.getTime() + 3*86400000;// var tms = date.getTime() + 86400000;//
var weekdayms = weekday * 86400000 ;//seconds since monday var weekdayms = weekday * 86400000 ;//seconds since monday
var startd = tms - weekdayms; // monday var startd = tms - weekdayms; // monday
var perc;// percent of cycle var perc;// percent of cycle