Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
revslider
/
includes
/
gutenberg-blocks
/
blocks
:
frontend.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
// Tabs ( function( $ ) { $( document ).ready( function() { var titleWrap = '.wp-block-themepunchblocks-tpc-tabs-tab-title-wrap'; var contentWrap = '.wp-block-themepunchblocks-tpc-tabs-tab-content-wrap'; $( document ) .on( 'click', '.wp-block-themepunchblocks-tpc-tabs-tab-title-wrap', function() { var parent = $(this) .closest('.wp-block-themepunchblocks-tpc-tabs'); var contentWrapEl = parent .find('.wp-block-themepunchblocks-tpc-tabs-tab-content-wrap'); var activeStyle = parent .find('.wp-block-themepunchblocks-tpc-tabs-tab-title-wrap.active') .attr('style'); var defaultStyle = parent .find('.wp-block-themepunchblocks-tpc-tabs-tab-title-wrap:not(.active)') .attr('style'); $(this).siblings(titleWrap).removeClass('active').attr('style', defaultStyle); $(this).addClass('active').attr('style', activeStyle); contentWrapEl.removeClass('active').addClass('tpc-hide'); parent.find(contentWrap +':nth-of-type(' + ($(this).index() + 1) + ')') .addClass('active') .removeClass('tpc-hide'); } ); } ); }( jQuery ) );