PageSourceSearch

https://www.sbcr.jp/wp-content/themes/sbcr2019/resources/js/product_ajax.js?ver=322aa203

js sbcr.jp collected 2026-09-24 08:41:38 UTC 3,072 bytes, 76 lines download raw bytes

1jQuery(document).ready(function ($) {
2
3    //Amazon Review
4    var amazon_review_ajax = function () {
5        var target_html = $('#review-box-amazon-review');
6        var productcode = $('input[name="review-box-productcode"]').val();
7        $.ajax({
8            type: 'POST',
9            url: ajaxurl,
10            data: {
11                'action': 'amazon_review_ajax',
12                'productcode': productcode
13            }
14        })
15        .done(function (response) {
16            if (response.toString().length > 0) {
17                target_html.html(response);
18                target_html.css({opacity: '0'}).animate({opacity: '1'}, 1000);
19                target_html.css({display: ''});
20  
21                //media-warpの高さが変わらないので強制的にリサイズイベントを実行して更新する
22                setTimeout(function () {
23                    $(window).trigger('resize');
24                }, 10);
25            }
26        })
27        .fail(function (error) {
28            console.log('error');
29        });
30    }
31    amazon_review_ajax();
32
33    //読書メーター
34    var dokusho_meter_ajax = function () {
35        var target_html = $('#review-box-dokusho-meter');
36        var productcode = $('input[name="review-box-productcode"]').val();
37        $.ajax({
38            type: 'POST',
39            url: ajaxurl,
40            data: {
41                'action': 'dokusho_meter_ajax',
42                'productcode': productcode
43            }
44        })
45        .done(function (response) {
46            if (response.toString().length > 0) {
47                target_html.html(response);
48                target_html.css({opacity: '0'}).animate({opacity: '1'}, 1000);
49                target_html.css({display: ''});
50
51                //spanを入れる 読者メータ
52                $('.comment .triangle-mark').parents('li').find('p.comment').each(function(){
53                    $text = $(this).text();
54                    if($(this).text().length <=110){
55                        $(this).find('.triangle-mark').parent('span').addClass('shortText');
56                    }else{
57                        $text = $text.replace('続きを読む▼','');
58                        topText = $text.slice(0, 110);
59                        bottomText = $text.slice(110)
60                        $(this).html(topText+'<span class="hiddenText">'+bottomText+'</span><span class="longText">続きを読む<span class="triangle-mark">▼</span></span>');
61                    }
62                });
63                $(".recommended-points-beginning").find('.triangle-mark').parent('span').addClass('shortText');
64
65                //media-warpの高さが変わらないので強制的にリサイズイベントを実行して更新する
66                setTimeout(function () {
67                    $(window).trigger('resize');
68                }, 10);
69            }
70        })
71        .fail(function (error) {
72            console.log('error');
73        });
74    }
75    dokusho_meter_ajax();
76});

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.