diff --git a/content/multipledataset.html b/content/multipledataset.html index e22ff85c..0da00a19 100644 --- a/content/multipledataset.html +++ b/content/multipledataset.html @@ -202,13 +202,29 @@ draft: false return undefined } })() + textSelctor=function(value){ + switch (name) { + case "DOI": + return sets.has(value) ? sets.get(value) : value.toString() + break; + case "molecule": + const mhchemCE=/^\\ce\{.*\}$/ + return mhchemCE.test(value) ? "\\("+value.toString()+"\\)" : value.toString() + break; + default: + return value.toString() + } + } for (const val of vals) { if (val !== null) { $("", { value: val - }).text((name === "DOI" && sets.has(val)) ? sets.get(val) : val.toString()).appendTo(currentselect) + }).text(textSelctor(val)).appendTo(currentselect) } } + if (name==="molecule") { + await MathJax.typesetPromise() + } } function getSelectValue(data, name) { switch (name) { @@ -498,6 +514,7 @@ draft: false } for (const [molecule, moldat] of datadic.entries()) { var printmol = true; + const mhchemCE=/^\\ce\{.*\}$/ for (const [jsonex, exdat] of moldat.entries()) { const ex = JSON.parse(jsonex) Reflect.setPrototypeOf(ex[0], state.prototype) @@ -506,7 +523,7 @@ draft: false Reflect.setPrototypeOf(ex[3], VertExcitationKind.prototype) var tr = $("
In this page you can compare multiple dataset and have somme statistics to evaluate method or basis accuracy. For this follow this steps + \(\ce{CF2}\)