mirror of
https://github.com/inexorabletash/jsbasic.git
synced 2025-07-08 15:23:54 +00:00
Add script example
This commit is contained in:
4
index.js
4
index.js
@ -1,5 +1,5 @@
|
||||
|
||||
window.onload = function () {
|
||||
window.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
var $ = function (s) { return document.querySelector(s); };
|
||||
|
||||
@ -240,4 +240,4 @@ window.onload = function () {
|
||||
} else {
|
||||
loadFile('samples/sample.default.txt', setSource);
|
||||
}
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user