Your IP : 216.73.216.104


Current Path : /home/angker/public_html/mikitotohere.com/web/js/
Upload Files:
Current File: /home/angker/public_html/mikitotohere.com/web/js/miki.js

/*
 * Plugin: Web Slide - By ALEXISTOGEL
 * Demo Link: https://www.healthsignscenter.org/
 * Version: v3.4
 * Author: SUKIRMAN TOHAR
 * License: https://www.healthsignscenter.org/
*/
 
document.addEventListener("touchstart", function() {},false);
$(function() {
	
	//Open Offcanvas
	$('#wsnavtoggle').click(function () {
		$('.wsmenucontainer').toggleClass('wsoffcanvasopener');
	});
	//END Open Offcanvas
	
	
	//Overlap BG
	$('.overlapblackbg').click(function () {
	  $('.wsmenucontainer').removeClass('wsoffcanvasopener');
	});
	//END Overlap BG
	

	//Mobile Toggles
	$('.wsmenu-list> li').has('.wsmenu-submenu').prepend('<span class="wsmenu-click"><i class="wsmenu-arrow fa fa-angle-down"></i></span>');
	$('.wsmenu-list > li').has('.wsshoptabing').prepend('<span class="wsmenu-click"><i class="wsmenu-arrow fa fa-angle-down"></i></span>');

	$('.wsmenu-click').click(function(){
		$(this).toggleClass('ws-activearrow').parent().siblings().children().removeClass('ws-activearrow');
		$(".wsmenu-submenu, .wsshoptabing").not($(this).siblings('.wsmenu-submenu, .wsshoptabing')).slideUp('slow');
		$(this).siblings('.wsmenu-submenu').slideToggle('slow');
		$(this).siblings('.wsshoptabing').slideToggle('slow');
		
	});
	
	$('.wstabitem > li').has('.wstitemright').prepend('<span class="wsmenu-click02"><i class="wsmenu-arrow fa fa-angle-down"></i></span>');
	$('.wstabitem02 > li').has('.wstbrandbottom').prepend('<span class="wsmenu-click02"><i class="wsmenu-arrow fa fa-angle-down"></i></span>');
	
	$('.wsmenu-click02').click(function(){
		$(this).toggleClass('ws-activearrow').parent().siblings().children().removeClass('ws-activearrow');
		$(this).siblings('.wstitemright').slideToggle('slow');
		$(this).siblings('.wstbrandbottom').slideToggle('slow');
	});
	
	//END Mobile Toggles 
	
});
	
	
	//Adding Class in Tabing Links
	$(window).ready(function(){
	
	$(".wsshoptabing.wtsdepartmentmenu > .wstabitem > li").on('mouseenter', function() {
        $(this).addClass("wsshoplink-active").siblings(this).removeClass("wsshoplink-active");
    });
	
	$(".wsshoptabing.wtsbrandmenu > .wsshoptabingwp > .wstabitem02 > li").on('mouseenter', function() {
        $(this).addClass("wsshoplink-active").siblings(this).removeClass("wsshoplink-active");
    });
	
	 
	//END Adding Class in Tabing Links

	
});


//Check Tabing Menu Height
		setmenuheight();
		$(window).bind("load resize", function() {
			
			var w_height = $( window ).width();
			if(w_height <= 900){
				$(".wsshoptabing.wtsdepartmentmenu").css('height','100%');
				$(".wstitemright").css('height','100%');  
			} else {
				setmenuheight();
			}
			
		});
	//Check Tabing Menu Height

	//Check Tabing Menu Height
	function setmenuheight() {
		var wstNewHeight = 1;
		$(".wstabitem > li").each(function() {
			var wstHeight = $(this).find(".wstitemright").innerHeight();
			wstNewHeight = wstHeight > wstNewHeight ? wstHeight : wstNewHeight;
			$(this).find(".wstitemright").css('height',wstHeight);
		});
		$(".wsshoptabing.wtsdepartmentmenu").css('height',wstNewHeight+15);      
	}
	
	 
	
	
	//Check Tabing Menu Height