ChristopherJKoen's picture
Call the software RepEx.
07e1705 verified
// Main application script
document.addEventListener('DOMContentLoaded', function() {
// Initialize file upload functionality
const dropzone = document.querySelector('.border-dashed');
if (dropzone) {
dropzone.addEventListener('dragover', (e) => {
e.preventDefault();
dropzone.classList.add('dropzone-active');
});
dropzone.addEventListener('dragleave', () => {
dropzone.classList.remove('dropzone-active');
});
dropzone.addEventListener('drop', (e) => {
e.preventDefault();
dropzone.classList.remove('dropzone-active');
handleFiles(e.dataTransfer.files);
});
}
function handleFiles(files) {
console.log('Files to upload:', files);
// Here you would typically handle the file upload process
// Could be an AJAX call to your backend or processing in the browser
}
// Initialize tooltips for icons
const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl);
});
});