forked from poooi/poi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (79 loc) · 2.47 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>poi</title>
<link rel="stylesheet" id="bootstrap-css">
<link rel="stylesheet" id="fontawesome-css">
<link rel="stylesheet" href="./assets/css/app.css">
<link rel="stylesheet" id="layout-css" href="./assets/css/layout.horizontal.css">
<script>
window.isMain = true
require('coffee-script/register');
require('babel-register')(require('./babel.config'));
require('./views/env');
</script>
</head>
<body>
<poi-css-injector></poi-css-injector>
<title-bar></title-bar>
<poi-main>
<kan-game>
<div class="kan-game-warpper">
<div id="webview-wrapper" style="height: 480px">
<webview src="about:blank" ondrop="event.preventDefault();" plugins disablewebsecurity preload="./assets/js/webview-preload.js"></webview>
</div>
<hr>
<poi-info>
<poi-control></poi-control>
<poi-alert></poi-alert>
<poi-map-reminder></poi-map-reminder>
</poi-info>
<hr>
</div>
</kan-game>
<poi-modal>
<poi-modal-trigger />
</poi-modal>
<poi-toast>
<poi-toast-trigger />
</poi-toast>
<poi-auth>
<poi-auth-trigger />
</poi-auth>
<poi-app>
<div id='poi-app-container'>
<poi-nav>
<poi-nav-tabs />
</poi-nav>
</div>
</poi-app>
</poi-main>
<script>
require('./views/app');
require('./views/services');
// Google analytics
if (window.config.get('poi.sendAnalytics', true)) {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
(() => {
'use strict';
let ElectronCookies = require('@exponent/electron-cookies');
ElectronCookies.enable({ origin: 'https://app.poi.io/' });
ga('create', 'UA-99082354-1', 'auto');
ga('set', 'location', `https://app.poi.io/${window.POI_VERSION}/`);
ga('set', 'checkProtocolTask', null);
ga('send', 'pageview');
setTimeout(() => {
ga('send', 'event', 'theme', window.config.get('poi.theme', 'paperdark'));
}, 5000);
setInterval(() => {
ga('send', 'event', 'heartbeat');
}, 300000);
})();
}
</script>
</body>
</html>