PageSourceSearch

https://store.kai-group.com/js/sys/sys.js

js kai-group.com collected 2026-09-24 17:55:07 UTC 2,484 bytes, 72 lines download raw bytes

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            jQuery(this).show();
15        });
16    });
17    /**
18     * HTML要素キャッシュ
19     */
20    let htmlEl = document.documentElement;
21
22    /*!
23     * 現在のブラウザ判定による画面モードをHTMLタグのカスタムデータ属性 data-browse-mode から取得します。なお、値が S である場合のみスマートフォンと判定されます。
24     */
25    _sys.isModeSmartPhone = function() {
26        return htmlEl.dataset.browseMode == "S";
27    };
28
29    /**
30     * 現在のブラウザ判定による画面モードをHTMLタグのカスタムデータ属性 data-responsive-mode から取得します。
31     * なお、値が T である場合のみレスポンシブモードと判定されます。
32     */
33    _sys.isModeResponsiveView = function(){
34        return htmlEl.dataset.responsiveMode === "T";
35    };
36
37    /*!
38    * アプリケーションルートをmetaタグから読み取ります。
39    */
40    _sys.wwwroot = jQuery("meta[name='wwwroot']").attr('content');
41
42    _sys.escapeHtml = function escapeHtml(value) {
43        if (typeof value !== 'string') {
44            return value;
45        }
46        return value.replace(/[&'`"<>]/g, function (match) {
47            return {
48                '&': '&amp;',
49                "'": '&#x27;',
50                '`': '&#x60;',
51                '"': '&quot;',
52                '<': '&lt;',
53                '>': '&gt;',
54            }[match];
55        });
56    };
57
58    _sys.render = function render(template, keyValues) {
59        if (typeof keyValues !== 'object' || keyValues === null) { return template; }
60        return template.replace(/\$\{(.*?)\}|\#\{(.*?)\}/g, function (match, capt1, capt2) {
61            var key = capt1 ? capt1 : capt2;
62            if (Object.prototype.hasOwnProperty.call(keyValues, key)) {
63                var value = keyValues[key];
64                if (typeof value !== 'string') return '';
65                return match[0] === '$' ? _sys.escapeHtml(value) : value;
66            } else {
67                return match;
68            }
69        });
70    };
71    
72})();

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.