Download script.js from ShadowWolf1999/testcasemaster-pro: direct link, hf CLI and curl.
- Browser
- Download file 783 Bytes
-
https://huggingface.co/spaces/ShadowWolf1999/testcasemaster-pro/resolve/main/script.js
- Command line
-
hf download hf://spaces/ShadowWolf1999/testcasemaster-pro/script.js
-
curl -L -o script.js https://huggingface.co/spaces/ShadowWolf1999/testcasemaster-pro/resolve/main/script.js
783 Bytes
| document.addEventListener('DOMContentLoaded', function() { | |
| // Initialize tooltips | |
| const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')); | |
| tooltipTriggerList.map(function (tooltipTriggerEl) { | |
| return new bootstrap.Tooltip(tooltipTriggerEl); | |
| }); | |
| // Responsive table handling | |
| function handleResponsiveTable() { | |
| const tables = document.querySelectorAll('table'); | |
| tables.forEach(table => { | |
| if (window.innerWidth < 768) { | |
| table.classList.add('responsive-table'); | |
| } else { | |
| table.classList.remove('responsive-table'); | |
| } | |
| }); | |
| } | |
| window.addEventListener('resize', handleResponsiveTable); | |
| handleResponsiveTable(); | |
| }); |