|
@@ -8,6 +8,26 @@ $('#myTabs a').click(function (e) {
|
|
|
});
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
+
|
|
|
+ $(".leftBtn").click(function () {
|
|
|
+ var leftContent = $("#leftContent");
|
|
|
+ if (!leftContent.hasClass("leftContentShow")) {
|
|
|
+ $("#leftContent").addClass("leftContentShow");
|
|
|
+ $(".leftBtn").addClass("leftBtnc");
|
|
|
+ $(".mainWrapper").addClass("mainWrapperShow");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $("#leftContent").removeClass("leftContentShow");
|
|
|
+ $(".leftBtn").removeClass("leftBtnc");
|
|
|
+ $(".mainWrapper").removeClass("mainWrapperShow");
|
|
|
+ $(".subMenuContent").hide();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // $('.leftBtn').on('click',function () {
|
|
|
+ // $('.leftBtn').toggleClass('leftBtnc');
|
|
|
+ // $('.leftContent').toggleClass('leftContentShow');
|
|
|
+ // $(".mainWrapper").toggleClass('mainWrapperShow');
|
|
|
+ // });
|
|
|
$(".subMenuContent").hide();
|
|
|
$(".subMenuTitle a").click(function(){
|
|
|
$(".subMenuTitle a").removeClass("bg");
|
|
@@ -17,27 +37,39 @@ $(document).ready(function(){
|
|
|
$(this).parent().next().slideToggle();
|
|
|
$(this).parent().next().addClass("menu-list");
|
|
|
});
|
|
|
- $(".leftWrapper").hover(function(){
|
|
|
- timer = setTimeout(function(){
|
|
|
- $(".leftWrapper").stop().animate({width:"200px"},500);
|
|
|
- $(".mainWrapper").stop().animate({marginLeft:"215px",marginRight:"-200px"},500);
|
|
|
- $(".mainWrapperSma").stop().animate({marginLeft:"185px",marginRight:"-200px"},500);
|
|
|
- $(".subMenuText").fadeIn(500);
|
|
|
- $(".logoInfo").show(500);
|
|
|
- },300);
|
|
|
- },function(){
|
|
|
- clearTimeout(timer);
|
|
|
- $(".leftWrapper").stop().animate({width:"60px"},500);
|
|
|
- $(".mainWrapper").stop().animate({marginLeft:"71px",marginRight:"15px",paddingRight:"0"},500);
|
|
|
- $(".mainWrapperSma").stop().animate({marginLeft:"45px",marginRight:"15px",paddingRight:"0"},500);
|
|
|
- $(".subMenuText").fadeOut("fast");
|
|
|
- $(".logoInfo").hide();
|
|
|
- $(".subMenuContent").slideUp();
|
|
|
- });
|
|
|
- $(".logo").hover(function(){
|
|
|
- $(".logoList").show();
|
|
|
- },function(){
|
|
|
- $(".logoList").hide();
|
|
|
- })
|
|
|
});
|
|
|
|
|
|
+// $(document).ready(function(){
|
|
|
+// $(".subMenuContent").hide();
|
|
|
+// $(".subMenuTitle a").click(function(){
|
|
|
+// $(".subMenuTitle a").removeClass("bg");
|
|
|
+// $(this).addClass("bg");
|
|
|
+// $(this).parent().next().removeClass("menu-list");
|
|
|
+// $(".menu-list").slideUp();
|
|
|
+// $(this).parent().next().slideToggle();
|
|
|
+// $(this).parent().next().addClass("menu-list");
|
|
|
+// });
|
|
|
+// $(".leftWrapper").hover(function(){
|
|
|
+// timer = setTimeout(function(){
|
|
|
+// $(".leftWrapper").stop().animate({width:"200px"},500);
|
|
|
+// $(".mainWrapper").stop().animate({marginLeft:"215px",marginRight:"-200px"},500);
|
|
|
+// $(".mainWrapperSma").stop().animate({marginLeft:"185px",marginRight:"-200px"},500);
|
|
|
+// $(".subMenuText").fadeIn(500);
|
|
|
+// $(".logoInfo").show(500);
|
|
|
+// },300);
|
|
|
+// },function(){
|
|
|
+// clearTimeout(timer);
|
|
|
+// $(".leftWrapper").stop().animate({width:"60px"},500);
|
|
|
+// $(".mainWrapper").stop().animate({marginLeft:"71px",marginRight:"15px",paddingRight:"0"},500);
|
|
|
+// $(".mainWrapperSma").stop().animate({marginLeft:"45px",marginRight:"15px",paddingRight:"0"},500);
|
|
|
+// $(".subMenuText").fadeOut("fast");
|
|
|
+// $(".logoInfo").hide();
|
|
|
+// $(".subMenuContent").slideUp();
|
|
|
+// });
|
|
|
+// $(".logo").hover(function(){
|
|
|
+// $(".logoList").show();
|
|
|
+// },function(){
|
|
|
+// $(".logoList").hide();
|
|
|
+// })
|
|
|
+// });
|
|
|
+
|