From 283b0beedbf74bc696c5b1b0ef3a7cd1f93ffc93 Mon Sep 17 00:00:00 2001 From: Kevin Lyda <kevin@ie.suberic.net> Date: Sat, 14 Oct 2017 16:18:48 +0100 Subject: [PATCH] OK, finally made fonts generally nice. --- index.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 92f5628..85112ca 100644 --- a/index.html +++ b/index.html @@ -79,14 +79,22 @@ function check_cuberoot(e) { start_round(); } -window.onload = function() { +function make_text_readable() { if (screen.width <= 480) { document.body.style.fontSize = "8vw"; + cuberoot.style = "font-size:8vw;"; } else if (screen.width <= 1024) { document.body.style.fontSize = "6vw"; + cuberoot.style = "font-size:6vw;"; + } else { + document.body.style.fontSize = "48px"; + cuberoot.style = "font-size:48px;"; } } +window.onload = make_text_readable; +window.onresize = make_text_readable; + start_round(); </script> </body> -- GitLab