1// åå空éãå®ç¾© 2var ecblib = ecblib || {}; 3ecblib.sys = ecblib.sys || {}; 4 5(function() { 6 // ãã¼ã«ã«ç¨ã®åå空é 7 var _sys = ecblib.sys; 8 9 /*! 10 * JavaScriptãæå¹ã§ããå ´åãè¦ç´ ãéè¡¨ç¤ºç¶æ ããè¡¨ç¤ºç¶æ ï¼blockï¼ã«å¤æ´ãã¾ãã 11 */ 12 jQuery(document).ready(function() { 13 jQuery(".js-creditcard-js-available").each(function() { 14 this.classList.remove('hidden'); 15 if (getComputedStyle(this).display === 'none') { 16 jQuery(this).show(); 17 } 18 }); 19 }); 20 21 /** 22 * jqObj HTMLè¦ç´ ãã£ãã·ã¥ 23 */ 24 const $htmlObj = $("html"); 25 26 /*! 27 * ç¾å¨ã®ãã©ã¦ã¶å¤å®ã«ããç»é¢ã¢ã¼ããHTMLã¿ã°ã®ã«ã¹ã¿ã ãã¼ã¿å±æ§ data-browse-mode ããåå¾ãã¾ãããªããå¤ã S ã§ããå ´åã®ã¿ã¹ãã¼ããã©ã³ã¨å¤å®ããã¾ãã 28 */ 29 _sys.isModeSmartPhone = function() { 30 return $htmlObj.data("browse-mode") == "S"; 31 }; 32 33 /** 34 * ç¾å¨ã®ãã©ã¦ã¶å¤å®ã«ããç»é¢ã¢ã¼ããHTMLã¿ã°ã®ã«ã¹ã¿ã ãã¼ã¿å±æ§ data-responsive-mode ããåå¾ãã¾ãã 35 * ãªããå¤ã T ã§ããå ´åã®ã¿ã¬ã¹ãã³ã·ãã¢ã¼ãã¨å¤å®ããã¾ãã 36 */ 37 _sys.isModeResponsiveView = function(){ 38 return $htmlObj.data("responsive-mode") === "T"; 39 }; 40 41 /*! 42 * ã¢ããªã±ã¼ã·ã§ã³ã«ã¼ããmetaã¿ã°ããèªã¿åãã¾ãã 43 */ 44 _sys.wwwroot = jQuery("meta[name='wwwroot']").attr('content'); 45 46 _sys.escapeHtml = function escapeHtml(value) { 47 if (typeof value !== 'string') { 48 return value; 49 } 50 return value.replace(/[&'`"<>]/g, function(match) { 51 return { 52 '&': '&', 53 "'": ''', 54 '`': '`', 55 '"': '"', 56 '<': '<', 57 '>': '>', 58 }[match]; 59 }); 60 }; 61 62 _sys.render = function render(template, keyValues) { 63 if (typeof keyValues !== 'object' || keyValues === null) { return template; } 64 return template.replace(/\$\{(.*?)\}|\#\{(.*?)\}/g, function(match, capt1, capt2) { 65 var key = capt1 ? capt1 : capt2; 66 if (Object.prototype.hasOwnProperty.call(keyValues, key)) { 67 var value = keyValues[key]; 68 if (typeof value !== 'string') return ''; 69 return match[0] === '$' ? _sys.escapeHtml(value) : value; 70 } else { 71 return match; 72 } 73 }); 74 }; 75 76 const matchMedia = window.matchMedia('(min-width: 769px)'); 77 78 /** 79 * æ¢å®ã®ãã¬ã¼ã¯ãã¤ã³ããè¨å®ãããMatchMediaãªãã¸ã§ã¯ããåå¾ãã¾ãã 80 */ 81 _sys.getDefaultMatchMedia = function () { 82 return matchMedia; 83 }; 84 85 /** 86 * ã¦ã£ã³ãã¦ã®å¹ ããã¬ã¼ã¯ãã¤ã³ããè¶ ãã/ä¸åã£ãå ´åã«çºç«ããå¦çãç»é²ãã¾ãã 87 * ã³ã¼ã«ããã¯é¢æ°ã«æ¸¡ãããã®å¼æ°ã«ãã£ã¦è¶ ãã/ä¸åã£ããèå¥ã§ãã¾ãã 88 */ 89 _sys.addMatchMediaEventListener = function (callbackFunc) { 90 matchMedia.addEventListener('change', callbackFunc); 91 }; 92 93 /** 94 * ecblib.sys.addMatchMediaEventListener颿°ã§ç»é²ããå¦çãåé¤ãã¾ãã 95 */ 96 _sys.removeMatchMediaEventListener = function (callbackFunc) { 97 matchMedia.removeEventListener('change', callbackFunc); 98 }; 99})();
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.