-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Built site for [email protected]: 85339bd
- Loading branch information
Showing
86 changed files
with
408 additions
and
657 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
articles/UsingPlatformConfig_files/accessible-code-block-0.0.1/empty-anchor.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Hide empty <a> tag within highlighted CodeBlock for screen reader accessibility (see https://github.com/jgm/pandoc/issues/6352#issuecomment-626106786) --> | ||
// v0.0.1 | ||
// Written by JooYoung Seo ([email protected]) and Atsushi Yasumoto on June 1st, 2020. | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
const codeList = document.getElementsByClassName("sourceCode"); | ||
for (var i = 0; i < codeList.length; i++) { | ||
var linkList = codeList[i].getElementsByTagName('a'); | ||
for (var j = 0; j < linkList.length; j++) { | ||
if (linkList[j].innerHTML === "") { | ||
linkList[j].setAttribute('aria-hidden', 'true'); | ||
} | ||
} | ||
} | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.