plugin install

This commit is contained in:
Tony Volpe
2024-06-18 17:29:05 -04:00
parent e1aaedd1ae
commit 41f50eacc4
5880 changed files with 1057631 additions and 39681 deletions

View File

@@ -0,0 +1,24 @@
window.addEventListener( 'load', function() {
document.querySelectorAll( '.gform-settings-tabs__navigation a' ).forEach( function( tab ) {
tab.addEventListener( 'click', function ( e ) {
e.preventDefault();
// Get selected tab.
var selectedTab = e.target.dataset.tab;
// Hide active tab.
document.querySelectorAll( '.gform-settings-tabs__navigation .active, .gform-settings-tabs__container.active' ).forEach( function( item ) {
item.classList.remove( 'active' );
} );
// Set selected tab to active tab input.
document.querySelector( 'input[name="gform_settings_tab"]' ).value = selectedTab;
// Show selected tab.
e.target.classList.add( 'active' );
document.querySelector( '.gform-settings-tabs__container[data-tab="' + selectedTab + '"]' ).classList.add( 'active' );
} );
} );
} );