JFIF x x C C " } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w !1AQ aq"2B #3Rbr{
File "jquery.app.js"
Full Path: /var/www/html/ctctaxi/public/assets/vendor_components/horizontal-timeline/css/jquery.app.js
File size: 2.25 KB
MIME-type: text/plain
Charset: utf-8
/**
* 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)