We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba42eac commit d2a8c30Copy full SHA for d2a8c30
journal-dnd-ki/image.html
@@ -10,7 +10,6 @@
10
11
img {
12
object-fit: contain;
13
- width: 100%;
14
}
15
</style>
16
</head>
@@ -25,6 +24,9 @@
25
24
const img = document.getElementById("image")
26
img.setAttribute("src", url.searchParams.get('image'));
27
img.setAttribute("alt", url.searchParams.get('title'));
+ const style = document.createElement('style');
28
+ document.head.appendChild(style);
29
+ style.sheet.insertRule('img {width: '+window.innerWidth+'px;}');
30
</script>
31
32
</html>
0 commit comments