()
| 104 | |
| 105 | |
| 106 | const resizer = () =>{ |
| 107 | var scrollHeight = Math.max( |
| 108 | document.body.scrollHeight, document.documentElement.scrollHeight, |
| 109 | document.body.offsetHeight, document.documentElement.offsetHeight, |
| 110 | document.body.clientHeight, document.documentElement.clientHeight |
| 111 | ); |
| 112 | console.log(scrollHeight); |
| 113 | document.body.style.setProperty("--imageoverlay", scrollHeight + "px"); |
| 114 | } |
| 115 | |
| 116 | resizer(); |
| 117 |