Spaces:
Runtime error
Runtime error
Download js/detail.js from SmartFlowAI/HuggingFaceWeeklyPaper: direct link, hf CLI and curl.
- Browser
- Download file 827 Bytes
-
https://huggingface.co/spaces/SmartFlowAI/HuggingFaceWeeklyPaper/resolve/main/js/detail.js
- Command line
-
hf download hf://spaces/SmartFlowAI/HuggingFaceWeeklyPaper/js/detail.js
-
curl -L -o detail.js https://huggingface.co/spaces/SmartFlowAI/HuggingFaceWeeklyPaper/resolve/main/js/detail.js
827 Bytes
| function showDetail(paperId) { | |
| // ้่ smartflow-paper-paperId ็ๆๆๅ ๅผ่็น | |
| var siblings = document.querySelectorAll(`div[id^='smartflow-paper-']:not(#smartflow-paper-${paperId.replace('.', '-')})`); | |
| siblings.forEach(sibling => sibling.style.display = 'none'); | |
| // ๆพ็คบๅฝๅ่็น | |
| var paper = document.getElementById(`smartflow-paper-${paperId.replace('.', '-')}`); | |
| if (paper) { | |
| paper.style.display = 'block'; | |
| } | |
| document.getElementById("paper-detail-area").style.display = "block"; | |
| document.getElementById("paper-detail-area").scrollIntoView({ | |
| behavior: 'smooth' | |
| }); | |
| } | |
| // ไปURLไธญ่ทๅๅๆฐ | |
| function getPaper() { | |
| const paperId = new URLSearchParams(window.location.search).get('paper'); | |
| if (paperId) { | |
| // showDetail(paperId); | |
| } | |
| } |