Move static resources into their own directories

This commit is contained in:
csd4ni3l
2025-11-01 18:13:09 +01:00
parent e7293aeb09
commit cf70384239
10 changed files with 16 additions and 15 deletions

View File

@@ -8,7 +8,7 @@
<link href="https://fonts.googleapis.com/css2?family=New Rocker&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
<script src="https://unpkg.com/kaplay@3001.0.12/dist/kaplay.js"></script>
<script src="/static/pumpkin.js"></script>
<script src="/static/js/pumpkin.js"></script>
<title>{% block title %} {% endblock %}</title>
<style>
.spider-web-1 {

View File

@@ -57,7 +57,7 @@ function update() {
let year = current_time.getFullYear();
const halloween_time = new Date(year, 9, 31);
const after_halloween = new Date(year, 15, 1);
const after_halloween = new Date(year, 10, 1);
if (current_time > halloween_time) {
if (current_time < after_halloween) {
@@ -65,7 +65,7 @@ function update() {
return;
}
else {
halloween.setFullYear(year + 1);
halloween_time.setFullYear(year + 1);
}
}

View File

@@ -31,9 +31,9 @@
<canvas width="1280", height="720" id="canvas"></canvas>
</div>
</div>
<script src="/static/gameui.js"></script>
<script src="/static/game.js"></script>
<script src="/static/pumpkin_memory.js"></script>
<script src="/static/js/gameui.js"></script>
<script src="/static/js/game.js"></script>
<script src="/static/js/pumpkin_memory.js"></script>
<script>
window.addEventListener("DOMContentLoaded", () => {
start_game();

View File

@@ -30,9 +30,9 @@
<canvas width="1280", height="720" id="canvas"></canvas>
</div>
</div>
<script src="/static/gameui.js"></script>
<script src="/static/game.js"></script>
<script src="/static/pumpkin_roll.js"></script>
<script src="/static/js/gameui.js"></script>
<script src="/static/js/game.js"></script>
<script src="/static/js/pumpkin_roll.js"></script>
<script>
window.addEventListener("DOMContentLoaded", () => {
start_game();