-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
81 lines (74 loc) · 2.59 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
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
78
79
80
81
<html>
<head>
<title>Escooteros</title>
<style>
body {
margin: 0;
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta content="escooteros, scooter, game" name="keywords">
<meta content="Escooteros is a game to teach you how to ride a scooter in virtual reality using your mobile phone."
name="description">
<meta content="#f4d80f" name="theme-color">
<meta content="#f4d80f" name="msapplication-navbutton-color">
<meta content="#f4d80f" name="apple-mobile-web-app-status-bar-style">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="Escooteros" name="apple-mobile-web-app-title">
<link href="static_assets/logo.png" rel="apple-touch-icon">
<meta content="static_assets/logo.png" name="msapplication-TileImage">
<meta content="#f4d80f" name="msapplication-TileColor">
<link href="static_assets/logo.png" rel="shortcut icon">
<meta content="width=device-width,initial-scale=1,shrink-to-fit=no" name="viewport">
<link rel="manifest" href="static_assets/manifest.json">
</head>
<body>
<!-- Attachment point for your app -->
<div id="container"></div>
<script src="./client.bundle?platform=vr"></script>
<script>
// Initialize the React 360 application
React360.init(
'index.bundle?platform=vr&dev=true',
document.getElementById('container'),
{
assetRoot: 'static_assets/',
}
);
</script>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('static_assets/serviceWorker.js')
.then(function () {
console.log('Service Worker Registered');
});
}
window.addEventListener('appinstalled', (evt) => {
console.log('a2hs installed');
});
window.addEventListener('beforeinstallprompt', (e) => {
// Stash the event so it can be triggered later.
deferredPrompt = e;
console.log(e);
// Update UI notify the user they can add to home screen
showInstallPromotion();
});
window.fbAsyncInit = function () {
FB.init({
appId: '495647514322199',
xfbml: true,
version: 'v5.0'
});
FB.AppEvents.logPageView();
};
(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) { return; }
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</body>
</html>