From b2c34c556988953375106fb2b0829b4f5c3b9bc9 Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Wed, 29 Apr 2026 13:07:36 +0200 Subject: [PATCH] fix (?) favico example toggle and make it separate setting --- copyparty/web/browser.css | 7 ++----- copyparty/web/browser.js | 4 ++-- copyparty/web/up2k.js | 4 ++-- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index e9fa9fd4..1563316e 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -1830,9 +1830,6 @@ input.ssconf_v { height: 1em; overflow: hidden; } -#ico1 { - cursor: pointer; -} @@ -1996,6 +1993,7 @@ html { white-space-collapse: preserve; position: relative; vertical-align: top; + cursor: pointer; } #wfp .btn { font-size: 1em; @@ -2424,8 +2422,7 @@ a.btn, #rui label, #modal-ok, #modal-ng, -#ops, -#ico1 { +#ops { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 879470d4..7f9ac2fa 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -1283,12 +1283,12 @@ ebi('op_cfg').innerHTML = ( ' \n' + '\n' + '
\n' + - '

🎉 ' + L.cl_favico + '

\n' + + '

🎉 ' + L.cl_favico + '

\n' + '
\n' + ' ' + ' ' + ' ' + - ' \n' + + ' 🔄️\n' + '
\n' + '
\n' + '
\n' + diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index e01ebbe6..025e0eea 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -3434,8 +3434,8 @@ function warn_uploader_busy(e) { tt.init(); favico.init(); ebi('ico1').onclick = function () { - var a = favico.txt == this.textContent; - swrite('icot', a ? 'c' : this.textContent); + var a = favico.txt == '🎉'; + swrite('icot', a ? 'c' : '🎉'); swrite('icof', a ? 'fc5' : '000'); swrite('icob', a ? '222' : ''); favico.init();