[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 453 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
removeHoverIfEscape( event ) X-Ref |
Remove hover class for top level menu item when escape is pressed. param: {Event} event The keydown event. since: 5.3.1 |
toggleHoverIfEnter( event ) X-Ref |
Toggle hover class for top level menu item when enter is pressed. param: {Event} event The keydown event. since: 5.3.1 |
focusTargetAfterEnter( event ) X-Ref |
Focus the target of skip link after pressing Enter. param: {Event} event The keydown event. since: 5.3.1 |
mobileHover( topMenuItems, event ) X-Ref |
Toogle hover class for mobile devices. param: {NodeList} topMenuItems All menu items. param: {Event} event The click event. since: 5.3.1 |
clickShortlink( event ) X-Ref |
Handles the click on the Shortlink link in the adminbar. param: {Event} event The click event. return: {boolean} Returns false to prevent default click behavior. since: 3.1.0 since: 5.3.1 Use querySelector to clean up the function. |
emptySessionStorage() X-Ref |
Clear sessionStorage on logging out. since: 5.3.1 |
hasClass( element, className ) X-Ref |
Check if element has class. param: {HTMLElement} element The HTML element. param: {string} className The class name. return: {boolean} Whether the element has the className. since: 5.3.1 |
addClass( element, className ) X-Ref |
Add class to an element. param: {HTMLElement} element The HTML element. param: {string} className The class name. since: 5.3.1 |
removeClass( element, className ) X-Ref |
Remove class from an element. param: {HTMLElement} element The HTML element. param: {string} className The class name. since: 5.3.1 |
removeAllHoverClass( topMenuItems ) X-Ref |
Remove hover class for all menu items. param: {NodeList} topMenuItems All menu items. since: 5.3.1 |
scrollToTop( event ) X-Ref |
Scrolls to the top of the page. param: {Event} event The Click event. return: {void} since: 3.4.0 |
getClosest( el, selector ) X-Ref |
Get closest Element. param: {HTMLElement} el Element to get parent. param: {string} selector CSS selector to match. since: 5.3.1 |
Generated: Sun Dec 22 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |