feat: ✨ add age-gating check
This commit is contained in:
parent
2ea575f229
commit
7f2c7edf76
4 changed files with 69 additions and 1 deletions
|
@ -35,13 +35,28 @@
|
|||
</script>
|
||||
</head>
|
||||
<body>
|
||||
{%if age_gate %}
|
||||
|
||||
<div id="age_gate_block">
|
||||
<div>
|
||||
<p>
|
||||
This website may contain content meant for an 18+ audience.
|
||||
</p>
|
||||
|
||||
<input type="button" onclick="confirmAge()" value="I understand and am over 18.">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/static/age_gate_check.js"></script>
|
||||
{% endif %}
|
||||
|
||||
<header id="main_header">
|
||||
<img id="main_banner_img"></img>
|
||||
<a id="main_banner_img_link" href="/gallery"> full picture</a>
|
||||
|
||||
<script src="/static/banner.js"></script>
|
||||
|
||||
<h1 id="big_title">{% block big_title %}The dergsite{%endblock%}</h1>
|
||||
<h1 id="big_title">{% block big_title %}{{og.site_name}}{%endblock%}</h1>
|
||||
{% block second_title %}{% endblock %}
|
||||
<div id="title_separator"></div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue