File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import autocomplete from './algolia'
23
23
import mapTable from './map-table'
24
24
import expando from './expando'
25
25
import codeCopy from './code-copy'
26
- import skipNav from './skip-nav'
27
26
28
27
feedback ( )
29
28
accordion ( )
@@ -48,5 +47,4 @@ searchBar()
48
47
glightbox ( )
49
48
mapTable ( )
50
49
expando ( )
51
- codeCopy ( )
52
- skipNav ( )
50
+ codeCopy ( )
Original file line number Diff line number Diff line change 1
- const button =
2
- document . createElement ( 'skiplink' ) ;
1
+ const button = document . createElement ( 'skiplink' ) ;
3
2
button . textContent = 'Skip to main content' ;
4
3
5
- button . addEventListener ( 'focus-visible' , => {
6
- button. style . display = 'inline-block' ;
7
- } ) ;
4
+ button . addEventListener ( 'focus' , ( keypress ) => {
5
+ button . style . display = 'inline-block' ;
6
+ } ) ;
8
7
9
- button . addEventListener ( 'focus-invisible' , => {
8
+ button . addEventListener ( 'blur' , ( keypress ) => {
10
9
button . style . display = 'none' ;
11
- } ) ;
10
+ } ) ;
12
11
12
+ document . body . appendChild ( button )
Original file line number Diff line number Diff line change 80
80
< link rel ="stylesheet " href ="{{ '/assets/algolia.css' | relative_url }} ">
81
81
</ head >
82
82
< body >
83
- < a href ="#breadcrumbs__link " class ="skiplink "> Skip to main content</ a >
83
+ < a href ="#{{ page.title | downcase | split: " " | join:"-" }} " class="skiplink"> Skip to main content</ a >
84
84
< div id ="consent-manager "> </ div >
85
85
{{ content }}
86
86
< a class ="back-scrolling " data-back-scrolling data-active-class ="back-scrolling--active ">
You can’t perform that action at this time.
0 commit comments