mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
Correctly hide not rendered LaTeX elements
This commit is contained in:
parent
68a94ee084
commit
a37ea7a2cf
@ -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;
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user