summaryrefslogtreecommitdiff
path: root/web/index.html
diff options
context:
space:
mode:
authorwuhei <wuhei@users.noreply.github.com>2026-11-20 15:49:14 +0100
committerwuhei <wuhei@users.noreply.github.com>2026-11-20 15:49:14 +0100
commit07ac2567dab0041ced22fde8fafbd4c7ae90da0e (patch)
treeef4bdc29f7195a27931e7889424dec487c9784b9 /web/index.html
parent6f9aaf04904a5b1d455fae358d3f88cc1e5384ee (diff)
downloadlilchinese-07ac2567dab0041ced22fde8fafbd4c7ae90da0e.tar.gz
prepare for publication: MIT licence, no bundled third-party photo, tighter ignores
- the intro picture was press photography from a news site; it is no longer tracked (web/intro.jpg is gitignored) and scripts/fetch-intro.sh installs your own. The page drops the <img> if it 404s, so a fresh clone is just the red field and the title. - .gitignore now covers recorder output (mp4/mkv/webm/mov/m4v), the media files that land in the working directory during a talk (*.png/*.jpg/*.wav/*.mp3), models and session logs, so 'git add -A' cannot sweep them into a commit. - LICENSE: MIT for the code.
Diffstat (limited to 'web/index.html')
-rw-r--r--web/index.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/index.html b/web/index.html
index e02159c..d176c2a 100644
--- a/web/index.html
+++ b/web/index.html
@@ -103,7 +103,7 @@
</head>
<body>
<div id="intro">
- <img id="intro-img" src="/intro.jpg" alt="">
+ <img id="intro-img" src="/intro.jpg" alt="" onerror="this.remove()">
<h1 id="intro-zh">批斗大会</h1>
<h2 id="intro-en">STRUGGLE SESSION</h2>
<div class="hint"><span class="key">&#9166;</span> Press enter to start</div>
@@ -241,7 +241,8 @@
function showIntro(cfg) {
document.getElementById('intro-zh').textContent = cfg.introZH || '';
document.getElementById('intro-en').textContent = cfg.introEN || '';
- const img = document.getElementById('intro-img');
+ const img = document.getElementById('intro-img'); // may already be gone (no picture)
+ if (!img) return;
if (cfg.introImg) img.src = cfg.introImg; else img.remove();
introEl.hidden = false;
introVisible = true;