From a37ea7a2cf5388196418ea3d9644cd44516949a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Thu, 5 Sep 2019 15:07:33 +0200 Subject: [PATCH] Correctly hide not rendered LaTeX elements --- content/pages/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/pages/index.html b/content/pages/index.html index b60fa905..eddb39e6 100644 --- a/content/pages/index.html +++ b/content/pages/index.html @@ -46,10 +46,10 @@ await promise; var node = document.createElement("div"); node.innerHTML= String.raw`${LatexInline[0]} ${el.start.toLaTeX()} \rightarrow ${el.end.toLaTeX()}${LatexInline[1]}, ${LatexInline[0]}${el.Eabs}\:\mathrm{eV}${LatexInline[1]}`; + node.hidden=true par.appendChild(node); - node.style='none'; await MathJax.typesetPromise(); - node.style='block'; + node.hidden=false; });