-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (68 loc) · 2.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=1028px,initial-scale=1.0" />
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.7.1/css/all.css"
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
crossorigin="anonymous"
/>
<title>OSU Sustainability Kiosk</title>
<style>
h1.incompatible {
color: rgba(255, 255, 255, 0.85);
font-family: "StratumNo2";
font-size: 90px;
padding: 30px;
padding-top: 10px;
background-color: #8b2728;
width: 100%;
height: 120px;
}
h3.incompatible {
color: #fff;
padding: 20px;
}
h4.incompatible {
color: #fff;
font-weight: bold;
}
div.incompatible {
text-align: center;
}
li.incompatible {
color: #fff;
list-style: none;
}
li.incompatible a {
font-size: 24px;
color: rgba(255, 255, 255, 0.7);
text-decoration: underline;
}
</style>
<script>
var supportsES6 = (function () {
try {
new Function("(a = 0) => a");
return true;
} catch (err) {
return false;
}
})();
</script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
<script>
if (!supportsES6) {
var bod = document.body;
bod.innerHTML =
"<h1 class='incompatible'>We're Sorry...</h1><h3 class='incompatible'>An incompatible browser was detected. Please update to a supported browser to use this application.</h3><div class='incompatible'><h4 class='incompatible'>Supported Browsers:</h4><ul class='incompatible'><li class='incompatible'><a href='https://www.google.com/chrome/'>Chrome</a> (version > 68)</li><li class='incompatible'><a href='https://www.mozilla.org/en-US/firefox/new/'>Firefox</a> (version > 54)</li><li class='incompatible'><a href='https://www.microsoft.com/en-us/windows/microsoft-edge'>Edge</a> (version > 14)</li><li class='incompatible'><a href='https://support.apple.com/downloads/safari'>Safari</a> (version > 10)</li><li class='incompatible'><a href='https://www.opera.com/download'>Opera</a> (version > 55)</li></ul></div>";
bod.style.backgroundColor = "#c23737";
}
</script>
</html>