woocommerce-wordpress-service/app/wp-content/themes/marmot/assets/js/functions.js
//Sets or removes the .focus class on an element.
Sets or removes the .focus class on an element.
Sets or removes the . focus class on an element .
function toggleFocus() {
                var self = this;
                while (-1 === self.className.indexOf('primary-menu')) {
                    if ('li' === self.tagName.toLowerCase()) {
                        self.classList.toggle('focus');
                    }
                    self = self.parentElement;
                }
            }
function toggleFocus ( ) { var self = this ; while ( - 1 === self . className . indexOf ( 'primary-menu' ) ) { if ( 'li' === self . tagName . toLowerCase ( ) ) { self . classList . toggle ( 'focus' ) ; } self = self . parentElement ; } }
Sets or removes the .focus class on an element.
Sets or removes the . focus class on an element .
// Move up through the ancestors of the current link until we hit .primary-menu. // On li elements toggle the class .focus.