2 lines
16 KiB
JavaScript
2 lines
16 KiB
JavaScript
|
"use strict";!function(){var e,t;-1<navigator.platform.indexOf("Win")&&(document.getElementsByClassName("main-content")[0]&&(e=document.querySelector(".main-content"),new PerfectScrollbar(e)),document.getElementsByClassName("sidenav")[0]&&(e=document.querySelector(".sidenav"),new PerfectScrollbar(e)),document.getElementsByClassName("navbar-collapse")[0]&&(t=document.querySelector(".navbar:not(.navbar-expand-lg) .navbar-collapse"),new PerfectScrollbar(t)),document.getElementsByClassName("fixed-plugin")[0]&&(t=document.querySelector(".fixed-plugin"),new PerfectScrollbar(t)))}(),document.getElementById("navbarBlur")&&navbarBlurOnScroll("navbarBlur");var allInputs,fixedPlugin,fixedPluginButton,fixedPluginButtonNav,fixedPluginCard,fixedPluginCloseButton,navbar,buttonNavbarFixed,tooltipTriggerList=[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')),tooltipList=tooltipTriggerList.map(function(e){return new bootstrap.Tooltip(e)});function focused(e){e.parentElement.classList.contains("input-group")&&e.parentElement.classList.add("focused")}function defocused(e){e.parentElement.classList.contains("input-group")&&e.parentElement.classList.remove("focused")}function setAttributes(t,s){Object.keys(s).forEach(function(e){t.setAttribute(e,s[e])})}function sidebarColor(e){for(var t=e.parentElement.children,s=e.getAttribute("data-color"),a=0;a<t.length;a++)t[a].classList.remove("active");e.classList.contains("active")?e.classList.remove("active"):e.classList.add("active"),document.querySelector(".sidenav").setAttribute("data-color",s),document.querySelector("#sidenavCard")&&(e=["btn","btn-sm","w-100","mb-0","bg-gradient-"+s],(s=document.querySelector("#sidenavCard+.btn+.btn")).removeAttribute("class"),s.classList.add(...e))}function sidebarType(e){for(var t=e.parentElement.children,s=e.getAttribute("data-class"),a=document.querySelector("body"),n=document.querySelector("body:not(.dark-version)"),a=a.classList.contains("dark-version"),i=[],l=0;l<t.length;l++)t[l].classList.remove("active"),i.push(t[l].getAttribute("data-class"));e.classList.contains("active")?e.classList.remove("active"):e.classList.add("active");for(var r,o,c,d=document.querySelector(".sidenav"),l=0;l<i.length;l++)d.classList.remove(i[l]);if(d.classList.add(s),"bg-white"==s){var u=document.querySelectorAll(".sidenav .text-white");for(let e=0;e<u.length;e++)u[e].classList.remove("text-white"),u[e].classList.add("text-dark")}else{var v=document.querySelectorAll(".sidenav .text-dark");for(let e=0;e<v.length;e++)v[e].classList.add("text-white"),v[e].classList.remove("text-dark")}if("bg-default"==s&&a){v=document.querySelectorAll(".navbar-brand .text-dark");for(let e=0;e<v.length;e++)v[e].classList.add("text-white"),v[e].classList.remove("text-dark")}"bg-white"==s&&n?(o=(r=document.querySelector(".navbar-brand-img")).src).includes("logo-ct.png")&&(c=o.replace("logo-ct","logo-ct-dark"),r.src=c):(o=(r=document.querySelector(".navbar-brand-img")).src).includes("logo-ct-dark.png")&&(c=o.replace("logo-ct-dark","logo-ct"),r.src=c),"bg-white"==s&&a&&(o=(r=document.querySelector(".navbar-brand-img")).src).includes("logo-ct.png")&&(c=o.replace("logo-ct","logo-ct-dark"),r.src=c)}function navbarFixed(e){var t=["position-sticky","bg-white","left-auto","top-2","z-index-sticky"];const s=document.getElementById("navbarBlur");e.getAttribute("checked")?(toggleNavLinksColor("transparent"),s.classList.remove(...t),s.setAttribute("data-scroll","false"),navbarBlurOnScroll("navbarBlur"),e.removeAttribute("checked")):(toggleNavLinksColor("blur"),s.classList.add(...t),s.setAttribute("data-scroll","true"),navbarBlurOnScroll("navbarBlur"),e.setAttribute("checked","true"))}function navbarMinimize(e){var t=document.getElementsByClassName("g-sidenav-show")[0];e.getAttribute("checked")?(t.classList.remove("g-sidenav-hidden"),t.classList.add("g-sidenav-pinned"),e.removeAttribute("checked")):(t.classList.remove("g-sidenav-pinned"),t.classList.add("g-sidenav-hidden"),e.setAttribute("checked","true"))}function toggleNavLinksColor(e){let t=document.querySelectorAll(".navbar-main .nav-link,
|
||
|
//# sourceMappingURL=_site_dashboard_free/assets/js/dashboard-free.js.map
|