PageSourceSearch

https://www.ezcontacts.com/js/Pages/site_reviews_and_ratings.js?1790041026

js ezcontacts.com collected 2026-09-24 19:04:28 UTC 2,025 bytes, 48 lines download raw bytes

1$('document').ready(function() {
2    $.ajax({
3            type: "POST",
4            url: CusDev.config.getReviewsAndRatingsUrl,
5            data: {'ids': CusDev.config.isApiRnRIds},
6            async: CusDev?.config?.enableNewCheckout ? true : false,
7            success: function (response) {
8
9                $.each( response.data , function( key, value ) {
10                    if(CusDev.config.displayNewCart == 1) {
11                        $('#RnR-rating-'+key).html(value.ratings);
12                        $('#RnR-reviews-'+key).html("Based on "+value.reviews+" Reviews");
13                        $('#RnR-reviews-no-'+key).html(value.reviews);
14                    } else {
15                        $('#RnR-rating-'+key).html(value.ratings);
16                        $('#RnR-reviews-'+key).html("("+value.reviews+" Reviews)");
17                        $('#RnR-reviews-no-'+key).html(value.reviews); // homepage data
18                    }
19                    val = value.ratings;
20                     if(val % 1)
21                    {
22                      var isDec = true;
23                    }else{
24                      var isDec = false;
25                    }
26
27                    for (let i = 1; i < 6; i++) {
28                        if(i <= val){
29                            $('#RnR-star-'+key).append('<span class="fa fa-star fa-lg fa-fw red-star rnr-star"></span>');
30                        }else{
31                            if(isDec){
32                                $('#RnR-star-'+key).append('<span class="fa fa-star-half-o fa-lg fa-fw red-star rnr-star"></span>');
33                                isDec = false;
34                            }else{
35                                $('#RnR-star-'+key).append('<span class="fa fa-star-o fa-lg fa-fw rnr-star rnr-empty-star"></span>');
36                            }
37                        }
38                    }
39
40                });
41
42            },
43            error: function(error) {
44                $('.apiReviewesAndRating').hide();
45            }
46    });
47
48});

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.