From 4bc5fdd553ce0405f2e7010cb14df3f3ad03e5f8 Mon Sep 17 00:00:00 2001 From: aka paul <50n50@noreply.localhost> Date: Sun, 26 Oct 2025 22:55:39 +0000 Subject: [PATCH] Update temp/temp.js --- temp/temp.js | 40 ++++++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/temp/temp.js b/temp/temp.js index 4ee32a3..e61bac6 100644 --- a/temp/temp.js +++ b/temp/temp.js @@ -110,15 +110,18 @@ async function extractChapters(url) { return []; } } + async function extractText(url) { try { const response = await soraFetch(url); const htmlText = await response.text(); + // Extract image URLs using regex const regex = /'(https:\/\/[^']+\.jpg)'/g; const matches = [...htmlText.matchAll(regex)]; const imageUrls = matches.map(match => match[1]); + // Generate HTML const html = ` @@ -136,47 +139,60 @@ async function extractText(url) { background: #000; -webkit-touch-callout: none; } + .img-container { + width: 100%; + min-height: 1200px; + background: #000; + position: relative; + } img { width: 100%; display: block; opacity: 0; transition: opacity 0.3s ease; -webkit-user-select: none; + position: absolute; + top: 0; + left: 0; } img.loaded { opacity: 1; + position: relative; } -${imageUrls.map(url => ` `).join('\n')} +${imageUrls.map(url => `
`).join('\n')}