diff --git a/web/assets/js/main.js b/web/assets/js/main.js index 7cdd6bb..54ae859 100644 --- a/web/assets/js/main.js +++ b/web/assets/js/main.js @@ -1,3 +1,5 @@ +//// OVERLAY FOR VIEWING MEDIA FILES + const video_formats = ["webm", "mp4"]; const audio_formats = ["mp3", "flac", "opus", "ogg", "m4a"]; const image_formats = ["jpg", "jpeg", "gif", "png", "bmp", "webp"]; @@ -56,6 +58,7 @@ file_links.forEach(f => f.addEventListener('click', e => { e.preventDefault(); })); +//// SORT BY COLUMN const [thead_name, thead_date, thead_size] = document.getElementsByTagName('thead')[0] .getElementsByTagName('tr')[0].getElementsByTagName('th');