Bug 32185: Fix template typo in opac-reserve.pl
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / js / amazonimages.js
1 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
2 function verify_images() {
3         $("img").each(function(i){
4                if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0) || (this.src.indexOf('syndetics.com') >=0) ) {
5             w = this.width;
6             h = this.height;
7             if ((w == 1) || (h == 1)) {
8                                 $(this).parent().html("<span class=\"no-image\">"+NO_AMAZON_IMAGE+"</span>");
9             } else if ((this.complete != null) && (!this.complete)) {
10                                 $(this).parent().html("<span class=\"no-image\">"+NO_AMAZON_IMAGE+"</span>");
11             }
12         }
13                 });
14                 }