Skip to content
Snippets Groups Projects
Commit 283b0bee authored by Kevin Lyda's avatar Kevin Lyda :speech_balloon:
Browse files

OK, finally made fonts generally nice.

parent 694b5675
Branches
No related tags found
No related merge requests found
...@@ -79,14 +79,22 @@ function check_cuberoot(e) { ...@@ -79,14 +79,22 @@ function check_cuberoot(e) {
start_round(); start_round();
} }
window.onload = function() { function make_text_readable() {
if (screen.width <= 480) { if (screen.width <= 480) {
document.body.style.fontSize = "8vw"; document.body.style.fontSize = "8vw";
cuberoot.style = "font-size:8vw;";
} else if (screen.width <= 1024) { } else if (screen.width <= 1024) {
document.body.style.fontSize = "6vw"; 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(); start_round();
</script> </script>
</body> </body>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment