This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* colors */ | |
| :root { | |
| --text-color: #2a2a2a; | |
| --black0: #000000; | |
| --black1: #333333; | |
| --black2: #3b3b3b; | |
| --black3: #545454; | |
| --black4: #767676; | |
| --silver0: #9DABB7; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function() { | |
| // Select all links with hashes | |
| $('a[href*="#"]') | |
| // Remove links that don't actually link to anything | |
| .not('[href="#"]').not('[href="#0"]').click(function(event) { | |
| // On-page links | |
| if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { | |
| // Figure out element to scroll to | |
| var target = $(this.hash); | |
| target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //requires lazyload.js https://github.com/verlok/vanilla-lazyload | |
| $(function() { | |
| // find images within the main site container and add lazy class | |
| $('#main-container').find('img').addClass('lazy'); | |
| // remove src so images do not load until scrolled to, add fade in | |
| $("img.lazy").each(function() { | |
| $(this).lazyload({effect : "fadeIn", effectspeed: 2000}); | |
| $(this).attr("data-original",$(this).attr("src")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |