소스 검색

tabindex=-1 on h2s

Heydon Pickering 8 년 전
부모
커밋
a8909fe90a
3개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      docs/js/dom-scripts.js
  2. 0 0
      docs/service-worker.js
  3. 1 0
      themes/infusion/static/js/dom-scripts.js

+ 1 - 0
docs/js/dom-scripts.js

@@ -59,6 +59,7 @@
 
     if (id) {
       var newHeading = heading.cloneNode(true);
+      newHeading.setAttribute('tabindex', '-1');
 
       var container = document.createElement('div');
       container.setAttribute('class', 'h2-container');

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
docs/service-worker.js


+ 1 - 0
themes/infusion/static/js/dom-scripts.js

@@ -59,6 +59,7 @@
 
     if (id) {
       var newHeading = heading.cloneNode(true);
+      newHeading.setAttribute('tabindex', '-1');
 
       var container = document.createElement('div');
       container.setAttribute('class', 'h2-container');

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.