Apríl 2024

This commit is contained in:
Jonas Havelka 2024-03-31 19:12:24 +02:00
parent 81494a7152
commit a301b122fd

View file

@ -188,6 +188,24 @@
walkText(document.body); walkText(document.body);
</script> </script>
{% endif %} {% endif %}
{% if april == 2024 %}
<script>
{# By https://stackoverflow.com/a/34559316 #}
function walkText(node) {
if (node.nodeType == 3) {
node.data = node.data.replace(/M&M/g, "W8W");
}
if (node.nodeType == 1 && node.nodeName != "SCRIPT") {
for (var i = 0; i < node.childNodes.length; i++) {
walkText(node.childNodes[i]);
}
}
}
walkText(document.body);
</script>
{% endif %}
{% block js %}{% endblock %} {% block js %}{% endblock %}
</body> </body>
</html> </html>