added more algorithms

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Jürg Hallenbarter
2026-04-27 17:08:24 +00:00
parent d78ef16bff
commit 9a9080c155
10 changed files with 278 additions and 16 deletions

View File

@@ -7,11 +7,25 @@
<script id="sketch"></script>
<script>
const params = new URLSearchParams(window.location.search);
const sketchName = "sketches/" + params.get('sketch');
let sketchName = "sketches/" + params.get('sketch');
if (sketchName == "sketches/") {
sketchName = "sketches/" + params.get('sketches');
}
if (sketchName) {
console.log(sketchName+" found");
if (!sketchName.endsWith('.js')) {
sketchName += '.js';
}
const script = document.getElementById('sketch');
script.src = sketchName;
}
</script>
</body>
<style>
body {
margin: 0;
overflow: hidden;
}
</style>
</html>