[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

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

(no description)

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

Defines 12 functions

  getAdminBarHeight()
  htmlStyles()
  toggleFocus()
  twentytwentyDomReady()
  twentytwentyToggleAttribute()
  twentytwentyMenuToggle()
  twentytwentyFindParents()
  traverse()
  twentytwentyEaseInOutQuad()
  twentytwentyScrollTo()
  move()
  animateScroll()

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.

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

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

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

traverse( item )   X-Ref
No description

twentytwentyEaseInOutQuad( t, b, c, d )   X-Ref
No description

twentytwentyScrollTo( to, callback, duration )   X-Ref
No description

move( amount )   X-Ref
No description

animateScroll()   X-Ref
No description



Generated: Sat Nov 23 20:47:33 2019 Cross-referenced by PHPXref 0.7