Download script.js from 7keyammo/physics-peer-grading-powerhouse: direct link, hf CLI and curl.
- Browser
- Download file 588 Bytes
-
https://huggingface.co/spaces/7keyammo/physics-peer-grading-powerhouse/resolve/main/script.js
- Command line
-
hf download hf://spaces/7keyammo/physics-peer-grading-powerhouse/script.js
-
curl -L -o script.js https://huggingface.co/spaces/7keyammo/physics-peer-grading-powerhouse/resolve/main/script.js
588 Bytes
| // Shared functions for the physics peer grading app | |
| function getCurrentDateTime() { | |
| const now = new Date(); | |
| const month = String(now.getMonth() + 1).padStart(2, '0'); | |
| const day = String(now.getDate()).padStart(2, '0'); | |
| const year = now.getFullYear(); | |
| return `${month}/${day}/${year}`; | |
| } | |
| // Auto-fill date field on page load | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const dateField = document.getElementById('date'); | |
| if (dateField && !dateField.value) { | |
| dateField.value = getCurrentDateTime(); | |
| } | |
| }); | |
| // Add any additional shared functionality here |