diff --git a/index.html b/index.html index 2ab54df..3a77070 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,7 @@ + +

+ Latitude:
+ Longitude:
+ +

+

+ Click the map to change the time. +

- - - - - -
AKA "+(Math.round(percentOfDay*10000)/100)+"% through today's daylight."; - let zeroHrDeg = 77; - let twelveHrDeg = -81.5; + let zeroHrDeg = 86; + let twelveHrDeg = -82; let degreeSweep = twelveHrDeg-zeroHrDeg; - let sundialDegree = percentOfDay*degreeSweep*.975+zeroHrDeg; // .975 fudge factor + let sundialDegree = percentOfDay*degreeSweep+zeroHrDeg; let sundial = document.getElementById("sundial"); sundial.style["display"] = "block"; @@ -417,6 +441,12 @@ } getLocation(); + + const button = document.querySelector("#reload"); + button.addEventListener("click", (event) => { + render({coords: { latitude: latForm.value , longitude: longForm.value }}); + }); + \ No newline at end of file