Added files and skeleton
parent
0f4dd8ea72
commit
772e998398
@ -0,0 +1 @@
|
||||
.c9/
|
@ -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>
|
@ -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 }
|
||||
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue