From 694b5675e6f3bf969c9cd410a16b5add57941e4d Mon Sep 17 00:00:00 2001 From: Kevin Lyda <kevin@ie.suberic.net> Date: Sat, 14 Oct 2017 16:08:32 +0100 Subject: [PATCH] Only tweak it for smaller screens (sigh). --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index a0055a4..92f5628 100644 --- a/index.html +++ b/index.html @@ -80,9 +80,9 @@ function check_cuberoot(e) { } window.onload = function() { - if (screen.size <= 480) { + if (screen.width <= 480) { document.body.style.fontSize = "8vw"; - } else if (screen.size <= 1024) { + } else if (screen.width <= 1024) { document.body.style.fontSize = "6vw"; } } -- GitLab