Current Path: > home > codekrsu > > > ameliagraphics.com > wp-content > themes > generatepress > assets > js
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
a11y.js | File | 592 bytes | May 06 2025 19:28:34. | |
back-to-top.js | File | 1853 bytes | October 25 2022 20:14:22. | |
back-to-top.min.js | File | 737 bytes | August 27 2024 20:48:54. | |
classList.js | File | 5684 bytes | October 14 2020 21:40:56. | |
classList.min.js | File | 2399 bytes | October 14 2020 21:40:56. | |
dropdown-click.js | File | 5919 bytes | September 04 2024 18:45:54. | |
dropdown-click.min.js | File | 3196 bytes | September 04 2024 18:45:54. | |
menu.js | File | 14502 bytes | August 27 2024 20:48:54. | |
menu.min.js | File | 7333 bytes | August 27 2024 20:48:54. | |
navigation-search.js | File | 3909 bytes | October 26 2021 23:13:16. | |
navigation-search.min.js | File | 2123 bytes | August 27 2024 20:48:54. |
( function() { 'use strict'; if ( 'querySelector' in document && 'addEventListener' in window ) { var body = document.body, i; /** * Dropdown click * * @param {Object} e The event. * @param {Object} _this The clicked item. */ var dropdownClick = function( e, _this ) { e.preventDefault(); e.stopPropagation(); if ( ! _this ) { _this = this; } var closestLi = _this.closest( 'li' ); // Close other sub-menus var openedSubMenus = _this.closest( 'nav' ).querySelectorAll( 'ul.toggled-on' ); if ( openedSubMenus && ! _this.closest( 'ul' ).classList.contains( 'toggled-on' ) && ! _this.closest( 'li' ).classList.contains( 'sfHover' ) ) { for ( var o = 0; o < openedSubMenus.length; o++ ) { openedSubMenus[ o ].classList.remove( 'toggled-on' ); openedSubMenus[ o ].closest( 'li' ).classList.remove( 'sfHover' ); } } // Add sfHover class to parent li closestLi.classList.toggle( 'sfHover' ); if ( body.classList.contains( 'dropdown-click-arrow' ) ) { // Set aria-expanded on arrow var dropdownToggle = closestLi.querySelector( '.dropdown-menu-toggle' ); if ( 'false' === dropdownToggle.getAttribute( 'aria-expanded' ) || ! dropdownToggle.getAttribute( 'aria-expanded' ) ) { dropdownToggle.setAttribute( 'aria-expanded', 'true' ); } else { dropdownToggle.setAttribute( 'aria-expanded', 'false' ); } } if ( body.classList.contains( 'dropdown-click-menu-item' ) && _this.tagName && 'A' === _this.tagName.toUpperCase() ) { if ( 'false' === _this.getAttribute( 'aria-expanded' ) || ! _this.getAttribute( 'aria-expanded' ) ) { _this.setAttribute( 'aria-expanded', 'true' ); _this.setAttribute( 'aria-label', generatepressDropdownClick.closeSubMenuLabel ); } else { _this.setAttribute( 'aria-expanded', 'false' ); _this.setAttribute( 'aria-label', generatepressDropdownClick.openSubMenuLabel ); } } var subMenuSelector = '.children'; if ( closestLi.querySelector( '.sub-menu' ) ) { subMenuSelector = '.sub-menu'; } // Open the sub-menu if ( body.classList.contains( 'dropdown-click-menu-item' ) ) { _this.parentNode.querySelector( subMenuSelector ).classList.toggle( 'toggled-on' ); } else if ( body.classList.contains( 'dropdown-click-arrow' ) ) { closestLi.querySelector( subMenuSelector ).classList.toggle( 'toggled-on' ); } }; // Do stuff if click dropdown if enabled var parentElementLinks = document.querySelectorAll( '.main-nav .menu-item-has-children > a' ); // Open the sub-menu by clicking on the entire link element if ( body.classList.contains( 'dropdown-click-menu-item' ) ) { for ( i = 0; i < parentElementLinks.length; i++ ) { parentElementLinks[ i ].addEventListener( 'click', dropdownClick, true ); parentElementLinks[ i ].addEventListener( 'keydown', function( e ) { var _this = this; if ( 'Enter' === e.key || ' ' === e.key ) { e.preventDefault(); dropdownClick( e, _this ); } }, false ); } } // Open the sub-menu by clicking on a dropdown arrow if ( body.classList.contains( 'dropdown-click-arrow' ) ) { // Add a class to sub-menu items that are set to # for ( i = 0; i < parentElementLinks.length; i++ ) { if ( '#' === parentElementLinks[ i ].getAttribute( 'href' ) ) { parentElementLinks[ i ].classList.add( 'menu-item-dropdown-click' ); } } var dropdownToggleLinks = document.querySelectorAll( '.main-nav .menu-item-has-children > a .dropdown-menu-toggle' ); for ( i = 0; i < dropdownToggleLinks.length; i++ ) { dropdownToggleLinks[ i ].addEventListener( 'click', dropdownClick, false ); dropdownToggleLinks[ i ].addEventListener( 'keydown', function( e ) { var _this = this; if ( 'Enter' === e.key || ' ' === e.key ) { e.preventDefault(); dropdownClick( e, _this ); } }, false ); } const menuItemDropdownClick = document.querySelectorAll( '.main-nav .menu-item-has-children > a.menu-item-dropdown-click' ); for ( i = 0; i < menuItemDropdownClick.length; i++ ) { menuItemDropdownClick[ i ].addEventListener( 'click', dropdownClick, false ); menuItemDropdownClick[ i ].addEventListener( 'keydown', function( e ) { var _this = this; if ( 'Enter' === e.key || ' ' === e.key ) { e.preventDefault(); dropdownClick( e, _this ); } }, false ); } } var closeSubMenus = function() { if ( document.querySelector( 'nav ul .toggled-on' ) ) { var activeSubMenus = document.querySelectorAll( 'nav ul .toggled-on' ); for ( i = 0; i < activeSubMenus.length; i++ ) { activeSubMenus[ i ].classList.remove( 'toggled-on' ); activeSubMenus[ i ].closest( '.sfHover' ).classList.remove( 'sfHover' ); } if ( body.classList.contains( 'dropdown-click-arrow' ) ) { var activeDropdownToggles = document.querySelectorAll( 'nav .dropdown-menu-toggle' ); for ( i = 0; i < activeDropdownToggles.length; i++ ) { activeDropdownToggles[ i ].setAttribute( 'aria-expanded', 'false' ); } } if ( body.classList.contains( 'dropdown-click-menu-item' ) ) { var activeDropdownLinks = document.querySelectorAll( 'nav .menu-item-has-children > a' ); for ( i = 0; i < activeDropdownLinks.length; i++ ) { activeDropdownLinks[ i ].setAttribute( 'aria-expanded', 'false' ); activeDropdownLinks[ i ].setAttribute( 'aria-label', generatepressDropdownClick.openSubMenuLabel ); } } } }; // Close sub-menus when clicking elsewhere document.addEventListener( 'click', function( event ) { if ( ! event.target.closest( '.sfHover' ) ) { closeSubMenus(); } }, false ); // Close sub-menus on escape key document.addEventListener( 'keydown', function( e ) { if ( 'Escape' === e.key ) { // 27 is esc closeSubMenus(); } }, false ); } }() );
SILENT KILLER Tool