update snippets 1-15

This commit is contained in:
Stefan Feješ
2017-12-25 13:59:23 +01:00
committed by Agamemnon Zorbas
parent 9b8c9f4bcf
commit b2cffa6858
15 changed files with 72 additions and 31 deletions

View File

@ -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
```