-
Notifications
You must be signed in to change notification settings - Fork 1
/
flat.html
77 lines (71 loc) · 2.48 KB
/
flat.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en" manifest="flat.manifest">
<head>
<meta charset="utf-8">
<title>
Styra
</title>
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="viewport" content="width=device-width, minimal-ui">
<meta name="description" content="">
<meta name="author" content="Tobias">
<!-- Le styles -->
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="flatui/css/flat-ui.css" rel="stylesheet">
<link href="flat.css" rel="stylesheet">
<style>
body { padding-top: 0px; /* 60px to make the container go all the way
to the bottom of the topbar */ }
</style>
<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
</head>
<body>
<div class="container-fluid">
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<ul class="nav ">
<li class="active">
<a href="#">Garage</a>
</li>
<li>
<a href="#">Nexa</a>
<ul>
<li><a href="nexa.html">Enheter</a></li>
<li><a href="#">Timers</a></li>
<li><a href="#">Inställningar</a></li>
</ul> <!-- /Sub menu -->
</li>
</li>
<li>
<a href="kamera.html">Kamera</a>
</li>
</ul>
</div>
</div>
<hr/>
<div class="alert alert-info" id="garageport" onclick="runMotor();"><h3>Garageport</h3><p class="">-</p></div>
<div class="alert alert-info" id="innerdoor"><h3>Innerdörr</h3><p>-</p></div>
<hr/>
<div id="distance"><p class="">-</p></div>
<script src="jquery.min.js">
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"> -->
</script>
<script src="bootstrap/js/bootstrap.js">
</script>
<script src="http://garagepi.helentobias.se/socket.io/socket.io.js"></script>
<script src="motordoor.js"></script>
<script type="text/javascript">
var socket;
stayInWebApp();
socket = io.connect('http://garagepi.helentobias.se');
socket.on('status', function(msg){statusReceived(msg)});
socket.on('status2', function(msg){statusReceived2(msg)});
window.navigator.geolocation.getCurrentPosition(function(pos) {
console.log(pos);
var dist = distance(pos.coords.latitude, pos.coords.longitude, 59.327106, 13.500960);
console.log(dist);
$("#distance").html(dist);
}, null, {maximumAge: 120000});
</script>
</body>
</html>