Fix non-JS fallback

This commit is contained in:
3wc 2021-11-04 14:58:42 +02:00
parent dadfdda313
commit 41ed475891
2 changed files with 7 additions and 2 deletions

View File

@ -16,7 +16,7 @@
<!-- JavaScript goes here -->
<script src="/dist/elm.compiled.js"></script>
<script src="/main.js"></script>
<div class="bg-dark">
<div class="bg-dark" id="fallback">
<nav class="navbar navbar-expand-lg sticky-top font-weight-bold" style="background: rgb(255, 79, 136) none repeat scroll 0% 0%;">
<a class="navbar-brand text-dark" href="/">
<img src="/logo.png" class="d-inline-block align-top mr-2" alt="" width="30" height="30">

View File

@ -2,8 +2,13 @@
// https://guide.elm-lang.org/interop/flags.html
var flags = null
// remove fallback message
document.addEventListener("DOMContentLoaded", function(event) {
document.getElementById('fallback').remove()
});
// Start our Elm application
var app = Elm.Main.init({ flags: flags })
// Ports go here
// https://guide.elm-lang.org/interop/ports.html
// https://guide.elm-lang.org/interop/ports.html