| 247 | this.images = Array.from(document.querySelectorAll("img[srcset]")); |
| 248 | } |
| 249 | fixLocation() { |
| 250 | this.hiddens.forEach((el) => { |
| 251 | el.classList.remove("overflow-hidden"); |
| 252 | }); |
| 253 | this.spacer.style.display = "none"; |
| 254 | this.thread.style.maxWidth = "960px"; |
| 255 | this.thread.style.marginInline = "auto"; |
| 256 | this.positionForm.style.display = "none"; |
| 257 | this.scroller.classList.remove("h-full"); |
| 258 | this.scroller.style.minHeight = "100vh"; |
| 259 | this.images.forEach((img) => { |
| 260 | const srcset = img.getAttribute("srcset"); |
| 261 | img.setAttribute("srcset_old", srcset); |
| 262 | img.setAttribute("srcset", ""); |
| 263 | }); |
| 264 | //Fix to the text shifting down when generating the canvas |
| 265 | document.body.style.lineHeight = "0.5"; |
| 266 | } |
| 267 | restoreLocation() { |
| 268 | this.hiddens.forEach((el) => { |
| 269 | el.classList.add("overflow-hidden"); |