⚡ fix: click effect
This commit is contained in:
@@ -60,16 +60,16 @@
|
||||
<%- js('/js/busuanzi-2.3.pure.min') %>
|
||||
<% } %>
|
||||
<!-- ClickLove -->
|
||||
<% if (theme.clickLove){ %>
|
||||
<% if (theme.click_effect===1){ %>
|
||||
<%- js('/js/clickLove') %>
|
||||
<% } %>
|
||||
<!-- ClickBoom -->
|
||||
<% if (theme.clickBoom){ %>
|
||||
<%- js('/js/clickBoom') %>
|
||||
<!-- ClickBoom1 -->
|
||||
<% if (theme.click_effect===2){ %>
|
||||
<script src="https://cdn.jsdelivr.net/npm/animejs@latest/anime.min.js"></script>
|
||||
<%- js('/js/clickBoom1') %>
|
||||
<% } %>
|
||||
<!-- ClickBoom2 -->
|
||||
<% if (theme.clickBoom2){ %>
|
||||
<script src="https://cdn.jsdelivr.net/npm/animejs@latest/anime.min.js"></script>
|
||||
<% if (theme.click_effect===3){ %>
|
||||
<%- js('/js/clickBoom2') %>
|
||||
<% } %>
|
||||
<!-- CodeCopy -->
|
||||
|
@@ -1,22 +1,6 @@
|
||||
<%- partial('_partial/head') %>
|
||||
|
||||
<body>
|
||||
<% if (theme.clickBoom){ %>
|
||||
<canvas width="1777" height="841"
|
||||
style="position: fixed; left: 0px; top: 0px; z-index: 999; pointer-events: none;"></canvas>
|
||||
<% } %>
|
||||
<% if (theme.clickBoom2){ %>
|
||||
<canvas class="fireworks"></canvas>
|
||||
<style>
|
||||
.fireworks {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 99999;
|
||||
pointer-events: none;
|
||||
}
|
||||
</style>
|
||||
<% } %>
|
||||
<div id="app">
|
||||
<main class="content on">
|
||||
<%- body %>
|
||||
@@ -40,6 +24,23 @@
|
||||
<% if (theme.music&&theme.music.enable){ %>
|
||||
<%- partial('_partial/music') %>
|
||||
<% } %>
|
||||
|
||||
<% if (theme.click_effect===2){ %>
|
||||
<canvas class="fireworks"></canvas>
|
||||
<style>
|
||||
.fireworks {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 99999;
|
||||
pointer-events: none;
|
||||
}
|
||||
</style>
|
||||
<% } %>
|
||||
<% if (theme.click_effect===3){ %>
|
||||
<canvas width="1777" height="841"
|
||||
style="position: fixed; left: 0px; top: 0px; z-index: 99999; pointer-events: none;"></canvas>
|
||||
<% } %>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
Reference in New Issue
Block a user