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()); rotace_a_posun($('.container'), randomUhel());
</script> </script>
{% endif %} {% 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" %} {% render_block "js" %}
</body> </body>
</html> </html>

Loading…
Cancel
Save