fireworks

This commit is contained in:
sinavir 2024-11-08 14:17:44 +01:00
parent d88768311e
commit 0aae767a3e
No known key found for this signature in database

View file

@ -223,6 +223,9 @@
</div> </div>
</section> </section>
</div> </div>
{% if event.id == 573 %}
<div class="fireworks" style="pointer-events: none; position:fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100%; weight: 100%;"></div>
{% endif %}
{% endblock %} {% endblock %}
{% block script %} {% block script %}
<script> <script>
@ -264,5 +267,13 @@ singleEvent.setOption({ lang: 'fr' });
singleEvent.setOption({ lang: 'en' }); singleEvent.setOption({ lang: 'en' });
{% endifequal %} {% endifequal %}
</script> </script>
{% if event.id == 1 %}
<script src="https://unpkg.com/fireworks-js@2.x/dist/index.umd.js"></script>
<script>
const container = document.querySelector('.fireworks');
const fireworks = new Fireworks.default(container);
fireworks.updateOptions({ acceleration: 1.01, traceSpeed: 5 });
fireworks.start();
</script>
{% endif %}
{% endblock %} {% endblock %}