diff --git a/index.html b/index.html index ffd4262..cfa4bf3 100644 --- a/index.html +++ b/index.html @@ -137,20 +137,20 @@
Sample text: - +
Stain
- Stain: The quick brown fox jumps over the lazy dog ABC abc + Stain: The quick brown fox jumps over the lazy dog. THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG. ABC abc
System (Candara / fallback)
- Stain: The quick brown fox jumps over the lazy dog ABC abc + Stain: The quick brown fox jumps over the lazy dog. THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG. ABC abc
@@ -165,15 +165,15 @@ const sysSample = document.getElementById("sysSample"); const update = () => { - const content = text.value || "Stain: The quick brown fox jumps over the lazy dog ABC abc"; + const content = text.value || "Stain: The quick brown fox jumps over the lazy dog. THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG. ABC abc"; const fs = size.valueAsNumber || 40; const ls = (track.valueAsNumber || 3) / 100; - sizeVal.textContent = fs + "px"; - trackVal.textContent = ls.toFixed(2) + "em"; + sizeVal.textContent = `${fs}px`; + trackVal.textContent = `${ls.toFixed(2)}em`; [stainSample, sysSample].forEach((el) => { el.textContent = content; - el.style.fontSize = fs + "px"; - el.style.letterSpacing = ls + "em"; + el.style.fontSize = `${fs}px`; + el.style.letterSpacing = `${ls}em`; }); };