From f4e6e1a6a236fe4c6decdad366a92274caff8ba8 Mon Sep 17 00:00:00 2001 From: YanlanShen Date: Mon, 18 Feb 2019 11:12:13 +0800 Subject: luci-theme-rosy: Correcting Writing Errors and Style Errors Signed-off-by: YanlanShen --- .../htdocs/luci-static/rosy/js/script.js | 34 +++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'themes/luci-theme-rosy/htdocs/luci-static/rosy/js') diff --git a/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js b/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js index e8424411db..73557adc0e 100755 --- a/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js +++ b/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js @@ -170,22 +170,22 @@ * Sidebar expand */ var showSide = false; - if ($(win).height() == 992) { - $(".showSide").click(function () { - if (showSide) { - $(".darkMask").stop(true).fadeOut("fast"); - $(".main-left").stop(true).fadeOut("fast"); - $(".main-right").css("overflow-y", "visible"); - showSide = false; - } else { - $(".darkMask").stop(true).fadeIn("fast"); - $(".main-left").stop(true).animate({ - width: "100%" - }, "fast").fadeIn("fast"); - $(".main-right").css("overflow-y", "hidden"); - showSide = true; - } - }); + $(".showSide").click(function () { + if (showSide) { + $(".darkMask").stop(true).fadeOut("fast"); + $(".main-left").stop(true).fadeOut("fast"); + $(".main-right").css("overflow-y", "visible"); + showSide = false; + } else { + $(".darkMask").stop(true).fadeIn("fast"); + $(".main-left").stop(true).animate({ + width: "100%" + }, "fast").fadeIn("fast"); + $(".main-right").css("overflow-y", "hidden"); + showSide = true; + } + }); + if($(win).width() <= 992){ $(".main-left").click(function(e) { e.preventDefault(); $(".main-left").stop(true).fadeOut("fast"); @@ -274,4 +274,4 @@ } }); -})(window, jQuery); \ No newline at end of file +})(window, jQuery); -- cgit v1.2.3