fix: decode ai-lab.js from Base64 back to proper JavaScript
The entire ai-lab.js file (139KB) was stored as a single Base64-encoded
string instead of actual JavaScript. The browser loaded it as a script
but couldn't parse it — AiLab was never defined, so the batch sim panel
never rendered.
Decoded the file back to its proper 2531-line JavaScript source. The
file already includes auto-initialization at the bottom:
if (document.readyState === 'loading')
document.addEventListener('DOMContentLoaded', AiLab.init);
else AiLab.init();
Also removed the now-redundant DOMContentLoaded listener from
index.html since the JS file handles init itself.
This commit is contained in:
1 parent
9a46b0f80c
commit
86b96c09f9
2 files changed
+2531
-2
No files matched your search
+2531
-1
File diff suppressed because it is too large.
Load diff
@@ -197,6 +197,5 @@
|
||||
</div>
|
||||
|
||||
<script src="ai-lab.js"></script>
|
||||
<script>document.addEventListener('DOMContentLoaded', () => AiLab.init());</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user