1/* åæãã©ã¼ã«ã¹ç¡å¹å */ 2isInitFocus = false; 3var startPos = 0; 4var winScrollTop = 0; 5 6 7/* scrollUp full options*/ 8$(function () { 9 $.scrollUp({ 10 scrollName: 'scrollUp', 11 topDistance: '10', // ãããããã©ãã ãã®é«ãã§è¡¨ç¤ºãããã(px) 12 topSpeed: 300, // ãããã¸æ»ãã¹ãã¼ã (ms) 13 animation: 'fade', // Fade, slide, noneã®ä¸ãã鏿 14 animationInSpeed: 300, // ãã¿ã³ãç¾ããã¹ãã¼ã (ms) 15 animationOutSpeed: 300, // ãã¿ã³ãæ¶ããã¹ãã¼ã (ms) 16 scrollText: 'ãã¼ã¸ã®å é ã¸', // ããã¹ã表示ãããã¨ãã®æå 17 scrollImg: true, // ã¤ã¡ã¼ã¸ã表示ãããã¨ãã¯trueã«ãã¾ã 18 activeOverlay: false // ãããããã®è·é¢ãæå®ããè²ã®ç·ã§è¡¨ç¤ºãã¦ããã¾ãã(ä¾)activeOverlay: '#00FFFF' 19 }); 20}); 21 22/* ãã¼ã¸å ã¹ã¯ãã¼ã« */ 23 $(function() { 24 $(".scroll").click(function(event){ 25 event.preventDefault(); 26 27 var url = this.href; 28 29 var parts = url.split("#"); 30 var target = parts[1]; 31 32 var target_offset = $("#"+target).offset(); 33 var target_top = target_offset.top; 34 35 $('html, body').animate({scrollTop:target_top}, 1000); 36 }); 37 }); 38 39/* ãã©ã³ããµã¤ãºåæ¿ */ 40$(function(){ 41 $("#textsize a").textresizer({ 42 target: "#contents", 43 type: "fontSize", 44 sizes: ["14px", "16px", "18px", "20px"], 45 selectedIndex: 1 46 }); 47}); 48 49/* å ¨ä½ã®ãã¬ã¼ã¹ãã«ãã¼ã®è¡¨ç¤ºé表示ãå¶å¾¡ */ 50function cleanPlaceholder() { 51 if (window.navigator.userAgent.toLowerCase().indexOf('msie') !== -1) { 52 var inputElements = $('input'); 53 inputElements.each(function(idx) { 54 if ($(this).attr("placeholder")) { 55 $(this).triggerHandler("change"); 56 } 57 }); 58 } 59} 60 61 62function openPriceSimulation() { 63 var height = window.parent.screen.availHeight - 100; 64 var url = getUrlWithContextPath("PriceSimulation.jsp", ""); 65 var parameter = ""; 66 var setting = ""; 67 var focus = ""; 68 var win = openRefSelectWindow(url, 1000, height, parameter, setting, focus, true); 69} 70 71/* åç»ãããã¢ãã */ 72function openMovieHitachinoLager() { 73 var url = getUrlWithContextPath("s/tra_hitachino_lager/", ""); 74 var parameter = ""; 75 var setting = ""; 76 var focus = ""; 77 var win = openRefSelectWindow(url, 900, 600, parameter, setting, focus, true); 78} 79 80function getWaitTime() { 81 return 500; 82} 83 84/** 85 * ããã«ã¼ããã¿ã³ã«å¯¾ããã¯ãªãã¯ãããéã«å®è¡ãããã¤ãã³ãå¦çã§ããï¼åå詳細ã¢ã¼ãã«ï¼ 86 * @param element å¼ã³åºãé ç® 87 */ 88function onclickCartButton(element) { 89 var cartButton = $(element + ' a'); 90 var url = cartButton.attr('href'); 91 if (!cartButton.hasClass('disabled')) { 92 cartButton.addClass('disabled'); 93 cartButton.css('opacity', '0.6'); 94 setTimeout(function() { 95 window.location.href = url; 96 return true; 97 }, getWaitTime()); 98 } 99 return false; 100} 101 102/* ãã¹ã¯ã¼ãã表示ãããã¿ã³ */ 103function ChangePwd() { 104 var pwEmt = $('.pwd'); 105 var changeType; 106 if ($('#pwdDispButton').prop('checked')) { 107 changeType = 'text'; 108 } else { 109 changeType = 'password'; 110 } 111 112 for(var i=0; i<$(pwEmt).size(); i++) { 113 var id = $(pwEmt[i]).attr('id'); 114 document.getElementById(id).type = changeType; 115 $(pwEmt[i]).attr('autocomplete', 'off'); 116 } 117} 118 119/** 120 * ãããå®è¡ã®ãªã¢ã«ã¿ã¤ã åç §ãã°ã表示ãã¾ãã 121 * @param batchId ãããID 122 */ 123function loadBatchLog(batchId) { 124 var paramBatchId = batchId; 125 var paramNowSeq = getElementValue("nowSeq"); 126 var paramLogEnd = getElementValue("logEnd"); 127 var resultsStatus; 128 var errorMessage; 129 if (isNullorUndefinedorEmpty(paramLogEnd) || paramLogEnd == "1") { 130 // å®è¡ä¸ã§ãªãã®ã§ãã¼ãããªã 131 return; 132 } 133 134 if (!isNullorUndefined(paramBatchId)) { 135 var paramBatchExecuteId = getElementValue("batchExecuteId"); 136 $('#logArea_innerId').append('<div class=\"loadingImg" id="loadingImg">'); 137 var timerId = setInterval(function() { 138 scrollHeight = $(document).height(); 139 scrollPosition = $(window).height() + $(window).scrollTop(); 140 $.ajaxSetup({ cache: false }); 141 $.getJSON("jp/eltex/afw/eg/batch/frontif/bean/ajax/AjaxBatchRealtimeReferenceBean.json", {"batchId":paramBatchId, "nowSeq":paramNowSeq, "batchExecuteId":paramBatchExecuteId}, function(info) { 142 if (isNullorUndefined(info)) { 143 return; 144 } 145 $('#logArea_innerId').append(info.contents); 146 if (scrollHeight - scrollPosition <= 100) {
147 // ã¹ã¯ãã¼ã«ã®ä½ç½®ãä¸é¨ã«æ¥ãå ´å 148 // ãã°åºåã«è¿½å¾ããã 149 $('html,body').animate({scrollTop:$('#logArea_innerId').offset().top+$('#logArea_innerId').height()},'slow'); 150 } 151 152 if (!isNullorUndefinedorEmpty(info.nowSeq)) { 153 paramNowSeq = info.nowSeq; 154 } 155 156 if (info.logEnd == true) { 157 clearInterval(timerId); 158 $("#loadingImg").attr('style','display:none;'); 159 } 160 }); 161 }, 3000); 162 } 163} 164 165/** 166 * LPãããªã¼ãã¼ã¸ããã«ã¼ãã«ååã追å ãã 167 * @param salesGoodsCode 販売ååã³ã¼ã 168 * @param orderNum æ³¨ææ°é 169 * @param regulalryInterval 宿éé 170 * @param page ããªã¼ãã¼ã¸çªå· 171 */ 172function addCart(salesGoodsCode,orderNum,regularlyInterval) { 173/** 174 * ä½¿ãæ¹ 175 * <a href="#" onclick="addCart('$販売ååã³ã¼ã$','$æ°é$','$宿éé$');">ã«ã¼ãã«å ¥ãã</a> 176 */ 177 var page = getValue("page"); 178 location.href=getUrlWithContextPath("GoodsAddCartMulti.jsp?a=addCart&salesGoodsCode="+salesGoodsCode+"&orderNum="+orderNum+"®ularlyInterval="+regularlyInterval+"&page="+page); 179} 180 181/** 182 * LPãããªã¼ãã¼ã¸ããã«ã¼ãã«ååã追å ãããæ°éã¯IDæå®ã®selectboxããåå¾ã 183 * @param salesGoodsCode 販売ååã³ã¼ã 184 * @param orderNum æ³¨ææ°é 185 * @param page ããªã¼ãã¼ã¸çªå· 186 */ 187function addCartFromId(salesGoodsCode,id) { 188 /** 189 * ä½¿ãæ¹ 190 * <a href="#" onclick="addCartFromId('$販売ååã³ã¼ã$','$idå$');">ã«ã¼ãã«å ¥ãã</a> 191 * 192 * æ°éã¯selectboxã§è¨è¿°ã<select name="goods" id="orderNum">... 193 * ä¾ï¼addCartFromId('$ååã³ã¼ã$','orderNum') 194 */ 195 //IDæå®ã®å ´åã¯jqueryã§åå¾ 196 var orderNum = $('#'+id).val(); 197 addCart(salesGoodsCode,orderNum,""); 198} 199 200/** 201 * LPãããªã¼ãã¼ã¸ããã«ã¼ãã«ååã追å ãããformå ã®å ¨è¦ç´ ã追å ããã 202 */ 203function addCartAll() { 204 /** 205 * 206 * æ°éã¯selectbox or hiddenã§è¨è¿°ãdata-codeã«ã¯è²©å£²ååã³ã¼ããæå®ãããdata-intervalã«ã¯å®æééãæå®ããã 207 * classã«ã¯addCartãæå®ããã<select name="DN002" id="addCartId" class="addCart2"> 208 */ 209 var page = getValue("page"); 210 var salesGoodsCodeList = ""; 211 var orderNumList = ""; 212 var regularlyIntervalList = ""; 213 //classåã«addCartãå ¥ã£ã¦ããinputãæ¾ã£ã¦ã«ã¼ããã 214 $('.addCart').each(function() { 215 //鏿ãããæ³¨ææ°éãåå¾ 216 var orderNum =$(this).val(); 217 //inputã®name=販売ååã³ã¼ãã¨ãã¦å¦çãã 218 var salesGoodsCode =$(this).data("code"); 219 var regularlyInterval =$(this).data("interval"); 220 console.log(salesGoodsCode + ',' + orderNum + ',' + regularlyInterval); 221 222 //ã»ããã§å¤ãããæã®ã¿ã§ã0ãããªãã¨ã 223 if(salesGoodsCode != '' && orderNum != '' && orderNum != '0') { 224 if(salesGoodsCodeList == '') { 225 salesGoodsCodeList = "salesGoodsCode="+salesGoodsCode; 226 } else { 227 salesGoodsCodeList += ","+salesGoodsCode; 228 } 229 if(orderNumList == '') { 230 orderNumList = "orderNum="+orderNum; 231 } else { 232 orderNumList += ","+orderNum; 233 } 234 if(regularlyIntervalList == '') { 235 regularlyIntervalList = "regularlyInterval="+regularlyInterval; 236 } else { 237 regularlyIntervalList += ","+regularlyInterval; 238 } 239 } 240 }); 241 242 if(salesGoodsCodeList != '' && orderNumList != '') { 243 location.href=getUrlWithContextPath("GoodsAddCartMulti.jsp?a=addCart&"+encodeURI(salesGoodsCodeList) + "&"+encodeURI(orderNumList) + "&"+encodeURI(regularlyIntervalList) + "&page="+page); 244 } 245} 246 247 248/** 249* ãã¹ã¯ã¼ãã®å¾©å å¦çåé¤ 250*/ 251$(function() { 252 const targetList = [ 253 // å¦ç対象ç»é¢IDãªã¹ã 254 'MemberModify', 255 'MemberNetRegister', 256 'PasswordChange', 257 'ReminderPasswordModInput', 258 ]; 259 // 表示ãã¦ããç»é¢ã®ID 260 const screenId = $('#screenId').val(); 261 if (targetList.includes(screenId)) { 262 // å ¨input[type:password]ã«å¯¾ãã¦å¦ç 263 $('input[type="password"]').each((index, e) => { 264 // çºç«ããã 265 var interval = autoCompleteBlock(e); 266 // ãã©ã¼ã«ã¹ãå½ãã£ãæç¹ã§ã¹ããã 267 $(e).on('focus', () => { 268 clearInterval(interval); 269 }); 270 }); 271 } 272}) 273 274/** 275* èªåè£å®ãããã¯æ©è½ 276*/ 277function autoCompleteBlock(e) { 278 var counter = 0; 279 var interval = setInterval(() => { 280 counter++; 281 $(e).val(''); 282 if (counter > 200) { 283 // åæ°ä¸éã«éããã忢 284 clearInterval(interval); 285 } 286 }, 10, e, counter); 287 return interval; 288}
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.