forked from rDrama/rDrama
Disable fartmode on non-rDrama sites.
parent
a30df291a4
commit
da27b16c39
|
@ -70,10 +70,12 @@
|
|||
<label class="custom-control-label" for="bots">Bots</label>
|
||||
</div>
|
||||
|
||||
{% if SITE_NAME == 'rDrama' %}
|
||||
<div class="custom-control custom-switch">
|
||||
<input autocomplete="off" type="checkbox" class="custom-control-input" id="Fart mode" {% if site_settings['Fart mode'] %}checked{% endif %} onchange="post_toast(this,'/admin/site_settings/Fart mode');">
|
||||
<label class="custom-control-label" for="Fart mode">Fart mode</label>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="custom-control custom-switch">
|
||||
<input autocomplete="off" type="checkbox" class="custom-control-input" id="Read-only mode" {% if site_settings['Read-only mode'] %}checked{% endif %} onchange="post_toast(this,'/admin/site_settings/Read-only mode');">
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
</script>
|
||||
{% endif %}
|
||||
|
||||
{% if fart and not (v and v.has_badge(128)) %}
|
||||
{% if fart and not (v and v.has_badge(128)) and SITE_NAME == 'rDrama' %}
|
||||
<script>
|
||||
fart = Math.floor(Math.random() * 4) + 1
|
||||
let audio = new Audio(`/assets/images/${fart}.webp`);
|
||||
|
|
Loading…
Reference in New Issue