Add File Sizes To Your Links Automatically
4
Sep
addSizes.js is a script which adds the file type & sizes of the files that a text is linked to automatically.
To be more clear, if there is link like: "click to download this file", it is converted to "click to download this file (pdf 1.2 MB)".
The script uses json-head, a Google App Engine application, to get the file info without downloading them.
Script requires jQuery & it is a bit experimental due to App Engine being occasionally and unavoidably flakey. But it is definitely inspirational.
Requirements: jQuery
Website: http://natbat.net/2008/Aug/27/addSizes/
Demo: http://natbat.net/code/clientside/js/addSizes/
Website: http://natbat.net/2008/Aug/27/addSizes/
Demo: http://natbat.net/code/clientside/js/addSizes/
- Tags:
jQuery JSON
- Filed under: Extras, Other License, Tools
Related Posts
Leave a reply













