mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 01:50:07 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0d0fbadc2f
commit
2c2257b603
@ -4,6 +4,7 @@
|
|||||||
*
|
*
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
|
// 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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user