Add a dark mode

This commit is contained in:
Neil Brommer 2017-12-15 21:09:10 -08:00
parent 282281db82
commit 04cce1956b
10 changed files with 278 additions and 87 deletions

View file

@ -13,13 +13,24 @@
<link rel="icon" href="favicon.ico">
<!-- theme colors -->
<meta name="theme-color" content="#3f51b5"> <!-- Chrome, Firefox OS and Opera -->
<meta name="msapplication-navbutton-color" content="#3f51b5"> <!-- Windows Phone -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <!-- iOS -->
<meta name="theme-color" content="#3f51b5">
<!-- Chrome, Firefox OS and Opera -->
<meta name="msapplication-navbutton-color" content="#3f51b5">
<!-- Windows Phone -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- iOS -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!-- Bootstrap -->
<link href="font-awesome/css/font-awesome.css" rel="stylesheet"> <!-- font awesome -->
<link href="css/main.css" rel="stylesheet"> <!-- Custom styles for this site -->
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap -->
<!-- font awesome -->
<script defer src="/lib/fontawesome/svg-with-js/js/fa-brands.js"></script>
<script defer src="/lib/fontawesome/svg-with-js/js/fa-regular.js"></script>
<script defer src="/lib/fontawesome/svg-with-js/js/fa-solid.js"></script>
<script src="/lib/fontawesome/svg-with-js/js/fontawesome.js"></script>
<link href="css/main.css" rel="stylesheet">
<!-- Custom styles for this site -->
<!-- Google Analytics -->
<script>
@ -59,11 +70,18 @@
<li class="nav-item" id="contactlnk">
<a class="nav-link" href="contact.html">Contact</a>
</li>
</ul>
<ul class="navbar-nav">
<li class="nav-item" id="githublnk">
<a class="nav-link" href="https://github.com/NeilBrommer" target="_blank">
GitHub <span class="fa fa-external-link"></span>
<a class="nav-link" href="https://github.com/NeilBrommer" target="_blank" title="GitHub">
<span class="fab fa-github-alt"></span>
</a>
</li>
<li class="nav-item ml-md-2">
<button id="btnTheme" type="button" class="btn btn-dark" aria-pressed="false" autocomplete="off">
<span id="themeText" class="fas fa-moon"></span>
</button>
</li>
</ul>
</div>
</div>
@ -84,8 +102,7 @@
<h4 class="card-header">John Carmack at QuakeCon 2013</h4>
<div class="card-body">
<p class="card-text">
<a href="https://www.youtube.com/watch?v=IyUgHPs86XM"
target="_blank">
<a href="https://www.youtube.com/watch?v=IyUgHPs86XM" target="_blank">
Principles of Lighting and Rendering with John Carmack at QuakeCon 2013
</a>
</p>
@ -101,8 +118,7 @@
<h4 class="card-header">Volatility of High Frequency Trading</h4>
<div class="card-body">
<p class="card-text">
<a href="http://nautil.us/issue/23/dominoes/why-the-flash-crash-really-matters"
target="_blank">
<a href="http://nautil.us/issue/23/dominoes/why-the-flash-crash-really-matters" target="_blank">
Why the Flash Crash Really Matters
</a>
</p>
@ -120,8 +136,7 @@
<h4 class="card-header">Algorithms and Bias</h4>
<div class="card-body">
<p class="card-text">
<a href="https://www.nytimes.com/2015/08/11/upshot/algorithms-and-bias-q-and-a-with-cynthia-dwork.html?abt=0002&abg=1"
target="_blank">
<a href="https://www.nytimes.com/2015/08/11/upshot/algorithms-and-bias-q-and-a-with-cynthia-dwork.html?abt=0002&abg=1" target="_blank">
Algorithms and Bias: Q. and A. With Cynthia Dwork
</a>
</p>
@ -153,8 +168,7 @@
<h4 class="card-header">Real Time Rendering for Artists</h4>
<div class="card-body">
<p class="card-text">
<a href="https://jesshiderue4.wordpress.com/real-time-rendering-an-overview-for-artists/"
target="_blank">
<a href="https://jesshiderue4.wordpress.com/real-time-rendering-an-overview-for-artists/" target="_blank">
Real Time Rendering: An Overview for Artists
</a>
</p>
@ -171,7 +185,7 @@
<div class="card-body">
<p class="card-text">
<a href="https://hacks.mozilla.org/2017/11/entering-the-quantum-era-how-firefox-got-fast-again-and-where-its-going-to-get-faster/"
target="_blank">
target="_blank">
Entering the Quantum Era—How Firefox got fast again and where its going to get faster
</a>
</p>
@ -187,8 +201,7 @@
<h4 class="card-header">Firefoxs New Rendering Engine (WebRender)</h4>
<div class="card-body">
<p class="card-text">
<a href="https://hacks.mozilla.org/2017/10/the-whole-web-at-maximum-fps-how-webrender-gets-rid-of-jank/"
target="_blank">
<a href="https://hacks.mozilla.org/2017/10/the-whole-web-at-maximum-fps-how-webrender-gets-rid-of-jank/" target="_blank">
The whole web at maximum FPS: How WebRender gets rid of jank
</a>
</p>
@ -204,8 +217,7 @@
<h4 class="card-header">Firefoxs New CSS Engine (Stylo)</h4>
<div class="card-body">
<p class="card-text">
<a href="https://hacks.mozilla.org/2017/08/inside-a-super-fast-css-engine-quantum-css-aka-stylo/"
target="_blank">
<a href="https://hacks.mozilla.org/2017/08/inside-a-super-fast-css-engine-quantum-css-aka-stylo/" target="_blank">
Inside a super fast CSS engine: Quantum CSS (aka Stylo)
</a>
</p>
@ -221,17 +233,16 @@
<h4 class="card-header">Judge William Alsup</h4>
<div class="card-body">
<p class="card-text">
<a href="https://www.theverge.com/2017/10/19/16503076/oracle-vs-google-judge-william-alsup-interview-waymo-uber"
target="_blank">
<a href="https://www.theverge.com/2017/10/19/16503076/oracle-vs-google-judge-william-alsup-interview-waymo-uber" target="_blank">
The Judges Code
</a>
</p>
<p class="card-text">
An article on Judge William Alsup, who was the judge for the first
<a href="https://en.wikipedia.org/wiki/Oracle_America,_Inc._v._Google,_Inc." target="_blank">
Oracle v. Google</a> case over whether an API can be copywritten, and is now the judge for
the <a href="http://www.businessinsider.com/google-waymo-v-uber-case-explained-2017-5" target="_blank">
Waymo (Google) v. Uber</a>.
Oracle v. Google</a> case over whether an API can be copywritten, and is now the judge for the
<a href="http://www.businessinsider.com/google-waymo-v-uber-case-explained-2017-5" target="_blank">
Waymo (Google) v. Uber</a>.
</p>
</div>
</div>
@ -243,9 +254,10 @@
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery-3.2.1.js"></script>
<script src="js/popper.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<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>