PageSourceSearch

https://calypso-camera.ru/bitrix/components/aspro/marketing.popup.next/templates/.default/script.js

js calypso-camera.ru collected 2026-10-05 00:06:53 UTC 1,847 bytes, 71 lines download raw bytes

1function showMarketingPopup() {
2  if ($(".dyn_mp_jqm").length) {
3    var allDelays = [];
4    $(".dyn_mp_jqm").each(function (i, el) {
5      var jqmBlock = $(el),
6        delay = 0;
7
8      if (!jqmBlock.hasClass("initied")) {
9        // first load
10        jqmBlock.addClass("initied");
11
12        if (jqmBlock.data("param-delay")) delay = jqmBlock.data("param-delay") * 1000;
13
14        while (allDelays.indexOf(delay) !== -1) {
15          delay += 1000;
16        }
17
18        allDelays.push(delay);
19
20        if (typeof localStorage !== "undefined") {
21          var dataLS = localStorage.getItem(jqmBlock.data("ls")),
22            ls = "";
23          try {
24            ls = JSON.parse(dataLS);
25          } catch (e) {
26            ls = dataLS;
27          }
28          if (!ls || (ls && ls.TIMESTAMP < Date.now() && ls.TIMESTAMP)) {
29            /*if (timeoutID) {
30				clearTimeout(timeoutID);
31			}*/
32            timeoutID = setTimeout(function () {
33              //console.log(jqmBlock, delay);
34              jqmBlock.click();
35            }, delay);
36          }
37        } else {
38          var ls = $.cookie(jqmBlock.data("ls"));
39          if (!ls) {
40            /*if (timeoutID) {
41							clearTimeout(timeoutID);
42						}*/
43            timeoutID = setTimeout(function () {
44              jqmBlock.click();
45            }, delay);
46          }
47        }
48      } // ajax popup
49      else {
50      }
51    });
52  }
53}
54
55$(document).ready(function () {
56  showMarketingPopup();
57
58  if (typeof window.frameCacheVars !== "undefined") {
59    BX.addCustomEvent("onFrameDataReceived", function (json) {
60      showMarketingPopup();
61    });
62  }
63
64  $(document).on("click", ".dyn_mp_jqm_frame .popup-text-info__btn .btn", function () {
65    var closeBtn = $(this).closest(".dyn_mp_jqm_frame").find(".jqmClose");
66
67    if (closeBtn.length) {
68      closeBtn.trigger("click");
69    }
70  });
71});

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.