| Server IP : 43.130.17.34 / Your IP : 216.73.217.6 Web Server : nginx/1.28.0 System : Linux VM-4-12-opencloudos 6.6.92-34.1.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 25 21:32:13 CST 2025 x86_64 User : www ( 1000) PHP Version : 8.0.26 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/yespkg.com/wp-content/plugins/bb-plugin/modules/tabs/js/ |
Upload File : |
(function($) {
FLBuilderTabs = function( settings )
{
this.settings = settings;
this.nodeClass = '.fl-node-' + settings.id;
this._init();
};
FLBuilderTabs.prototype = {
settings : {},
nodeClass : '',
_init: function()
{
var win = $(window);
$(this.nodeClass + ' .fl-tabs-labels .fl-tabs-label').click($.proxy(this._labelClick, this));
$(this.nodeClass + ' .fl-tabs-panels .fl-tabs-label').click($.proxy(this._responsiveLabelClick, this));
if($(this.nodeClass + ' .fl-tabs-vertical').length > 0) {
this._resize();
win.off('resize' + this.nodeClass);
win.on('resize' + this.nodeClass, $.proxy(this._resize, this));
}
FLBuilderLayout.preloadAudio( this.nodeClass + ' .fl-tabs-panel-content' );
},
_labelClick: function(e)
{
var label = $(e.target).closest('.fl-tabs-label'),
index = label.data('index'),
wrap = label.closest('.fl-tabs'),
allIcons = wrap.find('.fl-tabs-panels .fl-tabs-label .fa'),
icon = wrap.find('.fl-tabs-panels .fl-tabs-label[data-index="' + index + '"] .fa');
// Toggle the responsive icons.
allIcons.addClass('fa-plus');
icon.removeClass('fa-plus');
// Toggle the tabs.
wrap.find('.fl-tabs-labels:first > .fl-tab-active').removeClass('fl-tab-active');
wrap.find('.fl-tabs-panels:first > .fl-tabs-panel > .fl-tab-active').removeClass('fl-tab-active');
wrap.find('.fl-tabs-labels:first > .fl-tabs-label[data-index="' + index + '"]').addClass('fl-tab-active');
wrap.find('.fl-tabs-panels:first > .fl-tabs-panel > .fl-tabs-panel-content[data-index="' + index + '"]').addClass('fl-tab-active');
// Gallery module support.
FLBuilderLayout.refreshGalleries( wrap.find('.fl-tabs-panel-content[data-index="' + index + '"]') );
// Grid layout support (uses Masonry)
FLBuilderLayout.refreshGridLayout( wrap.find('.fl-tabs-panel-content[data-index="' + index + '"]') );
// Post Carousel support (uses BxSlider)
FLBuilderLayout.reloadSlider( wrap.find('.fl-tabs-panel-content[data-index="' + index + '"]') );
// WP audio shortcode support
FLBuilderLayout.resizeAudio( wrap.find('.fl-tabs-panel-content[data-index="' + index + '"]') );
},
_responsiveLabelClick: function(e)
{
var label = $(e.target).closest('.fl-tabs-label'),
wrap = label.closest('.fl-tabs'),
index = label.data('index'),
content = label.siblings('.fl-tabs-panel-content'),
activeContent = wrap.find('.fl-tabs-panel-content.fl-tab-active'),
activeIndex = activeContent.data('index'),
allIcons = wrap.find('.fl-tabs-panels .fl-tabs-label > .fa'),
icon = label.find('.fa');
// Should we proceed?
if(index == activeIndex) {
return;
}
if(wrap.hasClass('fl-tabs-animation')) {
return;
}
// Toggle the icons.
allIcons.addClass('fa-plus');
icon.removeClass('fa-plus');
// Run the animations.
wrap.addClass('fl-tabs-animation');
activeContent.slideUp('normal');
content.slideDown('normal', function(){
wrap.find('.fl-tab-active').removeClass('fl-tab-active');
wrap.find('.fl-tabs-label[data-index="' + index + '"]').addClass('fl-tab-active');
content.addClass('fl-tab-active');
wrap.removeClass('fl-tabs-animation');
// Gallery module support.
FLBuilderLayout.refreshGalleries( content );
// Grid layout support (uses Masonry)
FLBuilderLayout.refreshGridLayout( content );
// Post Carousel support (uses BxSlider)
FLBuilderLayout.reloadSlider( content );
// WP audio shortcode support
FLBuilderLayout.resizeAudio( content );
if(label.offset().top < $(window).scrollTop() + 100) {
$('html, body').animate({ scrollTop: label.offset().top - 100 }, 500, 'swing');
}
});
},
_resize: function()
{
$(this.nodeClass + ' .fl-tabs-vertical').each($.proxy(this._resizeVertical, this));
},
_resizeVertical: function(e)
{
var wrap = $(this.nodeClass + ' .fl-tabs-vertical'),
labels = wrap.find('.fl-tabs-labels'),
panels = wrap.find('.fl-tabs-panels');
panels.css('min-height', labels.height() + 'px');
}
};
})(jQuery);