2022-11-21 08:52:22 +00:00
{%- extends 'root.html' -%}
2023-02-24 06:31:27 +00:00
{% block body_attributes %}id="{% if request.path != '/comments' %}{% block pagetype %}frontpage{% endblock %}{% endif %}" class="has_header"{% endblock %}
2022-11-21 08:52:22 +00:00
{% block body %}
2024-04-08 06:33:47 +00:00
{% set central_orgy = get_running_orgy(v, 1) %}
2023-10-29 12:51:00 +00:00
{% block pulltorefresh %}
< div id = "pulltorefresh" >
< img id = "pulltorefresh-img" src = "{{SITE_FULL_IMAGES}}/e/marseyunamused.webp" >
< / div >
{% endblock %}
{% block banner %}
2023-12-04 15:31:03 +00:00
{% if err or '@' not in request.path %}
2023-11-04 21:50:23 +00:00
{% if IS_FISTMAS() and not (hole and hole.bannerurls) %}
2023-10-29 12:51:00 +00:00
{% include 'events/fistmas/banner.html' %}
2023-11-04 21:50:23 +00:00
{% elif IS_HOMOWEEN() and not (hole and hole.bannerurls) %}
2023-10-29 12:51:00 +00:00
{% include 'events/homoween/banner.html' %}
{% else %}
{% set path = "files/assets/images/" ~ SITE_NAME %}
2022-12-13 21:56:12 +00:00
2023-12-04 15:31:03 +00:00
{% if err and SITE_NAME == 'rDrama' %}
{% set src = "banner_error.webp" | asset_siteimg %}
{% elif hole and hole.bannerurls %}
2023-11-04 21:50:23 +00:00
{% set src = hole.random_banner %}
2023-10-29 12:51:00 +00:00
{% set alt = ['/h/', hole, ' banner']|join %}
{% set class = 'site-banner-hole' %}
2024-04-08 06:33:47 +00:00
{% elif central_orgy and os_path.exists(path ~ "/orgy_banners") %}
2023-10-29 12:51:00 +00:00
{% set src = macros.random_image("assets/images/" ~ SITE_NAME ~ "/orgy_banners") %}
2024-04-06 04:31:51 +00:00
{% set href = "/chat/1" %}
2022-12-13 21:56:12 +00:00
{% set expand = false %}
2024-04-17 15:53:49 +00:00
{% elif IS_DKD() %}
2023-10-29 12:51:00 +00:00
{% set src = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/banners") %}
2024-04-17 15:53:49 +00:00
{% elif IS_BDAY() %}
{% set src = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/banners/" ~ SITE_NAME) %}
2024-04-10 11:07:20 +00:00
{% elif IS_FOURTH() %}
{% set src = SITE_FULL_IMAGES ~ '/i/rDrama/4th-of-july-banner.webp' %}
2023-10-29 12:51:00 +00:00
{% elif SITE_NAME == "rDrama" %}
2024-08-06 23:18:39 +00:00
{% set href = "https://secure.actblue.com/donate/kamalaharris2024" %}
2022-12-13 21:56:12 +00:00
{% set expand = false %}
{% endif %}
2023-03-23 12:38:30 +00:00
2023-10-29 12:51:00 +00:00
{% if SITE_NAME == "WPD" %}
{% if hole %}
{% set href = "/h/" ~ hole %}
{% set expand = false %}
{% else %}
{% set href = "/" %}
{% set expand = false %}
{% endif %}
2023-03-23 12:38:30 +00:00
{% endif %}
2023-05-05 21:45:25 +00:00
2023-11-04 21:36:05 +00:00
< a id = "banner-link" href = "{{href|default(src)}}" rel = "noopener" >
2023-10-29 12:51:00 +00:00
{% if src %}
{% set banner_url = src %}
{% else %}
{%- if not v and os_path.exists(path ~ "/cached.webp") -%}
{% set banner_url = 'cached.webp' | asset_siteimg %}
{%- elif SITE_NAME == 'rDrama' and v and v.chud %}
2024-04-10 10:46:46 +00:00
{% set banner_url = '/banners/1802.webp' | asset_siteimg %}
2023-10-29 12:51:00 +00:00
{%- else -%}
2024-04-10 10:57:53 +00:00
{% set banner_url = macros.random_image("assets/images/" ~ SITE_NAME ~ "/banners") %}
2023-10-29 12:51:00 +00:00
{%- endif -%}
{% endif %}
{% macro img_element() %}
< img data-nonce = "{{g.nonce}}" data-onclick = "{{expand|default('expandImage()')}}" class = "{{class|default('site-banner')}}" alt = "{{alt|default('site banner')}}" src = "{{banner_url}}" >
{% endmacro %}
2023-05-05 22:08:12 +00:00
2023-11-04 21:50:23 +00:00
{% if hole and hole.bannerurls %}
2023-10-29 12:51:00 +00:00
{{img_element()}}
{% else %}
< div class = "banner-wrapper" >
< div style = "padding: 0 0 12.2%" >
< div >
{{img_element()}}
< / div >
2023-05-05 22:08:12 +00:00
< / div >
2023-05-02 16:44:39 +00:00
< / div >
2023-10-29 12:51:00 +00:00
{% endif %}
< / a >
{% endif %}
2022-05-04 23:09:46 +00:00
{% endif %}
2023-10-29 12:51:00 +00:00
{% endblock %}
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
{% include "header.html" %}
2023-09-28 23:58:09 +00:00
2023-10-29 12:51:00 +00:00
{% block mobileUserBanner %}{% endblock %}
2023-09-28 23:58:09 +00:00
2023-10-29 12:51:00 +00:00
{% if IS_HOMOWEEN() %}
{% block hauntBg %}{% endblock %}
{% endif %}
2023-09-28 23:58:09 +00:00
2023-10-29 12:51:00 +00:00
< div class = "container" >
< div class = "row justify-content-around" id = "main-content-row" >
< div class = "order-first col h-100 {% block customPadding %}{% if request.path.startswith('/@') %}user-gutters{% else %}custom-gutters{% endif %}{% endblock %}" id = "main-content-col" >
{% block desktopUserBanner %}{% endblock %}
{% block desktopBanner %}{% endblock %}
{% block PseudoSubmitForm %}{% endblock %}
{% block searchText %}{% endblock %}
{% block content %}{% endblock %}
{% block pagenav %}{% endblock %}
< / div >
{% block sidebar %}
{% if has_sidebar and (home or p) %}
{% set sidebar = "sidebar_" ~ SITE_NAME ~ ".html" %}
< div id = "desktop-sidebar" >
{% include sidebar %}
< / div >
{% endif %}
{% endblock %}
2022-05-04 23:09:46 +00:00
< / div >
< / div >
2023-10-29 12:51:00 +00:00
{% block mobilenavbar %}{% include "mobile_navigation_bar.html" %}{% endblock %}
{% block actionsModal %}{% endblock %}
{% block reportCommentModal %}{% endblock %}
{% block GIFtoast %}{% endblock %}
{% block GIFpicker %}{% endblock %}
< div class = "toast clipboard" id = "toast-success" data-bs-animation = "true" data-bs-autohide = "true" data-bs-delay = "5000" >
< div class = "toast-body text-center" >
< i class = "fas fa-check-circle text-success mr-2" > < / i > Link copied to clipboard
< / div >
2022-05-04 23:09:46 +00:00
< / div >
2024-08-16 16:34:41 +00:00
< script defer src = "{{'js/vendor/lozad.js' | asset}}" > < / script >
2023-10-29 12:51:00 +00:00
< script defer src = "{{'js/vendor/lite-youtube.js' | asset}}" > < / script >
2023-07-14 10:43:52 +00:00
2023-10-29 12:51:00 +00:00
{% if (v and v.spider) or (p and p.award_count("shit", v)) or (p and p.award_count("fireflies", v)) %}
< script defer src = "{{'js/vendor/critters.js' | asset}}" > < / script >
2023-07-14 11:33:27 +00:00
2023-10-29 12:51:00 +00:00
{% if v and v.spider %}
< script defer src = "{{'js/spider.js' | asset}}" > < / script >
{% endif %}
2023-07-14 10:43:52 +00:00
2023-10-29 12:51:00 +00:00
{% if p and p.award_count("shit", v) %}
< input hidden id = "shit_num" value = "{{p.award_count('shit', v)}}" >
< script defer src = "{{'js/bugs.js' | asset}}" > < / script >
{% endif %}
2023-07-14 10:43:52 +00:00
2023-10-29 12:51:00 +00:00
{% if p and p.award_count("fireflies", v) %}
< input hidden id = "fireflies_num" value = "{{p.award_count('fireflies', v)}}" >
< script defer src = "{{'js/fireflies.js' | asset}}" > < / script >
{% endif %}
2023-07-14 10:43:52 +00:00
{% endif %}
2022-12-19 01:20:14 +00:00
2024-10-16 04:56:41 +00:00
{% if IS_MUSICAL_EVENT() and not IS_LOCALHOST and not (SITE_NAME == 'WPD' and not v) and (not v or v.event_music) and not (hole and hole.name == 'music') and not (u and u.song) and not (IS_HOMOWEEN() and p and p.award_count("haunt", v)) and not (p and p.embed and p.domain == 'x.com') and err != 406 %}
2023-12-01 19:42:42 +00:00
{% set path = "assets/events/" ~ IS_EVENT() ~ "/music" %}
2024-02-23 19:49:26 +00:00
{% set song = SITE_FULL ~ "/" ~ path ~ "/" ~ listdir('files/'~path)|seeded_random(id) ~ '?x=45' %}
2023-12-01 19:42:42 +00:00
< audio id = "event-song" hidden preload = "none" src = "{{song}}" loop > < / audio >
< script defer src = "{{'events/shared/js/music.js' | asset}}" > < / script >
2023-10-29 12:51:00 +00:00
{% endif %}
2022-11-21 08:52:22 +00:00
{% endblock %}