#208 Artists sort jumplinks to content that hasn't yet been loaded on page.

오픈
anam3 년 전을 오픈 · 1개의 코멘트
anam 코멘트됨, 3 년 전

<staging:8080>/artist/sorted/by-alpha

Artist sorted by-alpha only loads 21 cards. this doesn’t allow user to jump to bottom of the list when clicking on the bottom of the list option.

I would like…

<staging:8080>/artist/sorted/by-alpha links when clicked to load content being jumped to.

`<staging:8080>/artist/sorted/by-alpha` Artist sorted by-alpha only loads 21 cards. this doesn't allow user to jump to bottom of the list when clicking on the bottom of the list option. I would like... `<staging:8080>/artist/sorted/by-alpha` links when clicked to load content being jumped to.
anam added the
Frontend
label 3 년 전
maeda added the
?
label 3 년 전
maeda added this to the 1.1 milestone 3 년 전
maeda 코멘트됨, 3 년 전
소유자

This needs to check what alpha was loaded…

so we have to look for:

const seen = []
const checkSeen() {
    ['a','b','c'].forEach(letter => {
        const saw = document.querySelector(`#${letter}`)
        if(saw) { seen.push(letter) }
    }) 
}

and just call checkSeen() everytime we load more posts…

then when you use the jump link…. look at seen like…

if(!seen.includes(myLetter)) {
    // loadMorePosts
    // check seen
    // loadMorePosts
    // repeat
}
This needs to check what alpha was loaded... so we have to look for: ```javascript const seen = [] const checkSeen() { ['a','b','c'].forEach(letter => { const saw = document.querySelector(`#${letter}`) if(saw) { seen.push(letter) } }) } ``` and just call `checkSeen()` everytime we load more posts... then when you use the jump link.... look at `seen` like... ```javascript if(!seen.includes(myLetter)) { // loadMorePosts // check seen // loadMorePosts // repeat } ```
로그인하여 이 대화에 참여
마일스톤 없음
No Assignees
참여자 2명
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
취소
저장
아직 콘텐츠가 없습니다.