Remove unnecessary theme checks

This commit is contained in:
Neil Brommer 2018-01-03 14:01:29 -08:00
parent 31333452c4
commit 02533550a5
4 changed files with 27 additions and 67 deletions

View file

@ -48,6 +48,15 @@
</head>
<body>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- load at top for aetting the theme -->
<script src="lib/jquery/jquery-3.2.1.js"></script>
<script src="lib/popper/popper.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
<!-- Fixed navbar -->
<nav id="topnav" class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<div class="container">
@ -87,11 +96,6 @@
</div>
</nav>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<!-- Main component for a primary marketing message or call to action -->
<div class="container">
@ -134,23 +138,9 @@
</div>
<button id="contactSubmit" type="submit" class="btn btn-primary">Submit</button>
</form>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="lib/jquery/jquery-3.2.1.js"></script>
<script src="lib/popper/popper.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
<!-- Google reCAPTCHA -->
<script src='https://www.google.com/recaptcha/api.js'></script>
</body>

View file

@ -51,7 +51,7 @@
<body>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the top of document to allow theme to be set quickly -->
<!-- load at top for aetting the theme -->
<script src="lib/jquery/jquery-3.2.1.js"></script>
<script src="lib/popper/popper.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>

View file

@ -48,6 +48,15 @@
</head>
<body>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- load at top for aetting the theme -->
<script src="lib/jquery/jquery-3.2.1.js"></script>
<script src="lib/popper/popper.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
<!-- Fixed navbar -->
<nav id="topnav" class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<div class="container">
@ -87,11 +96,6 @@
</div>
</nav>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<div class="container">
<div class="jumbotron">
@ -101,11 +105,6 @@
</p>
</div>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<div class="row">
<div class="col-md-4 mb-3">
<div class="card full-height">
@ -259,21 +258,6 @@
</div>
</div>
</div>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="lib/jquery/jquery-3.2.1.js"></script>
<script src="lib/popper/popper.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>

View file

@ -48,6 +48,14 @@
</head>
<body>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- load at top for aetting the theme -->
<script src="lib/jquery/jquery-3.2.1.js"></script>
<script src="lib/popper/popper.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
<!-- Fixed navbar -->
<nav id="topnav" class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
@ -88,12 +96,6 @@
</div>
</nav>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<!-- Main component for a primary marketing message or call to action -->
<div class="container">
<div class="jumbotron">
<h1>Resume</h1>
@ -106,14 +108,7 @@
<a href="NeilBrommer-WebResume.pdf">here</a>.
</p>
</div>
</div>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<div class="container">
<h2>Education</h2>
<p>
<div class="row">
@ -187,15 +182,6 @@
</p>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="lib/jquery/jquery-3.2.1.js"></script>
<script src="lib/popper/popper.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>