Adding callbacks to Twitter Bootstrap’s Javascript plugins

popover_callback

The minute I first saw Twitter’s Bootstrap I knew I was going to use it continuously. Either for prototyping or building a site in a short period of time, Twitter Bootstrap has an incredible amount of features/plugins that will ensure your website/app will look great under any browser/device.

However, after using some of the Javascript plugins, I notice some of them don’t have a callback function, which is pretty handy when you want to do more custom stuffs. Luckily, after doing some research I found out that in Javascript a callback function can be added through the function property “prototype”.

Continue reading

Posted in Javascript, jQuery, Twitter Bootstrap | Leave a reply

HTML5 custom data attributes will save your life

I know. I’m exaggerating a bit with that title. However, If you are a jQuery fan (like me) I can assure you it will save you some valuable time and code. Continue reading

Posted in HTML5, jQuery | 3 Replies

3D effect using CSS3 + jQuery

I saw this effect in a blog the other day (which unfortunately didn’t save on my bookmarks) but what caught my attention was the way some pieces of content popped up over the page, making a 3D effect.

I believe it was made on Flash and when I saw it I thought “I should try and replicate it using jQuery”…

Continue reading

Posted in CSS / CSS3, jQuery | Leave a reply

How to preview a file before submitting a form?

There are tons of different solutions out there to achieve this. Specially using jQuery.

Your are filling up a form, upload a picture and, there it is: a preview of the file before submitting it. Simple!

Continue reading

Posted in jQuery | 3 Replies

A box shadow generator

Box shadow generator

Unfortunately the CSS box shadow property needs to be defined differently for each browser (webkit, mozilla and others), why not then use this simple generator to create all that code in one go? Continue reading

Posted in CSS / CSS3, jQuery | Leave a reply