Live data from Hacker News

Elevator.js – A “back to top” button that behaves like a real elevator

tholman.com

281–290 of 336 posts

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#281
post #68

The "back to top" functionality is so useful in web pages. I wish they would make a dedicated button on keyboards that just takes you to the top of the page. Better yet, it can work in other apps too! It could, for example, take you to the beginning of a line when you're writing text. Edit: Wow, I thought I was going the extra mile to make the joke obvious by saying the key should also take you to the beginning of a…

On tangent, it's strange that our keyboards mostly stayed the same while the screens got around x20 better. I often need to make bigger and smaller jumps with keyboard. In Sublime I use a plug-in that can jump 10 lines up and down but I also need that functionality across the rest of OS. For navigating menus, scrolling through content, moving around spreadsheet. Page up/down is too large jump with the amount of conte…

Yeah, 10 line jumps are awesome when coding. In emacs I bind this behaviour to the ctrl-up and ctrl-down like so:

  (global-set-key [C-down] '(lambda () (interactive) (next-line 10) ))
  (global-set-key [C-up] '(lambda () (interactive) (previous-line 10) ))

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#282

Earlier quoted context omitted.

My work Apple keyboard has a home button. It's right there between Function and Page Up. https://www.apple.com/shop/product/MQ052LL/A/magic-keyboard-... My home Apple keyboard has the Home button between Help and Page Up. Though, I will admit that keyboard is 2003ish. But I keep using it because it still has good action.

Is that one of the A1048 [1] "crumb tray" keyboards with the clear rim around the edge? I recently switched to one of those from an original iMac keyboard (finally got fed up with not having a forward delete key) and the key edges and the action both feel crisper. Could just be that I've been using the other one for a decade or so though. [1]: https://en.wikipedia.org/wiki/Apple_Keyboard#Apple_Keyboard_...

Almost. It's the Apple Pro Keyboard (M7803)

https://en.wikipedia.org/wiki/File:Apple_Pro_Keyboard_black....

I have to get a USB⇄USB-C dongle so I can use it on my Windows machine.

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#283
post #30

It woke up my wife, as I tried it on my phone when the stupid elevator music played it out loud :/ In all seriousness, I hope this will not become another 250kb JS framework we use in our projects..

First if all, fuck webpages that play sound unexpectedly. Secondly, what percentage of elevators even play music these days?

Secondly, what percentage of elevators even play music these days?

Pretty much every elevator I've been in for the last ten years. I note it mentally because spirit of the music is always at odds with the messages on the display screens.

I think the only elevators where I haven't heard music recently are in residential buildings.

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#284
post #250
post #30

It woke up my wife, as I tried it on my phone when the stupid elevator music played it out loud :/ In all seriousness, I hope this will not become another 250kb JS framework we use in our projects..

You don't keep your volume muted? That's a little silly

You judge how other people use their computers without knowing the first thing about their circumstances? That's a little silly

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#285
post #156

Earlier quoted context omitted.

After 20 years of using keyboards, I have, thanks to this comment, discovered the "Home" button.

Other keys that may be non-obvious: - Insert toggles between shifting characters after the cursor to the right and deleting the character to the right of the cursor, replacing it with the new character you typed, but not replacing a newline character. While eg. Caps Lock is global, Insert mode is local to the text input that currently has focus - tab or mouse over to a new window and you've lost Insert mode, tab back…

> Note to web developers who are unfamiliar with keyboards: Make sure your fixed/sticky header/footer banners don't hide content when using "Page Up" and "Page Down".

Firefox has specific code to detect banners and reduce the Page Down distance. This code fails on new Twitter.

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#286

Scrolling back to top like an animal? No thanks, I just refresh the page instead as a civilized person would do.

Which only works if haven’t hit any in-page anchor links ;) otherwise, you’d snap right back to a particular section after a refresh.

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#287

A lot of people already mentioned here the Home button. Anecdote: for years we kept getting users asking for a back to top button and we always told them to just use the Home button and they thought it was the most amazing thing ever. Most of our users are on Windows. Anyway, we did end up having to put a Back to top button. It was clear that users just don’t get it. Most people really don’t know what the Home button…

Also, many people have a work email account and a personal email account, and a mailto link doesn't give them the option to choose which account to send from - there's no reason not to write out email addresses as the text itself.

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#288
post #79
post #68

The "back to top" functionality is so useful in web pages. I wish they would make a dedicated button on keyboards that just takes you to the top of the page. Better yet, it can work in other apps too! It could, for example, take you to the beginning of a line when you're writing text. Edit: Wow, I thought I was going the extra mile to make the joke obvious by saying the key should also take you to the beginning of a…

Hacker News attracts a lot of smart readers, so I'm kind of surprised that your comment actually 'fooled' people. It was very obvious sarcasm.

> Hacker News attracts a lot of smart readers

Here's where I disagree

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#289
post #68

The "back to top" functionality is so useful in web pages. I wish they would make a dedicated button on keyboards that just takes you to the top of the page. Better yet, it can work in other apps too! It could, for example, take you to the beginning of a line when you're writing text. Edit: Wow, I thought I was going the extra mile to make the joke obvious by saying the key should also take you to the beginning of a…

I fell for it because although I’ve used a computer constantly for over 20 years I don’t think I’ve ever touched that home button. At least not deliberately. I never use escape or any function keys either. I still can’t figure out how to get in and out of insert mode in sublime text. When it happens I just quit and restart. I’m starting to wonder why I tolerate this level of ignorance in myself. I mean, I use key com…

> I still can’t figure out how to get in and out of insert mode in sublime text. When it happens I just quit and restart.

Not sure if joking, but you literally press the button labelled "Insert".

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#290
post #202
post #156

Earlier quoted context omitted.

After 20 years of using keyboards, I have, thanks to this comment, discovered the "Home" button.

For Apple 101-key keyboard users, who don’t have a “Home” key: try Cmd+Up (and Cmd+Down.) Bonus: also try Ctrl+E (and Ctrl+A) in text fields, or on the command-line. (Both of these carry over to iOS, if you’re curious. I just tested them with the iPad keyboard-folio thing.)

Lack of a working home/end function is literally the biggest reason I dislike working on a Mac. I don't understand what would be so hard about just having them work like they do on a PC.
Post reply on HN