Spaces:
Running
Running
Download script.js from cokky98/slidecraft-wizard: direct link, hf CLI and curl.
- Browser
- Download file 734 Bytes
-
https://huggingface.co/spaces/cokky98/slidecraft-wizard/resolve/main/script.js
- Command line
-
hf download hf://spaces/cokky98/slidecraft-wizard/script.js
-
curl -L -o script.js https://huggingface.co/spaces/cokky98/slidecraft-wizard/resolve/main/script.js
734 Bytes
| document.addEventListener('DOMContentLoaded', () => { | |
| // Initialize any global functionality | |
| console.log('SlideCraft Wizard initialized'); | |
| // Example: Handle PPTX generation | |
| const generateBtn = document.querySelector('button[data-action="generate"]'); | |
| if (generateBtn) { | |
| generateBtn.addEventListener('click', () => { | |
| // This would be replaced with actual PPTX generation logic | |
| alert('Presentation generated! (This would download the PPTX file in a real implementation)'); | |
| }); | |
| } | |
| }); | |
| // Function to add a new slide | |
| function addNewSlide() { | |
| const slideEditor = document.querySelector('slide-editor'); | |
| if (slideEditor) { | |
| slideEditor.addSlide(); | |
| } | |
| } |