[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentytwenty/assets/js/ -> index.js (summary)

(no description)

File Size: 842 lines (26 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 functions

  getAdminBarHeight()
  htmlStyles()
  toggleFocus()
  twentytwentyDomReady()
  twentytwentyToggleAttribute()
  twentytwentyMenuToggle()
  twentytwentyFindParents()
  traverse()

Functions
Functions that are not part of a class:

getAdminBarHeight( negativeValue )   X-Ref
No description

htmlStyles()   X-Ref
No description

toggleFocus()   X-Ref
No description

twentytwentyDomReady( fn )   X-Ref
Is the DOM ready?

This implementation is coming from https://gomakethings.com/a-native-javascript-equivalent-of-jquerys-ready-method/

param: {Function} fn Callback function to run.
since: Twenty Twenty 1.0

twentytwentyToggleAttribute( element, attribute, trueVal, falseVal )   X-Ref
No description

twentytwentyMenuToggle( target, duration )   X-Ref
Toggle a menu item on or off.

param: {HTMLElement} target
param: {number} duration
since: Twenty Twenty 1.0

twentytwentyFindParents( target, query )   X-Ref
Traverses the DOM up to find elements matching the query.

return: {NodeList} parents matching query
param: {HTMLElement} target
param: {string} query
since: Twenty Twenty 1.0

traverse( item )   X-Ref
No description



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1