Added files and skeleton

master
Keith Irwin 2017-08-07 09:11:59 -04:00
parent 0f4dd8ea72
commit 772e998398
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
4 changed files with 63 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.c9/

36
index.html Normal file
View File

@ -0,0 +1,36 @@
<html>
<head>
<!-- Metadata -->
<title>Streetme</title>
<!--<link rel="manifest" href="manifest.webmanifest">-->
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta charset="UTF-8">
<meta name="author" content="Keith Irwin">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<meta name="keywords" content="phone, gps, location, streetview, road, street, app">
<meta name="description" content="This app shows a streetview image of your current geolocation. ">
<meta name="theme-color" content="#000">
<meta name="msapplication-navbutton-color" content="#000">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="stylesheet" href="style.css" />
</head>
<body>
<noscript>You need javascript to use this. </noscript>
<main>
</main>
<script src="script.js"></script>
</body>
</html>

22
script.js Normal file
View File

@ -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 }
);
}

4
style.css Normal file
View File

@ -0,0 +1,4 @@
main {
width: 100vw;
height: 100vh;
}