From 053f3b6589ae63536d55257aa25fa4b20a07169e Mon Sep 17 00:00:00 2001 From: Jeremy Penner Date: Mon, 25 Dec 2023 19:08:32 -0500 Subject: [PATCH] add content warning --- index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index d5377c0..cee260d 100644 --- a/index.js +++ b/index.js @@ -605,9 +605,14 @@ const displayList = async (indexFile, containerId) => { const fileContainer = document.createElement("div") fileContainer.style.border = "1px solid black" fileContainer.style.margin = "2px" + fileContainer.style.padding = "2px" fileContainer.style.display = "inline-block" fileContainer.appendChild(linkDetail(textNode(filename, "div"), filename)) container.appendChild(fileContainer) - displayFile(filename, fileContainer) + if (filename != 'heads/fhead.bin') { + displayFile(filename, fileContainer) + } else { + fileContainer.appendChild(textNode("CW: Pixel genitals")) + } } }