Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jump To Content: Add menu button to examples to implement WCAG bypass blocks requirement #1923

Merged
merged 17 commits into from
Jul 18, 2021
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"npm"
],
"words": [
"accesskey",
"Accesskey",
"activedescendants",
"affordance",
"alertdialog",
Expand Down Expand Up @@ -99,6 +101,7 @@
"jarosewli",
"Jèrôme",
"Jinyuan",
"jumpto",
"Kasper",
"kbdshortcuts",
"Kowno",
Expand Down
11 changes: 11 additions & 0 deletions examples/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,14 @@
});
}
})();

// Add jumpto.js to examples
(function () {
let ref = window.location.href.split('examples')[0];
if (ref) {
let head = document.getElementsByTagName('head')[0];
let scriptNode = document.createElement('script');
scriptNode.setAttribute('src', ref + 'examples/js/jumpto.js');
head.appendChild(scriptNode);
}
})();
Loading