Idea for ya: compact page index that saves a pile of code.
August 28, 2015, 02:10:26 am
Was just playing around with this today. Not on the Elk codebase, but should be a piece of cake to adapt. I don't really have the time and motivation to do it myself at the moment (would have to learn Elk back end n stuff all over again) but if you think the idea is worth nicking, go for it. So the plan is to ditch most of the markup, CSS and js for the old page index, and substitute a select. This is nice and clean on desktop, and nice and compact on phones. Phones like selects, going from what the nutters who browse with them tell me. Keep the previous/next page buttons for convenience, since 99% of the time that's what people will probably use. Select is just for backup if they want some particular page in a hurry, and to give them a clear indication of where they are up to. If there is only one page, no need for the select or the previous/next buttons. It just gives you the page without added crud. Even with the two remaining buttons, the code is still much simpler overall.
Re: Idea for ya: compact page index that saves a pile of code.
Reply #3 – August 28, 2015, 07:17:40 am
I can see that helping on the small screens vs the current buttons.