1$(document).ready(function() { 2 3 var checked = false; 4 var target; 5 var doiyoShoInfoList = []; 6 var index = 0; 7 var lastIndex = 0; 8 9 doiyoShoKakuninModal = { 10 checked:function () { 11 // ãã§ãã¯æ¸å¤å® 12 if(checked) { 13 // ãã§ãã¯æ¸ 14 checked = false; 15 return true; 16 } 17 // ãã§ãã¯æª 18 return false; 19 }, 20 setTarget:function (_target) { 21 // ã¿ã¼ã²ããè¨å® 22 target = _target; 23 }, 24 setData:function (_doiyoShoInfoList) { 25 // ã¤ã³ããã¯ã¹åæå 26 index = 0; 27 lastIndex = _doiyoShoInfoList.length - 1; 28 // ãã¼ã¿è¨å® 29 doiyoShoInfoList = _doiyoShoInfoList; 30 }, 31 firstCheck:function () { 32 // ãã§ãã¯æ¸å¤å® 33 if(checked) { 34 // ãã§ãã¯æ¸ 35 return true; 36 } 37 // ãã§ãã¯æª 38 return false; 39 } 40 } 41 42 // åæè¡¨ç¤ºå¦ç 43 tano.d.cm_sh.sh_modal.init_modal_function['doiyo-sho-kakunin-modal'] = function() { 44 45 // 許諾ã¡ãã»ã¼ã¸è¨å® 46 dispdoiyoShoInfo(); 47 48 // ã«ã¼ãã«å ¥ãããã¿ã³æ¼ä¸å¦ç 49 $("#cartinBuy").on("click", function() { 50 if (index == lastIndex) { 51 // ãã¹ã¦ã®è¨±è«¾ã¡ãã»ã¼ã¸ã確èªããå ´å 52 checked = true; 53 $(".tano-modal-close:visible:first").trigger("click"); 54 $(target).trigger("click"); 55 } else { 56 // 次ã®è¨±è«¾ã¡ãã»ã¼ã¸ã表示 57 index ++; 58 $(".tano-modal-close:visible:first").trigger("click"); 59 setTimeout(function(){ 60 $("#tano-d-sh-doiyo-sho-kakunin-modal-link").trigger("click"); 61 },700); 62 } 63 return false; 64 }); 65 } 66 67 // 許諾ã¡ãã»ã¼ã¸è¡¨ç¤º 68 function dispdoiyoShoInfo() { 69 var doiyoShoInfo = doiyoShoInfoList[index]; 70 // ååå 71 $("#tano-d-od-sho-kakunin-main-doiyo-sho-nm").text(doiyoShoInfo.shoNm); 72 // åååãªã³ã¯ 73 $("#tano-d-od-sho-kakunin-main-doiyo-sho-nm").attr('href', '/product/' + doiyoShoInfo.chumonNo + '/'); 74 // åææ¸é¡å 75 var doishoTitle = doiyoShoInfo.doishoTitle; 76 if(!doishoTitle || doishoTitle.trim() === ""){ 77 $('#tano-d-od-sho-kakunin-main-doisho-title').hide(); 78 } else { 79 $("#tano-d-od-sho-kakunin-main-doisho-title").html(doishoTitle); 80 } 81 // åæå¥ç´æ¸æ å ± 82 $("#tano-d-od-sho-kakunin-main-doi-keiyaku-info").html(doiyoShoInfo.doiKeiyakuInfo); 83 } 84 85 //ãã¦ã³ãã¼ã販売 使ç¨è¨±è«¾ï¼ã¢ã¼ãã«ï¼ã®åæãã§ã㯠86 $('body').on('change', "#agreementBuy", function () { 87 if ($(this).prop('checked')) { 88 $('#cartinBuy').prop('disabled', false).attr('src', '/common-tano/img/btn-l-cart.png'); 89 } else { 90 $('#cartinBuy').prop('disabled', true).attr('src', '/common-tano/img/btn-l-disabled.png'); 91 } 92 }); 93});
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.