1// PCã»SPå¤å®ç¨å¤æ° 2var jj_bundle_mode = null; 3 4// ãªã¹ãå¤å®ç¨ãã©ã° 5var jj_bundle_item_flg_01 = false; 6 7// 対象ååå®ç¾© 8var jj_bundle_item_list_01 = []; 9jj_bundle_item_list_01.push('TEST_KK_0001'); 10jj_bundle_item_list_01.push('S_KK_1031'); 11 12// 対象ã¨ãªãããªã¨ã¼ã·ã§ã³ã®IDåãå®ç¾© 13var id_base = 'ITEMPROPERTY_CD_'; 14 15$(function () 16{ 17 /* æå®ååã®2ã»ããè³¼å ¥åãæ¿ãåæè¨å® START ********************************************************************** */ 18 // 表示ã¢ã¼ãï¼pc or spï¼ã®åå¾ 19 var jj_bundle_mode = $('#jj_bundle_mode').val(); 20 // ç¾å¨ãã¼ã¸ã®ååã³ã¼ã 21 var page_item_code = $('#page_item_code').text(); 22 // ååã³ã¼ãã®åå¾å¤å® 23 if (page_item_code) 24 { 25 // 対象ååå¤å® 26 if ($.inArray(page_item_code, jj_bundle_item_list_01) !== -1) 27 { 28 jj_bundle_item_flg_01 = true; 29 } 30 31 // ãã¿ã¼ã³ã«è©²å½ããå ´åã®ã¿ 32 if (jj_bundle_item_flg_01) 33 { 34 // PC ================================================== 35 if (jj_bundle_mode === 'pc') 36 { 37 //ã»ãã2ã®é¸æé ç®ãé表示 38 $('ul.cf li').each(function() { 39 $(this).children('.box-lens-select').slice(2).hide(); 40 }); 41 } 42 // ================================================== PC 43 // SP ================================================== 44 if (jj_bundle_mode === 'sp') 45 { 46 // ãå·¦BCãã¨ããããã¹ããæã£ãdtè¦ç´ ã®æ°ãæ°ãã 47 var SetCount = $("dt:contains('å·¦BC')").length; 48 49 // 2ã¤ä»¥ä¸ããå ´åã2ã¤ç®ä»¥éãé表示ã«ãã 50 if (SetCount >= 2) { 51 $("dl:has(dt:contains('å·¦BC')):gt(0)").hide(); 52 $("dl:has(dt:contains('å³BC')):gt(0)").hide(); 53 $("dl:has(dt:contains('左度æ°')):gt(0)").hide(); 54 $("dl:has(dt:contains('å³åº¦æ°')):gt(0)").hide(); 55 } 56 } 57 // ================================================== SP 58 59 // å ±é ================================================== 60 61 //鏿è¢ã®ãã»ãã1ããã»ãã2ã表è¨ãé表示 62 $('[id*=ITEMPROPERTY_CD] option').text(function(index, text) { 63 return text.replace('ã»ãã1', '').replace('ã»ãã2', ''); 64 }); 65 66 //ã»ãã1ã®ããªã¨ã¼ã·ã§ã³ãã»ãã2ã«åæ ï¼å·¦BCï¼ 67 $('#ITEMPROPERTY_CD_0').change(function() { 68 var selectedText = $(this).find('option:selected').text().split("ã")[1]; 69 $('#ITEMPROPERTY_CD_4').find('option').each(function() { 70 if ($(this).text().split("ã")[1] === selectedText) { 71 $(this).prop('selected', true); 72 } 73 }); 74 }); 75 //ã»ãã1ã®ããªã¨ã¼ã·ã§ã³ãã»ãã2ã«åæ ï¼å·¦åº¦æ°ï¼ 76 $('#ITEMPROPERTY_CD_2').change(function() { 77 var selectedText = $(this).find('option:selected').text().split("ã")[1]; 78 $('#ITEMPROPERTY_CD_6').find('option').each(function() { 79 if ($(this).text().split("ã")[1] === selectedText) { 80 $(this).prop('selected', true); 81 } 82 }); 83 }); 84 //ã»ãã1ã®ããªã¨ã¼ã·ã§ã³ãã»ãã2ã«åæ ï¼å³BCï¼ 85 $('#ITEMPROPERTY_CD_1').change(function() { 86 var selectedText = $(this).find('option:selected').text().split("ã")[1]; 87 $('#ITEMPROPERTY_CD_5').find('option').each(function() { 88 if ($(this).text().split("ã")[1] === selectedText) { 89 $(this).prop('selected', true); 90 } 91 }); 92 }); 93 //ã»ãã1ã®ããªã¨ã¼ã·ã§ã³ãã»ãã2ã«åæ ï¼å³åº¦æ°ï¼ 94 $('#ITEMPROPERTY_CD_3').change(function() { 95 var selectedText = $(this).find('option:selected').text().split("ã")[1]; 96 $('#ITEMPROPERTY_CD_7').find('option').each(function() { 97 if ($(this).text().split("ã")[1] === selectedText) { 98 $(this).prop('selected', true); 99 } 100 }); 101 }); 102 // ================================================== å ±é 103 } 104 }});
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.