From f22c02b90bff65fce6f43649ba465dda5311f431 Mon Sep 17 00:00:00 2001 From: Brittany Chiang Date: Mon, 25 Dec 2017 20:09:04 -0500 Subject: [PATCH] add halcyon theme to projects --- README.md | 6 ++++-- _data/other-projects.yml | 8 ++++++++ _scripts/main.js | 5 ++--- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e3a75ef..a50d61d 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,14 @@ # Personal Website V3 ## Dependencies -- [Ruby](https://github.com/creationix/nvm) + - [Node.js](https://github.com/creationix/nvm) +- [Ruby](https://github.com/creationix/nvm) - `npm install gulp-cli -g` - `gem install jekyll sass bundler jekyll-minifier jekyll-sitemap` ## Getting Started + 1. `npm install` 1. `gulp serve` for development -1. `gulp build` for prod \ No newline at end of file +1. `gulp build` for prod diff --git a/_data/other-projects.yml b/_data/other-projects.yml index 973f3f2..24d565a 100644 --- a/_data/other-projects.yml +++ b/_data/other-projects.yml @@ -1,3 +1,11 @@ +- name: Halcyon Theme + url: https://marketplace.visualstudio.com/items?itemName=brittanychiang.halcyon-vscode + code: https://github.com/bchiang7/halcyon-vscode + description: A dark UI & syntax theme for Visual Studio Code. Published to Visual Studio Marketplace. + used: + - thing: JSON + - thing: VS Code + - name: Lonely Planet DBMS url: https://github.com/bchiang7/CS3200-Project code: https://github.com/bchiang7/CS3200-Project diff --git a/_scripts/main.js b/_scripts/main.js index de4a168..3c06e67 100644 --- a/_scripts/main.js +++ b/_scripts/main.js @@ -1,13 +1,12 @@ $(function() { - const d = new Date(); const hours = d.getHours(); - const nighttime = (hours >= 19) || (hours <= 7); // between 7pm and 7am + const night = (hours >= 19) || (hours <= 7); // between 7pm and 7am const body = document.querySelector('body'); const toggle = document.getElementById('toggle'); const input = document.getElementById('switch'); - if (nighttime) { + if (night) { input.checked = true; body.classList.add('night'); }