Better handle page loading with dark mode

This commit is contained in:
Neil Brommer 2017-12-16 12:58:42 -08:00
parent 04cce1956b
commit 6cb600b5ed
3 changed files with 41 additions and 0 deletions

View file

@ -87,6 +87,12 @@
</div> </div>
</nav> </nav>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<!-- Main component for a primary marketing message or call to action --> <!-- Main component for a primary marketing message or call to action -->
<div class="container"> <div class="container">
<div class="jumbotron"> <div class="jumbotron">
@ -95,6 +101,11 @@
<div id="successAlert" class="alert alert-success" role="alert" style="display: none;">Message sent successfully!</div> <div id="successAlert" class="alert alert-success" role="alert" style="display: none;">Message sent successfully!</div>
<div id="errorAlert" class="alert alert-danger" role="alert" style="display: none"></div> <div id="errorAlert" class="alert alert-danger" role="alert" style="display: none"></div>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<form id="contactForm"> <form id="contactForm">
<div class="form-group"> <div class="form-group">
<label for="nameField">Name <label for="nameField">Name
@ -123,6 +134,11 @@
</div> </div>
<button id="contactSubmit" type="submit" class="btn btn-primary">Submit</button> <button id="contactSubmit" type="submit" class="btn btn-primary">Submit</button>
</form> </form>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
</div> </div>
</div> </div>

View file

@ -87,6 +87,11 @@
</div> </div>
</nav> </nav>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<div class="container"> <div class="container">
<div class="jumbotron"> <div class="jumbotron">
@ -96,6 +101,11 @@
</p> </p>
</div> </div>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<div class="row"> <div class="row">
<div class="col-md-4 mb-3"> <div class="col-md-4 mb-3">
<div class="card full-height"> <div class="card full-height">
@ -250,6 +260,11 @@
</div> </div>
</div> </div>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<!-- Bootstrap core JavaScript <!-- Bootstrap core JavaScript
================================================== --> ================================================== -->

View file

@ -88,6 +88,11 @@
</div> </div>
</nav> </nav>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<!-- Main component for a primary marketing message or call to action --> <!-- Main component for a primary marketing message or call to action -->
<div class="container"> <div class="container">
<div class="jumbotron"> <div class="jumbotron">
@ -103,6 +108,11 @@
</div> </div>
</div> </div>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<div class="container"> <div class="container">
<h2>Education</h2> <h2>Education</h2>
<p> <p>