diff --git a/.gitignore b/.gitignore
index 25ab2bc..3f32a09 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,6 @@
*.swp
*.pyc
*.log
-js/mobile.js
-js/init_plot.js
-css/mobile.css
-cache.manifest
+/index.html
+/service-worker.js
tiles/
diff --git a/.htaccess b/.htaccess
deleted file mode 100644
index 3d763d3..0000000
--- a/.htaccess
+++ /dev/null
@@ -1,38 +0,0 @@
-
- # Compress HTML, CSS, JavaScript, Text, XML and fonts
- AddOutputFilterByType DEFLATE application/javascript
- AddOutputFilterByType DEFLATE application/rss+xml
- AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
- AddOutputFilterByType DEFLATE application/x-font
- AddOutputFilterByType DEFLATE application/x-font-opentype
- AddOutputFilterByType DEFLATE application/x-font-otf
- AddOutputFilterByType DEFLATE application/x-font-truetype
- AddOutputFilterByType DEFLATE application/x-font-ttf
- AddOutputFilterByType DEFLATE application/x-javascript
- AddOutputFilterByType DEFLATE application/xhtml+xml
- AddOutputFilterByType DEFLATE application/xml
- AddOutputFilterByType DEFLATE font/opentype
- AddOutputFilterByType DEFLATE font/otf
- AddOutputFilterByType DEFLATE font/ttf
- AddOutputFilterByType DEFLATE image/svg+xml
- AddOutputFilterByType DEFLATE image/x-icon
- AddOutputFilterByType DEFLATE text/css
- AddOutputFilterByType DEFLATE text/html
- AddOutputFilterByType DEFLATE text/javascript
- AddOutputFilterByType DEFLATE text/plain
- AddOutputFilterByType DEFLATE text/xml
-
- # Remove browser bugs (only needed for ancient browsers)
- BrowserMatch ^Mozilla/4 gzip-only-text/html
- BrowserMatch ^Mozilla/4\.0[678] no-gzip
- BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
- Header append Vary User-Agent
-
-
-AddType text/cache-manifest .manifest
-AddType text/cache-manifest .appcache
-
-AddType application/x-font-woff .woff
-AddType application/x-font-ttf .ttf
-AddType application/vnd.ms-fontobject .eot
-AddType image/svg+xml .svg
diff --git a/DEVELOPER_README.md b/DEVELOPER_README.md
index e7aba4d..b205943 100644
--- a/DEVELOPER_README.md
+++ b/DEVELOPER_README.md
@@ -4,6 +4,6 @@ To get a copy of the code and run a test web server:
1. [Fork the repository](https://github.com/projecthorus/sondehub-amateur-tracker/fork) by visiting [https://github.com/projecthorus/sondehub-amateur-tracker/fork](https://github.com/projecthorus/sondehub-amateur-tracker/fork).
2. Clone the repository with your git tool of choice.
-3. Run `build.sh` to compile the javascript files. (This requires Java to be installed and in your path.)
+3. Run `build.sh` to generate `index.html` and `service-worker.js`.
4. Run `python serve.py` to run a simple web server to (This requires python 3.x)
5. Visit [http://localhost:8000](http://localhost:8000) to view the local version of the server!
diff --git a/README.md b/README.md
index 74a9359..3e89342 100644
--- a/README.md
+++ b/README.md
@@ -31,10 +31,11 @@ Pull requests are welcome.
## Installation
-Requirements: Java
-
$ git clone https://github.com/projecthorus/sondehub-amateur-tracker.git
$ ./build.sh
+ $ python serve.py
+
+Visit [http://localhost:8000](http://localhost:8000) to view the local version of the tracker!
## Original design
diff --git a/build.sh b/build.sh
index 617720d..a5ebac8 100755
--- a/build.sh
+++ b/build.sh
@@ -1,48 +1,18 @@
#!/bin/bash
-# compile stylesheet
-echo -n "Compiling CSS... "
-cd css
-rm -f mobile.css
-cat base.css skeleton.css layout.css habitat-font.css main.css leaflet.css leaflet.fullscreen.css > mobile.tmp
-java -jar "../tools/yuicompressor-2.4.8.jar" --type=css mobile.tmp > mobile.css
-rm -f mobile.tmp
-cd ..
-echo "Done!"
-
-#compile javascript
-echo -n "Compiling JavaScript... "
-cd js
-rm -f mobile.js init_plot.js
-# precompiled libs
-cat jquery* >> mobile.js
+set -e
VERSION="`git rev-parse --short HEAD`"
-
BUILD_DATE="`date -u +%Y-%m-%dT%H:%M:%SZ`"
-# compile the rest
-java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge iscroll.js >> mobile.js
-java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge chasecar.lib.js | sed "s/{VER}/$VERSION/" >> mobile.js
-java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge tracker.js >> mobile.js
-java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge app.js | sed "s/{VER}/$VERSION/" | sed "s/{BUILD_DATE}/$BUILD_DATE/" >> mobile.js
-java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge colour-map.js >> mobile.js
-java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge suncalc.js >> mobile.js
-java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge format.js >> mobile.js
-java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge flight_doc.js >> mobile.js
-
-#compile plot lib and config
-java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge _jquery.flot.js >> init_plot.js
-java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge plot_config.js >> init_plot.js
-
-cd ..
+# cache fixes
+echo -n "Generating index.html... "
+sed -e "s/{VER}/$VERSION/" -e "s/{BUILD_DATE}/$BUILD_DATE/" index.template.html > index.html
echo "Done!"
-echo -n "Generate cache.manifest..."
-
-
-sed "s/^\(# version\) .*$/\1 $VERSION `date +%s`/" cache.manifest-dev > cache.manifest
+echo -n "Generating service-worker.js... "
+sed -e "s/{VER}/$VERSION/" service-worker.template.js > service-worker.js
echo "Done!"
-echo "Build version: $VERSION Build date: $BUILD_DATE"
\ No newline at end of file
+echo "Build version: $VERSION Build date: $BUILD_DATE"
diff --git a/cache.manifest-dev b/cache.manifest-dev
deleted file mode 100644
index 701d56c..0000000
--- a/cache.manifest-dev
+++ /dev/null
@@ -1,75 +0,0 @@
-CACHE MANIFEST
-# version {VERSION}
-
-# gogole maps files
-http://maps.google.com/maps/api/js?v=3.22&sensor=false&libraries=map,common,controls,util,marker,onion,kml,ga,infowindow,stats,poly,overlay,weather,weather_impl,geometry&language=en_us&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg
-http://fonts.googleapis.com/css?family=Roboto:300,400,500,700
-http://maps.gstatic.com/mapfiles/undo_poly.png
-http://maps.gstatic.com/mapfiles/mv/imgs8.png
-http://maps.gstatic.com/mapfiles/transparent.png
-http://maps.gstatic.com/mapfiles/api-3/images/mapcnt3.png
-http://maps.gstatic.com/mapfiles/api-3/images/google_white2_hdpi.png
-http://maps.gstatic.com/mapfiles/api-3/images/google_white2.png
-http://maps.gstatic.com/mapfiles/openhand_8_8.cur
-
-# app files
-img/closedhand.cur
-img/openhand.cur
-img/logo.png
-img/blank.png
-img/marker-you.png
-img/apple-touch-icon.png
-img/markers/hab_nyan.gif
-img/markers/nyan.gif
-img/markers/antenna-green.png
-img/markers/balloon-red.png
-img/markers/balloon-blue.png
-img/markers/balloon-green.png
-img/markers/balloon-purple.png
-img/markers/balloon-cyan.png
-img/markers/balloon-orange.png
-img/markers/balloon-yellow.png
-img/markers/balloon-rpi.png
-img/markers/car-blue.png
-img/markers/car-green.png
-img/markers/car-red.png
-img/markers/car-yellow.png
-img/markers/parachute-blue.png
-img/markers/parachute-green.png
-img/markers/parachute-red.png
-img/markers/parachute-yellow.png
-img/markers/parachute-cyan.png
-img/markers/parachute-orange.png
-img/markers/parachute-purple.png
-img/markers/parachute-rpi.png
-img/markers/payload-blue.png
-img/markers/payload-cyan.png
-img/markers/payload-green.png
-img/markers/payload-orange.png
-img/markers/payload-purple.png
-img/markers/payload-red.png
-img/markers/payload-yellow.png
-img/markers/payload-rpi.png
-img/markers/shadow.png
-img/markers/target-blue.png
-img/markers/target-cyan.png
-img/markers/target-green.png
-img/markers/target-orange.png
-img/markers/target-purple.png
-img/markers/target-red.png
-img/markers/target-yellow.png
-img/hab-spinner.gif
-css/mobile.css
-js/mobile.js
-js/init_plot.js
-font/HabitatFont.eot
-font/HabitatFont.svg
-font/HabitatFont.ttf
-font/HabitatFont.woff
-font/Roboto-regular.woff
-
-NETWORK:
-*
-
-FALLBACK:
-/ index.html
diff --git a/img/markers/balloon-adafruit.png b/img/markers/balloon-adafruit.png
deleted file mode 100644
index 4c715f2..0000000
Binary files a/img/markers/balloon-adafruit.png and /dev/null differ
diff --git a/img/markers/balloon-blue.png b/img/markers/balloon-blue.png
deleted file mode 100644
index 9888487..0000000
Binary files a/img/markers/balloon-blue.png and /dev/null differ
diff --git a/img/markers/balloon-buzz.png b/img/markers/balloon-buzz.png
deleted file mode 100644
index 17097b5..0000000
Binary files a/img/markers/balloon-buzz.png and /dev/null differ
diff --git a/img/markers/balloon-cyan.png b/img/markers/balloon-cyan.png
deleted file mode 100644
index 9eae707..0000000
Binary files a/img/markers/balloon-cyan.png and /dev/null differ
diff --git a/img/markers/balloon-green.png b/img/markers/balloon-green.png
deleted file mode 100644
index 126a0b0..0000000
Binary files a/img/markers/balloon-green.png and /dev/null differ
diff --git a/img/markers/balloon-invisible.png b/img/markers/balloon-invisible.png
deleted file mode 100644
index 19464e9..0000000
Binary files a/img/markers/balloon-invisible.png and /dev/null differ
diff --git a/img/markers/balloon-iss.png b/img/markers/balloon-iss.png
deleted file mode 100644
index 23d2a49..0000000
Binary files a/img/markers/balloon-iss.png and /dev/null differ
diff --git a/img/markers/balloon-orange.png b/img/markers/balloon-orange.png
deleted file mode 100644
index b0c5d09..0000000
Binary files a/img/markers/balloon-orange.png and /dev/null differ
diff --git a/img/markers/balloon-purple.png b/img/markers/balloon-purple.png
deleted file mode 100644
index e129b1c..0000000
Binary files a/img/markers/balloon-purple.png and /dev/null differ
diff --git a/img/markers/balloon-red.png b/img/markers/balloon-red.png
deleted file mode 100644
index f079bfe..0000000
Binary files a/img/markers/balloon-red.png and /dev/null differ
diff --git a/img/markers/balloon-rob.png b/img/markers/balloon-rob.png
deleted file mode 100644
index 819a558..0000000
Binary files a/img/markers/balloon-rob.png and /dev/null differ
diff --git a/img/markers/balloon-rpi.png b/img/markers/balloon-rpi.png
deleted file mode 100644
index c340631..0000000
Binary files a/img/markers/balloon-rpi.png and /dev/null differ
diff --git a/img/markers/balloon-shockpink.png b/img/markers/balloon-shockpink.png
deleted file mode 100644
index 49ad112..0000000
Binary files a/img/markers/balloon-shockpink.png and /dev/null differ
diff --git a/img/markers/balloon-thereg.png b/img/markers/balloon-thereg.png
deleted file mode 100644
index f26068f..0000000
Binary files a/img/markers/balloon-thereg.png and /dev/null differ
diff --git a/img/markers/balloon-yellow.png b/img/markers/balloon-yellow.png
deleted file mode 100644
index 66fc042..0000000
Binary files a/img/markers/balloon-yellow.png and /dev/null differ
diff --git a/img/markers/balloon.svg b/img/markers/balloon.svg
new file mode 100755
index 0000000..cd09c3e
--- /dev/null
+++ b/img/markers/balloon.svg
@@ -0,0 +1,58 @@
+
diff --git a/img/markers/car-blue.png b/img/markers/car-blue.png
deleted file mode 100644
index 09192f0..0000000
Binary files a/img/markers/car-blue.png and /dev/null differ
diff --git a/img/markers/car-green.png b/img/markers/car-green.png
deleted file mode 100644
index c42da50..0000000
Binary files a/img/markers/car-green.png and /dev/null differ
diff --git a/img/markers/car-purple.png b/img/markers/car-purple.png
deleted file mode 100644
index a281513..0000000
Binary files a/img/markers/car-purple.png and /dev/null differ
diff --git a/img/markers/car-red.png b/img/markers/car-red.png
deleted file mode 100644
index ce44c92..0000000
Binary files a/img/markers/car-red.png and /dev/null differ
diff --git a/img/markers/car-teal.png b/img/markers/car-teal.png
deleted file mode 100644
index f0e6fe8..0000000
Binary files a/img/markers/car-teal.png and /dev/null differ
diff --git a/img/markers/car-yellow.png b/img/markers/car-yellow.png
deleted file mode 100644
index 5c35476..0000000
Binary files a/img/markers/car-yellow.png and /dev/null differ
diff --git a/img/markers/car.svg b/img/markers/car.svg
new file mode 100644
index 0000000..c277ce8
--- /dev/null
+++ b/img/markers/car.svg
@@ -0,0 +1,88 @@
+
\ No newline at end of file
diff --git a/img/markers/parachute-blue.png b/img/markers/parachute-blue.png
deleted file mode 100644
index ff4dc5d..0000000
Binary files a/img/markers/parachute-blue.png and /dev/null differ
diff --git a/img/markers/parachute-cyan.png b/img/markers/parachute-cyan.png
deleted file mode 100644
index bf83a49..0000000
Binary files a/img/markers/parachute-cyan.png and /dev/null differ
diff --git a/img/markers/parachute-green.png b/img/markers/parachute-green.png
deleted file mode 100644
index f41d7e1..0000000
Binary files a/img/markers/parachute-green.png and /dev/null differ
diff --git a/img/markers/parachute-orange.png b/img/markers/parachute-orange.png
deleted file mode 100644
index e3f2d16..0000000
Binary files a/img/markers/parachute-orange.png and /dev/null differ
diff --git a/img/markers/parachute-purple.png b/img/markers/parachute-purple.png
deleted file mode 100644
index adae959..0000000
Binary files a/img/markers/parachute-purple.png and /dev/null differ
diff --git a/img/markers/parachute-red.png b/img/markers/parachute-red.png
deleted file mode 100644
index 603c60f..0000000
Binary files a/img/markers/parachute-red.png and /dev/null differ
diff --git a/img/markers/parachute-rpi.png b/img/markers/parachute-rpi.png
deleted file mode 100644
index ad421b6..0000000
Binary files a/img/markers/parachute-rpi.png and /dev/null differ
diff --git a/img/markers/parachute-yellow.png b/img/markers/parachute-yellow.png
deleted file mode 100644
index 4d85a51..0000000
Binary files a/img/markers/parachute-yellow.png and /dev/null differ
diff --git a/img/markers/parachute.svg b/img/markers/parachute.svg
new file mode 100644
index 0000000..8b10853
--- /dev/null
+++ b/img/markers/parachute.svg
@@ -0,0 +1,78 @@
+
\ No newline at end of file
diff --git a/img/markers/payload-blue.png b/img/markers/payload-blue.png
deleted file mode 100644
index c03caee..0000000
Binary files a/img/markers/payload-blue.png and /dev/null differ
diff --git a/img/markers/payload-cyan.png b/img/markers/payload-cyan.png
deleted file mode 100644
index 226bfa8..0000000
Binary files a/img/markers/payload-cyan.png and /dev/null differ
diff --git a/img/markers/payload-green.png b/img/markers/payload-green.png
deleted file mode 100644
index f524a73..0000000
Binary files a/img/markers/payload-green.png and /dev/null differ
diff --git a/img/markers/payload-orange.png b/img/markers/payload-orange.png
deleted file mode 100644
index 20e5b05..0000000
Binary files a/img/markers/payload-orange.png and /dev/null differ
diff --git a/img/markers/payload-purple.png b/img/markers/payload-purple.png
deleted file mode 100644
index 80e1e1a..0000000
Binary files a/img/markers/payload-purple.png and /dev/null differ
diff --git a/img/markers/payload-red.png b/img/markers/payload-red.png
deleted file mode 100644
index 7ad8acc..0000000
Binary files a/img/markers/payload-red.png and /dev/null differ
diff --git a/img/markers/payload-rpi.png b/img/markers/payload-rpi.png
deleted file mode 100644
index 9f533fb..0000000
Binary files a/img/markers/payload-rpi.png and /dev/null differ
diff --git a/img/markers/payload-yellow.png b/img/markers/payload-yellow.png
deleted file mode 100644
index e9b7bb5..0000000
Binary files a/img/markers/payload-yellow.png and /dev/null differ
diff --git a/img/markers/payload.svg b/img/markers/payload.svg
new file mode 100644
index 0000000..b89d7d6
--- /dev/null
+++ b/img/markers/payload.svg
@@ -0,0 +1,36 @@
+
\ No newline at end of file
diff --git a/img/markers/target-blue.png b/img/markers/target-blue.png
deleted file mode 100644
index fae5796..0000000
Binary files a/img/markers/target-blue.png and /dev/null differ
diff --git a/img/markers/target-cyan.png b/img/markers/target-cyan.png
deleted file mode 100644
index ba30743..0000000
Binary files a/img/markers/target-cyan.png and /dev/null differ
diff --git a/img/markers/target-green.png b/img/markers/target-green.png
deleted file mode 100644
index 56b4682..0000000
Binary files a/img/markers/target-green.png and /dev/null differ
diff --git a/img/markers/target-orange.png b/img/markers/target-orange.png
deleted file mode 100644
index 4b353b6..0000000
Binary files a/img/markers/target-orange.png and /dev/null differ
diff --git a/img/markers/target-purple.png b/img/markers/target-purple.png
deleted file mode 100644
index 4510158..0000000
Binary files a/img/markers/target-purple.png and /dev/null differ
diff --git a/img/markers/target-red.png b/img/markers/target-red.png
deleted file mode 100644
index 5987df9..0000000
Binary files a/img/markers/target-red.png and /dev/null differ
diff --git a/img/markers/target-yellow.png b/img/markers/target-yellow.png
deleted file mode 100644
index 8dc2d08..0000000
Binary files a/img/markers/target-yellow.png and /dev/null differ
diff --git a/img/markers/target.svg b/img/markers/target.svg
new file mode 100644
index 0000000..e80875e
--- /dev/null
+++ b/img/markers/target.svg
@@ -0,0 +1,19 @@
+
\ No newline at end of file
diff --git a/index.html b/index.template.html
similarity index 92%
rename from index.html
rename to index.template.html
index c743538..a215c40 100644
--- a/index.html
+++ b/index.template.html
@@ -19,10 +19,35 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -131,9 +156,10 @@
Contribute
github/sondehub-amateur-tracker.
Bug reports, suggestions and pull requests are welcome. A huge thanks to RGP for developing the mobile tracker that this site is based on.