minor markup

This commit is contained in:
ivan 2022-07-16 17:11:32 +03:00
parent 8e378869e5
commit d940136d64
1 changed files with 6 additions and 3 deletions

View File

@ -188,7 +188,8 @@ function formatedDate(datein, timeoutput, UTC) {
if (timeoutput == 'erisian') var dateout = dtime(datein, 'timeofyold'); if (timeoutput == 'erisian') var dateout = dtime(datein, 'timeofyold');
else { else {
var timein = new Date ( datein.getTime() + ( UTC * 60 * 60 * 1000 )); var timein = new Date ( datein.getTime() + ( UTC * 60 * 60 * 1000 ));
var dateout = ("0" + ( timein.getUTCDate())).slice(-2) + "." + ("0" + ( timein.getUTCMonth() + 1)).slice(-2) + " " + ("0" + timein.getUTCHours()).slice(-2) + ":" + ("0" + timein.getUTCMinutes()).slice(-2) + ":" + ("0" + timein.getUTCSeconds()).slice(-2); var dateout = ("0" + ( timein.getUTCDate())).slice(-2) + "." + ("0" + ( timein.getUTCMonth() + 1)).slice(-2) + " ";
dateout += ("0" + timein.getUTCHours()).slice(-2) + ":" + ("0" + timein.getUTCMinutes()).slice(-2) + ":" + ("0" + timein.getUTCSeconds()).slice(-2);
} }
return dateout; return dateout;
} }
@ -214,7 +215,8 @@ function tableRow(cy, timeoutput, UTC, oneyearinp = false) {
} else { } else {
cury = cy; miny = 1583; maxy = 2999; cury = cy; miny = 1583; maxy = 2999;
} }
stringout += '<input type="number" name="oneyearinput" value="' + cury + '" min="' + miny + '" max="' + maxy + '" step="1" size="5" onchange="oneyearChange(this.value)">'; stringout += '<input type="number" name="oneyearinput" value="' + cury + '" min="' + miny;
stringout += '" max="' + maxy + '" step="1" size="5" onchange="oneyearChange(this.value)">';
} else { } else {
if (timeoutput == 'erisian') stringout += cy + 1166; if (timeoutput == 'erisian') stringout += cy + 1166;
else stringout += cy; else stringout += cy;
@ -244,7 +246,8 @@ function makeTable(UTC, timeoutput) {
} }
utcoff = UTC; timeout = timeoutput; utcoff = UTC; timeout = timeoutput;
var fulltable = "<table><caption>"; var fulltable = "<table><caption>";
fulltable += 'Accurate (according to <a href="https://www.imcce.fr">IMCCE</a>) astronomical <a href="https://en.wikipedia.org/wiki/Wheel_of_the_Year">Wheel of the Year</a> - '; fulltable += 'Accurate (according to <a href="https://www.imcce.fr">IMCCE</a>) astronomical ';
fulltable += '<a href="https://en.wikipedia.org/wiki/Wheel_of_the_Year">Wheel of the Year</a> - ';
if (timeoutput == 'erisian') { if (timeoutput == 'erisian') {
fulltable += '<a href="https://discordia.fandom.com/wiki/Erisian_Time">Erisian time</a></br>'; fulltable += '<a href="https://discordia.fandom.com/wiki/Erisian_Time">Erisian time</a></br>';
window.location.hash = ""; window.location.hash = "";