PageSourceSearch

https://www.successfulmat.com/frontend/js/preventImageError.js

js successfulmat.com collected 2026-10-04 04:51:25 UTC 1,045 bytes, 27 lines download raw bytes

1$( document ).ready( function() {
2    if (typeof $.initialize == 'function'){
3
4        $.initialize('img', function() {
5            $(this).on('error', function(){
6                if ($(this).is('.b-product-detail-page *')){
7                    if ($(this).is('picture > *')) {
8                        $(this).siblings('source').attr('srcset', '/image.jpg');
9                    }
10                    $(this).attr('src', '/image.jpg');
11                } else {
12                    if ($(this).is('picture > *')) {
13                        $(this).siblings('source').attr('srcset', '/image-s.jpg');
14                    }
15                    $(this).attr('src', '/image-s.jpg');
16                }
17            })
18            if ($(this).attr('src') == void 0 || $(this).attr('src').length < 1) {
19                if ($(this).is('.b-product-detail-page *')){
20                    $(this).attr('src', '/image.jpg');
21                } else {
22                    $(this).attr('src', '/image-s.jpg');
23                }
24            }
25        });
26    }
27} );

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.