-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
32 lines (31 loc) · 1.18 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Move My Map</title>
<script src="https://unpkg.com/@tensorflow/tfjs"></script>
<script src="https://unpkg.com/@tensorflow-models/posenet"></script>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto">
<link rel="stylesheet" type="text/css" href="./css/styles.css">
<script src="./js/env.js"></script>
<script src="./js/index.js"></script>
</head>
<body onload="start()">
<h1>Move My Map</h1>
<video id="video" width="600" height="600">Video stream not available.</video>
<div id="pano"></div>
<script>
(function() {
var apiKey = env.GOOGLE_API_KEY
var googleMap = document.createElement('script');
googleMap.type = 'text/javascript';
googleMap.async = true;
googleMap.defer = true;
googleMap.src = 'https://maps.googleapis.com/maps/api/js?key=' + apiKey + '&callback=initPano';
console.log(googleMap.src);
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(googleMap, s);
})()
</script>
</body>
</html>