1% chance of meme banner

pull/79/head
geese_suck 2022-12-16 11:38:44 -08:00
parent 9af90fdf3f
commit a2895c0e6a
Signed by: geese_suck
GPG Key ID: 4D09E4B0A7264746
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,5 @@
import random
EVENT_JINJA_CONST = {
"EVENT_BANNER": "banner_rDrama.html",
"EVENT_ICONS": True,
@ -10,6 +12,7 @@ EVENT_JINJA_CONST = {
' bringing up family drama at Christmas dinner',
' well-behaved rule-following goodthinkers',
' throwing shade right now',
]
],
"random": random,
}

View File

@ -5,7 +5,10 @@
<div class="candy-cane"></div>
<a rel="nofollow noopener noreferrer" href="https://www.youtube.com/watch?v=BuKft9LpL_0" style="text-decoration: none !important">
<link rel="stylesheet" href="{{'css/event/banner.css' | asset}}">
{% include "event/banner_house2.svg" %}
{#<img src="/assets/images/event/banner_new.webp" />#}
{% if random.randint(1,100) != 1 %}
<link rel="stylesheet" href="{{'css/event/banner.css' | asset}}">
{% include "event/banner_house2.svg" %}
{% else %}
<img src="/assets/images/event/banner_new.webp" style="width:100%" />
{% endif %}
</a>