diff options
author | YanlanShen <yanlan.Shen@rosinson.com> | 2019-02-18 11:12:13 +0800 |
---|---|---|
committer | YanlanShen <yanlan.Shen@rosinson.com> | 2019-02-18 11:12:13 +0800 |
commit | f4e6e1a6a236fe4c6decdad366a92274caff8ba8 (patch) | |
tree | 9f0c9ba711b6291dc1ac45734429bba9597c5f32 /themes/luci-theme-rosy/htdocs/luci-static/rosy/js | |
parent | 55cd0c4c6b572f5b35244927a738c46b7dd711b8 (diff) |
luci-theme-rosy: Correcting Writing Errors and Style Errors
Signed-off-by: YanlanShen <yanlan.Shen@rosinson.com>
Diffstat (limited to 'themes/luci-theme-rosy/htdocs/luci-static/rosy/js')
-rwxr-xr-x | themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js | 34 |
1 files changed, 17 insertions, 17 deletions
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); |