| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/robotics/wp-content/plugins/recent-posts-widget-extended/assets/js/ |
Upload File : |
jQuery(document).ready(function ($) {
/**
* Add custom class
*/
$('.rpwe-options').closest('.widget-inside').addClass('rpwe-bg')
/**
* Tabs
*/
// Show the first tab and hide the rest.
$('#rpwe-tabs-nav li:first-child').addClass('active')
$('.rpwe-tab-content').hide()
$('.rpwe-tab-content:first-child').show()
// Click the navigation.
$('body').on('click', '#rpwe-tabs-nav li', function (e) {
e.preventDefault()
$('#rpwe-tabs-nav li').removeClass('active')
$(this).addClass('active')
$('.rpwe-tab-content').hide()
const activeTab = $(this).find('a').attr('href')
console.log(activeTab)
$(`${activeTab}.rpwe-tab-content`).fadeIn()
return false
})
})