mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-28 17:40: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){
|
||||
var { top, left, bottom, right } = this.getBoundingClientRect()
|
||||
var { innerHeight, innerWidth } = window
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user