This file contains 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
// | |
// Smooth scroll-to inspired by: | |
// http://stackoverflow.com/a/24559613/728480 | |
// | |
module.exports = function (scrollTo, scrollDuration) { | |
// | |
// Set a default for where we're scrolling to | |
// |
This file contains 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
// 1. declare a "named" function | |
function myNamedFunction(){ return true; } | |
// assertions | |
console.log(typeof window.myNamedFunction === "function"); // true | |
console.log(myNamedFunction.name === "myNamedFunction"); // true | |
// 2. declare anonymous function | |
var myAnonymousFunction = function(){ return true; }; | |
//assertions | |
console.log(typeof window.myAnonymousFunction === "function"); // true |
This file contains 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
.monospace { | |
font: 11px/1.3 Monaco !important; | |
} | |
/* slightly larger indentation of source code */ | |
.outline-disclosure ol { | |
-webkit-padding-start: 18px !important; | |
} | |
/* margin underneath styles panel heading */ |