10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-26 06:14:38 +01:00

Correctly hide not rendered LaTeX elements

This commit is contained in:
Mickaël Véril 2019-09-05 15:07:33 +02:00
parent 68a94ee084
commit a37ea7a2cf

View File

@ -46,10 +46,10 @@
await promise; await promise;
var node = document.createElement("div"); 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.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); par.appendChild(node);
node.style='none';
await MathJax.typesetPromise(); await MathJax.typesetPromise();
node.style='block'; node.hidden=false;
}); });