10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-04 05:03:53 +01:00

Add full name for absorption and fluorescence

This commit is contained in:
Mickaël Véril 2019-10-10 09:50:10 +02:00
parent 017188a260
commit a83778d36a

View File

@ -75,9 +75,14 @@ draft: false
var md = []; var md = [];
var els = []; var els = [];
var customRenderingProp = ["excitations", "sourceFile"] var customRenderingProp = ["excitations", "sourceFile"]
const fullNames={
Abs:'Absorption',
Fluo:"Fluorescence",
ZPE:"ZPE"
}
for (const key of Object.keys(window.data)) { for (const key of Object.keys(window.data)) {
if (window.data[key] != null) { if (window.data[key] != null) {
md.push(key) md.push(fullNames[key])
for (const prop of Object.keys(window.data[key])) { for (const prop of Object.keys(window.data[key])) {
if (!(customRenderingProp.includes(prop))) if (!(customRenderingProp.includes(prop)))
md.push([prop, window.data[key][prop]]) md.push([prop, window.data[key][prop]])