8 ms·
Elevator.js (2015)
- bjd2385 5y agoThis is awesome haha
- node-bayarea 5y agoFantastic surprise!
- happyrock 5y agoWarning: audio
- charles_f 5y agoFor all of us who took that at work in the bathroom.
- contravariant 5y agoOH, is that what it was. My mistake for having the sound muted I supposed.
- pedroma 5y agoThat scared the shit out of me. Thanks.
- tanseydavid 5y agoI could almost perceive the scent of Chanel No. 5 and roasted-cashews while I was riding on the UP-elevator.
- deleted 5y ago[deleted]
- detaro 5y agoNo voice announcements? :/
- cpcallen 5y agoA very cute bit of coding. But: I've always wondered who uses these "back to the top" buttons, and why? Until quite recently I hardly ever had reason to go back to the top of the page—I was much more likely to click a link or click the back button—and if I did a quick tap of the home key or flick of the touchscreen usually did the trick. Conveniently, both gestures work even if you've not gotten all the way down to the "back to the top" button. More recently with Chrome on iOS I find myself wanting to get to the top so I can use the pull-down-then-right gesture to close the tab. With really long pages sometimes a single flick isn't enough to get me all the way to the top—but then, on a really long page I'm also unlikely to have gotten all the way to the bottom.
- electroly 5y agoOn iOS, tap the top of the screen to automatically scroll to the top.
- mwexler 5y agoAnd is frustratingly, conspicuously missing in Android. Every time I switch to my Android tablet, it's becomes a hugely missing piece for any content consumption app that scrolls.
- Xenoamorphous 5y agoI think I read here on HN that Apple holds a patent for that functionality.
- ComputerGuru 5y agoExcept on AMP pages or on weird custom front ends. Long love plain html and css. Please don’t override the platform default scroll acceleration either!
- eyelidlessness 5y agoThis also works in most apps, unless they’re using some weird nonstandard UI (which is, perhaps surprisingly, less common on iOS than on macOS). And it works with Reachability. Neither of which are especially discoverable, but super handy if you know about them.
- btdmaster 5y agoStanley Parable Ultra Deluxe JavaScript Port?!
- lopis 5y agoI give it 3.5 / 5. It needs to preload the audio at least shortly before I click the button for optimal experience.
- zild3d 5y agoAlso needs multiplayer support - if someone else presses the button soon after you have to wait and ride up together
- rayrag 5y ago
- pwython 5y agoI bet your cats got really startled.
- pc86 5y agoI'll take "Slight Overreactions" for $1,000 please. It's a joke, calm your shit.
- dang 5y agoPlease don't attack others. It's not what this site is for, and it destroys what it is for. Perhaps you don't owe websites that play audio better, but you owe this community better if you're participating in it. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- joshuajomiller 5y agoThis should really be mandatory for any mall or office block website
- endisneigh 5y agoWhy? Can’t you just use anchor tags?
- Biganon 5y agoBecause... humor?
- marginalia_nu 5y agoIsn't that the punchline of the joke? At least I took it as a joke poking fun at javascript libraries that re-implement basic features in a more obnoxious fashion.
- duxup 5y agoI think it's kinda fun actually...
- mishraprince 5y agoWhy that audio? Scared, I could have spilled some fine coffee!
- shakezula 5y agoYeah, fuck this audio, it literally made me rip my earbuds out because it was so loud and unexpected. Straight up asshole design.
- yhoiseth 5y agoIt’s elevator music. Relax and enjoy the ride
- pc86 5y agoOh but you don't understand! They had to take their earbuds out. Clearly this is a malicious site and should be treated as such! The volume, after all. Yhoiseth, the volume.
- Mogzol 5y agoThe audio is the whole point of the library. Otherwise you could just use window.scrollTo({ top: 0, behavior: "smooth" })
- mos_6502 5y agoI submitted a PR for configurable volume ~2015 [0]. For as often as I see this complaint in threads about the project, it's a shame that the author isn't interested in implementing it. [0] https://github.com/tholman/elevator.js/pull/64 https://github.com/tholman/elevator.js/pull/64 [1] https://github.com/tholman/elevator.js/issues/113 https://github.com/tholman/elevator.js/issues/113 [2] https://github.com/tholman/elevator.js/issues/123 https://github.com/tholman/elevator.js/issues/123 [2] https://github.com/tholman/elevator.js/issues/124 https://github.com/tholman/elevator.js/issues/124
- Semiapies 5y agoGo easier on the fine coffee, then.
- burnt_toast 5y agoLoved the audio. I thought this was a serious library and was wondering why anyone would use it for something so simple until it started to play music.
- CGamesPlay 5y agoMany comments on the previous discussions: June 2020 (313 comments): https://news.ycombinator.com/item?id=23623470 https://news.ycombinator.com/item?id=23623470 April 2015 (66 comments): https://news.ycombinator.com/item?id=9416993 https://news.ycombinator.com/item?id=9416993
- dang 5y agoRight you are. Macroexpanded: Elevator.js – A “back to top” button that behaves like a real elevator - https://news.ycombinator.com/item?id=23623470 https://news.ycombinator.com/item?id=23623470 - June 2020 (313 comments) ElevatorJS – Scroll to top the old-fashion way - https://news.ycombinator.com/item?id=17048610 https://news.ycombinator.com/item?id=17048610 - May 2018 (1 comment) Finally, a “back to top” button that behaves like a real elevator - https://news.ycombinator.com/item?id=9446389 https://news.ycombinator.com/item?id=9446389 - April 2015 (10 comments) Elevator.js - https://news.ycombinator.com/item?id=9416993 https://news.ycombinator.com/item?id=9416993 - April 2015 (66 comments) (Reposts are ok after a year or so. This is in the FAQ: https://news.ycombinator.com/newsfaq.html https://news.ycombinator.com/newsfaq.html.)
- davejitsu 5y agoIt’s funny how sites used to play music all the time and now people are on the phone with the FBI to report any site with audio
- duxup 5y agoI miss the whimsy of the old web. I suspect even the folks who participated in that whimsy and now turn their nose up at a site with an odd design, or sound are to blame. Whimsy is still out there to some extent but just not as prevalent.
- kixiQu 5y agoIn case anyone wants to sniff around for some, there's some left in personal sites, often with an explicitly nostalgic vibe: https://yesterweb.org/webring/members.html https://yesterweb.org/webring/members.html https://www.kickscondor.com https://www.kickscondor.com <- anything in the kicksverse http://tetrageddon.com/ http://tetrageddon.com/ <-- nathalie lawhead has some wild net art projects
- bluejellybean 5y agoThese types of links are why I'm still hopeful for the internet as a platform. What a hit of crazy weirdness out of some random persons brain, just excellent.
- kixiQu 5y agohttps://maya.land/blogroll.opml https://maya.land/blogroll.opml <-- You can open this in your browser and look around at what I follow, the neocities and altweb sections in particular being relevant. The cool web isn't dead :) and I'm not even sure it shrank -- the less-cool web just got a lot bigger right next to it.
- michaelpb 5y agokickstcondor has a cool art style, but from my understanding it isn't exactly a personal site, given it's run by multiple people pretending to be a single person, who actually are doing this for work at Meta / Facebook: https://usesthis.com/interviews/kicks.condor/ https://usesthis.com/interviews/kicks.condor/ I hadn't heard of some of these other ones, and they look cool, thanks for sharing!
- deleted 5y ago[deleted]
- maupin 5y agoThere's a slight pause between when you click and the elevator starts rising.
- phailhaus 5y agoJust like a real elevator!
- huhtenberg 5y agoMost excellent, but the music needs to fade-in and the ride should end with a ding.
- Minor49er 5y agoIt does end with a ding
- deleted 5y ago[deleted]
- AA-BA-94-2A-56 5y agoGoing to slip this into prod real quick
- soheil 5y agoAll the comments hating on the audio is hilarious, I have to admit the audio is definitely louder than normal. It seems to have been tampered with to increase its loudness. Combined with the fact that the browser wouldn't have played it if it wasn't for the click interaction for "back to the top", which is of course the whole point of this demo. If intentional, clever and definitely deserves a HN front-page recognition.
- dstik 5y agoThis is so fun! Great work
- minimalc 5y agoThe Factorio blog [1] does a similarly fun thing with it's return to top functionality. It's a fun little easter egg. Hint: rockets go up [1] https://www.factorio.com/blog/post/fff-367 https://www.factorio.com/blog/post/fff-367
- satyrnein 5y agoI regret that I could only do it once.
- olex 5y agoExpected the music, was pleasantly surprised by the great comedic timing of the bell. Very nice.
- ChrisArchitect 5y ago(2015) unless there's something new here Lots of previous somewhat recent discussion: 2 years ago https://news.ycombinator.com/item?id=23623470 https://news.ycombinator.com/item?id=23623470 7 years ago https://news.ycombinator.com/item?id=9416993 https://news.ycombinator.com/item?id=9416993
- _s_a_m_ 5y agoWe hit rock bottom in the web dev community just now.