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

Fix bad word

This commit is contained in:
Mickaël Véril 2020-01-06 11:02:24 +01:00
parent 291087356d
commit 134dc0c6e4
2 changed files with 6 additions and 6 deletions

View File

@ -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:

View File

@ -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`)) {