Commit 60cda00 1 parent 5d3acd9 commit 60cda00 Copy full SHA for 60cda00
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
document . addEventListener ( "DOMContentLoaded" , function ( ) {
2
- const focusableElements = 'input, .btn, .close'
3
- const modal = document . querySelector ( '#bookmark-dialog' ) ;
4
- const firstFocusableElement = modal . querySelectorAll ( focusableElements ) [ 0 ] ;
5
- const focusableContent = modal . querySelectorAll ( focusableElements ) ;
6
- const lastFocusableElement = focusableContent [ focusableContent . length - 1 ] ;
7
- const shareViewButton = document . querySelector ( ".action-bookmark" )
2
+ var focusableElements = 'input, .btn, .close'
3
+ var modal = document . querySelector ( '#bookmark-dialog' ) ;
4
+ var firstFocusableElement = modal . querySelectorAll ( focusableElements ) [ 0 ] ;
5
+ var focusableContent = modal . querySelectorAll ( focusableElements ) ;
6
+ var lastFocusableElement = focusableContent [ focusableContent . length - 1 ] ;
7
+ var shareViewButton = document . querySelector ( ".action-bookmark" )
8
8
9
9
function onModalOpen ( ) {
10
10
document . addEventListener ( 'keydown' , function ( e ) {
You can’t perform that action at this time.
0 commit comments