diff --git a/server.py b/server.py index 67a9617..a7ca81b 100755 --- a/server.py +++ b/server.py @@ -192,6 +192,22 @@ class IPMPVServer: html = html.replace("%ALL_CHANNELS_LABEL%", _("all_channels")) html = html.replace("%STOP_LABEL%", _("stop")) html = html.replace("%LANGUAGE_SELECTOR%", language_selector_html) + + html = html.replace("%JS_LOADING%", _("loading")) + html = html.replace("%JS_NOW_PLAYING%", _("now_playing")) + html = html.replace("%JS_ERROR%", _("error")) + html = html.replace("%JS_CONNECTION_ERROR%", _("connection_error")) + html = html.replace("%JS_LOADING_CHANNEL%", _("loading_channel")) + html = html.replace("%JS_ERROR_LOADING_CHANNEL%", _("error_loading_channel")) + html = html.replace("%JS_VOLUME_LEVEL%", _("volume_level")) + html = html.replace("%JS_MUTED_YES%", _("muted_yes")) + html = html.replace("%JS_MUTED_NO%", _("muted_no")) + html = html.replace("%JS_LATENCY_LOW%", _("latency_low")) + html = html.replace("%JS_LATENCY_HIGH%", _("latency_high")) + html = html.replace("%JS_STOP_RETROARCH%", _("stop_retroarch")) + html = html.replace("%JS_START_RETROARCH%", _("start_retroarch")) + html = html.replace("%JS_ON_LABEL%", _("on")) + html = html.replace("%JS_OFF_LABEL%", _("off")) return html diff --git a/templates/index.html b/templates/index.html index 4c7a288..b8e9091 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,697 +2,703 @@ - IPMPV - - - - - - + .language-selector select { + background-color: var(--secondary-bg); + color: var(--text-color); + border: 1px solid #444; + padding: 5px; + border-radius: var(--border-radius); + } + -
- -
- -
-

%WELCOME_TEXT%

-

%CURRENT_CHANNEL_LABEL%: %CURRENT_CHANNEL%

+
+ +
+ +
+

%WELCOME_TEXT%

+

%CURRENT_CHANNEL_LABEL%: %CURRENT_CHANNEL%

-
-
- - - - -
-
+
+
+ + + + +
+
-
- - - - -
+
+ + + + +
-
-

%VOLUME_LABEL%

-
- - - -
-
+
+

%VOLUME_LABEL%

+
+ + + +
+
-
-

%TOGGLE_OSD_LABEL%

-
- - -
-
+
+

%TOGGLE_OSD_LABEL%

+
+ + +
+
-
-

%PLAY_CUSTOM_URL_LABEL%

-
-
- - - -
-
-
+
+

%PLAY_CUSTOM_URL_LABEL%

+
+
+ + + +
+
+
-

%ALL_CHANNELS_LABEL%

-
- - %CHANNEL_GROUPS% -
-
+

%ALL_CHANNELS_LABEL%

+
+ + %CHANNEL_GROUPS% +
+
- + setTimeout(() => { + toast.style.opacity = '0'; + toast.style.transition = 'opacity 0.5s ease'; + setTimeout(() => { + document.body.removeChild(toast); + }, 500); + }, 3000); + } + - \ No newline at end of file +