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

Clear table when we change file nameee

This commit is contained in:
Mickaël Véril 2019-09-20 09:46:38 +02:00
parent 5746cec86a
commit 7772acc730

View File

@ -66,7 +66,8 @@ draft: false
} }
div.appendChild(node); div.appendChild(node);
}); });
var t=document.getElementById("ex_table") var tb=document.getElementById("ex_table_b");
tb.innerHTML=''
dat.excitations.forEach(el=> { dat.excitations.forEach(el=> {
var row=document.createElement("tr") var row=document.createElement("tr")
var rowd=[] var rowd=[]
@ -78,7 +79,7 @@ draft: false
td.innerText=d td.innerText=d
row.appendChild(td) row.appendChild(td)
}) })
t.appendChild(row) tb.appendChild(row)
}); });
await MathJax.typesetPromise(); await MathJax.typesetPromise();
document.getElementById("ex_div").hidden=false document.getElementById("ex_div").hidden=false
@ -113,14 +114,17 @@ draft: false
<div id="ex_div" hidden=true> <div id="ex_div" hidden=true>
<h2>exitation</h2> <h2>exitation</h2>
<table id="ex_table"> <table id="ex_table">
<tr> <thead>
<th>Transition</th> <th>Transition</th>
<th>\(E_{abs}\)</th> <th>\(E_{abs}\)</th>
<th>\(E_{fluo}\)</th> <th>\(E_{fluo}\)</th>
<th>\(\Delta E_{ZPE}\)</th> <th>\(\Delta E_{ZPE}\)</th>
<th>\(E_{adia}\)</th> <th>\(E_{adia}\)</th>
<th>\(E_{00}\)</th> <th>\(E_{00}\)</th>
</tr> </thead>
<tbody id="ex_table_b">
</tbody>
</table> </table>
</div> </div>
</p> </p>