Commit Graph

3 Commits

Author SHA1 Message Date
Ebrahim Byagowi
f395ac4868 js: Revive moon radar demo
Apparently caller could send undefined as a value, this just makes it
regardless.
2022-04-15 14:17:28 +04:30
Don Cross
b7ac00ed17 Browser demos: fix date parsing for Safari.
Safari does not work when you try to do this in JavaScript:

    const date = new Date('2022-01-08 17:26:59');

Instead, it requires a 'T' between the date and the time:

    const date = new Date('2022-01-08T17:26:59');

Fixed this issue in the moonradar.html and positions.html demos.
We still render the date/time as normal, with the space,
but parse it by replacing the space with 'T'.

Thanks to @ebraminio for reporting this!
2022-01-08 17:24:39 -05:00
Don Cross
77854a8bd7 Web page demo: moon radar pulse round trip.
Added a web page that calculates the round trip time
of a radar pulse from an observer at a given location on
the surface of the Earth to bounce from the Moon and return
back to that observer.
2021-07-12 19:45:45 -04:00