feat: add warning boxes to info site on every page

This commit is contained in:
asterisk727
2025-12-29 22:14:10 +09:00
parent 43e2a0f098
commit 2ffe9b59dd
4 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
A compendium of information and guides about arcade games.
By the community, for the community.
[Join our Discord server! :fontawesome-brands-discord:](https://discord.gg/cZRUmEPK78){ .md-button }
[Join (or probably don't join) our (now-defunct) Discord server! :fontawesome-brands-discord:](https://discord.gg/cZRUmEPK78){ .md-button }
</figure>
<hr>
+15
View File
@@ -0,0 +1,15 @@
document.addEventListener("DOMContentLoaded", function() {
const infoBox = document.createElement('div');
infoBox.innerHTML = `
<h1 style="font-weight: bold; text-decoration: underline; text-decoration-color: red;">
This is a mirror of the original TWO-TORIAL spice2x patcher. <br>
Read more info about this mirror --->
<a href="https://two-torial-info.maimaidxprism.plus/" target="_blank" rel="noopener noreferrer" style="color: #a47bea; text-decoration: underline; text-decoration-color: red;">here</a>
</h1>
`;
const mdContent = document.querySelector('.md-content__inner');
if (mdContent) {
mdContent.parentNode.insertBefore(infoBox, mdContent);
}
});