forked from JohnSimerlink/branches_front_end_private
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (83 loc) · 4.09 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
82
83
84
85
86
<script>
window.fullCache = false // setting this to true will cause the initial load to be faster - but makes it so that certain features dont work / sync with the db yet . . . essentially as of 9/22 7:30pm PST enabling this option decreases the loadtime from 6.5ish seconds to 3.5 seconds on localhost
window.startTime = Date.now()
// console.log("0: page open" + window.startTime, calculateLoadTimeSoFar(window.startTime))
function calculateLoadTimeSoFar(utcTimestamp){
return (utcTimestamp - window.startTime ) / 1000 + " s"
}
window.cachedUserId = localStorage.getItem('userId')
// console.log("1: userId from cache is", window.cachedUserId, calculateLoadTimeSoFar(Date.now()))
</script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--<link rel="stylesheet" type="text/css" href="other_imports/font-awesome.min.css" >-->
<!--<link rel="stylesheet" type="text/css" href="dist/css/import.min.css" >-->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-42780582-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-42780582-3');
</script>
</head>
<body>
<!--<div id='loadingGif' style="width:100%;height:0;padding-bottom:56%;position:relative;"><iframe src="https://giphy.com/embed/l378xUdAVMtLjbuSY" width="100%" height="100%" style="position:absolute" frameBorder="0" class="giphy-embed" allowFullScreen></iframe></div>-->
<div id="loadingGif" style="display:none;"></div>
<!--<i class="fa fa-camera-retro fa-1x" style="color: rgba(0,0,0,0);"></i>-->
<script>
// console.log(".2: determining browser", calculateLoadTimeSoFar(Date.now()))
var explorer = false
if (/MSIE 10/i.test(navigator.userAgent)) {
// This is internet explorer 10
explorer = true
}
if (/MSIE 9/i.test(navigator.userAgent) || /rv:11.0/i.test(navigator.userAgent)) {
// This is internet explorer 9 or 11
explorer = true
}
if (/Edge\/\d./i.test(navigator.userAgent)){
// This is Microsoft Edge
explorer = true
}
if (explorer) {
alert("Internet Explorer / Edge not supported! Use Chrome or Firefox. Things you wont' be able to do in IE/Edge: 1) Editing facts is harder, because you cant resize the textarea box. 2)Maybe other stuff")
}
</script>
<script>
// console.log("hi")
// console.log('2.5', calculateLoadTimeSoFar(Date.now()))
// console.log(".25: main html about to be written", calculateLoadTimeSoFar(Date.now()))
// console.log(".3: main html just written", calculateLoadTimeSoFar(Date.now()))
</script>
<div class="page">
<div id="branches-app" class="branches-app">
<router-view class="main-view"></router-view>
<branches-footer class="footer-view"></branches-footer>
</div>
</div>
</div>
<!--<script type='text/javascript' src='/other_imports/pubsub.js'></script>-->
<!--<script type='text/javascript' src='/dist/build2/build2.min.js'></script>-->
<script type='text/javascript' src='/dist/funny/funny.min.js'></script>
<script type='text/javascript' src='/dist/regenerator.js'></script>
<script type='text/javascript' src='/dist/vendor.js'></script>
<script>
// if (window.cachedUserId){
// PubSub.publish('userId')
// }
</script>
<script type='text/javascript' src='/dist/build.js'></script>
<link href="https://fonts.googleapis.com/css?family=Fredoka+One" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/app/static/css/taggle.css">
<link rel="stylesheet" type="text/css" href="/app/static/css/payment.css">
<link rel="stylesheet" type="text/css" href="/other_imports/semantic/semantic-ui.min.css">
<script>
console.log(".4: build.js about to get called", calculateLoadTimeSoFar(Date.now()))
</script>
</body>
</html>