Tag: js

$(document).ready() != $(window).load()

Here’s a short one:

is not the same as

So choose wisely. Read More

Using source map files to debug SASS in Chrome

Here’s a cool tutorial on how to work with source map files for SASS in Chrome. Using Source Maps to Debug Sass in Chrome And a tip: leave “Auto-reload generated CSS” active. It’ll automatically refresh the styles, without leaving or reloading the page. Pretty nifty. Read More

Building loooong forms that don’t timeout at the end

If you build many different websites in your work, you’re bound to stumble upon a project where you have to build a huge form, but have no way of changing the server’s session settings (which is not what you want anyway). So, here’s a little tutorial on how to keep the form from timing out Read More

Pause (or play) embedded YouTube video’s with Javascript

First, make sure the embedded video has the following parameter set to 1, like so: //www.youtube.com/embed/gzDS-Kfd5XQ?enablejsapi=1 Or if it’s not the first parameter, replace the question mark with an ampersand, like so //www.youtube.com/embed/gzDS-Kfd5XQ?rel=0&enablejsapi=1   Now, when you blend in the video with some fancy effect (div sliding upwards, fading or bounce) and want it to stop it Read More

Back to Top