"use strict!"; function handlemenutype(e) { $(".pcoded").attr("nav-type", e) } $(document).ready(function() { $("#pcoded").pcodedmenu({ themelayout: "vertical", verticalMenuplacement: "left", verticalMenulayout: "wide", MenuTrigger: "click", SubMenuTrigger: "click", activeMenuClass: "active", ThemeBackgroundPattern: "theme1", HeaderBackground: "themelight1", LHeaderBackground: "theme1", NavbarBackground: "theme1", ActiveItemBackground: "theme1", SubItemBackground: "theme2", LogoTheme: "theme6", ActiveItemStyle: "style0", ItemBorder: !0, ItemBorderStyle: "solid", freamtype: "theme1", SubItemBorder: !1, DropDownIconStyle: "style1", menutype: "st2", layouttype: "light", FixedNavbarPosition: !0, FixedHeaderPosition: !0, collapseVerticalLeftHeader: !0, VerticalSubMenuItemIconStyle: "style1", VerticalNavigationView: "view1", verticalMenueffect: { desktop: "shrink", tablet: "overlay", phone: "overlay" }, defaultVerticalMenu: { desktop: "expanded", tablet: "offcanvas", phone: "offcanvas" }, onToggleVerticalMenu: { desktop: "offcanvas", tablet: "expanded", phone: "expanded" } }), function() { $(".theme-color > a.Layout-type").on("click", function() { var e = $(this).attr("layout-type"); $(".pcoded").attr("layout-type", e), "dark" == e && ($(".pcoded-header").attr("header-theme", "theme6"), $(".pcoded-navbar").attr("navbar-theme", "theme1"), $(".pcoded-navbar").attr("active-item-theme", "theme1"), $(".pcoded").attr("fream-type", "theme1"), $("body").addClass("dark"), $("body").attr("themebg-pattern", "theme1"), $(".pcoded-navigation-label").attr("menu-title-theme", "theme1")), "light" == e && ($(".pcoded-header").attr("header-theme", "themelight1"), $(".pcoded-navbar").attr("navbar-theme", "themelight1"), $(".pcoded-navigation-label").attr("menu-title-theme", "theme2"), $(".pcoded-navbar").attr("active-item-theme", "theme1"), $(".pcoded").attr("fream-type", "theme1"), $("body").removeClass("dark"), $("body").attr("themebg-pattern", "theme1")) }) }(), function() { $(".theme-color > a.leftheader-theme").on("click", function() { var e = $(this).attr("menu-caption"); $(".pcoded-navigation-label").attr("menu-title-theme", e) }) }(), function() { $(".theme-color > a.header-theme-full").on("click", function() { var e = $(this).attr("header-theme"), t = $(this).attr("active-item-color"); $(".pcoded-header").attr("header-theme", e), $(".navbar-logo").attr("logo-theme", e), $(".pcoded-navbar").attr("active-item-theme", t), $(".pcoded").attr("fream-type", e), $("body").attr("themebg-pattern", e), "theme6" == e && $(".pcoded-navbar").attr("active-item-theme", "theme1") }) }(), function() { $(".theme-color > a.header-theme").on("click", function() { var e = $(this).attr("header-theme"), t = $(this).attr("active-item-color"); $(".pcoded-header").attr("header-theme", e), $(".pcoded-navbar").attr("active-item-theme", t), $(".pcoded").attr("fream-type", e), $("body").attr("themebg-pattern", e), "theme6" == e && $(".pcoded-navbar").attr("active-item-theme", "theme1") }) }(), function() { $(".theme-color > a.navbar-theme").on("click", function() { var e = $(this).attr("navbar-theme"); $(".pcoded-navbar").attr("navbar-theme", e), "themelight1" == e && $(".pcoded-navigation-label").attr("menu-title-theme", "theme2"), "theme1" == e && $(".pcoded-navigation-label").attr("menu-title-theme", "theme1") }) }(), function() { $(".theme-color > a.active-item-theme").on("click", function() { var e = $(this).attr("active-item-theme"); $(".pcoded-navbar").attr("active-item-theme", e) }) }(), function() { $(".theme-color > a.themebg-pattern").on("click", function() { var e = $(this).attr("themebg-pattern"); $("body").attr("themebg-pattern", e) }) }(), function() { $("#theme-layout").change(function() { $(this).is(":checked") ? ($(".pcoded").attr("vertical-layout", "box"), $("#bg-pattern-visiblity").removeClass("d-none")) : ($(".pcoded").attr("vertical-layout", "wide"), $("#bg-pattern-visiblity").addClass("d-none")) }) }(), function() { $("#vertical-menu-effect").val("shrink").on("change", function(e) { e = $(this).val(), $(".pcoded").attr("vertical-effect", e) }) }(), function() { $("#vertical-border-style").val("solid").on("change", function(e) { e = $(this).val(), $(".pcoded-navbar .pcoded-item").attr("item-border-style", e) }) }(), function() { $("#vertical-dropdown-icon").val("style1").on("change", function(e) { e = $(this).val(), $(".pcoded-navbar .pcoded-hasmenu").attr("dropdown-icon", e) }) }(), function() { $("#vertical-subitem-icon").val("style5").on("change", function(e) { e = $(this).val(), $(".pcoded-navbar .pcoded-hasmenu").attr("subitem-icon", e) }) }(), function() { $("#sidebar-position").change(function() { $(this).is(":checked") ? ($(".pcoded-navbar").attr("pcoded-navbar-position", "fixed"), $(".pcoded-header .pcoded-left-header").attr("pcoded-lheader-position", "fixed")) : ($(".pcoded-navbar").attr("pcoded-navbar-position", "absolute"), $(".pcoded-header .pcoded-left-header").attr("pcoded-lheader-position", "relative")) }) }(), function() { $("#header-position").change(function() { $(this).is(":checked") ? ($(".pcoded-header").attr("pcoded-header-position", "fixed"), $(".pcoded-navbar").attr("pcoded-header-position", "fixed"), $(".pcoded-main-container").css("margin-top", $(".pcoded-header").outerHeight())) : ($(".pcoded-header").attr("pcoded-header-position", "relative"), $(".pcoded-navbar").attr("pcoded-header-position", "relative"), $(".pcoded-main-container").css("margin-top", "0px")) }) }(), function() { $("#collapse-left-header").change(function() { $(this).is(":checked") ? ($(".pcoded-header, .pcoded ").removeClass("iscollapsed"), $(".pcoded-header, .pcoded").addClass("nocollapsed")) : ($(".pcoded-header, .pcoded").addClass("iscollapsed"), $(".pcoded-header, .pcoded").removeClass("nocollapsed")) }) }() }), handlemenutype("st2");