From 8f3d97dde770b43e4a8d4972d4a95ec99cc7a9a1 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 24 Nov 2021 22:10:59 +0100 Subject: [PATCH] indicate onclick action for audio files in grid view --- copyparty/web/browser.css | 6 ++++++ copyparty/web/browser.js | 1 + 2 files changed, 7 insertions(+) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 3b894cb0..019105d2 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -950,6 +950,12 @@ html.light .ghead { #ggrid>a.dir:before { content: '📂'; } +#ggrid>a.au:before { + content: '💾'; +} +html.np_open #ggrid>a.au:before { + content: '▶'; +} #ggrid>a:before { display: block; position: absolute; diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 2a05b26b..76658d7e 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -539,6 +539,7 @@ function MPlayer() { r.tracks[tid] = url; tds[0].innerHTML = 'play'; ebi('a' + tid).onclick = ev_play; + clmod(trs[a], 'au', 1); } }