forked from MarseyWorld/MarseyWorld
remove spider-with-bugs.js cuz converting bugs to absolute broke it
parent
527f977695
commit
a84b2a7946
|
@ -6820,7 +6820,6 @@ div.markdown {
|
|||
|
||||
.bug {
|
||||
pointer-events: none !important;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 9999999;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -551,6 +551,10 @@ var Bug = {
|
|||
bug.style.background = 'transparent url(' + this.options.imageSprite + ') no-repeat 0 ' + row;
|
||||
bug.style.width = this.options.bugWidth + 'px';
|
||||
bug.style.height = this.options.bugHeight + 'px';
|
||||
if (this.options.imageSprite == '/i/spider-sprite.webp')
|
||||
bug.style.position = 'fixed';
|
||||
else
|
||||
bug.style.position = 'absolute';
|
||||
|
||||
this.bug = bug;
|
||||
this.setPos();
|
||||
|
|
|
@ -113,31 +113,22 @@
|
|||
<script defer src="{{'js/vendor/lozad.js' | asset}}"></script>
|
||||
<script defer src="{{'js/vendor/lite-youtube.js' | asset}}"></script>
|
||||
|
||||
{% if p %}
|
||||
{% if p.award_count("shit", v) or p.award_count("fireflies", v) %}
|
||||
{% if p.award_count("shit", v) and v and v.spider %}
|
||||
<script defer src="{{'js/spider-with-bugs.js' | asset}}"></script>
|
||||
{% else %}
|
||||
<script defer src="{{'js/vendor/critters.js' | asset}}"></script>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if p.award_count("shit", v) %}
|
||||
<input hidden id="shit_num" value="{{p.award_count('shit', v)}}">
|
||||
<script defer src="{{'js/bugs.js' | asset}}"></script>
|
||||
{% endif %}
|
||||
|
||||
{% if p.award_count("fireflies", v) %}
|
||||
<input hidden id="fireflies_num" value="{{p.award_count('fireflies', v)}}">
|
||||
<script defer src="{{'js/fireflies.js' | asset}}"></script>
|
||||
{% endif %}
|
||||
{% if (v and v.spider) or (p and p.award_count("shit", v)) or (p and p.award_count("fireflies", v)) %}
|
||||
<script defer src="{{'js/vendor/critters.js' | asset}}"></script>
|
||||
|
||||
{% if v and v.spider %}
|
||||
<script defer src="{{'js/spider.js' | asset}}"></script>
|
||||
{% endif %}
|
||||
{% elif v and v.spider %}
|
||||
<script defer src="{{'js/vendor/critters.js' | asset}}"></script>
|
||||
<script defer src="{{'js/spider.js' | asset}}"></script>
|
||||
|
||||
{% if p and p.award_count("shit", v) %}
|
||||
<input hidden id="shit_num" value="{{p.award_count('shit', v)}}">
|
||||
<script defer src="{{'js/bugs.js' | asset}}"></script>
|
||||
{% endif %}
|
||||
|
||||
{% if p and p.award_count("fireflies", v) %}
|
||||
<input hidden id="fireflies_num" value="{{p.award_count('fireflies', v)}}">
|
||||
<script defer src="{{'js/fireflies.js' | asset}}"></script>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if IS_DKD() %}
|
||||
|
|
Loading…
Reference in New Issue