mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
update particles on totp and login page
This commit is contained in:
parent
629d7a3554
commit
fbef17178f
2 changed files with 14 additions and 4 deletions
2
src/ui/templates/login.html
vendored
2
src/ui/templates/login.html
vendored
|
|
@ -204,7 +204,7 @@
|
|||
renderer: 'svg',
|
||||
loop: true,
|
||||
autoplay: true,
|
||||
path: "json/PARTICLES.json" // the path to the animation json
|
||||
path: "json/particles.json" // the path to the animation json
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
16
src/ui/templates/totp.html
vendored
16
src/ui/templates/totp.html
vendored
|
|
@ -10,6 +10,8 @@
|
|||
<link rel="stylesheet" href="css/dashboard.css" />
|
||||
<link rel="stylesheet" href="css/login.css" />
|
||||
<script defer src="./js/totp.js" nonce="{{ script_nonce }}"></script>
|
||||
<script src="js/lottie-web.min.js" defer nonce="{{ script_nonce }}"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div data-loader
|
||||
|
|
@ -108,10 +110,9 @@
|
|||
<!-- end form -->
|
||||
<!-- particles -->
|
||||
<div class="-z-10 fixed bg-primary">
|
||||
<div id="particles-js" class="login-img [&>*]:bg-primary"></div>
|
||||
<div id="lottie-particles" data-lottie="/lotties/PARTICLES.json" class="fixed top-0 left-0 w-full h-full login-img [&>*]:bg-primary"></div>
|
||||
</div>
|
||||
</main>
|
||||
<script src="js/tsparticles.bundle.min.js" nonce="{{ script_nonce }}"></script>
|
||||
<script nonce="{{ script_nonce }}">
|
||||
class Loader {
|
||||
constructor() {
|
||||
|
|
@ -187,7 +188,16 @@
|
|||
|
||||
const setLoader = new Loader();
|
||||
const setFlash = new FlashMsg();
|
||||
tsParticles.loadJSON("particles-js", "json/particles.json");
|
||||
|
||||
window.addEventListener("load", () => {
|
||||
lottie.loadAnimation({
|
||||
container: document.querySelector("#lottie-particles"), // the dom element that will contain the animation
|
||||
renderer: 'svg',
|
||||
loop: true,
|
||||
autoplay: true,
|
||||
path: "json/particles.json" // the path to the animation json
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in a new issue