Update index.html
Browse files- index.html +2 -2
index.html
CHANGED
@@ -304,8 +304,8 @@
|
|
304 |
}).then(canvas => {
|
305 |
result.textContent = "";
|
306 |
result.appendChild(canvas);
|
307 |
-
|
308 |
-
|
309 |
});
|
310 |
}, 1);
|
311 |
}
|
|
|
304 |
}).then(canvas => {
|
305 |
result.textContent = "";
|
306 |
result.appendChild(canvas);
|
307 |
+
let scale = Math.min.apply(null, [window.document.documentElement.clientWidth / width, window.document.documentElement.clientHeight / height, 1])
|
308 |
+
canvas.style.transform = "scale(" + scale + ")";
|
309 |
});
|
310 |
}, 1);
|
311 |
}
|