added loader file

This commit is contained in:
Jürg Hallenbarter
2026-04-14 11:23:15 +00:00
parent 5259410d77
commit f13cc6b27d
6 changed files with 22 additions and 11 deletions

17
loader.html Normal file
View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.3.1/p5.min.js"></script>
</head>
<body>
<script id="sketch"></script>
<script>
const params = new URLSearchParams(window.location.search);
const sketchName = "sketches/" + params.get('sketch');
if (sketchName) {
const script = document.getElementById('sketch');
script.src = sketchName;
}
</script>
</body>
</html>