mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
Better head handling
This commit is contained in:
parent
d91cbf81f1
commit
433396a2b8
@ -399,8 +399,9 @@ draft: false
|
|||||||
var head = $("<tr/>")
|
var head = $("<tr/>")
|
||||||
$("<thead/>").addClass("sticky").append(head).appendTo(table)
|
$("<thead/>").addClass("sticky").append(head).appendTo(table)
|
||||||
var tbody = $("<tbody/>").appendTo(table)
|
var tbody = $("<tbody/>").appendTo(table)
|
||||||
head.append(["Molecule", "Transition"].map(x => $("<th/>").text(x)))
|
var th=$("<th/>",{scope:"column"})
|
||||||
head.append(sortedMethods.map(x => $("<th/>").text(x.toString().split('-').join('\u2011'))))
|
head.append(["Molecule", "Transition"].map(x => th.clone().text(x)))
|
||||||
|
head.append(sortedMethods.map(x => th.clone().text(x.toString().split('-').join('\u2011'))))
|
||||||
adjustSticky();
|
adjustSticky();
|
||||||
datadic = new Map()
|
datadic = new Map()
|
||||||
for (const dat of paperdata) {
|
for (const dat of paperdata) {
|
||||||
@ -430,14 +431,14 @@ draft: false
|
|||||||
Reflect.setPrototypeOf(ex[3], VertExcitationKind.prototype)
|
Reflect.setPrototypeOf(ex[3], VertExcitationKind.prototype)
|
||||||
var tr = $("<tr/>")
|
var tr = $("<tr/>")
|
||||||
if (printmol) {
|
if (printmol) {
|
||||||
$("<td/>",{rowspan:moldat.size}).text(molecule).appendTo(tr)
|
$("<th/>",{ scope:"row", rowspan:moldat.size}).text(molecule).appendTo(tr)
|
||||||
printmol = false
|
printmol = false
|
||||||
}
|
}
|
||||||
var Vertkindtext = ""
|
var Vertkindtext = ""
|
||||||
if (ex[3].Value == VertExcitationKinds.Fluorescence.Value) {
|
if (ex[3].Value == VertExcitationKinds.Fluorescence.Value) {
|
||||||
Vertkindtext = String.raw`[${VertExcitationKinds.Fluorescence.LaTeX}]`
|
Vertkindtext = String.raw`[${VertExcitationKinds.Fluorescence.LaTeX}]`
|
||||||
}
|
}
|
||||||
$("<td/>").text(String.raw`${LatexInline[0]}${ex[0].toLaTeX()} \rightarrow ${ex[1].toLaTeX()} ${Vertkindtext}(${ex[2].LaTeX}) ${LatexInline[1]}`).appendTo(tr)
|
$("<th/>",{scope:"row"}).text(String.raw`${LatexInline[0]}${ex[0].toLaTeX()} \rightarrow ${ex[1].toLaTeX()} ${Vertkindtext}(${ex[2].LaTeX}) ${LatexInline[1]}`).appendTo(tr)
|
||||||
var entries = Array.from(exdat.entries())
|
var entries = Array.from(exdat.entries())
|
||||||
for (const method of sortedMethods) {
|
for (const method of sortedMethods) {
|
||||||
td = $("<td/>").addClass("NumberCell")
|
td = $("<td/>").addClass("NumberCell")
|
||||||
|
Loading…
Reference in New Issue
Block a user