update snippets 1-15
This commit is contained in:
committed by
Agamemnon Zorbas
parent
9b8c9f4bcf
commit
b2cffa6858
@ -7,5 +7,8 @@ Use `scrollY`, `scrollHeight` and `clientHeight` to determine if the bottom of t
|
||||
```js
|
||||
const bottomVisible = () =>
|
||||
document.documentElement.clientHeight + window.scrollY >= (document.documentElement.scrollHeight || document.documentElement.clientHeight);
|
||||
```
|
||||
|
||||
```js
|
||||
// bottomVisible() -> true
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user