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
HTMLElement.prototype.isVisible = function(){ | |
function getPositionTop(element){ | |
var offset = 0; | |
while(element) {offset += element["offsetTop"];element = element.offsetParent;} | |
return offset; | |
} | |
var posTop = getPositionTop(this); | |
var posBottom = posTop + this.offsetHeight; | |
var visibleTop = (document.documentElement && document.documentElement.scrollTop) || document.body.scrollTop; | |
var visibleBottom = visibleTop + document.body.offsetHeight; |
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
# | |
# Jekyll Generator for SCSS | |
# | |
# (File paths in this description relative to jekyll project root directory) | |
# Place this file in ./_plugins | |
# Place .scss files in ./_scss | |
# Compiles .scss files in ./_scss to .css files in whatever directory you indicated in your config | |
# Config file placed in ./_sass/config.rb | |
# |