+
+
+___
+
+### Description
+
+This code allows you to create timers, countdowns, countdowns to a specific time, and display the current time. Each of these features comes with a browser source for OBS, which you can preview in your browser and configure to your needs.
+
+One of the additional functions of this repository is the ability to modify the timers through events sent from a StreamDeck or a similar tool using websockets.
+
+### About the Code
+
+I have chosen to publish this code to make it accessible for free, openly, and as open-source. These codes I have developed have helped me continue learning, and since it doesn't entail any financial cost for me, there will also be no paid features created. It will be open to anyone who wants to use it and collaborate in improving the code.
+
+The codes have been created with my current knowledge and may contain errors or areas that need improvement. I have worked on this code in my free time.
+
+### Documentation
+
+~~WIKI~~ (In construction)
\ No newline at end of file
diff --git a/core/client.js b/core/client.js
index a6baf07..4d3b258 100644
--- a/core/client.js
+++ b/core/client.js
@@ -35,6 +35,7 @@ socket.addEventListener('message', (event) => {
// Configuration and translation
switchTheme.checked = message.config.themedark
+ buttonClose.title = translateElements.home.close
if (message.config.themedark) {
document.body.classList.remove('light-theme')
document.body.classList.add('dark-theme')
@@ -50,8 +51,12 @@ socket.addEventListener('message', (event) => {
option.textContent = message.formats.langs[format]
languageSelector.appendChild(option)
})
- languageSelector.value = message.config.lang
- document.documentElement.lang = message.config.lang
+ languageSelector.value = Object.keys(message.formats.langs).includes(message.config.lang)
+ ? message.config.lang
+ : 'en'
+ document.documentElement.lang = Object.keys(message.formats.langs).includes(message.config.lang)
+ ? message.config.lang
+ : 'en'
titleCrono.textContent = translateElements.home.cronoTitle
titleCdown.textContent = translateElements.home.cdownTitle
diff --git a/core/index.html b/core/index.html
index 5f4f5da..73cd91b 100644
--- a/core/index.html
+++ b/core/index.html
@@ -10,6 +10,11 @@
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
/>
Inicio
+