Submit
Path:
~
/
home
/
getwphos
/
public_html
/
milceticarch
/
wp-content
/
plugins
/
edge-core
/
shortcodes
/
tabs
/
assets
/
js
/
File Content:
tabs.js
(function($) { 'use strict'; var tabs = {}; edgtf.modules.tabs = tabs; tabs.edgtfInitTabs = edgtfInitTabs; tabs.edgtfOnDocumentReady = edgtfOnDocumentReady; $(document).ready(edgtfOnDocumentReady); /* All functions to be called on $(document).ready() should be in this function */ function edgtfOnDocumentReady() { edgtfInitTabs(); } /* ** Init tabs shortcode */ function edgtfInitTabs(){ var tabs = $('.edgtf-tabs'); if(tabs.length){ tabs.each(function(){ var thisTabs = $(this); thisTabs.children('.edgtf-tab-container').each(function(index){ index = index + 1; var that = $(this), link = that.attr('id'), navItem = that.parent().find('.edgtf-tabs-nav li:nth-child('+index+') a'), navLink = navItem.attr('href'); link = '#'+link; if(link.indexOf(navLink) > -1) { navItem.attr('href',link); } }); thisTabs.tabs(); $('.edgtf-tabs a.edgtf-external-link').off('click'); }); } } })(jQuery);
Submit
FILE
FOLDER
Name
Size
Permission
Action
tabs.js
1039 bytes
0644
N4ST4R_ID | Naxtarrr