Skip to content

Commit 5937b58

Browse files
committed
Remove Snow
1 parent 1f8a41a commit 5937b58

File tree

3 files changed

+0
-114
lines changed

3 files changed

+0
-114
lines changed

src/static/js/snow.js

Lines changed: 0 additions & 91 deletions
This file was deleted.

src/static/js/utils.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,6 @@ function handleSubmit(event, showLoading = false) {
8484
const starCount = currentStars;
8585

8686

87-
// TEMPORARY SNOW LOGIC //
88-
const parser = new DOMParser();
89-
const newDoc = parser.parseFromString(html, 'text/html');
90-
91-
const existingCanvas = document.getElementById('snow-canvas');
92-
document.body.innerHTML = newDoc.body.innerHTML;
93-
if (existingCanvas) {
94-
document.body.insertBefore(existingCanvas, document.body.firstChild);
95-
}
96-
// END TEMPORARY SNOW LOGIC //
9787

9888
// Wait for next tick to ensure DOM is updated
9989
setTimeout(() => {

src/templates/base.jinja

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,9 @@
3737
</title>
3838
<script src="https://cdn.tailwindcss.com"></script>
3939
<script src="/static/js/utils.js"></script>
40-
<script src="/static/js/snow.js"></script>
41-
<style>
42-
#snow-canvas {
43-
position: fixed;
44-
top: 0;
45-
left: 0;
46-
pointer-events: none;
47-
z-index: 10;
48-
width: 100%;
49-
height: 100%;
50-
}
51-
</style>
5240
{% block extra_head %}{% endblock %}
5341
</head>
5442
<body class="bg-[#FFFDF8] min-h-screen flex flex-col">
55-
<canvas id="snow-canvas"></canvas>
5643
{% include 'components/navbar.jinja' %}
5744
<!-- Main content wrapper -->
5845
<main class="flex-1 w-full">

0 commit comments

Comments
 (0)