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
// https://jsfiddle.net/vk35ok2o/50/ | |
console.log('typeof 1/0 => ', typeof 1/0); | |
console.log('typeof (1/0) => ', typeof (1/0)); | |
console.log('1/0 => ', 1/0); | |
console.log('"Hello" * 2 => ', "Hello" * 2); | |
console.log('typeof ("Hello" * 2) => ', typeof ("Hello" * 2)); | |
console.log('typeof "Hello" * 2 => ', typeof "Hello" * 2); | |
console.log('typeof undefined => ', typeof undefined); | |
console.log('typeof null => ', typeof null); | |
console.log('typeof function(){} => ', typeof function(){}); |
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
/* | |
If you try to print a gitbook directly, you get nothing but the contents because of their *just* use of `@media print` styling to hide away the content section of the books. | |
Fret not, here is the codez: | |
*/ | |
$(".book-header,.book-summary,.navigation,.book-progress").remove(); | |
$(".book.with-summary .book-body").css('left', '0px'); | |
$("*").css('position', 'static'); | |
window.print() |