Update index.php
This commit is contained in:
@@ -20,7 +20,7 @@ include $_SERVER['DOCUMENT_ROOT'] . '/includes/head.php';
|
||||
|
||||
function sizeGif() {
|
||||
if (!img.naturalWidth) return;
|
||||
var maxPx = Math.min(window.innerWidth, window.innerHeight) * 0.45;
|
||||
var maxPx = Math.min(window.innerWidth, window.innerHeight) * 0.5;
|
||||
var scale = Math.min(maxPx / img.naturalWidth, maxPx / img.naturalHeight);
|
||||
img.style.width = Math.round(img.naturalWidth * scale) + 'px';
|
||||
img.style.height = Math.round(img.naturalHeight * scale) + 'px';
|
||||
|
||||
Reference in New Issue
Block a user