/
index.html
62 lines (58 loc) · 2.39 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
<!DOCTYPE html>
<html>
<head>
<title>AloTimer</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css"
integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous"/>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="container">
<header class="text-center">
<h1>AloTimer</h1>
<span>A more reliable setTimeout(). See </span>
<a href="jsdoc/index.html">JSDoc</a>
<span> for full usage instructions and </span>
<a href="https://coveralls.io/github/Alorel/alo-timer?branch=master">coverage</a>
<span> to see that things have been tested</span>
</header>
<iframe width="100%"
style="min-height:600px"
src="https://jsfiddle.net/Alorel/19mnmt8u/embedded/result,js,resources,html,css"
allowfullscreen="allowfullscreen"
frameborder="0"></iframe>
<hr/>
</div>
<script type="application/javascript">
//GA
(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');
ga('create', 'UA-76993341-1', 'auto');
ga('send', 'pageview');
var header = document.querySelector("header"),
container = document.querySelector(".container"),
iframe = document.querySelector("iframe"),
headerHeight = header.offsetHeight;
function resize() {
var windowHeight = window.innerHeight;
container.style.height = windowHeight + "px";
iframe.style.height = (windowHeight - 100 - headerHeight) + "px";
}
window.addEventListener("resize", resize);
resize();
</script>
</body>
</html>