Apríl 2023

This commit is contained in:
Jonas Havelka 2023-03-26 01:52:17 +01:00
parent 1dd51afb11
commit 99161d016d

View file

@ -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>