From 02297efa05810a0227759dc1271d421607b206cf Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Sat, 13 Jul 2024 22:25:57 -0700 Subject: [PATCH] css tweaks --- src/listing.html | 118 ++++++++++++++++++++++------------------------- 1 file changed, 55 insertions(+), 63 deletions(-) diff --git a/src/listing.html b/src/listing.html index 1858332..27c20b6 100644 --- a/src/listing.html +++ b/src/listing.html @@ -8,6 +8,28 @@ @@ -461,30 +451,31 @@

~{linked-path}

return createElem('div', { className: 'thumbnail' }, [ + createElem('a', { + className: 'behind thumbnail icon-video', + textContent: name, + href, + }), createElem('video', { className: 'thumbnail', src: href, - title: name, + alt: name, loop: true, currentTime: 5, }), - createElem('a', { - className: 'behind', - textContent: name, - href, - }), createElem('a', { className: 'front', href, + title: name, }), ]); } - const makeAudio = makeImage; + const makeAudio = makeIcon('icon-audio'); const makeVideoLink = makeIcon('icon-video'); const makeAudioLink = makeIcon('icon-audio'); const makeFolderLink = makeIcon('icon-folder'); - const makeExeLink = makeImage; + const makeExeLink = makeLink; const extFNs = { jpg: makeImage, @@ -499,6 +490,7 @@

~{linked-path}

mkv: makeVideo, wmv: makeVideoLink, mp3: makeAudio, + m4a: makeAudio, ogg: makeAudioLink, wav: makeAudioLink, flac: makeAudioLink,