mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 01:50:07 +00:00
Compare commits
3 Commits
ea9e521e91
...
ada5c33665
| Author | SHA1 | Date | |
|---|---|---|---|
| ada5c33665 | |||
| 2c2257b603 | |||
| 0d0fbadc2f |
@ -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
|
||||||
|
|||||||
@ -752,4 +752,4 @@ var setup = function(){
|
|||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
<!-- vim:set ts=4 sw=4 : -->
|
<!-- vim:set ts=4 sw=4 nowrap : -->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user