Commit 1b528f69 authored by Sandro Lutz's avatar Sandro Lutz Committed by Sandro Lutz
Browse files

Add error handler for splash screen

parent 2a3e48db
......@@ -51,7 +51,11 @@
margin: auto;
}
noscript {
#splash-error {
display: none;
}
noscript,#splash-error {
min-width: 100%;
max-height: 100%;
overflow-y: auto;
......@@ -61,15 +65,24 @@
transform: translateY(-50%);
}
noscript img {
noscript img,#splash-error img {
width: 500px;
max-width: 100%;
display: inline-block;
}
noscript h1 { font-size: 50px; }
noscript p { color: #999; }
noscript h1,#splash-error h1 { font-size: 50px; }
noscript p,#splash-error p { color: #999; }
</style>
<script>
window.onerror = function (message, file, line, col, error) {
var element = document.getElementById("splash-error");
if (element !== undefined && element !== null) {
document.getElementById("loader").style.display = "none";
element.style.display = "block";
}
};
</script>
</head>
<body>
<div class="static-container">
......@@ -78,6 +91,11 @@
<h1>JavaScript is required</h1>
<p>Please enable JavaScript in your browser and reload this page.</p>
</noscript>
<div id="splash-error">
<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkViZW5lXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iMTk2LjA1MnB4IiBoZWlnaHQ9Ijg0Ljk1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Ny40NzksMTkuMTU2LTMuMDM0YzAuNDM1LDAuMzE2LDAuODM5LDAuNjU4LDEuMjI1LDEuMDEzbC00LjE3NiwzLjAzNGwtNC4wNTYtNS41ODJsLTQuNDczLDMuMjVsNC4wNTYsNS41ODMNCgkJbC0wLjAwNywwLjAwNWwtMTIuNzcyLDEuMjQ1bDMuODIsNS4yNThMMzMuMDUxLDQ4LjMyMXogTTU2LjYwMSw1MC42NjhjLTQuNDQ1LDYuMTE4LTEzLjAzOCw3LjQ3OS0xOS4xNTYsMy4wMzQNCgkJYy0wLjM5Ny0wLjI4OS0wLjc3Mi0wLjU5Ni0xLjEyOS0wLjkxOGw0LjExOS0yLjk5Mmw0LjA5NSw1LjYzOGw1LjEzNS0xMS43NzFsMy43NjgsNS4xODZsNC40NzMtMy4yNWwtNC4wMzktNS41Nmw0LjE0Ny0zLjAxMw0KCQlDNTkuOTQsNDEuMzUzLDU5LjU4Miw0Ni41NjQsNTYuNjAxLDUwLjY2OCIvPg0KPC9nPg0KPC9zdmc+DQo=" alt="AMIV an der ETH">
<h1>Oops, that's an error!</h1>
<p>The page could not be loaded properly. Please reload this page.</p>
</div>
<div id="loader">
<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkViZW5lXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDguOCA0OC4xIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0OC44IDQ4LjE7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRTg0NjJCO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzd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4xSDI0aDAuNGgwLjJjMC4zLDAsMC41LDAsMC44LDBIMjZsMC45LDAuMWwwLjUsMC4xYzAuMywwLjEsMC42LDAuMSwwLjksMC4ybDAuNCwwLjFjMC4zLDAuMSwwLjYsMC4yLDAuOSwwLjNsMC4zLDAuMWMwLjMsMC4xLDAuNiwwLjMsMC45LDAuNGwwLjMsMC4xYzAuMywwLjIsMC42LDAuMywwLjgsMC41YzAuMSwwLjEsMC4yLDAuMSwwLjMsMC4ybDAuMywwLjJsMC40LDAuM2MwLjIsMC4xLDAuMywwLjMsMC41LDAuNGMwLjEsMC4xLDAuMiwwLjIsMC4zLDAuM2wwLDBjMS40LDEuMywyLjQsMi44LDMuMiw0LjVsMCwwYzAsMCwwLDAuMSwwLDAuMWMwLjEsMC4yLDAuMSwwLjMsMC4yLDAuNXMwLjIsMC40LDAuMiwwLjZzMC4xLDAuMywwLjIsMC41czAuMiwwLjYsMC4yLDAuOXMwLjEsMC4zLDAuMSwwLjVzMC4xLDAuNiwwLjEsMC44YzAsMC4xLDAsMC4yLDAsMC4zYzAsMC40LDAuMSwwLjgsMC4xLDEuMmMwLDAsMCwwLjEsMCwwLjFzMCwwLjEsMCwwLjFDMzguMSwyNywzNy4yLDI5LjgsMzUuNSwzMi4xeiIvPjwvc3ZnPg=="
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment