This commit is contained in:
j 2017-03-05 20:58:21 +01:00
parent 8a3c7e08d3
commit 1f4e1edc6e

View file

@ -17,10 +17,10 @@ body {
#text { #text {
color: #fff; color: #fff;
text-align: center; text-align: center;
font-family: 'Menlow Regular'; font-family: Menlo;
font-variant: small-caps; font-variant: small-caps;
//text-transform: uppercase; //text-transform: uppercase;
font-weight: bold; //font-weight: bold;
text-shadow: 2px 4px 3px black; text-shadow: 2px 4px 3px black;
} }
#text2 { #text2 {
@ -57,7 +57,8 @@ function onLoad() {
} }
function handleFontSize() { function handleFontSize() {
// Set base font-size to 10% of window height // Set base font-size to 10% of window height
//document.body.style.fontSize = (window.innerHeight * 0.1) + "px"; document.body.style.fontSize = (window.innerHeight * 0.05) + "px";
/*
var fontSize = window.innerHeight * 0.1; var fontSize = window.innerHeight * 0.1;
text.style.position = 'absolute'; text.style.position = 'absolute';
@ -70,6 +71,7 @@ function handleFontSize() {
} while (text.getBoundingClientRect().width < (window.innerWidth - padding)); } while (text.getBoundingClientRect().width < (window.innerWidth - padding));
text.style.position = ''; text.style.position = '';
text.style.paddingLeft = '0'; text.style.paddingLeft = '0';
*/
} }
window.addEventListener("load", onLoad, false); window.addEventListener("load", onLoad, false);
window.addEventListener("resize", handleFontSize, false); window.addEventListener("resize", handleFontSize, false);