⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.101
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
taxi.dev-unit.com
/
public
/
assets
/
js
/
View File Name :
jquery.app.js
/** * 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)