2017-10-25 20:18:13 +13:00
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
|
|
|
|
|
<title>Iris</title>
|
|
|
|
|
|
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
|
|
|
<meta content="width=device-width, initial-scale=1" name="viewport" />
|
2018-07-27 15:23:06 +12:00
|
|
|
<meta name="viewport" content="width=device-width" />
|
2017-10-25 20:18:13 +13:00
|
|
|
|
2019-10-19 18:47:17 +02:00
|
|
|
<link rel="manifest" href="/iris/manifest.json" crossorigin="use-credentials" />
|
2017-10-25 20:18:13 +13:00
|
|
|
|
2018-07-27 15:23:06 +12:00
|
|
|
<!-- App setup -->
|
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
2018-04-25 07:22:53 +12:00
|
|
|
<meta name="apple-mobile-web-app-title" content="Iris" />
|
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
2018-07-27 15:23:06 +12:00
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="#121212" />
|
|
|
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
|
|
|
<meta name="theme-color" content="#222222" />
|
2020-02-11 09:54:08 +13:00
|
|
|
|
2019-04-23 07:48:52 +12:00
|
|
|
<!-- Icons -->
|
2018-07-27 15:23:06 +12:00
|
|
|
<link rel="apple-touch-startup-image" href="/iris/assets/app-icon_512.png" />
|
2020-02-09 08:15:10 +13:00
|
|
|
<link rel="apple-touch-icon" sizes="192x192" href="/iris/assets/app-icon_192.png" />
|
|
|
|
|
<link rel="apple-touch-icon" sizes="512x512" href="/iris/assets/app-icon_512.png" />
|
2019-04-23 07:48:52 +12:00
|
|
|
|
|
|
|
|
<link class="favicon" rel="shortcut icon" type="image/ico" href="/iris/assets/favicon.png" />
|
|
|
|
|
<link class="favicon" rel="shortcut icon" type="image/x-icon" href="/iris/assets/favicon.png" />
|
|
|
|
|
<link class="favicon" rel="shortcut-icon" href="/iris/assets/favicon.png" />
|
|
|
|
|
|
2018-07-27 15:23:06 +12:00
|
|
|
<link rel="mask-icon" href="/iris/assets/app-icon.svg" color="#08d58f" />
|
|
|
|
|
|
|
|
|
|
<!-- Loading screen styles -->
|
2018-04-03 17:01:40 +12:00
|
|
|
<style>
|
2020-02-11 09:54:08 +13:00
|
|
|
html {
|
2018-05-01 21:03:05 +12:00
|
|
|
background-color: #121212;
|
|
|
|
|
}
|
|
|
|
|
@keyframes loader {
|
|
|
|
|
0% { left: 0; right: 100%; }
|
|
|
|
|
50% { left: 0; right: 0; }
|
|
|
|
|
100% { left: 100%; right: 0; }
|
2018-04-05 07:35:25 +12:00
|
|
|
}
|
2018-04-03 17:01:40 +12:00
|
|
|
#app-loading {
|
|
|
|
|
position: fixed;
|
2018-05-01 21:03:05 +12:00
|
|
|
top: 50vh;
|
2020-08-01 21:15:17 +12:00
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 30px 0;
|
|
|
|
|
}
|
|
|
|
|
#app-loading-logo {
|
|
|
|
|
filter: brightness(0) invert(1);
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
display: block;
|
|
|
|
|
width: 60vw;
|
|
|
|
|
max-width: 100px;
|
|
|
|
|
opacity: 0.25;
|
|
|
|
|
}
|
|
|
|
|
#app-loading-loader {
|
|
|
|
|
position: relative;
|
|
|
|
|
margin: 30px auto 0;
|
|
|
|
|
width: 80vw;
|
|
|
|
|
max-width: 200px;
|
2018-05-01 21:03:05 +12:00
|
|
|
height: 3px;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background-color: #1A1A1A;
|
2018-04-03 17:01:40 +12:00
|
|
|
}
|
2020-08-01 21:15:17 +12:00
|
|
|
#app-loading-loader::before {
|
2018-05-01 21:03:05 +12:00
|
|
|
position: absolute;
|
|
|
|
|
display: block;
|
2020-02-11 09:54:08 +13:00
|
|
|
content: '';
|
2018-04-03 17:01:40 +12:00
|
|
|
height: 100%;
|
2018-05-01 21:03:05 +12:00
|
|
|
animation-name: loader;
|
|
|
|
|
background: #444444;
|
2018-04-05 07:35:25 +12:00
|
|
|
animation-duration: 1.8s;
|
|
|
|
|
animation-timing-function: ease-in-out;
|
|
|
|
|
animation-iteration-count: infinite;
|
2018-04-03 17:01:40 +12:00
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
2017-10-25 20:18:13 +13:00
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<div id="app">
|
2018-04-03 17:01:40 +12:00
|
|
|
<!-- ReactJS app gets injected here, replacing the loader -->
|
2020-08-01 21:15:17 +12:00
|
|
|
<div id="app-loading">
|
|
|
|
|
<img src="/iris/assets/app-icon.svg" id="app-loading-logo" />
|
|
|
|
|
<div id="app-loading-loader"></div>
|
2018-07-23 18:01:10 +12:00
|
|
|
</div>
|
2017-10-25 20:18:13 +13:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
2018-07-21 22:00:12 +12:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
if ('serviceWorker' in navigator){
|
2019-04-19 07:29:17 +12:00
|
|
|
navigator.serviceWorker.register('/iris/service-worker.js')
|
2018-07-22 21:22:35 +12:00
|
|
|
.then(function(registration){
|
|
|
|
|
console.log('Service worker registered');
|
|
|
|
|
}).catch(function(error){
|
|
|
|
|
console.error('Service worker registration failed:', error);
|
2018-07-21 22:00:12 +12:00
|
|
|
});
|
2018-07-22 21:22:35 +12:00
|
|
|
}
|
2018-07-21 22:00:12 +12:00
|
|
|
</script>
|
|
|
|
|
|
2017-10-25 20:18:13 +13:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
// Release details
|
2017-11-27 08:41:02 +13:00
|
|
|
// These are automatically injected to built HTML
|
2020-11-29 17:42:50 +13:00
|
|
|
var build = "1606624896";
|
2020-11-20 23:10:24 +13:00
|
|
|
var version = "3.54.3";
|
2017-10-25 20:18:13 +13:00
|
|
|
|
|
|
|
|
// Construct the script tag
|
2020-02-11 09:54:08 +13:00
|
|
|
var js = document.createElement("script");
|
|
|
|
|
js.type = "application/javascript";
|
|
|
|
|
|
|
|
|
|
// Construct our css tag
|
|
|
|
|
var css = document.createElement("link");
|
|
|
|
|
css.rel = "stylesheet";
|
|
|
|
|
|
2020-02-13 08:54:12 +13:00
|
|
|
// Check for test mode. This is toggled under Settings > Debug > Test mode or can
|
|
|
|
|
// be manually triggered with the URL var "?test_mode=1"
|
2020-11-04 21:22:44 +13:00
|
|
|
if (window.location.href.indexOf('test_mode=1') > -1) {
|
|
|
|
|
window.test_mode = true;
|
|
|
|
|
localStorage.setItem('test_mode', true);
|
|
|
|
|
} else if (window.location.href.indexOf('test_mode=0') > -1) {
|
2020-09-02 08:12:18 +12:00
|
|
|
window.test_mode = false;
|
2020-11-04 21:22:44 +13:00
|
|
|
localStorage.removeItem('test_mode');
|
|
|
|
|
} else {
|
|
|
|
|
window.test_mode = localStorage.getItem('test_mode');
|
2017-11-23 21:15:35 +13:00
|
|
|
}
|
2017-10-25 20:18:13 +13:00
|
|
|
|
2017-11-27 08:41:02 +13:00
|
|
|
// Test mode, use un-minified code
|
2020-09-02 08:12:18 +12:00
|
|
|
if (window.test_mode){
|
2020-02-13 10:41:20 +13:00
|
|
|
console.debug("Test mode enabled, using un-minified code");
|
2020-02-13 08:54:12 +13:00
|
|
|
css.href = '/iris/app.css?v='+build;
|
|
|
|
|
js.src = '/iris/app.js?v='+build;
|
|
|
|
|
|
|
|
|
|
// Production-grade, minified app
|
|
|
|
|
} else {
|
|
|
|
|
css.href = '/iris/app.min.css?v='+build;
|
|
|
|
|
js.src = '/iris/app.min.js?v='+build;
|
|
|
|
|
}
|
2017-10-25 20:18:13 +13:00
|
|
|
|
|
|
|
|
// And finally inject our CSS/JS tags
|
|
|
|
|
document.body.appendChild(css);
|
2018-07-23 21:05:29 +12:00
|
|
|
document.body.appendChild(js);
|
2017-10-25 20:18:13 +13:00
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
</html>
|
|
|
|
|
|