diff --git a/files/assets/images/6.webp b/files/assets/images/6.webp new file mode 100644 index 000000000..daa98f149 Binary files /dev/null and b/files/assets/images/6.webp differ diff --git a/files/assets/js/underage.js b/files/assets/js/underage.js new file mode 100644 index 000000000..ae8a5d3e5 --- /dev/null +++ b/files/assets/js/underage.js @@ -0,0 +1,8 @@ +let audio = new Audio(`/i/6.webp`); + +audio.play(); +if (audio.paused) { + document.addEventListener('click', () => { + if (audio.paused) audio.play(); + }, {once : true}) +} diff --git a/files/templates/contact.html b/files/templates/contact.html index 939a9614e..2eb048be2 100644 --- a/files/templates/contact.html +++ b/files/templates/contact.html @@ -33,6 +33,10 @@ {% endwith %} {% endif %} + + {% if v and v.is_underage %} + + {% endif %} {% endblock %} {% block pagenav %} diff --git a/files/templates/errors/error.html b/files/templates/errors/error.html index 88bd7f1f0..3e1e2c930 100644 --- a/files/templates/errors/error.html +++ b/files/templates/errors/error.html @@ -15,6 +15,7 @@ {%- endif %} {% if title == 'THIS IS AN 18+ WEBSITE' %}
+ {% else %} {% endif %}