Skip to content

Commit

Permalink
Add option to toggle feature index overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-lu-uw committed May 27, 2022
1 parent 3a1e9c7 commit 5a8c49a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ <h6 class="card-title">Accessibility Settings</h6>
<label class="form-check-label" for="announceMovement">Announce movement for screen readers</label>
</div>

<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="featureIndexOverlayOption">
<label class="form-check-label" for="featureIndexOverlayOption">Show feature index</label>
</div>

</div>
</div>

Expand Down
1 change: 1 addition & 0 deletions src/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function resetStorage() {
document.addEventListener("DOMContentLoaded", () => {
loadOptions();
document.getElementById("announceMovement").addEventListener("change", handleCheckboxChange);
document.getElementById("featureIndexOverlayOption").addEventListener("change", handleCheckboxChange);
document.getElementById("clear").addEventListener("click", resetStorage);
});

0 comments on commit 5a8c49a

Please sign in to comment.