PageSourceSearch

https://distances.plus/wp-content/plugins/bimber-custom/popup-newsletter/js/distances.newsletter.js?ver=6.9.9

js distances.plus collected 2026-10-02 17:36:00 UTC 896 bytes, 29 lines download raw bytes

1function getUrlVars() {
2  var vars = {};
3  var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function (m, key, value) {
4    vars[key] = value;
5  });
6  return vars;
7}
8
9jQuery(document).ready(function () {
10  // user close the modal then set a 2 days cookie if no cookie
11  jQuery("#newsletter").on(jQuery.modal.BEFORE_CLOSE, function (event, modal) {
12    if (Cookies.get("popup-newsletter") == undefined) {
13      Cookies.set("popup-newsletter", "closed", { expires: 2 });
14    }
15  });
16
17  // user validate the form so put a 30 days cookie
18  jQuery("#mc-embedded-subscribe-form").submit((event) => {
19    Cookies.set("popup-newsletter", "closed", { expires: 30 });
20  });
21
22  // load popup newsletter
23  if (Cookies.get("popup-newsletter") !== "closed" && getUrlVars()["hidepopup"] !== "1") {
24    jQuery("#newsletter").modal({
25      fadeDuration: 250,
26      fadeDelay: 4,
27    });
28  }
29});

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.