wesl-ee / RAL

Neo-forum / Textboard / Future simulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Navigation Page not Remembered

yumi-xx opened this issue · comments

commented

One of the cool things about the sidebar is that it has arrows for flipping through pages of items. However, when an option is selected, the page is not remembered; this is not much of a pain now but if there were more than a few pages this would quickly become sore.

I have a few ideas on how this may be fixed, ordered by how much I like each idea:

  1. Window.sessionStorage
  2. Temporary cookie
  3. GET parameter

When implementing one of these suggestions, remember that multiple navigation arrows / containers must be supported, i.e. I don't want to see page=1 because I'm not sure which navigation you are talking about?

Ideally loop through the DOM and store the page of each collection of items.

Difficulty: 3/5

commented

Removed the arrows that would scroll through the <nav>. This feature was deprecated (b02bb3f) in favor of enumerating all items in the nav, both for its simplicity and its cleaner appearance.

No reason to fiddle with GET parameters for turning pages.