Apríl 2023
This commit is contained in:
parent
1dd51afb11
commit
99161d016d
1 changed files with 16 additions and 0 deletions
|
@ -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…
Reference in a new issue