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

otevřený
otevřeno před 3 roky uživatelem anam · 1 komentářů
anam okomentoval před 3 roky

<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 přidal(a) štítek
Frontend
před 3 roky
maeda přidal(a) štítek
?
před 3 roky
maeda přidal(a) toto do milníku 1.1 před 3 roky
maeda okomentoval před 3 roky
Vlastník

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 } ```
Přihlaste se pro zapojení do konverzace.
Bez milníku
Bez zpracovatelů
2 účastníků
Termín dokončení

Žádný termín dokončení.

Závislosti

Tento úkol momentálně nemá žádné závislosti.

Načítá se…
Zrušit
Uložit
Není zde žádný obsah.