/
index_src.html
90 lines (79 loc) · 2.88 KB
/
index_src.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
<!DOCTYPE html>
<html>
<head>
<title>BassoonTracker - Amiga music tracker - by Steffest</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width user-scalable=no">
<meta name="author" content="Steffest">
<link rel="manifest" href="manifest.json">
<meta name="mobile-web-app-capable" content="yes">
<style>
html,body{
height: 100%;
overflow: hidden;
cursor: url(skin/cursor_amiga.cur),default;
}
body{
background-color: black;
margin: 0;
padding: 0;
}
canvas{
margin: auto;
display: block;
}
canvas:focus {
outline:none;
}
.message{
font-family: sans-serif;
position: absolute;
left: 0;
right: 0;
top: 0;
min-height: 30px;
padding: 20px;
background-color: rgba(243,33,70,0.5);
color: rgba(255, 255, 255, 0.8);
text-align: center;
}
.message a{
color: white;
}
</style>
<script>var buildNumber = "{build}"; var versionNumber = "{version}";</script>
<script src="script/bassoontracker-min.js?v{build}"></script>
<script>
(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-2499735-7', 'auto');
ga('send', 'pageview');
// force HTTPS - it is needed for the Dropbox integration
if (document.location.href.indexOf("stef.be")>0 && document.location.href.indexOf("https:")<0){
document.location.href = document.location.href.replace("http:","https:");
}
if (document.location.href.indexOf("updateversion")<0){
if (window.XMLHttpRequest) {
var req = new XMLHttpRequest();
req.onreadystatechange = function() {
if (this.readyState === 4 && this.status === 200) {
var version = this.responseText;
if (version != versionNumber){
console.log("update available");
var char = document.location.href.indexOf("?") > 0 ? "&" : "?";
document.location.href = document.location.href + char + "updateversion=" + version;
}
}
};
req.open("GET", "version.txt?r=" + new Date().getTime(), true);
req.send();
}
}
</script>
</head>
<body>
<canvas id="canvas" tabindex='1' moz-opaque></canvas>
</body>
</html>