Seperate greeting code #125
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "seperate-greeting-text"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description of Changes
Adds more greetings & moves the greeting code away from
ts_fas_acih.js, as well as cleans up the code quite a bit.Visual Sample
Have a good night at midnight:

Good early morning at 5am:

Good morning at 9am:

Good afternoon at 1pm:

Good evening at 6pm:

Good late night at 10pm:

(Works in an authenticated state as well.)
Checklist
@ -68,0 +69,4 @@<h2>v2025.11.30_alpha</h2><h3 style="color: var(--text-semi-transparent);">Released: November 30, 2025</h3><li>Added more greetings</li><li>(Dev Env) Separated greeting code & </li>@ -0,0 +5,4 @@h >= 12 && h < 17 ? "Good afternoon" :h >= 17 && h < 20 ? "Good evening" :h >= 21 && h < 24 ? "Good late night" :"Have a good night";Kinda completely arbitrary?
Me personally, wouldn't put the hours like that. Also when is noon?
@ -0,0 +5,4 @@h >= 12 && h < 17 ? "Good afternoon" :h >= 17 && h < 20 ? "Good evening" :h >= 21 && h < 24 ? "Good late night" :"Have a good night";noon falls under "afternoon"
@ -0,0 +5,4 @@h >= 12 && h < 17 ? "Good afternoon" :h >= 17 && h < 20 ? "Good evening" :h >= 21 && h < 24 ? "Good late night" :"Have a good night";Wait right, noon is specifically 12 for some. I meant the question as in "When would it say something like 'Good noon'?", because noon is in my head a time period approximately between 12 and 14, in the same way morning isn't specifically at 6 (because that's how it's used in german).