Live data from Hacker News

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

tholman.com

81–90 of 336 posts

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

#81
post #78
post #75

Earlier quoted context omitted.

Sarcasm is nearly impossible to detect in writing. A tip: If it seems the whole world is a problem, it's probably not the world that is the problem.

Yeah, I wish somebody invented a sarcasm punctuation mark /s

They did https://en.m.wikipedia.org/wiki/Irony_punctuation

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

#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()

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

#85
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..

Thanks I didn't notice there was music.

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

#86
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 readers who THINK they are smart or whatever that means.

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

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

The first half of your comment could have been sarcasm. But the second part, with the exclamation point, definitely sold it.

Sarcasm is definitely not impossible to detect in writing. You just to have to trust people and give them the benefit of the doubt.

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

#88
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..

I had to stumble upon your comment to realize that thing made noise. I was wondering how a "scroll to top" function was at the top of HN.

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

#89
post #32

"back to top" is just such an epitome of how out of touch some modern design is. We had buttons on our keyboards that did this for half a century now. As for phones it should be up to the web-browser to implement it, nobody wants to use your idea of how scrolling should work. My machine already knows how I want to browse my content, don't pretend you know better.

A floating back to top button just means they don't want you to waste time reading the content. You should click around and view some more ads instead.

I mean, that's the only possible conclusion I can come up with, since they give the button such prominence. It's the same with newsletter popups. You shove that in my face, obscuring all other content, it means your site is dedicated to harvesting email addresses, and you want to spam me senseless.

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

#90

Can we just go back to buttons that _jump_ straight to the top instead of scrolling? Please? What problem is this even trying to solve?

That's what I did on my blog [1]. I tried different methods and realized that it should be a simple link that jumps you straight to the top and nothing fancy. The only JavaScript used it to determine when to display the link.

[1] https://www.primative.net/blog/how-to-get-rid-of-the-flash-o...

Post reply on HN