tylerdood / clocktowertimer

https://clocktowertimer.com
2 stars 2 forks source link

Implement settings dialog #26

Closed dennisschuerholz closed 5 months ago

dennisschuerholz commented 5 months ago

Let me introduce you to the new settings dialog (implements #19):

I had to reorganize some code in order to implement this. Also I now removed the old configuration option via URL params (some of which stopped to work after previous changes regarding the calculation of the timer values).

Here are some screenshots:

Settings on page load: Bildschirmfoto vom 2024-04-11 23-00-45 Enabled Spotify integration: Bildschirmfoto vom 2024-04-11 23-01-03 Edit a Hotkey (click the button, then press the new hotkey or Esc to abort): Bildschirmfoto vom 2024-04-11 23-01-15 Settings after initial save: Bildschirmfoto vom 2024-04-11 23-01-54 Role Distribution and Alive/Vote counter disabled: Bildschirmfoto vom 2024-04-11 23-02-27

As a side effekt the "edit timer" function now also uses a HTML dialog. So no more old alert-popup-windows which exit fullscreen mode in some cases (eg in firefox). Bildschirmfoto vom 2024-04-11 23-33-05