This commit is contained in:
Brittany Chiang
2017-12-24 23:55:35 -05:00
parent 0078156d5b
commit 165a8799e7
8 changed files with 101 additions and 17 deletions

View File

@@ -2,7 +2,7 @@ $(function() {
const d = new Date();
const hours = d.getHours();
const nighttime = (hours >= 19) || (hours <= 7); // 7pm <= hours <= 7am
const nighttime = (hours >= 19) || (hours <= 7); // between 7pm and 7am
const body = document.querySelector('body');
const toggle = document.getElementById('toggle');
const input = document.getElementById('switch');