1$(function () { 2 3 $('.step8_Next').click(function (e) { 4 var last_next = $(".step8_description .item").last().data("id"); 5 var check_next = $(".step8_description .item.active").data("id"); 6 if (check_next < last_next) { 7 if ((check_next + 1) == last_next) { 8 $(".step8_Next").hide(); 9 } 10 $(".step8_description_" + check_next).removeClass('active') 11 $(".step8_description_" + ++check_next).addClass('active') 12 } 13 $(".step8_Previous").show(); 14 }) 15 $('.step8_Previous').click(function (e) { 16 var first_previous = $(".step8_description .item").first().data("id"); 17 var check_previous = $(".step8_description .item.active").data("id"); 18 if (check_previous > first_previous) { 19 if ((check_previous - 1) == first_previous) { 20 $(".step8_Previous").hide(); 21 } 22 $(".step8_description_" + check_previous).removeClass("active") 23 $(".step8_description_" + --check_previous).addClass("active") 24 } 25 $(".step8_Next").show(); 26 }) 27 28}); 29 30document.addEventListener('DOMContentLoaded', function () { 31 var cancelButtons = document.querySelectorAll('.cancelBtn.ec-inlineBtn.disabled'); 32 33 cancelButtons.forEach(function (button) { 34 button.addEventListener('click', function (e) { 35 e.preventDefault(); 36 var tooltip = this.querySelector('span'); 37 tooltip.classList.remove('d-none'); 38 39 setTimeout(function () { 40 tooltip.classList.add('d-none'); 41 }, 2000); 42 }); 43 }); 44}); 45 46 47function setAccessoryProductFlag() { 48 const form = document.getElementById('form1'); 49 if (!form) { 50 return; 51 } 52 53 form.action += '?accessory_product_flag=1'; 54 55} 56 57function removeAccessoryProductFlag() { 58 const form = document.getElementById('form1'); 59 if (!form) { 60 return; 61 } 62 63 form.action = form.action.replace('?accessory_product_flag=1', ''); 64} 65 66function checkShipping() { 67 const expressShippingCheckBox = document.getElementById('express_shipping_checkbox'); 68 const currentShippingType = document.getElementById('current_shipping_type'); 69 if (expressShippingCheckBox) { 70 if (expressShippingCheckBox.checked) { 71 if (currentShippingType.value == 'normal') { 72 return false; 73 } 74 75 const shippingHiddenInputs = document.getElementsByName('product_detail_custom_shipping'); 76 shippingHiddenInputs.forEach(function (input) { 77 input.value = '1'; 78 }); 79 } else { 80 if (currentShippingType.value == 'express') { 81 return false; 82 } 83 84 const shippingHiddenInputs = document.getElementsByName('product_detail_custom_shipping'); 85 shippingHiddenInputs.forEach(function (input) { 86 input.value = '0'; 87 }); 88 } 89 } 90 91 return true; 92} 93 94function updateShipping(shippingType) { 95 const currentShippingType = document.getElementById('current_shipping_type'); 96 if (currentShippingType) { 97 currentShippingType.value = shippingType; 98 } 99} 100 101function checkNoren() { 102 const checkNorenFlag = document.getElementById('noren_check_flag').value; 103 const productId = document.getElementById('product_id').value; 104 const expressShippingCheckBox = document.getElementById('express_shipping_checkbox'); 105 if (checkNorenFlag == 1) { 106 if (productId == 16) { 107 if (expressShippingCheckBox.checked) { 108 return false; 109 } 110 } 111 } 112 return true; 113} 114 115function checkSize() { 116 const totalSize = document.getElementById('total_size').value; 117 const widthInputElement = document.getElementById('widthInput'); 118 const widthInput = widthInputElement && widthInputElement.value ? widthInputElement.value / 100 : 0; 119 const heightInputElement = document.getElementById('heightInput'); 120 const heightInput = heightInputElement && heightInputElement.value ? heightInputElement.value / 100 : 0; 121 const expressShippingCheckBox = document.getElementById('express_shipping_checkbox'); 122 if (totalSize + widthInput * heightInput >= 50) {//50ã¡ä»¥ä¸ã¯ãæ¥ã便ä¸å¯ 123 if (expressShippingCheckBox.checked) { 124 return false;
125 } 126 } 127 const totalQuantity = parseInt(document.getElementById('total_quantity').value, 10); 128 const productId = document.getElementById('product_id').value; 129 const quantity = parseInt(document.getElementById('quantity_sheer').value, 10); 130 if (totalQuantity + quantity > 10 && productId != 22 && productId != 7 && productId != 12) {//11æä»¥ä¸ã¯ãæ¥ã便ä¸å¯ ææã»è ç« ã»ãããã¯é¤ã 131 if (expressShippingCheckBox.checked) { 132 return false; 133 } 134 } 135 return true; 136} 137 138function checkBackpanel() { 139 const backpanelQuantity = parseInt(document.getElementById('backpanel_quantity').value, 10); 140 const quantity = parseInt(document.getElementById('quantity_sheer').value, 10); 141 const expressShippingCheckBox = document.getElementById('express_shipping_checkbox'); 142 const productId = document.getElementById('product_id').value; 143 if (backpanelQuantity + quantity > 5) {//6æä»¥ä¸ã¯ãæ¥ã便ä¸å¯ 144 if (productId == 10) {//ããã¯ããã« 145 if (expressShippingCheckBox.checked) { 146 return false; 147 } 148 } 149 } 150 return true; 151} 152 153function checkRenzokuki() { 154 const renzokukiQuantity = parseInt(document.getElementById('renzokuki_quantity').value, 10); 155 const quantity = parseInt(document.getElementById('quantity_sheer').value, 10); 156 const expressShippingCheckBox = document.getElementById('express_shipping_checkbox'); 157 const productId = document.getElementById('product_id').value; 158 if (renzokukiQuantity + quantity > 1) {//2æä»¥ä¸ã¯ãæ¥ã便ä¸å¯ 159 if (productId == 23) {//é£ç¶æ 160 if (expressShippingCheckBox.checked) { 161 return false; 162 } 163 } 164 } 165 return true; 166} 167 168function checkTebata() { 169 const tebataQuantity = parseInt(document.getElementById('tebata_quantity').value, 10); 170 const quantity = parseInt(document.getElementById('quantity_sheer').value, 10); 171 const expressShippingCheckBox = document.getElementById('express_shipping_checkbox'); 172 const productId = document.getElementById('product_id').value; 173 if (tebataQuantity + quantity > 20) {//21æä»¥ä¸ã¯ãæ¥ã便ä¸å¯ 174 if (productId == 22) {//ææ 175 if (expressShippingCheckBox.checked) { 176 return false; 177 } 178 } 179 } 180 return true; 181} 182 183function checkWansyou() { 184 const wansyouQuantity = parseInt(document.getElementById('wansyou_quantity').value, 10); 185 const quantity = parseInt(document.getElementById('quantity_sheer').value, 10); 186 const expressShippingCheckBox = document.getElementById('express_shipping_checkbox'); 187 const productId = document.getElementById('product_id').value; 188 if (wansyouQuantity + quantity > 20) {//21æä»¥ä¸ã¯ãæ¥ã便ä¸å¯ 189 if (productId == 7) {//è ç« 190 if (expressShippingCheckBox.checked) { 191 return false; 192 } 193 } 194 } 195 return true; 196} 197 198function checkTasuki() { 199 const tasukiQuantity = parseInt(document.getElementById('tasuki_quantity').value, 10); 200 const quantity = parseInt(document.getElementById('quantity_sheer').value, 10); 201 const expressShippingCheckBox = document.getElementById('express_shipping_checkbox'); 202 const productId = document.getElementById('product_id').value; 203 if (tasukiQuantity + quantity > 20) {//21æä»¥ä¸ã¯ãæ¥ã便ä¸å¯ 204 if (productId == 12) {//ããã 205 if (expressShippingCheckBox.checked) { 206 return false; 207 } 208 } 209 } 210 return true; 211} 212 213function confirmOrderCancel() { 214 return confirm('ãã£ã³ã»ã«ããã¨å ã«æ»ãã¾ããããæ¬å½ã«ãã£ã³ã»ã«ãã¾ããï¼'); 215}
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.