PageSourceSearch

https://www.ec-store.net/js/sws/sys/sys.js

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

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.