generated from nhcarrigan/template
69 lines
1.4 KiB
Plaintext
69 lines
1.4 KiB
Plaintext
---
|
|
|
|
---
|
|
|
|
<!--
|
|
We used to use Docsify, so rather than breaking links we borrowed this from freeCodeCamp
|
|
to make our things work.
|
|
-->
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
const { hash } = window.location;
|
|
if (!hash || hash === '#/' || hash === '#') {
|
|
window.location.replace('/intro');
|
|
return;
|
|
}
|
|
if (hash === "#/coc") {
|
|
window.location.replace('/community/coc');
|
|
return;
|
|
}
|
|
if (hash === "#/contributing") {
|
|
window.location.replace('/dev/contributing');
|
|
return;
|
|
}
|
|
if (hash === "#/privacy") {
|
|
window.location.replace('/legal/privacy');
|
|
return;
|
|
}
|
|
if (hash === "#/terms") {
|
|
window.location.replace('/legal/terms');
|
|
return;
|
|
}
|
|
if (hash === "#/security") {
|
|
window.location.replace('/legal/security');
|
|
return;
|
|
}
|
|
if (hash === "#/contact") {
|
|
window.location.replace('/about/contact');
|
|
return;
|
|
}
|
|
window.location.replace('/intro');
|
|
});
|
|
</script>
|
|
<style>
|
|
.loader {
|
|
border: 8px solid #0a0a23;
|
|
border-top: 8px solid #f3f3f3;
|
|
border-radius: 50%;
|
|
width: 40px;
|
|
height: 40px;
|
|
animation: spin 2s linear infinite;
|
|
margin: auto;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
</style>
|
|
<div class='loader'></div>
|