Fehlelrkorrekturen
This commit is contained in:
1 parent
c41621d901
commit
e82891c544
2 files changed
+98
-2
No files matched your search
@@ -66,10 +66,10 @@
|
||||
|
||||
// === <img> (JPEG-Fallback) ===
|
||||
const jpegSrcset = breakpoints
|
||||
.map(bp => `${basePath}${bp}/jpeg/${filename}.jpg ${bp}w`)
|
||||
.map(bp => `${basePath}${bp}/jpeg/${filename}.jpeg ${bp}w`)
|
||||
.join(", ");
|
||||
|
||||
img.setAttribute("src", `${basePath}1920/jpeg/${filename}.jpg`);
|
||||
img.setAttribute("src", `${basePath}1920/jpeg/${filename}.jpeg`);
|
||||
img.setAttribute("srcset", jpegSrcset);
|
||||
img.setAttribute("sizes", "100vw");
|
||||
|
||||
|
||||
Reference in new issue
Block a user