fireworks
This commit is contained in:
parent
d88768311e
commit
0aae767a3e
1 changed files with 12 additions and 1 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue