HowardZhangdqs's picture
fix: update papers while the date is specified
6c0c3bb
raw
history blame contribute delete
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);
}
}