forked from MarseyWorld/MarseyWorld
remove unnecessary () and space
parent
37c7fee1fb
commit
252022854d
|
@ -139,7 +139,7 @@
|
|||
|
||||
{% if IS_EVENT() 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 == 'twitter.com') %}
|
||||
{% set path = "assets/events/" ~ IS_EVENT() ~ "/music" %}
|
||||
{% set song = SITE_FULL ~ "/" ~ path ~ "/" ~ listdir('files/'~path)|random() ~ '?x=45' %}
|
||||
{% set song = SITE_FULL ~ "/" ~ path ~ "/" ~ listdir('files/'~path)|random ~ '?x=45' %}
|
||||
<audio id="event-song" hidden preload="none" src="{{song}}" loop></audio>
|
||||
<script defer src="{{'events/shared/js/music.js' | asset}}"></script>
|
||||
{% endif %}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{% endif %}
|
||||
|
||||
<a rel="noopener" href="https://www.youtube.com/watch?v=BuKft9LpL_0" style="text-decoration: none !important">
|
||||
{% if SITE_NAME == 'rDrama' and range(1, 20)|random() == 1 %}
|
||||
{% if SITE_NAME == 'rDrama' and range(1, 20)|random == 1 %}
|
||||
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/assets/events/fistmas/images/banner_new.webp" style="width:100%">
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{'events/fistmas/css/banner.css' | asset}}">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% if range(1, 100)|random() == 1 %}
|
||||
{% if range(1, 100)|random == 1 %}
|
||||
<img id="effigy" src="{{SITE_FULL_IMAGES}}/assets/events/homoween/images/effigy.webp">
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@
|
|||
</g>
|
||||
<g id="banner-homoween-house" transform="translate(-166.09098,3.8681347)">
|
||||
<path id="banner-homoween-house-fill" fill="url(#house-fill-gradient)" d="m 227.4,354.9 c 0.4,-10 13.8,-34.6 13.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-0.3,12.2 z m 10.1,0 0.4,-12.1 5.2,-0.1 -0.3,12.2 z m 14.6,0 h -5.3 l 0.4,-12.1 5.2,-0.1 z m -33.7,-43.1 -6,-0.3 0.6,-11.1 6.2,-0.3 z m 0.9,-12.9 -6.2,0.1 0.5,-9.7 h 6.4 z m -8,0.1 -6,0.1 0.4,-9.8 h 5.9 z m -59.3,72.3 -6.7,0.4 v -32.6 l 5.8,0.4 z m -18.3,-32.3 5.8,0.4 1,31.9 -6.7,0.4 v -32.7 z m 111.4,-17.7 c -1.3,0 -3.1,0 -4.9,-0.1 -0.1,-1.9 -0.1,-3.7 -0.2,-5 0.6,0.1 1.2,0.2 1.8,0.5 1.6,0.8 2.8,2.8 3.3,4.6 z m -6.7,-5 v 4.9 c -2.2,-0.1 -4.3,-0.2 -5.5,-0.2 0.3,-0.6 0.7,-1.2 1,-1.8 1.1,-1.7 2.7,-2.7 4.5,-2.9 z m -61.4,-6.6 -9.9,0.1 0.1,-13.2 h 10 c -0.3,5.4 -0.6,11.2 -0.2,13.1 z m -23.4,-13.1 h 10.7 l -1.1,13.2 -11.8,0.1 c 0,0 2,-4.4 2.2,-13.3 z m 23.8,-2.1 -10.2,0.2 0.1,-8.9 10.9,0.2 c 0,0 -0.4,3.9 -0.8,8.5 z m -12.2,-8.8 -0.8,9 -10.9,0.2 c 0,-2.8 -0.2,-6 -0.7,-9.5 z" />
|
||||
{% set is_red = range(1, 100)|random() == 1 or banner_day == 31 %}
|
||||
{% set is_red = range(1, 100)|random == 1 or banner_day == 31 %}
|
||||
<g id="banner-homoween-house-windows" fill="url(#banner-homoween-house-window-gradient)" style="filter: drop-shadow(0px 0px 10px #{% if is_red %}ff0000CC{% else %}00a100{% endif %});">
|
||||
<!--window 1-->
|
||||
<path d="m 158.9,336.2 c -11,-0.9 -21.3,-2 -21.3,-2 0.8,3.3 1.5,8 2,12.7 l 18.8,-0.2 z" />
|
||||
|
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
@ -1,5 +1,5 @@
|
|||
{% set sidebar_path = "assets/events/homoween/images/sidebar" %}
|
||||
{% set selected_image = listdir('files/'~sidebar_path)|random() %}
|
||||
{% set selected_image = listdir('files/'~sidebar_path)|random %}
|
||||
{% set image = "/" ~sidebar_path~ "/" ~selected_image~'?v=45' %}
|
||||
|
||||
<a href="{{image}}" style="text-decoration:none">
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<div class="srd">
|
||||
{{calc_users()}}
|
||||
{% if SITE_NAME == 'rDrama' %}
|
||||
{% if not hasattr(g, "loggedin_counter") or not g.loggedin_counter or (range(1,5) | random == 1 and not (v and v.truescore > 1000)) %}
|
||||
{% if not hasattr(g, "loggedin_counter") or not g.loggedin_counter or (range(1,5)|random == 1 and not (v and v.truescore > 1000)) %}
|
||||
{% include "journoid_banner.html" %}
|
||||
{% else %}
|
||||
{% if IS_DKD() %}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<title>Kongrama</title>
|
||||
{# DELETE_ME_PLS #}
|
||||
{% elif v %}
|
||||
<title>{{SITE_NAME}}{% if TAGLINES %}: {{TAGLINES|random()}}{% endif %}</title>
|
||||
<title>{{SITE_NAME}}{% if TAGLINES %}: {{TAGLINES|random}}{% endif %}</title>
|
||||
{% else %}
|
||||
<title>{{SITE_NAME}}{% if TAGLINES %}: {{TAGLINES[0]}}{% endif %}</title>
|
||||
{% endif %}
|
||||
|
|
|
@ -36,9 +36,9 @@
|
|||
</head>
|
||||
<body {% block body_attributes %}id="{% block pagetype %}{% endblock %}"{% endblock %}>
|
||||
{% if IS_HOMOWEEN() and ((v and v.jumpscare) or request.path.startswith('/shop/')) %}
|
||||
{% set image_src = SITE_FULL_IMAGES ~ "/assets/events/homoween/images/jumpscares/" ~ listdir("files/assets/events/homoween/images/jumpscares")|random() ~ "?x=45" %}
|
||||
{% set image_src = SITE_FULL_IMAGES ~ "/assets/events/homoween/images/jumpscares/" ~ listdir("files/assets/events/homoween/images/jumpscares")|random ~ "?x=45" %}
|
||||
<img src="{{image_src}}" id="jumpscare-img" style="display: none">
|
||||
{% set audio_src = "/assets/events/homoween/audio/jumpscares/" ~ listdir("files/assets/events/homoween/audio/jumpscares")|random() ~ "?x=45" %}
|
||||
{% set audio_src = "/assets/events/homoween/audio/jumpscares/" ~ listdir("files/assets/events/homoween/audio/jumpscares")|random ~ "?x=45" %}
|
||||
<audio id="jumpscare-audio" preload="none" src="{{audio_src}}"></audio>
|
||||
<script defer src="{{'events/homoween/js/jumpscare.js' | asset}}"></script>
|
||||
{% endif %}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% if request.path.startswith('/post/') and p %}
|
||||
{{- SITE_FULL_IMAGES ~ "/" ~ path ~ "/" ~ listdir('files/' ~ path)|seeded_random(p.id) ~ '?x=7' -}}
|
||||
{% else %}
|
||||
{{- SITE_FULL_IMAGES ~ "/" ~ path ~ "/" ~ listdir('files/' ~ path)|random() ~ '?x=7' -}}
|
||||
{{- SITE_FULL_IMAGES ~ "/" ~ path ~ "/" ~ listdir('files/' ~ path)|random ~ '?x=7' -}}
|
||||
{% endif %}
|
||||
{%- endmacro -%}
|
||||
|
||||
|
|
Loading…
Reference in New Issue