text: ﻿if ($("#fixednavbar").click(function () { $("#fixednavbar").is(":checked") ? ($(".navbar-static-top").removeClass("navbar-static-top").addClass("navbar-fixed-top"), $("body").removeClass("boxed-layout"), $("body").addClass("fixed-nav"), $("#boxedlayout").prop("checked", !1), localStorageSupport && localStorage.setItem("boxedlayout", "off"), localStorageSupport && localStorage.setItem("fixednavbar", "on")) : ($(".navbar-fixed-top").removeClass("navbar-fixed-top").addClass("navbar-static-top"), $("body").removeClass("fixed-nav"), localStorageSupport && localStorage.setItem("fixednavbar", "off")) }), $("#fixedsidebar").click(function () { $("#fixedsidebar").is(":checked") ? ($("body").addClass("fixed-sidebar"), $(".sidebar-collapse").slimScroll({ height: "100%", railOpacity: .9 }), localStorageSupport && localStorage.setItem("fixedsidebar", "on")) : ($(".sidebar-collapse").slimscroll({ destroy: !0 }), $(".sidebar-collapse").attr("style", ""), $("body").removeClass("fixed-sidebar"), localStorageSupport && localStorage.setItem("fixedsidebar", "off")) }), $("#collapsemenu").click(function () { $("#collapsemenu").is(":checked") ? ($("body").addClass("mini-navbar"), SmoothlyMenu(), localStorageSupport && localStorage.setItem("collapse_menu", "on")) : ($("body").removeClass("mini-navbar"), SmoothlyMenu(), localStorageSupport && localStorage.setItem("collapse_menu", "off")) }), $("#boxedlayout").click(function () { $("#boxedlayout").is(":checked") ? ($("body").addClass("boxed-layout"), $("#fixednavbar").prop("checked", !1), $(".navbar-fixed-top").removeClass("navbar-fixed-top").addClass("navbar-static-top"), $("body").removeClass("fixed-nav"), $(".footer").removeClass("fixed"), $("#fixedfooter").prop("checked", !1), localStorageSupport && localStorage.setItem("fixednavbar", "off"), localStorageSupport && localStorage.setItem("fixedfooter", "off"), localStorageSupport && localStorage.setItem("boxedlayout", "on")) : ($("body").removeClass("boxed-layout"), localStorageSupport && localStorage.setItem("boxedlayout", "off")) }), $("#fixedfooter").click(function () { $("#fixedfooter").is(":checked") ? ($("#boxedlayout").prop("checked", !1), $("body").removeClass("boxed-layout"), $(".footer").addClass("fixed"), localStorageSupport && localStorage.setItem("boxedlayout", "off"), localStorageSupport && localStorage.setItem("fixedfooter", "on")) : ($(".footer").removeClass("fixed"), localStorageSupport && localStorage.setItem("fixedfooter", "off")) }), $(".spin-icon").click(function () { $(".theme-config-box").toggleClass("show") }), $(".s-skin-0").click(function () { $("body").removeClass("skin-1"), $("body").removeClass("skin-2"), $("body").removeClass("skin-3") }), $(".s-skin-1").click(function () { $("body").removeClass("skin-2"), $("body").removeClass("skin-3"), $("body").addClass("skin-1") }), $(".s-skin-2").click(function () { $("body").removeClass("skin-1"), $("body").removeClass("skin-3"), $("body").addClass("skin-2") }), $(".s-skin-3").click(function () { $("body").removeClass("skin-1"), $("body").removeClass("skin-2"), $("body").addClass("skin-3") }), localStorageSupport) { var collapse = localStorage.getItem("collapse_menu"), fixedsidebar = localStorage.getItem("fixedsidebar"), fixednavbar = localStorage.getItem("fixednavbar"), boxedlayout = localStorage.getItem("boxedlayout"), fixedfooter = localStorage.getItem("fixedfooter"); "on" == collapse && $("#collapsemenu").prop("checked", "checked"), "on" == fixedsidebar && $("#fixedsidebar").prop("checked", "checked"), "on" == fixednavbar && $("#fixednavbar").prop("checked", "checked"), "on" == boxedlayout && $("#boxedlayout").prop("checked", "checked"), "on" == fixedfooter && $("#fixedfooter").prop("checked", "checked") }