| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 | 
(function() {    "use strict";    // custom scrollbar    $("html").niceScroll({styler:"fb",cursorcolor:"#65cea7", cursorwidth: '6', cursorborderradius: '0px', background: '#424f63', spacebarenabled:false, cursorborder: '0',  zindex: '1000'});    $(".left-side").niceScroll({styler:"fb",cursorcolor:"#65cea7", cursorwidth: '3', cursorborderradius: '0px', background: '#424f63', spacebarenabled:false, cursorborder: '0'});    $(".left-side").getNiceScroll();    if ($('body').hasClass('left-side-collapsed')) {        $(".left-side").getNiceScroll().hide();    }    // Toggle Left Menu   jQuery('.menu-list > a').click(function() {            var parent = jQuery(this).parent();      var sub = parent.find('> ul');            if(!jQuery('body').hasClass('left-side-collapsed')) {         if(sub.is(':visible')) {            sub.slideUp(200, function(){               parent.removeClass('nav-active');               jQuery('.main-content').css({height: ''});               mainContentHeightAdjust();            });         } else {            visibleSubMenuClose();            parent.addClass('nav-active');            sub.slideDown(200, function(){                mainContentHeightAdjust();            });         }      }      return false;   });   function visibleSubMenuClose() {      jQuery('.menu-list').each(function() {         var t = jQuery(this);         if(t.hasClass('nav-active')) {            t.find('> ul').slideUp(200, function(){               t.removeClass('nav-active');            });         }      });   }   function mainContentHeightAdjust() {      // Adjust main content height      var docHeight = jQuery(document).height();      if(docHeight > jQuery('.main-content').height())         jQuery('.main-content').height(docHeight);   }   //  class add mouse hover   jQuery('.custom-nav > li').hover(function(){      jQuery(this).addClass('nav-hover');   }, function(){      jQuery(this).removeClass('nav-hover');   });   searchform_reposition();   jQuery(window).resize(function(){      if(jQuery('body').css('position') == 'relative') {         jQuery('body').removeClass('left-side-collapsed');      } else {         jQuery('body').css({left: '', marginRight: ''});      }      searchform_reposition();   });   function searchform_reposition() {      if(jQuery('.searchform').css('position') == 'relative') {         jQuery('.searchform').insertBefore('.left-side-inner .logged-user');      } else {         jQuery('.searchform').insertBefore('.menu-right');      }   }    // panel collapsible    $('.panel .tools .fa').click(function () {        var el = $(this).parents(".panel").children(".panel-body");        if ($(this).hasClass("fa-chevron-down")) {            $(this).removeClass("fa-chevron-down").addClass("fa-chevron-up");            el.slideUp(200);        } else {            $(this).removeClass("fa-chevron-up").addClass("fa-chevron-down");            el.slideDown(200); }    });    $('.todo-check label').click(function () {        $(this).parents('li').children('.todo-title').toggleClass('line-through');    });    $(document).on('click', '.todo-remove', function () {        $(this).closest("li").remove();        return false;    });    $("#sortable-todo").sortable();    // panel close    $('.panel .tools .fa-times').click(function () {        $(this).parents(".panel").parent().remove();    });    // tool tips    $('.tooltips').tooltip();})(jQuery);
 |