From bd6d1f961de8df47f4d5418f4cf8dd584a98b495 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 4 Sep 2025 23:48:22 +0000 Subject: [PATCH] konmai intensifies thx SG --- copyparty/web/browser.css | 3 +++ copyparty/web/browser.js | 9 +++++++-- copyparty/web/up2k.js | 6 ++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 407967b9..a40c72e2 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -882,6 +882,9 @@ html.y #path a:hover { #flogout { display: inline; } +html.dz #flogout { + margin-left: 1em; +} #goh+span { color: var(--bg-u5); padding-left: .5em; diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 2b80f8bc..189f0a87 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -16521,10 +16521,15 @@ var ahotkeys = function (e) { konmai = konmai && kl == konmak[0] ? (konmai<3?konmai:1):0; else if (++konmai >= konmak.length) { konmai = -1; - apply_perms(treectl.lsc); - fileman.render(); document.documentElement.scrollTop = 0; + settheme.go(6); + start_actx(); + sfx_nice(); toast.inf(9, 'omega clearance granted', null, 'top'); + setTimeout(function() { + apply_perms(treectl.lsc); + fileman.render(); + }, 573); return ev(e); } diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index c512ea7a..a52dd172 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -732,7 +732,7 @@ function Donut(uc, st) { tstrober = setInterval(strobe, 300); if (uc.upsfx && actx && actx.state != 'suspended') - sfx(); + sfx_nice(); // firefox may forget that filedrops are user-gestures so it can skip this: if (uc.upnag && Notification && Notification.permission == 'granted') @@ -745,8 +745,10 @@ function Donut(uc, st) { if (!txt) clearInterval(tstrober); } +} - function sfx() { +function sfx_nice() { + if (true) { var osc = actx.createOscillator(), gain = actx.createGain(), gg = gain.gain,