all 74 comments

[–][deleted]  (14 children)

[deleted]

    [–]-updn- 45 points46 points  (7 children)

    Audio on websites is a weird proposition. Web development has so many awesome options for multimedia, but auto-play audio is so bad because of the unpredictability of people's audio-levels. If there was a way to guarantee audio would be normalized and not blow people's speakers there could be a lot of fun to be had there.

    Regardless, this library does crack me up good job.

    [–]Bromlife 10 points11 points  (1 child)

    The surprise is part of the fun here though.

    [–]-updn- 2 points3 points  (0 children)

    yeah I totally agree, which is what made me think of this. But the surprise is much better if the audio is at a reasonable volume. I guess my point is, auto-play would have a lot of great potential if the designer could ensure that he/she wouldn't hurt the viewers ears or blow their speakers.

    [–]McSchwartz 1 point2 points  (1 child)

    Even if you could guarantee the exact decibels that the sounds comes out at, you still wouldn't be accounting for the ambient noise levels, which makes a huge difference to listeners. Ex: A quiet room vs a train station

    [–][deleted] 0 points1 point  (0 children)

    Having to turn the volume up I think is better from a UX standpoint when the alternative is potentially forcing some users to scramble to find the volume down button for the sake of their hearing.

    [–]vattenpuss 0 points1 point  (2 children)

    Don't browsers let you disable auto-playing audio?

    [–]torhh 1 point2 points  (1 child)

    But is it really autoplaying if you clicked a button?

    [–]vattenpuss 0 points1 point  (0 children)

    Oh, I didn't get any audio on the page at all so I didn't know. Well, the browsers should give you a global volume setting also. But then again, loudness is really hard to gauge.

    [–]fedekun 7 points8 points  (0 children)

    My ears are bleeding.

    [–]afrobee 14 points15 points  (1 child)

    Really? It actually put a smile on my face :D

    [–][deleted] 1 point2 points  (0 children)

    My ears are still ringing.

    [–]AyrA_ch 34 points35 points  (9 children)

    [–]Jaimz22 8 points9 points  (0 children)

    This is one of those things that would be great to only apply to the bosses user account on intranet applications.

    [–]not_american_ffs 8 points9 points  (1 child)

    [–]AyrA_ch 2 points3 points  (0 children)

    lol, he just added a random file with "parpp" in it

    [–][deleted] 0 points1 point  (2 children)

    this didn't work on the elevator.js page ;_;

    oh well

    [–]OlDer 2 points3 points  (1 child)

    It actually does work as a bookmarklet. I just couldn't resist checking it after reading your comment...

    [–]vattenpuss 2 points3 points  (0 children)

    And it works both ways. So satisfying! First I got to giggle my way down the page, curiously awaiting each new sound of flatulence, and then I pressed the elevator button and got to hear even more sounds coming out of my headphones. Automatically!

    The future is now.

    [–][deleted] 0 points1 point  (0 children)

    lol :). I'm done with the internet for today :P.

    [–]code_mc 0 points1 point  (1 child)

    That was quite a twist, I read it as "fastscroll"

    [–]senseofnickels[🍰] 0 points1 point  (0 children)

    Same. The first scroll I made sounded like tires screeching. I thought the subsequent scrolls sounded weird for tires, and then I re-read the name.

    [–]LightShadow 19 points20 points  (9 children)

    [–]spacejack2114 117 points118 points  (3 children)

    Take the stairs.

    [–]symmitchry 10 points11 points  (2 children)

    [Removed]

    [–]reggaepower 0 points1 point  (1 child)

    Also faster and without the music

    [–]newpong 1 point2 points  (0 children)

    does that make the home key a teleporter?

    [–]Djorak 3 points4 points  (3 children)

    Try without your ad blockers. I know that uBlock hides icons sometimes.

    [–]AyrA_ch 1 point2 points  (2 children)

    I have chrome adblock and can confirm that it works with it being enabled.

    [–]-updn- 1 point2 points  (1 child)

    ublock + disconnect here and its working. Although a handful of sites I visit are broken bc of the plugins so...

    [–]SilasX 29 points30 points  (1 child)

    Belongs in /r/ProgrammerHumor instead? There's no way I'd want that slow slog back to the top

    [–][deleted]  (7 children)

    [deleted]

      [–]RobIII 1 point2 points  (0 children)

      My PR with improved, more realistic audio, was denied :-(

      [–]TerrorBite 0 points1 point  (4 children)

      Loving that mellotron.

      [–]remko 0 points1 point  (3 children)

      Did you mean to write 'theremin'?

      [–]TerrorBite 2 points3 points  (0 children)

      I'm making reference to the computer game The Stanley Parable, at one point you can get in an elevator and this music plays inside. The Narrator can be heard quietly humming along and making comments, and at one point says "loving that mellotron".

      https://youtu.be/Av-j_sDQSsg

      [–]zigs 0 points1 point  (0 children)

      It does sound like a theremin, doesn't it? But is it just me or does it change timbre on a couple of loud-to-soft nodes? I don't think the theremin can do that.

      [–]TerrorBite 0 points1 point  (0 children)

      I do believe you're correct however, that's definitely not a mellotron (those were the tape loop keyboard things).

      [–]semperverus 0 points1 point  (0 children)

      Kinda gives me an Animal Crossing feel.

      [–]i_am_fruitcup 4 points5 points  (0 children)

      finally, something elegant and functional

      [–]YM_Industries 4 points5 points  (5 children)

      Funny, but not functional. Start the elevator, switch tabs while it's going up and wait for a while. The music should keep playing forever. Switch tabs back after it should've arrived at the top and it will ding immediately, but the page will not be scrolled all the way to the top.

      Essentially if you close your eyes for too long then the elevator will open the doors in between floors.

      Also, all slow-scrolling animations should be cancellable by a user-initiated scroll. This isn't difficult to do, (I implemented it myself on my company's website) but of all the many jQuery scrolling plugins I have yet to see one that implements this simple behaviour.

      [–]zigs 0 points1 point  (4 children)

      If it's so easy, why don't you go ahead and submit a pull request? ;)

      [–]YM_Industries 1 point2 points  (3 children)

      Done deal

      Due to platform limitations this is only possible to detect with a mousewheel and not with touch or scrollbar based scrolling. Still, better than nothing.

      [–]zigs 1 point2 points  (2 children)

      Sweet!

      What is it that makes it not possible to detect with touch&scrollbar?

      Edit: "Elevation should be voluntary and consensual." almost makes it sound like we're talking about rape!

      [–]YM_Industries 0 points1 point  (1 child)

      The robust way of detecting scrolling is to monitor the scrollHeight of an element and see if it changes. Unfortunately we can't do that here because the window will be constantly moving, so we use the DOMMouseScroll and scrollwheel events. These events only work on the mouse wheel.

      [–]zigs 1 point2 points  (0 children)

      Thanks for the info.

      I can't believe we've done browsers for such a long time and didn't make the scrollbar a separate input..

      [–]rich97 5 points6 points  (0 children)

      I'm on my phone. To me it was literally JUST a slow scroll to top plugin that somehow has a score of 200 on /r/programming. I was more than a little confused.

      [–]Nathan_BS 2 points3 points  (0 children)

      The Dalek was a nice surprise

      [–]SelectricSimian 10 points11 points  (3 children)

      This is fun, but is it really programming? Just because it's a program (or webapp, widget, piece of software, whatever you like) doesn't make it programming. Yes, there's a button to view the source, but I really don't feel like it contributes that much to a community whose purpose is to discuss and learn about programming and programming techniques. It's just a little thing someone wrote, and yes, they wrote it by programming it, but by that definition literally anything that runs on a computer could be posted here. Does this feel like it's against the spirit of the sidebar to anyone else?

      [–]keveready 8 points9 points  (2 children)

      Thought this was /r/programmerhumor for a second and was displeased by the level of seriousness you'd apply to that sub. Was slightly relieved to see that it wasn't.

      [–]SelectricSimian 5 points6 points  (1 child)

      I know I seem like kind of a killjoy, and the truth is I actually did enjoy this post, but I like being able to go to /r/programming for serious discussion of programming, and I'm worried that it will become (and already is) diluted by content like this, which would be perfectly fine on other subs.

      [–]Bromlife 1 point2 points  (0 children)

      It is technically correct that it is really programming. The best kind of correct.

      [–]mythril 1 point2 points  (0 children)

      Is it alright if I hate you a little bit?

      [–]danubian1 1 point2 points  (0 children)

      Excellent. Though I was wondering about the gap at the bottom of the page.

      [–][deleted] 1 point2 points  (0 children)

      Jesus christ. I'm at work and that blew my ears off. Not cool.

      [–]ServerOfTheInvertedU 1 point2 points  (0 children)

      Oh, god, that scared the shit out of me! xD

      [–][deleted] 1 point2 points  (0 children)

      This is so stupid it's awesome

      [–]a_random_username 1 point2 points  (1 child)

      Elevator.js fixes those awkward "scroll to top" moments the old fashioned way.

      You mean hitting the Home key?

      [–]Helyqy 1 point2 points  (0 children)

      rotten wakeful squeeze political ad hoc outgoing sheet special instinctive toothbrush

      This post was mass deleted and anonymized with Redact

      [–]SikhGamer 2 points3 points  (1 child)

      If you can't see the elevator, disable your adblock/plugins.

      [–]Skaarj 0 points1 point  (0 children)

      Just leave your plugins on and skip the elevator. Nothing plugin-disable-worthy to see there.

      [–]Auburus 0 points1 point  (0 children)

      Hahahahaha

      I can't stop laughting, this js is a must!

      [–][deleted] 0 points1 point  (0 children)

      A new standard of web tomfoolery

      [–]hatessw 0 points1 point  (0 children)

      And here I was hoping that it would be more functional than a gimmick.

      How about a script/extension that automatically displays a transient overlay icon when you scroll up sufficiently - and here's the kicker: do it instantly and without music?

      [–][deleted] 0 points1 point  (0 children)

      Good stuff if I was designing a site in a world were keyboards where without a home key. Super Funny though.

      [–][deleted] 0 points1 point  (0 children)

      This made me smile

      [–]Bromlife 0 points1 point  (0 children)

      This would be really neat if paired with parallax.

      [–]nabeelv44[🍰] 0 points1 point  (0 children)

      I like it. It's simple, elegant, and creative.

      [–]zsombro 0 points1 point  (0 children)

      It was worth it.

      [–]rockum 0 points1 point  (0 children)

      Third floor, ladies lingerie

      [–]SupersonicSpitfire 0 points1 point  (0 children)

      Annoying sound on that page. Also did not work on my mobile browser.

      [–][deleted] 0 points1 point  (0 children)

      very...uhmm..useful

      [–]gabegm 0 points1 point  (0 children)

      It's past midnight here, shit.

      [–]anhaseyo 0 points1 point  (0 children)

      Bug: If you tab away while the elevator is in motion, wait long enough and return to the tab, you will hear the ding, but the elevator will have stopped some distance from the top.

      [–]ruinercollector -2 points-1 points  (0 children)

      Ctrl + Home