Browse Source

Apríl 2024

pull/46/head
Jonas Havelka 9 months ago
parent
commit
a301b122fd
  1. 18
      mamweb/templates/base.html

18
mamweb/templates/base.html

@ -188,6 +188,24 @@
walkText(document.body);
</script>
{% 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 %}
</body>
</html>

Loading…
Cancel
Save