Browse Source

Apríl 2023

pull/29/head
Jonas Havelka 2 years ago
parent
commit
99161d016d
  1. 16
      mamweb/templates/base.html

16
mamweb/templates/base.html

@ -170,6 +170,22 @@
rotace_a_posun($('.container'), randomUhel());
</script>
{% endif %}
{% if april == 2023 %}
<script>
{# By https://stackoverflow.com/a/34559316 #}
function walkText(node) {
if (node.nodeType == 3) {
node.data = node.data.replace(/M&M/g, "M💘M");
}
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 %}
{% render_block "js" %}
</body>
</html>

Loading…
Cancel
Save