From 433396a2b8a7bf1611aaa2fc38f0b2c37ea67fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Thu, 20 Feb 2020 11:45:04 +0100 Subject: [PATCH] Better head handling --- content/multipledataset.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/content/multipledataset.html b/content/multipledataset.html index 9b42df38..489950d7 100644 --- a/content/multipledataset.html +++ b/content/multipledataset.html @@ -399,8 +399,9 @@ draft: false var head = $("") $("").addClass("sticky").append(head).appendTo(table) var tbody = $("").appendTo(table) - head.append(["Molecule", "Transition"].map(x => $("").text(x))) - head.append(sortedMethods.map(x => $("").text(x.toString().split('-').join('\u2011')))) + var th=$("",{scope:"column"}) + head.append(["Molecule", "Transition"].map(x => th.clone().text(x))) + head.append(sortedMethods.map(x => th.clone().text(x.toString().split('-').join('\u2011')))) adjustSticky(); datadic = new Map() for (const dat of paperdata) { @@ -430,14 +431,14 @@ draft: false Reflect.setPrototypeOf(ex[3], VertExcitationKind.prototype) var tr = $("") if (printmol) { - $("",{rowspan:moldat.size}).text(molecule).appendTo(tr) + $("",{ scope:"row", rowspan:moldat.size}).text(molecule).appendTo(tr) printmol = false } var Vertkindtext = "" if (ex[3].Value == VertExcitationKinds.Fluorescence.Value) { Vertkindtext = String.raw`[${VertExcitationKinds.Fluorescence.LaTeX}]` } - $("").text(String.raw`${LatexInline[0]}${ex[0].toLaTeX()} \rightarrow ${ex[1].toLaTeX()} ${Vertkindtext}(${ex[2].LaTeX}) ${LatexInline[1]}`).appendTo(tr) + $("",{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()) for (const method of sortedMethods) { td = $("").addClass("NumberCell")