Skip to content

Commit

Permalink
Remove 'play' Checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
okaxaki committed Dec 2, 2023
1 parent 627ab24 commit 8a75f48
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 14 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "msxplay-js",
"version": "1.7.2",
"version": "1.7.3",
"description": "",
"type": "module",
"engines": {
Expand Down
7 changes: 3 additions & 4 deletions public/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,11 @@
<button onclick="selectSample()">
<p><i class="material-icons">library_music</i><span> Sample</span></p>
</button>
<div style="display:inline-block;width:32px;"></div>
<button onclick="compile()">
<div style="display:inline-block;width:16px;"></div>
<button onclick="compile(true)">
<p><i class="material-icons">playlist_play</i><span> Compile</span></p>
</button>
<input id="autoplay" type="checkbox" checked /><label for="autoplay">&nbsp;play</label>
<div style="display:inline-block;width:12px;"></div>
<div style="display:inline-block;width:16px;"></div>
<button onclick="download()" class="foldable">
<p><i class="material-icons">file_download</i><span> Export</span></p>
</button>
Expand Down
2 changes: 0 additions & 2 deletions public/js/ace-defines.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@
next: _p(rule.next),
});
}
console.log(`${prefix}$${key}`);
res[`${prefix}$${key}`] = newRules;
}
return res;
Expand Down Expand Up @@ -255,7 +254,6 @@
...createMode1States(),
};
this.normalizeRules();
console.log(this.$rules);
};
oop.inherits(MGSCHighlightRules, TextHighlightRules);
exports.MGSCHighlightRules = MGSCHighlightRules;
Expand Down
6 changes: 1 addition & 5 deletions public/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,6 @@ function editorCoverButtonPressed() {
}

function compile(autoplay) {
if (autoplay === undefined) {
autoplay = document.getElementById("autoplay").checked;
}

if (contentChanged) {
storeToLocalStorage();
contentChanged = false;
Expand Down Expand Up @@ -728,7 +724,7 @@ async function onDrop(e) {
e.preventDefault();
if (0 < e.dataTransfer.files.length) {
if (await loadFromFile(e.dataTransfer.files[0])) {
compile();
compile(true);
}
}
}
Expand Down

0 comments on commit 8a75f48

Please sign in to comment.