minor fix
This commit is contained in:
parent
ee523822ed
commit
0f9cb9e260
|
@ -341,8 +341,8 @@ function makeTable(UTC, timeoutput) {
|
|||
const dayOfYear = date => Math.floor((date - new Date(date.getFullYear(),
|
||||
0, 0)) / (1000 * 60 * 60 * 24));
|
||||
var daynumber = dayOfYear(new Date());
|
||||
var degree = Math.round((360 / 365) * (daynumber + 10));
|
||||
var rotatestring = "rotate(" + degree + "deg)"
|
||||
var degree = Math.round((360 / 365) * (daynumber + 10)) * (-1);
|
||||
var rotatestring = "rotate(" + degree + "deg)";
|
||||
document.getElementById("wheel").style.transform = rotatestring;
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue