From a83778d36a2ae36e42e1507f0e911e047a99792c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Thu, 10 Oct 2019 09:50:10 +0200 Subject: [PATCH] Add full name for absorption and fluorescence --- content/onedataset.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/content/onedataset.html b/content/onedataset.html index 686f96b6..ca91ac67 100644 --- a/content/onedataset.html +++ b/content/onedataset.html @@ -75,9 +75,14 @@ draft: false var md = []; var els = []; var customRenderingProp = ["excitations", "sourceFile"] + const fullNames={ + Abs:'Absorption', + Fluo:"Fluorescence", + ZPE:"ZPE" + } for (const key of Object.keys(window.data)) { - if (window.data[key] != null) { - md.push(key) + if (window.data[key] != null) { + md.push(fullNames[key]) for (const prop of Object.keys(window.data[key])) { if (!(customRenderingProp.includes(prop))) md.push([prop, window.data[key][prop]])