Files
Iris/src/index.html

82 lines
2.4 KiB
HTML
Raw Normal View History

2016-10-03 14:44:27 +13:00
<html>
<head>
2017-02-09 15:54:01 +00:00
<title>Iris</title>
2017-02-09 15:54:01 +00:00
2016-10-03 14:44:27 +13:00
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
2016-11-03 18:22:26 +13:00
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta name="mobile-web-app-capable" content="yes" >
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="theme-color" content="#222222" />
<meta name="viewport" content="width=device-width">
2016-11-03 18:22:26 +13:00
2017-02-09 15:54:01 +00:00
<link rel="shortcut icon" type="image/ico" href="/iris/assets/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="/iris/assets/favicon.ico" />
<link rel="shortcut-icon" href="/iris/assets/favicon.ico" />
<link href="//fonts.googleapis.com/css?family=Overpass:400,400i,600,700,800" rel="stylesheet">
2016-10-03 14:44:27 +13:00
<!-- Chrome app -->
<link rel="manifest" href="/iris/assets/manifest.json">
<!-- Apple app -->
<link rel="apple-touch-startup-image" href="/iris/assets/logo-full-512.png">
<link rel="apple-touch-icon" sizes="192x192" href="/iris/assets/logo-app-192.png">
<link rel="apple-touch-icon" sizes="512x512" href="/iris/assets/logo-app-512.png">
2017-09-19 16:57:59 +12:00
<!-- Raven Sentry -->
<script src="https://cdn.ravenjs.com/3.17.0/raven.min.js" crossorigin="anonymous"></script>
2016-10-03 14:44:27 +13:00
</head>
<body>
2017-02-09 15:54:01 +00:00
2016-10-03 14:44:27 +13:00
<div id="app">
<!-- ReactJS application here -->
</div>
2017-02-09 15:54:01 +00:00
2016-10-03 14:44:27 +13:00
</body>
2017-02-09 15:54:01 +00:00
2017-09-03 21:00:17 +12:00
<script type="text/javascript">
2017-09-20 09:41:25 +12:00
// Release details
// These are automatically injected by build.sh
var build = "BUILD_HERE";
var version = "VERSION_HERE";
2017-09-03 21:00:17 +12:00
2017-09-20 09:41:25 +12:00
// Initiate error tracking. This helps catch errors early so
// patches can accurately and quickly fix issues.
Raven.config(
'https://023e3bf7721b48f29948545fc36a4621@sentry.io/219026',
{
release: version+"_"+build
}
).install();
// Construct the script tag
2017-09-03 21:00:17 +12:00
var js = document.createElement("script");
js.type = "application/javascript";
// Construct our css tag
2017-09-03 21:00:17 +12:00
var css = document.createElement("link");
css.rel = "stylesheet";
// Identify whether we're in test mode, and need to fetch non-minified assets
var ui = JSON.parse( localStorage.getItem('ui') );
if (typeof(ui) === 'undefined' || !ui || typeof(ui.test_mode) === 'undefined' || !ui.test_mode){
js.src = '/iris/app.min.js?v='+build;
css.href = '/iris/app.min.css?v='+build;
2017-09-03 21:00:17 +12:00
} else {
js.src = '/iris/app.js?v='+build;
css.href = '/iris/app.css?v='+build;
2017-09-03 21:00:17 +12:00
}
// And finally inject our CSS/JS tags
2017-09-03 21:00:17 +12:00
document.body.appendChild(js);
document.body.appendChild(css);
2017-09-03 21:00:17 +12:00
</script>
2016-10-03 14:44:27 +13:00
2017-02-09 15:54:01 +00:00
</html>
2017-09-03 21:00:17 +12:00