MarseyWorld/files/templates/events/homoween/awards.html

70 lines
2.7 KiB
HTML
Raw Normal View History

2023-09-28 23:58:09 +00:00
{% if p.award_count("haunt", v) %}
<link rel="stylesheet" href="{{'events/homoween/css/haunted.css' | asset}}">
<script defer src="{{'events/homoween/js/haunted.js' | asset}}" defer></script>
<div id="haunted-effect" class="fixed-top"></div>
{% if (not v or v.event_music) and not (hole and hole.name == 'music') %}
<audio id="thunder1" hidden preload="none" src="/assets/events/homoween/audio/haunted/thunder1.mp3"></audio>
<audio id="thunder2" hidden preload="none" src="/assets/events/homoween/audio/haunted/thunder1.mp3"></audio>
{% endif %}
2023-09-28 23:58:09 +00:00
{% endif %}
{% set stabs = p.award_count("stab", v) %}
{% if stabs %}
<input hidden id="stabs" value="{{stabs}}">
<link rel="stylesheet" href="{{'events/homoween/css/stab.css' | asset}}">
<script defer src="{{'events/homoween/js/sketch.js' | asset}}" defer></script>
<script defer src="{{'events/homoween/js/blood.js' | asset}}" defer></script>
{% endif %}
{% if p.award_count("spiders", v) %}
{% set spiders = p.award_count("spiders", v) %}
{% for i in range(spiders) %}
{% include "events/homoween/spider.html" %}
{% endfor %}
{% endif %}
{% if p.award_count("fog", v) %}
<canvas id="fog-effect" class="fog-effect"></canvas>
<script defer src="{{'events/homoween/js/fog.js' | asset}}" defer></script>
{% endif %}
{% if p.award_count("flashlight", v) %}
<link rel="stylesheet" href="{{'events/homoween/css/flashlight.css' | asset}}">
<div id="flashlight-effect" class="fixed-top"></div>
<script defer src="{{'events/homoween/js/flashlight.js' | asset}}"></script>
{% endif %}
{% if p.award_count("ectoplasm", v) %}
<link rel="stylesheet" href="{{'events/homoween/css/ectoplasm.css' | asset}}">
{% endif %}
{% if p.award_count("bones", v) %}
2023-10-10 15:42:46 +00:00
<div id="bones-container" data-bones="{{p.award_count('bones', v)}}"></div>
2023-09-28 23:58:09 +00:00
<script defer src="{{'events/homoween/js/bones.js' | asset}}"></script>
{% endif %}
{% if p.award_count("pumpkin", v) %}
<div class="fall-pumpkins">
2023-10-11 16:11:33 +00:00
{% for i in range(p.award_count("pumpkin", v)) %}
<div class="fall-pumpkin">
<img src="/e/marseypumpking.webp" class="animate-spin" alt="animate marsey pumpkin icon">
</div>
2023-09-28 23:58:09 +00:00
{% endfor %}
</div>
{% endif %}
{% if p.award_count("upsidedown", v) %}
2023-09-28 23:58:09 +00:00
<link rel="stylesheet" href="{{'events/homoween/css/upsidedown.css' | asset}}">
{% if g.browser != 'iphone' %}
<canvas id="canvas"></canvas>
<script defer src="{{'events/homoween/js/upsidedown.js' | asset}}"></script>
{% endif %}
2023-09-28 23:58:09 +00:00
{% endif %}
2023-10-11 15:14:58 +00:00
{% if p.award_count("stalker", v) %}
<link rel="stylesheet" href="{{'events/homoween/css/stalker.css' | asset}}">
<div id="stalkers-container" data-stalkers-count="{{p.award_count('stalker', v)}}"></div>
2023-10-11 15:14:58 +00:00
<script defer src="{{'events/homoween/js/stalker.js' | asset}}"></script>
{% endif %}