fix FOUC
This commit is contained in:
parent
0e431a1283
commit
141788714b
|
@ -10,6 +10,10 @@
|
||||||
<script type="module">
|
<script type="module">
|
||||||
document.documentElement.classList.remove("no-js");
|
document.documentElement.classList.remove("no-js");
|
||||||
document.documentElement.classList.add("js");
|
document.documentElement.classList.add("js");
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
|
document.body.style.opacity = "1";
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<meta name="description" content="Securely request information via SURE links" />
|
<meta name="description" content="Securely request information via SURE links" />
|
||||||
|
@ -37,7 +41,7 @@
|
||||||
<meta name="msapplication-starturl" content="/" />
|
<meta name="msapplication-starturl" content="/" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body style="opacity: 0; background-color: #11191f;">
|
||||||
<header class="container">
|
<header class="container">
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<h1>
|
<h1>
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
.js-warning {
|
.js-warning {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-js .js-warning {
|
.no-js .js-warning {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden {
|
body {
|
||||||
display: none;
|
transition: opacity 1s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue