text: $(function () { "use strict"; $(".preloader").fadeOut(), $(".left-sidebar").hover(function () { $(".navbar-header").addClass("expand-logo") }, function () { $(".navbar-header").removeClass("expand-logo") }), $(".nav-toggler").on("click", function () { $("#main-wrapper").toggleClass("show-sidebar"), $(".nav-toggler i").toggleClass("ti-menu") }), $(".nav-lock").on("click", function () { $("body").toggleClass("lock-nav"), $(".nav-lock i").toggleClass("mdi-toggle-switch-off"), $("body, .page-wrapper").trigger("resize") }), $(".search-box a, .search-box .app-search .srh-btn").on("click", function () { $(".app-search").toggle(200), $(".app-search input").focus() }), $(function () { $(".service-panel-toggle").on("click", function () { $(".customizer").toggleClass("show-service-panel") }), $(".page-wrapper").on("click", function () { $(".customizer").removeClass("show-service-panel") }) }), $(".floating-labels .form-control").on("focus blur", function (e) { $(this).parents(".form-group").toggleClass("focused", "focus" === e.type || this.value.length > 0) }).trigger("blur"), $(function () { $('[data-toggle="tooltip"]').tooltip() }), $(function () { $('[data-toggle="popover"]').popover() }), $(".message-center, .customizer-body, .scrollable").perfectScrollbar({ wheelPropagation: !0 }), $("body, .page-wrapper").trigger("resize"), $(".page-wrapper").show(), $(".list-task li label").click(function () { $(this).toggleClass("task-done") }); var e = function () { (window.innerWidth > 0 ? window.innerWidth : this.screen.width) < 1170 ? $("#main-wrapper").attr("data-sidebartype", "mini-sidebar") : $("#main-wrapper").attr("data-sidebartype", "full") }; $(window).ready(e), $(window).on("resize", e), $(".sidebartoggler").on("click", function () { $("#main-wrapper").toggleClass("mini-sidebar"), $("#main-wrapper").hasClass("mini-sidebar") ? ($(".sidebartoggler").prop("checked", !0), $("#main-wrapper").attr("data-sidebartype", "mini-sidebar")) : ($(".sidebartoggler").prop("checked", !1), $("#main-wrapper").attr("data-sidebartype", "full")) }) });