PageSourceSearch

https://www.natqc.com/wp-content/plugins/ecwid-shopping-cart/js/frontend.js?ver=7.0.9

js natqc.com collected 2026-09-24 09:56:26 UTC 2,030 bytes, 61 lines download raw bytes

1window.ec = window.ec || {};
2window.ec.config = window.ec.config || {};
3window.ec.config.storefrontUrls = window.ec.config.storefrontUrls || {};
4
5jQuery(document).ready(function () {
6
7    window.ecwidShoppingCartMakeStoreLinksUseApiCall = function ($link) {
8
9        $link.click(function () {
10            if (typeof Ecwid == 'undefined') {
11                return true;
12            }
13
14            var page = jQuery(this).data('ecwid-page');
15            if (page == '/') {
16                if (!ecwidParams.useJsApiToOpenStoreCategoriesPages) {
17                    return;
18                }
19
20                var id = jQuery('[data-ecwid-default-category-id]').data('ecwid-default-category-id');
21                if (id) {
22                    Ecwid.openPage('category', { id: id });
23                } else {
24                    Ecwid.openPage('category', 0);
25                }
26            } else if (page == 'category') {
27                if (ecwidParams.useJsApiToOpenStoreCategoriesPages) {
28                    Ecwid.openPage('category', { id: jQuery(this).data('ecwid-category-id') });
29                    jQuery(this).hide().blur().show();
30                } else {
31                    return;
32                }
33            } else if (page == 'product') {
34                Ecwid.openPage('product', { id: jQuery(this).data('ecwid-product-id') });
35            } else {
36                Ecwid.openPage(page);
37            }
38
39            return false;
40        });
41    };
42
43    ecwidShoppingCartMakeStoreLinksUseApiCall(jQuery("a[data-ecwid-page]"));
44    ecwidSaveDynamicCss();
45});
46
47var ecwidSaveDynamicCss = function () {
48    if (typeof Ecwid != 'undefined') {
49        Ecwid.OnAPILoaded.add(function () {
50            if (typeof window.ec.cssLinkElement !== 'undefined') {
51                document.cookie = 'ec_store_dynamic_css=' + window.ec.cssLinkElement.href;
52            }
53        });
54    }
55}
56
57document.addEventListener('setupAfterEcwidLoaded', (e) => {
58    Ecwid.OnAPILoaded.add(function () {
59        ecwidSaveDynamicCss();
60    });
61});

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.