瀏覽代碼

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');

部分文件因文件數量過多而無法顯示