Lurker News

Comments (161) 45 threads

Show all comments

Showing thread 1 of 45

arechsteiner18 replies#
I made this! Thanks for sharing it. I'll be watching this thread for comments and feedback.

(Moderators: Could you remove the #dropdown part from the URL please?)
Edit: The two post seem to have been merged by the moderators. Thanks!

BafS#
Nice job, this is really handy !
reustle1 reply#
This is awesome! Can I request a search box at the top that lets me quick-search for something, and then hit tab or enter to "jump" to that one?
arechsteiner#
Thanks for your suggestion. I've considered adding a search/filter box, but I've decided that people can use Ctrl+f/Ctrl+g (assuming Chrome) in order to find items.

I might add it in the future though. It would be a nice feature really.

degenerate1 reply#
Thanks for making - it's so much more helpful than the over-9000 line bootstrap docs I am always using CTRL+F and trying to remember the name of elements on. Now I can just jump to the "card" section and scroll through everything really quickly to visually find it. Great job, will be using this.

But why, why, why, whyyyyyyy are you hijacking my back button, you evil person... please remove historystate, it's unnecessary for this site. Also, can you make the right/left arrow keys toggle between items in the preview box?

arechsteiner16 replies#
Thanks. I've added right/left arrows to the to do list.

About the back button: Do other people feel the same way? This is by design, but I'm open to change this behavior if people would prefer it.

saulr2 replies#
The user isn't changing page, so you definitely shouldn't be using pushState. If you want to update the address bar, use replaceState. After clicking a few of them I certainly didn't expect to have to click back to cycle through them just to get back to HN.

Continue this thread — 2 replies

omegote#
Yeah, get rid of historystate. It's annoying.
jordanlev#
I understand the rationale for doing it either way, but fwiw I prefer changing it so every card flips does not wind up in history. I think it has to do with the notion of "flipping" through the cards -- you're often just navigating through them to reach your desired goal, not reading them one by one as part of a linear narrative.

(I'm on my phone though so it's possible there's some alternate navigation on widescreen layouts that I'm not seeing).

jqm#
I agree the on back button. To me this is a page. When I push back I expect to return to the previous page not a different view of the same page.

That being said, this is really awesome work and will certainly come in handy! Nice job.

dsmithatx#
I think the back button should function like clicking the X and closing the modal. Otherwise the modal stays there, I click a second time and now I'm not on your site anymore.
manyxcxi4 replies#
It both makes sense and is counter-intuitive to me at the same time. I see why you did it, and I see why some people would like it that way- however when I hit the back button I'm trying to leave the page, so it feels like I'm being held hostage.

Continue this thread — 4 replies

pointytrees#
I think the ability to copy/paste a URL to show exactly the state I'm looking at (I.E. #dropdown to see the dropdown.) Is great! But, after I scroll through a dozen, I want to hit back to go back to HN.
petemill1 reply#
I wouldn't be so quick to remove the pushState - people here are mostly complaining that they want to get back to hacker news. But I can see that people (I) would normally use this site as a reference. And being able to explore different options and then use keyboard navigation to go back / forward isn't that bad. You could have used different 'pages' for the content but you chose to make the UX really quick and light, but that doesn't mean we should lose back / forward nav.

But if you've got some other keyboard navigation to go back / forward then maybe it wouldn't be so much of a loss...
Great site, it's what the official docs should be.

Continue this thread — 1 reply

ajnin#
I don't mind the back button behavior personally. This is intended mainly as a reference that you keep in your bookmarks, so you wouldn't have a previous page to go to in most cases. I can see how being able to move back/forward in history between 2 items would be useful.
bobwaycott#
Yes. Always. You'll find hijacking the back button is one of the most frequent first/top complaints in HN threads. :)
me_bx#
> Do other people feel the same way?

I find the back button as you implemented it handy.

tedmiston#
The way it works now is quite useful. However, if I have a popup open, then dismiss it, the URL does not change back to having no fragment. I wish it did that.

For example, if I open two class popups, then hit the back button twice, I'd expect to end up on the overview page with no popup open, but what actually happens is the last popup stays up even while the URL changes.
The other case is, if I have a popup open, then close it, I'd expect the URL to change to having no fragment to reflect that, but instead the old fragment sticks, so a reload would actually show the last popup you had open.
These are obviously minor things and I like the project, so I hope not to come across too nitpicky.

whizzkid2 replies#
You can solve the back-button issue with a little better UX design.

Don't change the url when people are clicking on the urls, but have a share icon for each element that is placed in the modal that pops up when clicking on it.
In this way, url stays the same while people are checking the elements, and you can still have specific urls for each element for people to point to a specific demo if they want.
Share icon copies the url e.g "<a href="http://hackerthemes.com/bootstrap-cheatsheet#dropdown-header"" rel="nofollow">http://hackerthemes.com/bootstrap-cheatsheet#dropdown-header...</a> to clipboard and visiting this url pops up the dropdown-header demo.

Continue this thread — 2 replies

duncans1 reply#
Use good old `window.location.replace(...)` - things will still be bookmarkable, but won't clutter history.
bbcbasic1 reply#
I bet you remember cassettes.
tomw18081 reply#
Why? Whyyy? You just made me lookup old 5.25" floppy games.
bbcbasic2 replies#
You got a floppy drive? I'm jealous. No pencil required :-)

Continue this thread — 2 replies

wildmusings1 reply#
People are complaining a lot about it because they're just visiting it to explore before coming back to HN to comment. When people are actually using the page as a reference, it's much less likely that they'll want to go back to another website in the same tab.

Continue this thread — 1 reply

aryamaan#
Yea, I felt the same what parent mentioned.
mgrpowers#
Nice job man, this will save me a lot of time on-boarding people.
samteeeee#
Very cool, thank you!
azazqadir#
This will serve as a great reference guide for me. Thanks for taking your time to build this.

Continue this thread — 12 more replies