mirror of
https://github.com/whscullin/apple1js.git
synced 2024-11-26 17:49:44 +00:00
Fix prefs, autoload.
This commit is contained in:
parent
996d13b3cd
commit
0366fc712b
@ -389,8 +389,10 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
el.checked = JSON.parse(val);
|
||||
});
|
||||
document.querySelectorAll('input[type=checkbox]').forEach(function(el) {
|
||||
el.addEventListener('change', function() {
|
||||
prefs.writePref(el.id, JSON.stringify(el.checked));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
turbotape = document.querySelector('#turbo_tape').checked;
|
||||
@ -438,12 +440,11 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
}
|
||||
}
|
||||
document.querySelector('#text_input').value = script;
|
||||
document.querySelector('#tape').css('width', 100);
|
||||
} else {
|
||||
aci.setData(tape.tracks);
|
||||
document.querySelector('#text_input').value = tape.script;
|
||||
doLoadText();
|
||||
}
|
||||
doLoadText();
|
||||
}
|
||||
document.querySelector('#tape_select').addEventListener('change', doTapeSelect);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user