by latexr · 4mo ago · 0 comments
Array.from(document.getElementsByClassName("quote")).forEach(p => { p.style.marginTop = "20px"; p.classList.remove("quote", "reveal") })
The issue is that all of the text is a quote, and that renders enormous. That’s probably fine for a tiny quote amongst more text, but here it is jarring. querySelectorAll('.quote')The Array-like already works for forEach and for .. of