-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
103 lines (101 loc) · 4.29 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1" />
<meta name="theme-color" content="#161325">
<title>StatSim | Statistical Simulation and Inference</title>
<!--
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700,400italic">
<link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons">
-->
<link rel="stylesheet" href="css/vue-material.css" media="screen">
<link rel="stylesheet" href="css/handsontable.full.min.css" media="screen">
<link rel="stylesheet" href="css/vue2-perfect-scrollbar.min.css" media="screen">
<link rel="stylesheet" href="css/roboto.css" media="screen">
<link rel="stylesheet" href="css/icons.css" media="screen">
<link rel="stylesheet" href="css/vis-network.min.css" media="screen">
<link rel="icon" type="image/png" sizes="192x192" href="images/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="images/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<style>
/* Loading animation */
#app-loader {
position: absolute;
width: 100%;
height: 100%;
left: 0px;
top: 0px;
display: flex;
align-items: center;
justify-content: center;
}
</style>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-7770107-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-7770107-2');
</script>
</head>
<body>
<div id="app-loader">
<img src="images/loader.gif">
</div>
<div id="app"></div>
<script src="assets/density-plot.js" charset="utf-8"></script>
<script src="dist/bundle.js" charset="utf-8"></script>
<script charset="utf-8">
if ('serviceWorker' in navigator) {
console.log('Index: registering service worker')
navigator.serviceWorker.register('sw.js').then(function() {
console.log('Index: service worker registration complete')
}, function() {
console.log('Index: service worker registration failure')
});
} else {
console.log('Index: service worker is not supported')
}
/*
When the HandsonTable consists of multiple columns the page shows horizontal scrollbar
When scrolling right, side-bar and model-bar become invisible
We can't make side-bar fixed because everything is stacked and it has fluid height
Until a better solution we just shift the relative positioned side-bar with javascript
*/
var oldLeft = 0
var oldTop = 0
// document.querySelectorAll('.md-menu ').forEach(s => console.log(s))
/*
document.onclick = function() {
if ((document.getElementsByClassName('md-backdrop').length > 1) && (document.body.className === 'md-theme-default')) {
document.body.className = 'md-theme-default no-scroll'
} else {
document.body.className = 'md-theme-default'
}
}
*/
window.onscroll = function() {
// event.preventDefault()
// if (document.getElementsByClassName('md-backdrop').length > 1) {
// Manually prevent the page from scrolling when backdrop exists
// Bad, bad idea!
// document.documentElement.scrollTo(oldLeft, oldTop)
// } else {
// oldTop = document.documentElement.scrollTop
// }
var left = document.documentElement.scrollLeft
if (left !== oldLeft) {
var x = window.innerWidth || document.documentElement.clientWidth || document.getElementsByTagName('body')[0].clientWidth
if (x < 860) { document.getElementById('side-bar').style.left = left + 'px' }
document.getElementById('model-bar').style.left = left + 'px'
var grad = document.getElementById('table-gradient')
// if (grad) { grad.style.left = left + 'px' }
oldLeft = left
}
}
</script>
</body>
</html>