1
1
mirror of https://github.com/foxsen/archbase.git synced 2026-07-04 10:57:55 +08:00

foxsen published a site update

This commit is contained in:
foxsen
2021-10-27 13:56:59 +00:00
parent 543a9ff965
commit 4c5f7e0a7c
229 changed files with 22406 additions and 0 deletions

View File

@@ -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 (jooyoung@psu.edu) 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');
}
}
}
});