Compare commits

..

No commits in common. "ada5c336654868c5dea6a663611e758cd1d79814" and "ea9e521e91c84f69989b12b3a6a030897cc6242a" have entirely different histories.

2 changed files with 266 additions and 267 deletions

View File

@ -4,7 +4,6 @@
* *
**********************************************************************/ **********************************************************************/
// XXX add something like .closeToViewport(..)
Element.prototype.visibleInViewport = function(partial=false){ Element.prototype.visibleInViewport = function(partial=false){
var { top, left, bottom, right } = this.getBoundingClientRect() var { top, left, bottom, right } = this.getBoundingClientRect()
var { innerHeight, innerWidth } = window var { innerHeight, innerWidth } = window

View File

@ -752,4 +752,4 @@ var setup = function(){
</body> </body>
</html> </html>
<!-- vim:set ts=4 sw=4 nowrap : --> <!-- vim:set ts=4 sw=4 : -->