A nice alternative to using the ol’ and ugly default Javascript alert box. Allows multiple options and callbacks while staying small and simple.
Web Development, Finance, & History
A nice alternative to using the ol’ and ugly default Javascript alert box. Allows multiple options and callbacks while staying small and simple.
http://24ways.org/2013/grunt-is-not-weird-and-hard/
Fantastic resource on getting started with Grunt.js. Practical implementations of script concats, minimizing, and automation. Recommend as a simple resource and starting template for many common web site tasks.
Need to outline all HTML elements on an open web page? I’m sure there has been a time when you’ve used something like this to do so:
* { border:1px solid red; }
Which gives you a quick visual look at all elements on the page and how they align. It’s simple and by all means works just fine.
To make things even more convenient, here’s a quick and handy little JavaScript bookmarklet for you web developers to save. Full credit and thanks go to “beaver82” in the following /r/webdev/ thread. I’ve edited one of his/her original scripts to include a border instead of outline, in case you do want to affect the box size.
The border/outline scripts are distinguished by the file names listed above.
Enjoy! If you have any similar useful snippets, please do share them in the comments section.