2ab4398fcf
In order for themes to work, they must include all CSS, Javascript, and image assets that they use. This patch adds all CSS, Javascript, and images from the prog theme to ccsr, EXCEPT for the famfamfam image set, which needs to be moved outside of the theme directories, per bug 8624. Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
14 lines
722 B
JavaScript
14 lines
722 B
JavaScript
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
|
|
function verify_images() {
|
|
$("img").each(function(i){
|
|
if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0) || (this.src.indexOf('syndetics.com') >=0) ) {
|
|
w = this.width;
|
|
h = this.height;
|
|
if ((w == 1) || (h == 1)) {
|
|
$(this).parent().html("<span class=\"no-image\">"+NO_AMAZON_IMAGE+"</span>");
|
|
} else if ((this.complete != null) && (!this.complete)) {
|
|
$(this).parent().html("<span class=\"no-image\">"+NO_AMAZON_IMAGE+"</span>");
|
|
}
|
|
}
|
|
});
|
|
}
|