Skip to content

Commit

Permalink
localize JS
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Morris committed Feb 17, 2024
1 parent 75de3a8 commit dc72766
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
16 changes: 1 addition & 15 deletions _includes/table.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,4 @@ <h2 id="test-cases" class="table-heading">Test cases</h2>
</div>
<p><a class="button" href="test">View test case page</a></p>

<script src="https://unpkg.com/[email protected]/dist/plyr.min.js"></script>
<script>
var players = Plyr.setup(".js-player", {
controls: ["play", "mute"],
});

focusDrop(document.querySelectorAll(".js-player"));
focusDrop(document.querySelectorAll(".plyr--full-ui"));

function focusDrop(el) {
for (i = 0; i < el.length; i++) {
el[i].setAttribute("tabindex", -1);
}
}
</script>
<script async src="{{ '/js/plyr.js' | prepend: site.baseurl }}"></script>
1 change: 1 addition & 0 deletions js/plyr.js

Large diffs are not rendered by default.

0 comments on commit dc72766

Please sign in to comment.