Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

jQuery Pluginization (see comment for slide order)

View jquery-pluginization.js
1 2 3 4 5 6 7 8 9 10 11 12
function longUrl( elem ) {
var href = elem.attr( 'href' ),
api = 'http://www.longurlplease.com/api/v1.1?callback=?';
// Fetch JSON data.
jQuery.getJSON( api, { q: href }, function(data){
if ( data[ href ] ) {
// Update the element's title attribute.
elem.attr( 'title', data[ href ] );
}
});
};
Something went wrong with that request. Please try again.