From 134dc0c6e40f8b3013b4c175c8de7089cffd8ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Mon, 6 Jan 2020 11:02:24 +0100 Subject: [PATCH] Fix bad word --- content/multipledataset.html | 4 ++-- static/js/data.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/content/multipledataset.html b/content/multipledataset.html index 41ee35e2..e5771947 100644 --- a/content/multipledataset.html +++ b/content/multipledataset.html @@ -36,10 +36,10 @@ draft: false const word = name description = word.charAt(0).toUpperCase() + word.substring(1).toLowerCase() break; - case Number(excitationTypes.Singulet): + case Number(excitationTypes.Single): description = name.toLowerCase() break; - case Number(excitationTypes.Doublet): + case Number(excitationTypes.Double): description = name.toLowerCase() break; default: diff --git a/static/js/data.js b/static/js/data.js index c4bd9dca..d6b836c9 100644 --- a/static/js/data.js +++ b/static/js/data.js @@ -3,8 +3,8 @@ class excitationTypes { static get RYDBERG(){return new excitationType(1<<1,String.raw`\mathrm{R}`)} static get PiPis(){return new excitationType(1<<2,String.raw`\pi \rightarrow \pi^\star`)} static get nPis(){return new excitationType(1<<3,String.raw`n \rightarrow \pi^\star`)} - static get Singulet(){return new excitationType(1<<4,"S")} - static get Doublet(){return new excitationType(1<<5,"D")} + static get Single(){return new excitationType(1<<4,"S")} + static get Double(){return new excitationType(1<<5,"D")} static get All(){ var lst=[] for(const prop of Object.getOwnPropertyNames(excitationTypes)){ @@ -120,10 +120,10 @@ class excitationBase { const [initialt, finalt] = ty.split(arrow, 2) const initialts = initialt.split(",") if (initialts.length==2||initialts.length==2){ - this.type.Value = this.type | excitationTypes.Singulet + this.type.Value = this.type | excitationTypes.Simple } else{ - this.type.Value = this.type | excitationTypes.Doublet + this.type.Value = this.type | excitationTypes.Double } const finalts = finalt.split(",").map(x => x.trim()) if (initialts.includes("n") && finalts.includes(String.raw`\pi^\star`)) {