From 480a7d44f1fadd1cb57fafa835e91c8dff6693d0 Mon Sep 17 00:00:00 2001 From: Don Cross Date: Sat, 15 Jun 2019 15:12:28 -0400 Subject: [PATCH] Added browser demo for calculating sunrise, sunset, moonrise, moonset. --- demo/browser/README.md | 5 +- demo/browser/positions.html | 4 +- demo/browser/riseset.html | 169 ++++++++++++++++++++++++++++++++++++ demo/nodejs/README.md | 2 - 4 files changed, 174 insertions(+), 6 deletions(-) create mode 100644 demo/browser/riseset.html diff --git a/demo/browser/README.md b/demo/browser/README.md index 1f6fe859..71438e6f 100644 --- a/demo/browser/README.md +++ b/demo/browser/README.md @@ -29,11 +29,12 @@ Here are some example web pages using Astronomy Engine in a web browser. Determines the Moon's current phase and predicts when the next few quarter phases will occur. ---- - ### [Planet Positions](positions.html) Calculates equatorial and horizontal coordinates of the Sun, Moon, and planets. +### [Rise/Set](riseset.html) +Shows how to calculate sunrise, sunset, moonrise, and moonset times. + --- # [API Reference](../../source/js/) diff --git a/demo/browser/positions.html b/demo/browser/positions.html index 1acf0c8f..9d0db734 100644 --- a/demo/browser/positions.html +++ b/demo/browser/positions.html @@ -29,7 +29,7 @@ -

Calculations

+

Body Positions

@@ -124,7 +124,7 @@ + + diff --git a/demo/nodejs/README.md b/demo/nodejs/README.md index c6ce2c41..7a953e41 100644 --- a/demo/nodejs/README.md +++ b/demo/nodejs/README.md @@ -21,8 +21,6 @@ Astronomy Engine is completely self-contained, and it always will be. This example shows how to determine the Moon's current phase, and how to predict when the next few quarter phases will occur. ---- - ### [Planet Positions](positions.js) Calculates equatorial and horizontal coordinates of the Sun, Moon, and planets.
body