PageSourceSearch

https://www.ddpmod.gov.in/themes/olivero/js/tabaccess.js?v=1790255197

js ddpmod.gov.in collected 2026-09-25 04:42:59 UTC 27,332 bytes, 671 lines download raw bytes

1
2// Get all the switch inputs
3const switches = document.querySelectorAll('#cookieConsentForm .form-check-input[type="checkbox"][role="switch"]');
4// Attach event listeners to each switch
5switches.forEach(switchInput => {
6  switchInput.addEventListener('keypress', function(event) {
7    // Check if the pressed key is Enter (key code 13)
8    if (event.keyCode === 13) {
9      // Toggle the checkbox state
10      this.checked = !this.checked;
11    }
12  });
13});
14const modalContent = document.querySelector('.ebcf_modal-content');
15  if(modalContent){
16    const focusableElements = modalContent.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
17
18    modalContent.addEventListener('keydown', function(event) {
19      if (event.key === 'Tab' || event.keyCode === 9) {
20        const focusedElementIndex = Array.from(focusableElements).indexOf(document.activeElement);
21        const lastFocusableElementIndex = focusableElements.length - 1;
22
23        if (event.shiftKey) {
24          // Shift + Tab
25          if (focusedElementIndex === 0) {
26            // If the first element is focused, move focus to the last element
27            event.preventDefault();
28            focusableElements[lastFocusableElementIndex].focus();
29          }
30        } else {
31          // Tab
32          if (focusedElementIndex === lastFocusableElementIndex) {
33            // If the last element is focused, move focus to the first element
34            event.preventDefault();
35            focusableElements[0].focus();
36          }
37        }
38      }
39    });
40  }
41  const closeButton = document.querySelector('.ebcf_close');
42  if(closeButton){
43    closeButton.addEventListener('keydown', function(event) {
44      if (event.key === 'Enter' || event.keyCode === 13) {
45        // Close the modal
46        closeButton.click();
47      }
48    });
49  }
50    // document.addEventListener('DOMContentLoaded', function() {
51    //     var menuButton = document.querySelector('.mobile-nav-button');
52
53    //     // Add click event listener to the menu button
54    //     menuButton.addEventListener('keydown', function(event) {
55    //         var ariaexpanded = menuButton.getAttribute('aria-expanded');
56    //         if(ariaexpanded === "true"){
57    //             //var link = document.querySelector('[href="#main-content"]');
58    //             var link = document.querySelector('[href="/ministry/about-us"]');
59    //             //var link = document.querySelector('#header');
60    //             //document.querySelector('[href="/ministry/about-us"]').focus();
61    //         }else if(ariaexpanded !== "true" && (event.shiftKey && event.key === 'Tab')){
62    //           var accssbtn = document.querySelector('.five-navbar button');
63    //           accssbtn.focus();
64    //         }else{
65    //           if (event.key === 'Tab' && document.activeElement === menuButton) {
66    //             //event.preventDefault(); // Prevent default tab behavior
67    //             var homefirstphoto = document.querySelector('#block-olivero-homefirstphoto img');//alert(homefirstphoto);
68    //             if(link){
69    //               link.blur();
70    //             }
71    //             if(homefirstphoto){
72    //               homefirstphoto.focus(); // Focus the <img> element with class 'home'
73    //             }
74    //             return true;
75    //           }else{
76    //             if(event.shiftKey){
77    //               var link = document.querySelector('[href="/connect/contact-details"]');
78    //             }else{
79    //               //var link = document.querySelector('[href="/about-us"]');
80    //               var link = document.querySelector('[href="/ministry/about-us"]');
81    //             }
82    //           }
83    //         }
84    //         if (event.key === 'Tab' || event.keyCode === 9){
85    //           event.preventDefault();
86    //           link.focus();
87    //         }
88    //     });
89
90    //     var firslink = document.querySelector('[href="/ministry/about-us"]');
91    //     // Add event listener to the link for focus event
92    //     if(firslink){
93    //       firslink.addEventListener('keydown', function(event) {
94    //         // Set focus on the button when the link receives focus
95    //         if (event.shiftKey && (event.key === 'Tab' || event.keyCode === 9)){
96    //           event.preventDefault();
97    //           var menuButton = document.querySelector('.mobile-nav-button');
98    //           if (menuButton) {
99    //               menuButton.focus();
100    //           } else {
101    //               console.error('Menu button not found.');
102    //           }
103    //         }
104    //       });
105    //     }
106    //     var lastlink = document.querySelector('[href="/connect/contact-details"]');
107    //     // Add event listener to the link for focus event
108    //     if(lastlink){
109    //       lastlink.addEventListener('keydown', function(event) {
110    //         // Set focus on the button when the link receives focus
111    //         if (!event.shiftKey && (event.key === 'Tab' || event.keyCode === 9)){
112    //           event.preventDefault();
113    //           var menuButton = document.querySelector('.mobile-nav-button');
114    //           if (menuButton) {
115    //               menuButton.focus();
116    //           } else {
117    //               console.error('Menu button not found.');
118    //           }
119    //         }else if(event.shiftKey && event.key === 'Tab' ){
120    //           lastlink.focus();
121    //         }
122    //       });
123    //     }
124
125    //   menuButton.addEventListener('keydown', function(event) {
126    //     if(event.shiftKey && event.key === 'Tab' ){
127    //       var lastlink = document.querySelector('[href="/connect/contact-details"]');
128    //       event.preventDefault();
129    //       lastlink.focus();
130    //     }
131    //   });
132    // });
133    document.addEventListener('DOMContentLoaded', function() {
134      var tabhit = 0;
135      var link = document.querySelector('a[rel="home"]');
136      //if (document.activeElement !== link) {alert(1);
137        var html = document.querySelector('html');
138        html.addEventListener('keydown', function(event) {
139          tabhit++;
140          // Set focus on the button when the link receives focus
141          if (event.key === 'Tab' && tabhit === 1){
142            if (document.activeElement !== link) {
143              event.preventDefault();
144              link.focus();
145            }
146          }
147        });
148      //}
149    });
150
151    
152    const myModal = document.getElementById('myModal');
153    if(myModal){
154      myModal.addEventListener('keydown', function(event) {
155          const closeBtn = myModal.querySelector('#myModal .close');
156        if (!event.shiftKey && event.key === 'Tab') {
157          const modalContent = myModal.querySelector('.modal-content');
158          const lastIconsImg = modalContent.querySelector('.icons-img:last-of-type');
159          // If focus is on the last focusable element within modal content, shift focus to close button
160          //if (document.activeElement === lastIconsImg) {
161            event.preventDefault(); // Prevent default tab behavior
162            closeBtn.focus();
163          //}
164        }else if(event.shiftKey && event.key === 'Tab'){
165          event.preventDefault();
166          closeBtn.focus();
167        }
168      });
169    }
170
171    const myModal21 = document.getElementById('myModal21');
172    if(myModal21){
173      myModal21.addEventListener('keydown', function(event) {
174        const closeBtn = myModal21.querySelector('#myModal21 .close21');
175        if (!event.shiftKey && event.key === 'Tab') {
176          const modalContent = myModal21.querySelector('.modal-content');
177          const lastIconsImg = modalContent.querySelector('.icons-img:last-of-type');
178          // If focus is on the last focusable element within modal content, shift focus to close button
179          //if (document.activeElement === lastIconsImg) {
180            event.preventDefault(); // Prevent default tab behavior
181            closeBtn.focus();
182          //}
183        }else if(event.shiftKey && event.key === 'Tab'){
184          event.preventDefault();
185          closeBtn.focus();
186        }
187      });
188    }
189    const myModal101 = document.getElementById('myModal101');
190    if(myModal101){
191      myModal101.addEventListener('keydown', function(event) {
192        const closeBtn = myModal101.querySelector('#myModal101 .close');
193        if (!event.shiftKey && event.key === 'Tab') {
194          // If focus is on the last focusable element within modal content, shift focus to close button
195          //if (document.activeElement === lastIconsImg) {
196            event.preventDefault(); // Prevent default tab behavior
197            closeBtn.focus();
198          //}
199        }else if(event.shiftKey && event.key === 'Tab'){
200          event.preventDefault();
201          closeBtn.focus();
202        }
203      });
204    }
205
206    const myModal01 = document.getElementById('myModal01');
207    if(myModal01){
208      myModal01.addEventListener('keydown', function(event) {
209        if (event.key === 'Tab') {
210          const closeBtn = myModal01.querySelector('#myModal01 .close01');
211          const modalContent = myModal01.querySelector('.modal-content');
212          const lastIconsImg = modalContent.querySelector('.icons-img:last-of-type');
213          // If focus is on the last focusable element within modal content, shift focus to close button
214          if (document.activeElement === lastIconsImg) {
215            event.preventDefault(); // Prevent default tab behavior
216            closeBtn.focus();
217          }
218        }
219      });
220    }
221
222    const myModal02 = document.getElementById('myModal02');
223    if(myModal02){
224      myModal02.addEventListener('keydown', function(event) {
225        if (event.key === 'Tab') {
226          const closeBtn = myModal02.querySelector('#myModal02 .close02');
227          const modalContent = myModal02.querySelector('.modal-content');
228          const lastIconsImg = modalContent.querySelector('.icons-img:last-of-type');
229          // If focus is on the last focusable element within modal content, shift focus to close button
230          if (document.activeElement === lastIconsImg) {
231            event.preventDefault(); // Prevent default tab behavior
232            closeBtn.focus();
233          }
234        }
235      });
236    }
237
238    const myModal03 = document.getElementById('myModal03');
239    if(myModal03){
240      myModal03.addEventListener('keydown', function(event) {
241        const closeBtn = myModal03.querySelector('#myModal03 .close03');
242        if (!event.shiftKey && event.key === 'Tab') {
243          const modalContent = myModal03.querySelector('.modal-content');
244          const lastIconsImg = modalContent.querySelector('.icons-img:last-of-type');
245          // If focus is on the last focusable element within modal content, shift focus to close button
246          //if (document.activeElement === lastIconsImg) {
247            event.preventDefault(); // Prevent default tab behavior
248            closeBtn.focus();
249          //}
250        }else if (event.shiftKey && event.key === 'Tab') {
251          if (document.activeElement === closeBtn) {
252            event.preventDefault();
253            //lastIconsImg.focus();
254            closeBtn.focus();
255          }
256        }
257      });
258    }
259
260    const myModal04 = document.getElementById('myModal04');
261    if(myModal04){
262      myModal04.addEventListener('keydown', function(event) {
263        if (event.key === 'Tab') {
264          const closeBtn = myModal04.querySelector('#myModal04 .close04');
265          const modalContent = myModal04.querySelector('.modal-content');
266          const lastIconsImg = modalContent.querySelector('.icons-img:last-of-type');
267          // If focus is on the last focusable element within modal content, shift focus to close button
268          if (document.activeElement === lastIconsImg) {
269            event.preventDefault(); // Prevent default tab behavior
270            closeBtn.focus();
271          }
272        }
273      });
274    }
275
276    // Get all modals on the page
277    const modals = document.querySelectorAll('.modal');
278    if (modals) {
279      modals.forEach(modal => {
280        modal.addEventListener('keydown', function(event) {
281          const closeBtn = modal.querySelector('.close');
282          const modalContent = modal.querySelector('.modal-content');
283          const lastIconsImg = modalContent.querySelector('.close-modalboxs1:last-of-type');
284          if (!event.shiftKey && event.key === 'Tab') {
285            //if (document.activeElement === lastIconsImg) {
286              event.preventDefault();
287              closeBtn.focus();
288            //}
289          }else if (event.shiftKey && event.key === 'Tab') {
290            //if (document.activeElement === closeBtn) {
291              event.preventDefault();
292              //lastIconsImg.focus();
293              closeBtn.focus();
294            //}
295          }
296        });
297      });
298    }
299
300
301
302    const modal1 = document.getElementById('modal1');
303    const modalBtn1 = document.getElementById('modalBtn1');
304    if(modalBtn1){
305      modalBtn1.addEventListener('keydown', function(event) {
306        if (event.key === 'Enter') {
307          modal1.focus();
308        }
309      });
310    }
311    if(modal1){
312      modal1.addEventListener('keydown', function(event) {
313        const closeBtn = modal1.querySelector('.close');
314        if (!event.shiftKey && event.key === 'Tab') {
315          //const closeBtn = modal1.querySelector('.close-modalboxs span');
316          const modalContent = modal1.querySelector('.modal-content');
317          // If focus is on the last focusable element within modal content, shift focus to close button
318          // if (document.activeElement === modalContent.lastElementChild) {
319          //     event.preventDefault(); // Prevent default tab behavior
320          //     closeBtn.focus();
321          // }
322          event.preventDefault();
323          closeBtn.focus();
324        }else if(event.shiftKey && event.key === 'Tab'){
325          event.preventDefault();
326          closeBtn.focus();
327        }
328      });
329    }
330    const modal2 = document.getElementById('modal2');
331    const modalBtn2 = document.getElementById('modalBtn2');
332    if(modalBtn2){
333      modalBtn2.addEventListener('keydown', function(event) {
334        if (event.key === 'Enter') {
335          modal2.focus();
336        }
337      });
338    }
339    if(modal2){
340      modal2.addEventListener('keydown', function(event) {
341        if (event.key === 'Tab') {
342          const closeBtn = modal2.querySelector('.close-modalboxs span');
343          const modalContent = modal2.querySelector('.modal-content');
344          // If focus is on the last focusable element within modal content, shift focus to close button
345          if (document.activeElement === modalContent.lastElementChild) {
346              event.preventDefault(); // Prevent default tab behavior
347              closeBtn.focus();
348          }
349          event.preventDefault();
350          closeBtn.focus();
351        }
352      });
353    }
354
355    const modal3 = document.getElementById('modal3');
356    const modalBtn3 = document.getElementById('modalBtn3');
357    if(modalBtn3){
358      modalBtn3.addEventListener('keydown', function(event) {
359        if (event.key === 'Enter') {
360          modal3.focus();
361        }
362      });
363    }
364    if(modal3){
365      modal3.addEventListener('keydown', function(event) {
366        if (event.key === 'Tab') {
367          const closeBtn = modal3.querySelector('.close-modalboxs span');
368          const modalContent = modal3.querySelector('.modal-content');
369          // If focus is on the last focusable element within modal content, shift focus to close button
370          if (document.activeElement === modalContent.lastElementChild) {
371              event.preventDefault(); // Prevent default tab behavior
372              closeBtn.focus();
373          }
374          event.preventDefault();
375          closeBtn.focus();
376        }
377      });
378    }
379    var closeModal = document.querySelectorAll('.close');
380    var allModal = document.querySelectorAll('.modal');
381    closeModal.forEach(function(item) {
382      item.addEventListener('keydown', function(event) {
383        if (event.key === 'Enter') {
384          if(modal1){
385            modal1.style.display = 'none';
386          }
387          if(modal2){
388            modal2.style.display = 'none';
389          }
390          if(modal3){
391            modal3.style.display = 'none';
392          }
393          if(myModal){
394            myModal.style.display = 'none';
395          }
396          if(allModal){
397            allModal.forEach(function(modal) {
398              modal.removeAttribute("aria-modal");
399              modal.style.display = 'none';
400            });
401          }
402        }
403      });
404    });
405    var close21Modal = document.querySelectorAll('.close21');
406    close21Modal.forEach(function(item) {
407      item.addEventListener('keydown', function(event) {
408        if (event.key === 'Enter') {
409          if(myModal21){
410            myModal21.removeAttribute("aria-modal");
411            myModal21.style.display = 'none';
412          }
413        }
414      });
415    });
416    var close01Modal = document.querySelectorAll('.close01');
417    close01Modal.forEach(function(item) {
418      item.addEventListener('keydown', function(event) {
419        if (event.key === 'Enter') {
420          if(myModal01){
421            myModal01.style.display = 'none';
422          }
423        }
424      });
425    });
426    var close02Modal = document.querySelectorAll('.close02');
427    close02Modal.forEach(function(item) {
428      item.addEventListener('keydown', function(event) {
429        if (event.key === 'Enter') {
430          if(myModal02){
431            myModal02.style.display = 'none';
432          }
433        }
434      });
435    });
436    var close03Modal = document.querySelectorAll('.close03');
437    close03Modal.forEach(function(item) {
438      item.addEventListener('keydown', function(event) {
439        if (event.key === 'Enter') {
440          if(myModal03){
441            myModal03.style.display = 'none';
442          }
443        }
444      });
445    });
446    var close04Modal = document.querySelectorAll('.close04');
447    close04Modal.forEach(function(item) {
448      item.addEventListener('keydown', function(event) {
449        if (event.key === 'Enter') {
450          if(myModal04){
451            myModal04.style.display = 'none';
452          }
453        }
454      });
455    });
456
457    //var connectmodallinks = document.querySelectorAll('.region--connect-with-modal .views-view-responsive-grid__item a');
458    var connectmodallinks = document.querySelectorAll('.right-first-sections .toggle-footer a');
459    var toggleFooterLinks = document.querySelectorAll('.right-first-sections .toggle-footer a');
460    var lastconnectmodallink = connectmodallinks[connectmodallinks.length- 1];
461    var connectmodalbtn = document.querySelectorAll('.right-home-section #myBtn1 .dropbtn1');
462    if(lastconnectmodallink){
463      lastconnectmodallink.addEventListener('keydown', function(event) {
464        if (!event.shiftKey && event.key === 'Tab') {
465          connectmodalbtn[0].focus();
466        }else if(event.shiftKey && event.key === 'Tab'){
467          toggleFooterLinks[0].focus();
468        }
469      });
470    }
471    
472    // var toggleFooterLinks = document.querySelectorAll('.right-first-sections .toggle-footer a');
473    // var firstLink = toggleFooterLinks[0];
474    // var secondLink = toggleFooterLinks[1];
475
476    // document.addEventListener('keydown', function(event) {
477    //   var toggleFooterLinks = document.querySelectorAll('.right-first-sections .toggle-footer a');
478    //   var firstLink = toggleFooterLinks[0];
479    //   var secondLink = toggleFooterLinks[1];
480
481    //   if (event.shiftKey && event.key === 'Tab' && document.activeElement === firstLink) {alert(firstLink);
482    //       // Shift + Tab pressed on the first link, focus the second link
483    //       event.preventDefault(); // Prevent default tab behavior
484    //       firstLink.focus();
485    //   } else if (!event.shiftKey && event.key === 'Tab' && document.activeElement === secondLink) {alert(2);
486    //       // Tab pressed on the second link, focus the first link
487    //       event.preventDefault(); // Prevent default tab behavior
488    //       secondLink.focus();
489    //   }
490    // });
491    
492    // document.querySelector('#modal3 .close').addEventListener('click', function() {
493    //   document.getElementById('modal3').style.display = 'none';
494    // });
495    
496  const spanReadMoreButtons = document.querySelectorAll('.span-read-more');
497  if (spanReadMoreButtons.length > 0) {
498    spanReadMoreButtons.forEach((spanReadMoreButton, index) => {
499      spanReadMoreButton.addEventListener('keydown', function(event) {
500        if (event.key === 'Enter') {
501          const allModals = document.querySelectorAll('.modal');
502          if (allModals[index]) {
503            allModals[index].style.display = "block";
504          }
505        }
506      });
507    });
508  }
509  if(document.getElementById("twitterIcon")){
510    document.getElementById("twitterIcon").addEventListener("keydown", function(event) {
511      if (event.key === "Enter") {
512        this.click();
513      }
514    });
515  }
516  if(document.getElementById("instagramIcon")){
517    document.getElementById("instagramIcon").addEventListener("keydown", function(event) {
518      if (event.key === "Enter") {
519        this.click();
520      }
521    });
522  }
523  if(document.getElementById("facebookIcon")){
524    document.getElementById("facebookIcon").addEventListener("keydown", function(event) {
525      if (event.key === "Enter") {
526        this.click();
527      }
528    });
529  }
530  if(document.getElementById("pinterestIcon")){
531    document.getElementById("pinterestIcon").addEventListener("keydown", function(event) {
532      if (event.key === "Enter") {
533        this.click();
534      }
535    });
536  }
537  
538  $(document).on("click",".glightbox",function(){
539    $(this).addClass('gl-focused');
540    $('.gclose').each(function(index) {
541      $(this).on('keydown', function(event) {
542        if (event.key === 'Enter') {
543          event.preventDefault();
544          $('.gl-focused').focus();
545          $('.gl-focused').removeClass('gl-focused');
546          $('.gclose').click();
547          event.preventDefault();
548        }
549      });
550    });
551  });
552  // setTimeout(function(){
553  //   const pmquotesframe = document.getElementById('main-content');
554  //   const firstslider = document.querySelector('.flex-active-slide');//console.log(firstslider);
555  //   if(pmquotesframe){//console.log("1111");
556  //     pmquotesframe.addEventListener('keydown', function(event) {//console.log("222");
557  //       if (event.key === 'Tab') {//console.log("333");
558  //         firstslider.focus();
559  //       }
560  //     });
561  //   }
562  // },2000);
563  // Trap focus inside the modal while it's open
564// document.getElementById("translate-plugin-target-language-list").addEventListener("keydown", function (event) {
565//   const modal = document.getElementById("translate-plugin-target-language-list");
566//   if (event.key === "Tab") {
567//       const focusableElements = modal.querySelectorAll("div.language-option");
568//       const firstFocusable = focusableElements[0];
569//       const lastFocusable = focusableElements[focusableElements.length - 1];
570
571//       // Trap focus inside modal: if the user is at the start or end, prevent wrapping
572//       if (event.shiftKey) { // Shift + Tab: Go backwards
573//           if (document.activeElement === firstFocusable) {
574//               lastFocusable.focus();
575//               event.preventDefault();
576//           }
577//       } else { // Tab: Go forwards
578//           if (document.activeElement === lastFocusable) {
579//               firstFocusable.focus();
580//               event.preventDefault();
581//           }
582//       }
583//   }
584// });second_url
585document.getElementById("translate-plugin-target-language-list").addEventListener("keydown", function (event) {
586  const modal = document.getElementById("translate-plugin-target-language-list");
587  const closeButton = document.getElementById("lang-img-dropbtn"); // Assuming your close button has this ID
588  const focusableElements = modal.querySelectorAll("div.language-option");
589  const firstFocusable = focusableElements[0];
590  const lastFocusable = focusableElements[focusableElements.length - 1];
591
592  if (event.key === "Tab") {
593    if (event.shiftKey) { // Shift + Tab: Go backwards
594      if (document.activeElement === firstFocusable) {
595        closeButton.focus(); // Focus the close button
596        event.preventDefault();
597      }
598    } else { // Tab: Go forwards
599      if (document.activeElement === lastFocusable) {
600        closeButton.focus(); // Focus the close button
601        event.preventDefault();
602      }
603    }
604  }
605});
606document.getElementById("lang-img-dropbtn").addEventListener("keydown", function (event) {
607  if (event.key === "Tab" && document.getElementById("translate-plugin-target-language-list").style.display == "block") {
608    const focusableElements = document.getElementsByClassName("language-option");
609    if (event.shiftKey) { // Shift + Tab: Go backwards
610      focusableElements[focusableElements.length - 1].focus();
611      event.preventDefault();
612    } else { // Tab: Go forwards
613      focusableElements[0].focus();
614      event.preventDefault();
615    }
616  }else if (event.key === "Enter"){
617    setTimeout(function(){
618      document.getElementById("lang-img-dropbtn").focus();
619      event.preventDefault();
620    },300);
621  }
622});
623
624setTimeout(function(){
625  const languageOptions = document.getElementsByClassName("language-option");
626  for (let i = 0; i < languageOptions.length; i++) {
627    languageOptions[i].addEventListener("keydown", function(event) {
628      if (event.key === "Enter") {
629        this.click();
630      }
631    });
632  }
633},1000);
634
635// var contactdlink = document.querySelectorAll("#primary-menu-item-123456 li a");
636// contactdlink[0].addEventListener("keydown", function (event) {
637//   if (event.key === "Tab") {
638//     contactdlink[1].focus();
639//   }
640// });
641// var menumobileplus = document.querySelectorAll(".mobile-nav-button");
642// menumobileplus[0].addEventListener("keydown", function (event) {
643//   if(!event.shiftKey && event.key === "Tab"){
644//     document.querySelectorAll("#flexslider-1 ol.flex-control-nav.flex-control-paging li a")[0].focus();
645//   }
646//   event.preventDefault();
647// });
648var menumobileclose = document.querySelectorAll("#mobilenavbutton");
649var menumobilehome = document.querySelectorAll("#block-olivero-main-menu ul.primary-nav__menu--level-1 li a");
650menumobileclose[0].addEventListener("keydown", function (event) {
651  if(!event.shiftKey && event.key === "Tab"){
652    menumobilehome[0].focus();
653  }else if(event.key === "Enter"){
654    $("#mobilenavbutton svg").trigger("click");
655    $(".mobile-nav-button")[0].focus();
656  }
657  event.preventDefault();
658});
659var nolinkmenu = document.querySelectorAll("#block-olivero-main-menu ul.primary-nav__menu--level-1 li.primary-nav__menu-item--nolink");
660var nolinkmenulastbtn = $("#block-olivero-main-menu ul.primary-nav__menu--level-1 li.primary-nav__menu-item--nolink:last button");
661nolinkmenu[nolinkmenu.length-1].addEventListener("keydown", function (event) {
662  if($("#mobilenavbutton").css("display")!="none" && nolinkmenulastbtn.attr("aria-expanded")=="false" && !event.shiftKey && event.key === "Tab"){
663    event.preventDefault();
664  }
665});
666var lastchildatag = $("#block-olivero-main-menu ul.primary-nav__menu--level-1 li.primary-nav__menu-item--nolink:last ul li a:last");
667lastchildatag.on("keydown", function (event) {
668  if($("#mobilenavbutton").css("display")!="none" && !event.shiftKey && event.key === "Tab"){
669    event.preventDefault();
670  }
671});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.