idk
parent
ca78b26394
commit
40f14310a0
|
@ -11,7 +11,7 @@
|
||||||
/*jslint nomen: true, plusplus: true, sloppy: true, vars: true, white: true */
|
/*jslint nomen: true, plusplus: true, sloppy: true, vars: true, white: true */
|
||||||
/*global window, document, navigator, clearInterval, setInterval */
|
/*global window, document, navigator, clearInterval, setInterval */
|
||||||
|
|
||||||
function snow(window, document, flakesMax) {
|
function snow(flakesMax) {
|
||||||
// --- common properties ---
|
// --- common properties ---
|
||||||
|
|
||||||
this.autoStart = true; // Whether the snow should start automatically or not.
|
this.autoStart = true; // Whether the snow should start automatically or not.
|
||||||
|
|
|
@ -6,6 +6,6 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if p.award_count("snow", v) %}
|
{% if p.award_count("snow", v) %}
|
||||||
<script src="{{'js/event/snow.js'|asset}}"></script>
|
<script src="{{'js/event/snow.js'|asset}}"></script>
|
||||||
<script>snow(window, document, 80 * {{p.award_count('snow', v)}});</script>
|
<script>snow(80 * {{p.award_count('snow', v)}});</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{# <script src="{{'js/event/neko.js'|asset}}"></script> #}
|
{# <script src="{{'js/event/neko.js'|asset}}"></script> #}
|
||||||
<script src="{{'js/event/snow.js'|asset}}"></script>
|
<script src="{{'js/event/snow.js'|asset}}"></script>
|
||||||
{% if request.path == '/' %}<script>snow(window, document, 80);</script>{% endif %}
|
{% if request.path == '/' %}<script>snow(80);</script>{% endif %}
|
||||||
|
|
||||||
<div class="candy-cane"></div>
|
<div class="candy-cane"></div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue