Changeset 49575
- Timestamp:
- 11/12/2020 06:46:44 PM (4 years ago)
- Location:
- trunk/src/wp-content/themes/twentytwentyone/assets/js
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentyone/assets/js/customize-helpers.js
r49574 r49575 6 6 * @return {number} - Returns the luminance, number between 0 and 255. 7 7 */ 8 function twentytwentyoneGetHexLum( hex ) { // eslint-disable-line no-unused-vars8 function twentytwentyoneGetHexLum( hex ) { // jshint ignore:line 9 9 var rgb = twentytwentyoneGetRgbFromHex( hex ); 10 10 return Math.round( ( 0.2126 * rgb.r ) + ( 0.7152 * rgb.g ) + ( 0.0722 * rgb.b ) ); -
trunk/src/wp-content/themes/twentytwentyone/assets/js/dark-mode-toggler.js
r49574 r49575 1 function toggleDarkMode() { // eslint-disable-line no-unused-vars1 function toggleDarkMode() { // jshint ignore:line 2 2 var toggler = document.getElementById( 'dark-mode-toggler' ); 3 3 -
trunk/src/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js
r49574 r49575 59 59 * @param {Element} el - The element. 60 60 */ 61 function twentytwentyoneExpandSubMenu( el ) { // eslint-disable-line no-unused-vars61 function twentytwentyoneExpandSubMenu( el ) { // jshint ignore:line 62 62 // Close other expanded items. 63 63 el.closest( 'nav' ).querySelectorAll( '.sub-menu-toggle' ).forEach( function( button ) { … … 115 115 shiftKey = event.shiftKey; 116 116 escKey = event.keyCode === 27; 117 activeEl = document.activeElement; // eslint-disable-line @wordpress/no-global-active-element117 activeEl = document.activeElement; 118 118 lastEl = elements[ elements.length - 1 ]; 119 119 firstEl = elements[0];
Note: See TracChangeset
for help on using the changeset viewer.