From 772e9983987e42651291357a84df43177a82cb47 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Mon, 7 Aug 2017 09:11:59 -0400 Subject: [PATCH] Added files and skeleton --- .gitignore | 1 + index.html | 36 ++++++++++++++++++++++++++++++++++++ script.js | 22 ++++++++++++++++++++++ style.css | 4 ++++ 4 files changed, 63 insertions(+) create mode 100644 .gitignore create mode 100644 index.html create mode 100644 script.js create mode 100644 style.css diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4d3c41f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.c9/ diff --git a/index.html b/index.html new file mode 100644 index 0000000..1d9e26c --- /dev/null +++ b/index.html @@ -0,0 +1,36 @@ + + + + + + Streetme + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/script.js b/script.js new file mode 100644 index 0000000..7328908 --- /dev/null +++ b/script.js @@ -0,0 +1,22 @@ +'use strict'; +/* global navigator $ */ + +// Track GPS location +if (!navigator.geolocation){ $('#no-gps').show(); } +else { navigator.geolocation.watchPosition( + + // Got location + function(pos) { + + }, + + // Got error + function() { + //TODO: Show error + }, + + // Options + { enableHighAccuracy:true } + + ); +} \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..9c0487e --- /dev/null +++ b/style.css @@ -0,0 +1,4 @@ +main { + width: 100vw; + height: 100vh; +} \ No newline at end of file