diff --git a/public/index.html b/public/index.html index 2ac1a36..f7a970a 100644 --- a/public/index.html +++ b/public/index.html @@ -462,9 +462,13 @@ body::before{content:'';position:fixed;inset:0;background:radial-gradient(ellips
+
+ + +
HTTP Mode: Direct S3 presigned upload. Best for LAN and stable connections. - +
@@ -521,6 +525,7 @@ body::before{content:'';position:fixed;inset:0;background:radial-gradient(ellips
Users
🔗 Share Links
Folders
+
⚡ UDP Relay
@@ -922,16 +927,22 @@ function setMode(mode) { const label = document.getElementById('mode-label'); const detail = document.getElementById('mode-detail'); const hint = document.getElementById('udp-ext-hint'); + const btnHttp = document.getElementById('btn-http'); + const btnUdp = document.getElementById('btn-udp'); if (mode === 'http') { btn.className = 'btn-upload'; if (label) label.textContent = 'HTTP Mode:'; if (detail) detail.textContent = 'Direct S3 presigned upload. Best for LAN and stable connections.'; if (hint) hint.style.display = 'none'; + if (btnHttp) { btnHttp.className = 'mode-btn active-http'; } + if (btnUdp) { btnUdp.className = 'mode-btn'; } } else { btn.className = 'btn-upload udp'; if (label) label.textContent = 'UDP Mode:'; if (detail) detail.textContent = 'Fast relay-accelerated transfer via the Chrome extension.'; if (hint) hint.style.display = 'none'; + if (btnHttp) { btnHttp.className = 'mode-btn'; } + if (btnUdp) { btnUdp.className = 'mode-btn active-udp'; } } updateUploadBtn(); }