Update app.js

pull/739/head
numerist 2021-05-12 07:53:53 -04:00 committed by GitHub
parent c613035f74
commit 636fb40fea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -158,14 +158,14 @@ function drawTime()
dt.setDate(dt.getDate()); dt.setDate(dt.getDate());
if(addTimeDigit){ if(addTimeDigit){
x = x =
10368*dt.getHours()+172.8*dt.getMinutes()+2.88*dt.getSeconds()+0.00288*(dt.getMilliseconds()+750); 10368*dt.getHours()+172.8*dt.getMinutes()+2.88*dt.getSeconds()+0.00288*dt.getMilliseconds();
let msg = "00000"+Math.floor(x).toString(12); let msg = "00000"+Math.floor(x).toString(12);
let time = msg.substr(-5,3)+"."+msg.substr(-2); let time = msg.substr(-5,3)+"."+msg.substr(-2);
let wait = 347*(1-(x%1)); let wait = 347*(1-(x%1));
timeDef = time6; timeDef = time6;
} else { } else {
x = x =
864*dt.getHours()+14.4*dt.getMinutes()+0.24*dt.getSeconds()+0.00024*(dt.getMilliseconds()+750); 864*dt.getHours()+14.4*dt.getMinutes()+0.24*dt.getSeconds()+0.00024*dt.getMilliseconds();
let msg = "0000"+Math.floor(x).toString(12); let msg = "0000"+Math.floor(x).toString(12);
let time = msg.substr(-4,3)+"."+msg.substr(-1); let time = msg.substr(-4,3)+"."+msg.substr(-1);
let wait = 4167*(1-(x%1)); let wait = 4167*(1-(x%1));