From 15b12514bd3c8ee587d40b0ea216fee77c8f7fc1 Mon Sep 17 00:00:00 2001
From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>
Date: Sun, 2 Nov 2025 14:09:19 +0900
Subject: modified recordings/recordings-plain.html, modified
static/macprogs.csv
---
layouts/recordings/recordings-plain.html | 32 ++++++++++++++++++++++++++++++++
static/macprogs.csv | 1 +
2 files changed, 33 insertions(+)
diff --git a/layouts/recordings/recordings-plain.html b/layouts/recordings/recordings-plain.html
index 9fb5f09..4f8bec3 100644
--- a/layouts/recordings/recordings-plain.html
+++ b/layouts/recordings/recordings-plain.html
@@ -105,6 +105,15 @@
+ {{/* 섹션 레벨 배경음악 (recordings/ 루트에 오디오 파일이 있는 경우) */}}
+ {{ $secAudio := .Resources.Match "*.{mp3,m4a,ogg,wav,opus,OPUS,OGG,WAV,MP3,M4A}" }}
+ {{ with (index $secAudio 0) }}
+
+
+
+
+ {{ end }}
+
@@ -251,6 +260,29 @@
}
});
+ // BGM 토글 버튼 및 자동재생 시도
+ const bgm = document.getElementById('bgm');
+ const toggle = document.getElementById('bgm-toggle');
+ if (bgm && toggle) {
+ const tryPlay = () => bgm.play().then(() => { toggle.textContent = 'BGM ❚❚'; }).catch(() => {});
+ // 자동재생 시도
+ tryPlay();
+ // 첫 사용자 클릭 시 재생 시도
+ const onFirst = () => { tryPlay(); document.removeEventListener('click', onFirst); };
+ document.addEventListener('click', onFirst, { once: true });
+
+ toggle.addEventListener('click', (e) => {
+ e.preventDefault();
+ if (bgm.paused) {
+ tryPlay();
+ } else {
+ bgm.pause();
+ bgm.currentTime = 0;
+ toggle.textContent = 'BGM ▷';
+ }
+ });
+ }
+
const list = document.getElementById("list");
const wrap = document.getElementById("player");
const video = document.getElementById("video");
diff --git a/static/macprogs.csv b/static/macprogs.csv
index d32838a..c39807c 100644
--- a/static/macprogs.csv
+++ b/static/macprogs.csv
@@ -18,6 +18,7 @@ C,dbeaver-community,is a database viewer.
,djvu2pdf,is a small tool to convert Djvu files to PDF files.
,dict,is a dictionary server protocol (RFC2229) client.
C,discord,is a voice and text chat software.
+,dos2unix,"onverts text between DOS, UNIX, and Mac formats."
C,dropzone,is a productivity app for copy/paste/share files.
,duti,selects default apps for documents and URL schemes on macOS.
,eza,"is a modern,maintained replacement for ls."
--
cgit v1.2.3