banner design

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)".

JavaScript FileSize

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.