10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-23 03:07:44 +02: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;
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;
});