PageSourceSearch

https://www.katewood.com/wp-content/plugins/woocommerce-currency-switcher/js/sd/front.js?ver=1.5.4

js katewood.com collected 2026-10-06 11:21:26 UTC 1,687 bytes, 46 lines download raw bytes

1'use strict';
2
3window.addEventListener('load', function () {
4
5    let selectrons = document.querySelectorAll('div[data-woocs-sd]');
6
7    if (selectrons.length > 0) {
8        Array.from(selectrons).forEach(function (div) {
9            div.innerHTML = '';
10            let settings = JSON.parse(div.getAttribute('data-woocs-sd'));
11            let options = JSON.parse(div.getAttribute('data-woocs-sd-currencies'));
12
13            if (typeof settings.title_value !== 'undefined') {
14                options.forEach(function (o, k) {
15                    let title = settings.title_value;
16
17                    if (title.length > 0) {
18                        title = title.replace(/__CODE__/gi, o.title);
19                        title = title.replace(/__SIGN__/gi, o.sign);
20                        title = title.replace(/__DESCR__/gi, o.text);
21                        options[k].title = title;
22                    }
23                });
24            }
25
26            settings.title_value = '';//!!important
27
28            let data = {
29                options: options,
30                selected: woocs_current_currency.name,
31                width: (settings.width ? settings.width : 500) + 'px',
32                imgpos: typeof settings.img_pos !== 'undefined' ? (settings.img_pos ? 'right' : 'left') : 'right',
33                max_open_height: settings.max_open_height ? settings.max_open_height : 300
34            };
35
36            let selectron = new Selectron23(div, data);
37            selectron.applyDesignSettings(settings);
38
39            selectron.onSelect = function () {
40                woocs_redirect(this.value);
41            };
42        });
43    }
44
45});
46

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.