Apríl 2024
This commit is contained in:
parent
81494a7152
commit
a301b122fd
1 changed files with 18 additions and 0 deletions
|
@ -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…
Reference in a new issue