🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:main.js
$(document).ready(function() { // AJAX Job Search on Homepage/Job List $('#jobSearchInput').on('keyup', function() { let query = $(this).val(); if (query.length >= 2) { $.ajax({ url: 'includes/ajax-search.php', method: 'POST', data: { query: query }, success: function(data) { $('#jobSearchResults').html(data); } }); } }); // Toast Notifications Helper window.showToast = function(message, type = 'success') { const toastId = 'toast-' + Date.now(); const toastHTML = ` <div id="${toastId}" class="toast align-items-center text-white bg-${type === 'success' ? 'success' : 'danger'} border-0" role="alert" aria-live="assertive" aria-atomic="true"> <div class="d-flex"> <div class="toast-body">${message}</div> <button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button> </div> </div> `; if (!$('#toastContainer').length) { $('body').append('<div id="toastContainer" class="toast-container position-fixed bottom-0 end-0 p-3"></div>'); } $('#toastContainer').append(toastHTML); const toastElement = new bootstrap.Toast(document.getElementById(toastId)); toastElement.show(); // Remove from DOM after hidden document.getElementById(toastId).addEventListener('hidden.bs.toast', function() { $(this).remove(); }); }; });
Save Changes
Cancel
Create New File
Create New Folder