Custom Events are Pretty Cool
Callbacks are one way to keep JavaScript functionalities cleanly separated, but they aren’t always enough. Using custom events are easier, more flexible, cleaner, and can make more obvious readable code.
Callbacks are one way to keep JavaScript functionalities cleanly separated, but they aren’t always enough. Using custom events are easier, more flexible, cleaner, and can make more obvious readable code.
Using a hidden checkbox, you can re-create a lot of functionality on website that rely on clicks and toggled states. Fair warning, it’s not always super semantic or a good idea, but it’s awful fun to play with.
There are some pretty cool module headers on Adobe’s site. In this tutorial we’ll recreate them in a more efficient way.
By space separating the value of the class attribute we get “multiple classes” we can select by. But what if we want to be able to do that with other attributes?
For the gallery section of this site, I wanted people to have the ability to see the screenshot at its original size. Due to the fluid nature of this site, it’s fairly common for the screenshot to be scaled down to fit into its column. So I put together this little solution.…
LiveReload is a Mac-only menu bar app that is quite helpful for web developers. Just tell it to watch a specific folder, and when a file is saved, the browser will automatically refresh showing the change. So no need to switch applications and manually refresh, which is awkward and prone to breaking concentration.
Even better, LiveReload can trigger all the preprocessing to happen first. So if you like to work in SASS, Compass, LESS, Jade, CoffeeScript, Eco, HAML, Slim, or Stylus (or would like to try out working with these languages) LiveReload makes it easy. Essentially, just start making files with the appropriate file extention and LiveReload will compile them down to their native language every time the file is saved.
The best part about Lea Verou's new in-browser HTML/CSS demo tool? It saves your demos to your GitHub account as gists.
Big news from Microsoft:
With automatic updates enabled through Windows Update, customers can receive IE9 and future versions of Internet Explorer seamlessly
Windows XP gets IE 8
Windows Vista and 7 get IE 9
Presumably every new release will happen the same way. So when IE 10 goes final the next Windows Update will include that too for the OS's it will run on.
The long awaited has arrived (in alpha).