We used zeroclipboard.js in some of our projects but now we switched to clipboard.js because it does not rely on...
This might be relevant for us since we're often managing customer documents in our apps. I played around with...
We often use VCR to stub external APIs. Unfortunately VCR can have problems matching requests to recorded cassettes, and these...
Same requests are recorded only once in vcr. Replaying a test fails, if you trigger the same request multiple times...
There is no build in functionally in jQuery and Prototype to extract params from a url. You can use this...
ClockPicker is a JavaScript and Bootstrap implementation of an Android-style time picker which looks and feels great. Unfortunately, it...
Promises are the new way™ to express "Do this, and once you're done, do that". In contrast to callbacks...
To simulate Rails' to_sentence in your JavaScript application, you can use these few lines of CoffeeScript code: joinSentence = (array...
We're using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not...
Here is a symbol of an eight note: ♪ Its two-byte hex representation is 0x266A. This card describes how to...
The default Google Analytics might not work as expected with your Unpoly app. This is because your app only has...
All new browsers support the new object-fit CSS property. It allows to specify how an element behaves within its...
The way that Javascript schedules timeouts and promise callbacks is more complicated than you think. This can be the reason...
When you are working with jQuery selectors and collections, many times you want to know if the collection actually contains...
to create a Gallery that has a name and has_many :images, which in turn have a...
The attached ImageLoader helper will start fetching an image and return an image that is resolved once the image is...
jQuery's find looks in the element's descendants. It will never return the current element itself, even if the...
Sometimes you want to preload images that you will be using later. E.g. if hovering over a an area changes...
To delay your entire Jasmine test suite until the DOM is ready, add the following: beforeAll(function(done) { $(done); });
Since jQuery 3 saw it's first release candidate today, the links has a list of (breaking) changes.
When you have a localized website, you may want to redirect users to their preferred language when they visit the...
fake_stripe spins up a local server that acts like Stripe’s and also serves a fake version of Stripe.js...
When building a form with a file select field, you may want to offer your users a live preview before...
You can use JavaScript to get or set cookie values on the client. Using the vanilla JavaScript API