brandoncordell / iconize

A jQuery plugin to add icons to links based on the remote files extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jquery.iconize.js

Iconize is a very lightweight (under 2kb packed or minified) jQuery plugin that adds a content specific icon to each link that matches the selector.

The icon added is based on the remote files extension.

Supported Extensions

jpg, jpeg, png, gif, bmp, svg, eps, mp3, wav, ogg, wma, m4a, mov, wmv, mp4, avi, mpg, fla, swf, doc, rtf, txt, xls, pdf, pps, ical, rss, atom, zip, rar, gzip, bzip, ace, tar, gz, exe, dmg, app, html, htm, css, js, php, phps, opml, vcard, vcf, xpi, ttf, and last but not least torrent.

Usage

Couldn't be easier to use...

$('a').iconize();

Demo

Coming soon

Special Thanks

Thanks to Alexander Kaiser for the inspiration for this plugin.

Also thank you to Famfamfam for their awesome icons.

About

A jQuery plugin to add icons to links based on the remote files extension

License:GNU General Public License v2.0


Languages

Language:JavaScript 100.0%