inexorabletash / jsbasic

Applesoft BASIC in JavaScript
https://calormen.com/jsbasic
Other
187 stars 39 forks source link

"Select a sample..." not working #37

Closed nerun closed 2 years ago

nerun commented 3 years ago

Hey, what a great script!

Just one issue: i have downloaded to my PC, then click index.html, and it opens at browser. it works except for "Select a sample..." dropdown menu. It loads nothing. And the default sample ("Hello World") doesn't appear by default. The right white screen is blank.

Except for this issue, this Applesoft BASIC emulator works really great!

nerun commented 3 years ago

Addendum: the URL https://inexorabletash.github.io/jsbasic/ works fine! This issue just happens when download to my PC.

inexorabletash commented 2 years ago

You need to run a local web server. The behavior of web pages loaded from local files over file: URLs is basically unspecified and mostly broken. Whatever browser you're using would appear to prevent XMLHttpRequest to local resources, which is how the files are loaded.