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> </head>
<body> <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 --> <!-- Fixed navbar -->
<nav id="topnav" class="navbar navbar-expand-md navbar-dark fixed-top bg-dark"> <nav id="topnav" class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<div class="container"> <div class="container">
@ -87,11 +96,6 @@
</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">
@ -134,23 +138,9 @@
</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>
<!-- 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 --> <!-- Google reCAPTCHA -->
<script src='https://www.google.com/recaptcha/api.js'></script> <script src='https://www.google.com/recaptcha/api.js'></script>
</body> </body>

View file

@ -51,7 +51,7 @@
<body> <body>
<!-- Bootstrap core JavaScript <!-- 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/jquery/jquery-3.2.1.js"></script>
<script src="lib/popper/popper.js"></script> <script src="lib/popper/popper.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script> <script src="lib/bootstrap/js/bootstrap.min.js"></script>

View file

@ -48,6 +48,15 @@
</head> </head>
<body> <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 --> <!-- Fixed navbar -->
<nav id="topnav" class="navbar navbar-expand-md navbar-dark fixed-top bg-dark"> <nav id="topnav" class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<div class="container"> <div class="container">
@ -87,11 +96,6 @@
</div> </div>
</nav> </nav>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<div class="container"> <div class="container">
<div class="jumbotron"> <div class="jumbotron">
@ -101,11 +105,6 @@
</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">
@ -259,21 +258,6 @@
</div> </div>
</div> </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> </body>
</html> </html>

View file

@ -48,6 +48,14 @@
</head> </head>
<body> <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 --> <!-- Fixed navbar -->
<nav id="topnav" class="navbar navbar-expand-md navbar-dark fixed-top bg-dark"> <nav id="topnav" class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
@ -88,12 +96,6 @@
</div> </div>
</nav> </nav>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<!-- Main component for a primary marketing message or call to action -->
<div class="container"> <div class="container">
<div class="jumbotron"> <div class="jumbotron">
<h1>Resume</h1> <h1>Resume</h1>
@ -106,14 +108,7 @@
<a href="NeilBrommer-WebResume.pdf">here</a>. <a href="NeilBrommer-WebResume.pdf">here</a>.
</p> </p>
</div> </div>
</div>
<!-- try to prevent flickering -->
<script>
checkTheme();
</script>
<div class="container">
<h2>Education</h2> <h2>Education</h2>
<p> <p>
<div class="row"> <div class="row">
@ -187,15 +182,6 @@
</p> </p>
</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>
</body> </body>
</html> </html>