Spaces:
Runtime error
Runtime error
| 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); | |
| } | |
| } |