Live data from Hacker News

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

tholman.com

181–190 of 336 posts

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

#181
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?

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

#182

Ugh, I thought I had tabs muted by default in my browser... Clearly I was mistaken. Turns out I need an extension for it. But now I have ugly mute symbols on every single tab which isn't "default" at all. What I want is sound symbols on tabs that I have expressly un-muted.

With Chromium based browsers you should be able to set every website to be muted at first. You'll only see a mute symbol on the tab when the tab tries to play sound.

If there is no sound at all, there shouldn't be an icon.

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

#183
post #79

Earlier quoted context omitted.

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.

Plenty of Mac users out there without a “Home” button.

I have an Apple keyboard with a home key and I never use it.

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

#184
post #107

Back to the top buttons are a symptom of the system-within-a-system feature of Web. The Web page isn't a document: it's a system, a virtual machine. Just like running another OS in VirtualBox implies bad interoperability and a lot of duplicated effort with the host OS, so too does running web pages. In a quest to be everything, Web became a bogged down, developer-time devouring beast. It can do almost anything, but y…

It means universal, think smalltalk. Has ups and downs - not much integration with a host comes with independence from a host. IE was created because Microsoft feared web would make OS inconsiderable. There was bold claim even before Netscape's Constellation [1]. So everything goes like it was predicted years ago.

[1] https://people.apache.org/~jim/NewArchitect/webrevu/1997/02_...

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

#185
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…

[deleted]

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

#186

Earlier quoted context omitted.

Plenty of Mac users out there without a “Home” button.

If I'm not mistaken, Fn + Left Arrow is Home on a Mac. Similar to Fn + up/down is Page Up/Down, and IIRC Fn + Right is End.

Been a Mac user for 17 years, never knew that. Thank you.

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

#187
post #102

Earlier quoted context omitted.

Cant tell if this is sarcasm or not, but "Home" key does this...

Or shift+space if you want to take steps until the top (maybe you just want to navigate up faster, and not to the top)

Wow, thanks!

I use space all the time to scroll down on a web page, didn't know you could reverse direction, awesome :)

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

#188

Earlier quoted context omitted.

If I'm not mistaken, Fn + Left Arrow is Home on a Mac. Similar to Fn + up/down is Page Up/Down, and IIRC Fn + Right is End.

Been a Mac user for 17 years, never knew that. Thank you.

I cannot imagine how painful those years must have been.

The moment I learned my macbook didn’t have a home button I was searching for how to emulate that.

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

#190
post #83
post #82

Nice one. Something important missing in this framework is a logic to check the number of people in the elevator. You should use webRTC to count the number of users using the elevator. And if it is more than 8 it should sound alarm!

So the modified algorithm will be as follows. When the user clicks elevator, it first sends a distributed query to all browsers and each browser replies with 0, if elevator is not being used, or 1 when it is used. After the polling is done, it sums all responses. If sum_resp_elev<8:move() else Ring_alarm()

Nope. When you're at the bottom of the page, you should first have to call the elevator. Then it should stop at all those levels at which other people have also called it before coming to your position. Then you get a chance to be kicked out for being overweight.
Post reply on HN