Browse Source

tabindex=-1 on h2s

Heydon Pickering 8 năm trước cách đây
mục cha
commit
a8909fe90a

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

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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');

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác