Skip to content

Commit

Permalink
Merge pull request #6 from jdorfman/jd/javascript-errors
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
Kynlos authored Jan 31, 2024
2 parents 311492d + d5e9190 commit 2582b95
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ <h1>

<!-- Command Context Dropdown -->
<div class="checkbox-group">
<label>
<label style="display: block; margin-bottom: 10px;">
Command Context (Click an item to select):
</label>
<div class="context-options" id="contextOptions">
Expand Down Expand Up @@ -189,7 +189,7 @@ <h1>
<div class="modal" id="jsonModal">
<div class="modal-content">
<!-- Ensure class="close" is present -->
<span class="close">
<span class="close" onclick="document.getElementById('jsonModal').style.display='none'">
×
</span>
<pre id="jsonDisplay"></pre>
Expand All @@ -198,6 +198,14 @@ <h1>
</button>
</div>
</div>

<script>
document.addEventListener('keydown', function(event) {
if (event.key === 'Escape') {
document.getElementById('jsonModal').style.display = 'none';
}
});
</script>

<!-- Create Command Button -->
<button id="createCommand" title="Click to create the command and prompt to save as a JSON file.">
Expand Down

0 comments on commit 2582b95

Please sign in to comment.