www.gusucode.com > 36:【198-3955】(自适应手机端)html5响应式高端企业集团公司类织梦模板源码 > 36:【198-3955】(自适应手机端)html5响应式高端企业集团公司类织梦模板源码/statics/site/js/main.js

    (function(){
	
window.scrollReveal = new scrollReveal();
	
$('#myScrollspy').on('activate.bs.scrollspy', function () {
	//var currentItem = $(".nav li.active > a").text();
	var currentItem = $(".floor_tip li.active > a").data('myid');
	console.log(currentItem);
})
	
	
$(".top-nav ul li").hover(function(){
	//$(this).find(".sons").show();
	$(this).find(".sons").slideDown().parent().siblings().find(".sons").stop(true,true).slideUp()
},function(){
	$(".sons").stop(true,true).slideUp();
})

var pull 	= $('#pull');
var menu 	= $('nav ul');
var menuHeight	= menu.height();
$(pull).on('click', function(e) {
	e.preventDefault();
	menu.slideToggle();
});
$(window).resize(function(){
	var w = $(window).width();
	if(w > 320 && menu.is(':hidden')) {
		menu.removeAttr('style');
	}
});




$('#service .myTab_menu #myTab li').click(function(){
	$('#service #myTabContent *').each(function(){
		$(this).removeAttr('style');
	});
});

$('#work .myTab_menu2 #myTab2 li').click(function(){
	$('#work #myTab2Content *').each(function(){
		$(this).removeAttr('style');
	})
})


		
})();