JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour
/** * Theme: Highdmin - Responsive Bootstrap 4 Admin Dashboard * Author: Coderthemes * Module/App: Main Js */ (function ($) { 'use strict'; function initSlimscrollMenu() { $('.slimscroll-menu').slimscroll({ height: 'auto', position: 'right', size: "8px", color: '#9ea5ab', wheelStep: 5 }); } function initSlimscroll() { $('.slimscroll').slimscroll({ height: 'auto', position: 'right', size: "8px", color: '#9ea5ab' }); } function initMetisMenu() { //metis menu $("#side-menu").metisMenu(); } function initLeftMenuCollapse() { // Left menu collapse $('.button-menu-mobile').on('click', function (event) { event.preventDefault(); $("body").toggleClass("enlarged"); initSlimscrollMenu(); }); } function initEnlarge() { if ($(window).width() < 1025) { $('body').addClass('enlarged'); } else { if ($('body').data('keep-enlarged') != true) $('body').removeClass('enlarged'); } } function initActiveMenu() { // === following js will activate the menu in left side bar based on url ==== $("#sidebar-menu a").each(function () { var pageUrl = window.location.href.split(/[?#]/)[0]; if (this.href == pageUrl) { $(this).addClass("active"); $(this).parent().addClass("active"); // add active to li of the current link $(this).parent().parent().addClass("in"); $(this).parent().parent().prev().addClass("active"); // add active class to an anchor $(this).parent().parent().parent().addClass("active"); $(this).parent().parent().parent().parent().addClass("in"); // add active to li of the current link $(this).parent().parent().parent().parent().parent().addClass("active"); } }); } function init() { initSlimscrollMenu(); initSlimscroll(); initMetisMenu(); initLeftMenuCollapse(); initEnlarge(); initActiveMenu(); } init(); })(jQuery)