🚀 feat: clickBoom2

This commit is contained in:
沈宇
2020-06-01 18:44:02 +08:00
parent c0ef5fc0ad
commit f0adf9a62e
5 changed files with 177 additions and 17 deletions

View File

@@ -67,6 +67,11 @@
<% if (theme.clickBoom){ %>
<%- js('/js/clickBoom') %>
<% } %>
<!-- ClickBoom2 -->
<% if (theme.clickBoom2){ %>
<script src="https://cdn.jsdelivr.net/npm/animejs@latest/anime.min.js"></script>
<%- js('/js/clickBoom2') %>
<% } %>
<!-- CodeCopy -->
<% if (theme.copy_btn == true) { %>
<%- css('/css/clipboard') %>

View File

@@ -2,7 +2,20 @@
<body>
<% if (theme.clickBoom){ %>
<canvas width="1777" height="841" style="position: fixed; left: 0px; top: 0px; z-index: 999; pointer-events: none;"></canvas>
<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">