PageSourceSearch

https://www.ishimura.co.jp/shop/html/user_data/assets/js/customize.js?125142

js ishimura.co.jp collected 2026-10-02 03:51:52 UTC 6,351 bytes, 123 lines download raw bytes

1/* カスタマイズ用Javascript */
2$(function(){
3    $('#shopping_noshi_area--0').prepend('<div style="margin: 30px 0;"><p>ご進物のご用途に応じて、のしをお選びいただけます。<br>※通常『外のし』で対応いたします。『内のし』をご希望の場合は備考欄にご記載ください。<br>※鶴乃子商品については内のしはお選びできませんので、ご注意ください。<br>※選択リストにない表書きをご希望の場合は「その他」を選択の上、別欄にご記載ください。</p></div>');
4    $('#shopping_gp_name--0 label').append('※不要の場合は空白のままにしてください。');
5    $('#RelatedProduct-product_area').prepend('<h2 style="margin: 0 0 30px;">関連商品</h2>');
6    $('#entry_mailmaga_flg').append('<p class="ectry-notice">※新商品、季節限定商品などのお知らせをお届けします。<br>ご不要な方はチェックを外してください。</p>');
7    
8    /**メルマガラジオボタン**/
9    $('#entry_mailmaga_flg_1').css('display', 'none');
10    $('#entry_mailmaga_flg_1 + label').css('display', 'none');
11    $('#entry_mailmaga_flg_0').on('click', function(){
12        if($(this).attr('checked') === 'checked') {
13            $('#entry_mailmaga_flg_0').removeAttr('checked');
14            $('#entry_mailmaga_flg_0').prop('checked', false);
15            $('#entry_mailmaga_flg_1').prop('checked', true);
16            $('#entry_mailmaga_flg_1').attr('checked', 'checked');
17        } else {
18            $('#entry_mailmaga_flg_0').attr('checked', 'checked');
19            $('#entry_mailmaga_flg_0').prop('checked', true);
20            $('#entry_mailmaga_flg_1').prop('checked', false);
21            $('#entry_mailmaga_flg_1').removeAttr('checked');
22        }
23    });
24    
25    /**smooth scroll**/
26    $('a[href^="#"]').click(function(){
27      var speed = 500;
28      var href= $(this).attr("href");
29      var target = $(href == "#" || href == "" ? 'html' : href);
30      var position = target.offset().top;
31      $("html, body").animate({scrollTop:position}, speed, "swing");
32      return false;
33    });
34
35    /* yamakasa2021 fv slider */
36    $('.yamakasa2021_fv').slick({
37      dots: false,
38      arrows: false,
39      autoplay: true,
40      speed: 3000,
41      infinite: true,
42      fade: true,
43      pauseOnHover: false,
44      autoplayspeed: 15000,
45      waitForAnimate: false,
46    });
47
48    /* ふわっと表示 */
49   $(window).scroll(function (){
50      $('.fuwa,.poyo,.purupuru').each(function(){
51          var elemPos = $(this).offset().top;
52          var scroll = $(window).scrollTop();
53          var windowHeight = $(window).height();
54          if (scroll > elemPos - windowHeight){
55              $(this).addClass('effect-scroll');
56          }
57      });
58   });
59  
60  // shopping guide アコーディオン
61  $('.shopping_guide--toggle .toggle_title').click(function(){
62    $(this).toggleClass('active');
63    $(this).next('.toggle_detail').slideToggle();
64  });
65});
66
67
68/**決済種別 注意表示アコーディオン**/
69document.addEventListener('DOMContentLoaded', function() {
70    var radiosParent = document.getElementsByClassName('ec-radio')[0];
71    if (radiosParent) {
72    var radios = document.getElementsByClassName('ec-radio')[0].children;
73        if (radios) {
74            box = Array.from(radios);
75            var caution = document.getElementById('caution-for-payment');
76            for (var i = 0; i < radios.length; i++) {
77                if (radios[i].children[0].checked === true && radios[i].children[0].value != 5 && radios[i].children[0].value != 10 ) {
78                    caution.children[box.indexOf(radios[i])].style.display = "block";
79                }
80                radios[i].addEventListener('change', function() {
81                    var vl = this.children[0].value;
82                    if (vl == 5 || vl == 10) {//クレジット
83                        document.getElementById('creditList').style.display = "none";
84                        document.getElementById('codList').style.display = "none";
85                        document.getElementById('bankList').style.display = "none";
86                        document.getElementById('kuronekoList').style.display = "none";
87                    } else if (vl == 4 || vl == 7 || vl == 14 || vl == 8 || vl == 15 || vl == 16) {//代金引換
88                        document.getElementById('creditList').style.display = "none";
89                        document.getElementById('codList').style.display = "block";
90                        document.getElementById('bankList').style.display = "none";
91                        document.getElementById('kuronekoList').style.display = "none";
92                    } else if (vl == 3 || vl == 13) {//銀行振込
93                        document.getElementById('creditList').style.display = "none";
94                        document.getElementById('codList').style.display = "none";
95                        document.getElementById('bankList').style.display = "block";
96                        document.getElementById('kuronekoList').style.display = "none";
97                    } else if (vl == 6 || vl == 9) {//クロネコ後払い
98                        document.getElementById('creditList').style.display = "none";
99                        document.getElementById('codList').style.display = "none";
100                        document.getElementById('bankList').style.display = "none";
101                        document.getElementById('kuronekoList').style.display = "block";
102                    }
103                });
104            }
105        }
106    }
107    var Accordion_nextEl = (function () {
108        function Accordion_nextEl(el) {
109            this.el = el;
110        }
111        Accordion_nextEl.prototype.showHide = function () {
112            for (var i = 0; i < this.el.length; i++) {
113                this.el[i].addEventListener('click', function () {
114                this.classList.toggle("active");
115                    this.nextElementSibling.classList.toggle("active");            
116                });
117            }
118        };
119        return Accordion_nextEl;
120    }());
121    var text = document.getElementsByClassName("toggle");
122    new Accordion_nextEl(text).showHide();
123});

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.