This file was missing from previous commit. bakertaylorimages.js manages the display of 'missing cover' text when Baker & Taylor images are used.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Owen Leonard 2008-10-27 14:41:01 -05:00 committed by Henri-Damien LAURENT
parent c84ad27fbf
commit eaf82964fb
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
function bt_verify_images() {
$("img").each(function(i){
if (this.src.indexOf('btol.com') >= 0) {
h = this.height;
if (h == 20) {
$(this).before("<span class=\"no-image\" style=\"margin-bottom:5px;width:80px;\">"+NO_BAKERTAYLOR_IMAGE+"</span>");
}
}
});
}