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:
parent
017188a260
commit
a83778d36a
@ -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]])
|
||||||
|
Loading…
Reference in New Issue
Block a user