7 ms·
Elevator.js
- SchizoDuckie 11y agoBrilliant
- taternuts 11y agoI have to say, this definitely made me chuckle
- riscy 11y agoScrolled to the bottom and there was no elevator.
- tjcelaya 11y agoI don't know why there's so much empty space at the bottom but I did notice my phone allowed me to continue playing the song if I dragged up from the bottom. It's four full minutes of sweet, relaxing elevator music.
- guptaneil 11y agoI know it would ruin the joke, but there should be some notice to turn up your volume. My speakers were muted, so I didn't realize I was missing anything until I saw the HN comments. Definitely made me chuckle once I got the full experience.
- benatkin 11y agoNot as long as google has autoplay on YouTube. They shouldn't be the only ones to get that privilege.
- nkozyra 11y agoAlternately, a NSFPoN (Not safe for parents of newborns) tag.
- tadfisher 11y agoThat just happened to me, indeed.
- kkl 11y agoI had the opposite experience. My speakers were all the way up and I scared myself.
- CoryG89 11y agoIt would be nice if there was a way to check the system audio volume via the web audio API. Then you could display a notice only if the volume is too low or too high. Alas, no such functionality currently exists without browser plugins.
- w-ll 11y agoUntil it pauses ads when I mute them.
- gdrulia 11y agoI would agree that it would be nice to have an option to check if sound is not muted, but not to actually check the volume. One of the worst user experiences I have experienced in the recent years is those notifications telling me that my volume is too loud. But such assumption most of the time is totally wrong as it is hardware dependent. Especially when you use additional speakers or headphones with their own volume regulators. On windows 8.1, every time you make your volume higher than 40%, you will be interrupted with notification about high volume causing hearing loss, similar tactics is used in android. So in my opinion checking system volume to determine whether the sound is too low or too high is completely wrong approach.
- fredfoobar42 11y agoWould be better with "Girl From Ipanema"
- tylermac1 11y agoQuintessential elevator music.
- chrissnell 11y agoMy first thought, too. I even looked to see if someone had submitted a PR. https://www.youtube.com/watch?v=UJkxFhFRFDA https://www.youtube.com/watch?v=UJkxFhFRFDA
- malkia 11y agoLol. Can't there be buttons 1..18 for the different levels, and if multiples are picked, sound on each one, doors opening (short time to read the paragraph), then another comes. can't wait to use it now!
- dennisnedry 11y agoMaking sure to skip the 13th, so it would 1...19.
- joemaller1 11y agoThough I've used elevators pretty much every day for 20 years, I can't recall the last time an elevator had music playing.
- gobbert 11y agoIt's a travesty!
- naringas 11y agoit is very silly. does that track have a title?
- jffry 11y agohttp://www.bensound.com/royalty-free-music/track/the-elevator-bossa-nova http://www.bensound.com/royalty-free-music/track/the-elevato...
- lifthrasiir 11y agoIn some browsers (e.g. Chrome), clicking the elevator and leaving the tab to make it inactive would play the tune indefinitely (the chime plays only when the tab is activated again). If you enjoyed the tune, well, you've got something to do now.
- rolfvandekrol 11y agoSadly Tim Holman removed this essential feature: https://github.com/tholman/elevator.js/commit/7e19e0f23edf6bd78a511539faa5316c2f58d179 https://github.com/tholman/elevator.js/commit/7e19e0f23edf6b...
- mintplant 11y agoFortunately you can access the music file directly: https://raw.githubusercontent.com/tholman/elevator.js/master/demo/music/elevator-music.mp3 https://raw.githubusercontent.com/tholman/elevator.js/master...
- gbachik 11y agoWell made sir!
- arvinsim 11y agoThere should be a rule that pages that autoplays background music should explicitly warn the user.
- capex 11y agoMy thought exactly when the music started playing. But I think this could better be implemented in the browser/ via an extension. You can't trust users to follow a convention all the time. EDIT: Someone found my comment worth downvoting.
- hardmath123 11y ago> This document extends the Web platform with the ability to direct audio output to non-default devices, when authorization is given. Authorization is necessary because playing audio out of a non-default device may be unexpected behavior to the user, and may cause a nuisance. For example, suppose a user is in a library or other quiet public place where she is using a laptop with system audio directed to a USB headset. Her expectation is that the laptop’s audio is private and she will not disturb others. If any Web application can direct audio output through arbitrary output devices, a mischievous website may play loud audio out of the laptop’s external speakers without the user’s consent. > To prevent these kinds of nuisance scenarios, the user agent must acquire the user’s consent to access non-default audio output devices. This would prevent the library example outlined earlier, because the application would not be authorized to play out audio from the system speakers. > The default audio output device is always authorized. :-( [1] http://www.w3.org/TR/audio-output/#privacy-consent (section 5.1)
- bdthinh 11y agoIt doesn't work in Safari.
- hsshah 11y agoIt worked perfectly for me in Safari (OS X 10.10.3) Do you have ublock? Try disabling that on this page.
- hrayr 11y agoHm, I must have gotten a js error because I didn't see an elevator button, and until I checked HN comments, I had assumed this was a social experiment/joke to see how far people scroll to find nothing. I tried it couple times, too..
- carlesfe 11y agoIt made me smile :) In case you missed part of the joke: you need to turn your speakers on
- danielhgma 11y agoSolid chuckle. Two thumbs up
- nness 11y agoHilarious!
- sparaker 11y agoI don't see why you would create a javascript lib for such a simple task, perhaps a jQuery plugin would have been sufficient. Oh wait, it already exists. Perhaps you were just bored?
- weavie 11y agoPerhaps not everyone uses JQuery.
- ConAntonakos 11y agoMaybe he was bored? Should creativity just cease at that moment?
- n8m 11y agoDon't stop re-inventing things! I know there probably are hundreds of those scripts/plugins out there - but this one made me laugh! Well done!
- nodejsisbest 11y agoAmen, brother. Some commenters take life too seriously.
- volent 11y agoThere is a strange behavior on my computer. If I turn the volume up/down when the music is playing I instantly get to the top of the page !
- soukiab 11y agogood work
- mamoriamohit 11y agoI thought this is a useless library, UNTIL I checked out HN comments to find out that the library played a sound too while scrolling up. :)
- melicerte 11y agoExcellent !
- maze-le 11y agoThat was hilarious. I have hacked something like this a while ago (autoscrilling from bottom to top), but without the elevator-references, and the music...
- NKCSS 11y agoToo bad his name isn't Tim Rolman...
- mparramon 11y agoSomething.js strikes again! http://www.developingandstuff.com/2015/03/somethingjs.html http://www.developingandstuff.com/2015/03/somethingjs.html
- ctaglia 11y agoI thought it was the old vintage arcade game :-(
- amelius 11y agoI was already playing music when I pressed that elevator button... Thanks for the "great" experience :)
- morpheous 11y agoWho wrote this a 5 year old?! I'm very annoyed about the sudden blaring, jarring music. Got a few angry stares from colleagues. The polite thing to have done would at least put up a notice.
- danielbln 11y agoWhile I dislike websites playing sudden sounds as much as the next guy, it should serve as a reminder to keep your computer muted at all times or have a pair of headphones plugged in when you share office space. If I ever go postal in the open plan office here, then it's going to be over random noise (skype sounds being the worst culprit) escaping someone's unmuted laptop.
- maze-le 11y ago> it should serve as a reminder to keep your computer muted at all times or have a pair of headphones plugged in This is so true... I learned it the hard (embarrassing) way.
- zimpenfish 11y ago"That awful moment when you're drawing a Powerpuff Girl in the toilets and your phone decides it should restart Test Match Special. Loud."
- deitcher 11y agoThis was a lot of fun. I don't care that it isn't hyper-practical, or a jQuery plugin may or may not exist. We aren't that serious about ourselves, are we?
- Jamie452 11y agoWell, I wasn't expecting that! Actually made me laugh a little, nice!
- calinet6 11y agoThanks a lot, you woke my girlfriend up.
- drudru11 11y agoI made a web page like that a long long time ago. http://www.redwoodsoft.com/dru/elevator/ http://www.redwoodsoft.com/dru/elevator/ The music no longer plays in browsers for some reason.