fixed and sorted/added comments to L-System

This commit is contained in:
Jürg Hallenbarter
2026-04-27 18:11:48 +00:00
parent 9a9080c155
commit f44a6e6892
5 changed files with 243 additions and 126 deletions

View File

@@ -30,7 +30,13 @@
const sketches = sketchList.split(',');
for (let sketch of sketches) {
const iframe = document.createElement('iframe');
iframe.src = `loader.html?sketch=${encodeURIComponent(sketch)}`;
iframe.src = `loader.html?sketches=${encodeURIComponent(sketch.trim())}`;
iframe.onload = () => {
console.log(`Loaded iframe for ${sketch}`);
};
iframe.onerror = () => {
console.error(`Failed to load iframe for ${sketch}`);
};
// Apply size if provided
if (sketchSize) {
iframe.style.width = sketchSize + 'px';
@@ -41,6 +47,8 @@
}
document.body.appendChild(iframe);
}
} else {
console.error('No sketches parameter provided');
}
</script>
</html>