PageSourceSearch

https://sklepwaneko.pl/modules/dpdshipping/views/js/dpdshipping-pudo-iframe.js?2.3.3

js sklepwaneko.pl collected 2026-10-02 23:59:32 UTC 2,600 bytes, 65 lines download raw bytes

1/*
2 * Copyright 2024 DPD Polska Sp. z o.o.
3 *
4 * NOTICE OF LICENSE
5 *
6 * Licensed under the EUPL-1.2 or later.
7 * You may not use this work except in compliance with the Licence.
8 *
9 * You may obtain a copy of the Licence at:
10 * https://joinup.ec.europa.eu/software/page/eupl
11 * It is also bundled with this package in the file LICENSE.txt
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the Licence is distributed on an AS IS basis,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the Licence for the specific language governing permissions
17 * and limitations under the Licence.
18 *
19 * @author    DPD Polska Sp. z o.o.
20 * @copyright 2024 DPD Polska Sp. z o.o.
21 * @license   https://joinup.ec.europa.eu/software/page/eupl
22 */
23
24// noinspection JSUnresolvedReference
25
26if (typeof dpdshippingEventCreated == 'undefined') {
27    var dpdshippingEventCreated = false;
28}
29
30var dpdshipping_iframe = document.createElement("iframe");
31dpdshipping_iframe.setAttribute("id", "dpdshipping-widget-pudo-iframe");
32dpdshipping_iframe.setAttribute("allow", "geolocation");
33dpdshipping_iframe.src = dpdshipping_iframe_url;
34dpdshipping_iframe.style.width = "100%";
35dpdshipping_iframe.style.border = "none";
36dpdshipping_iframe.style.minHeight = "400px";
37dpdshipping_iframe.style.height = "768px";
38
39var dpdshipping_script = document.getElementById("dpdshipping-widget-pudo");
40if (dpdshipping_script)
41    dpdshipping_script.parentNode.insertBefore(dpdshipping_iframe, dpdshipping_script);
42
43if (!dpdshippingEventCreated) {
44    var dpdshipping_eventListener = window[window.addEventListener ? "addEventListener" : "attachEvent"];
45    var dpdshipping_messageEvent = ("attachEvent" === dpdshipping_eventListener) ? "onmessage" : "message";
46    dpdshipping_eventListener(dpdshipping_messageEvent, function (a) {
47        if (getDpdshippingIdPudoCarrier() === getDpdshippingSelectedCarrier()) {
48        if (a.data.height && !isNaN(a.data.height)) {
49            dpdshipping_iframe.style.height = a.data.height + "px"
50        } else if (a.data.point_id)
51            dpdShippingPointSelected(a.data.point_id);
52        }
53    }, !1);
54    dpdshippingEventCreated = true
55}
56
57function dpdShippingPointSelected(pudoCode) {
58    $('.container_dpdshipping_pudo_error').css("display", "none");
59    $('.dpdshipping-pudo-new-point').css("display", "none");
60    $('.dpdshipping-pudo-selected-point').css("display", "block");
61
62    dpdshippingSavePudoCode(pudoCode, $('#dpdshippingPudoModal'));
63    dpdshippingGetPudoAddress(pudoCode, $('.dpdshipping-selected-point'))
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.