PageSourceSearch

https://barilive.it/wp-content/themes/livenetwork-theme/inc/blocks/live-share-buttons/view.js?ver=1787240211

js barilive.it collected 2026-09-24 23:25:20 UTC 1,175 bytes, 39 lines download raw bytes

1(function () {
2  function isModifiedClick(e) {
3    return e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0;
4  }
5
6  function openPopup(url, name) {
7    var w = 640, h = 560;
8    var left = Math.max(0, (screen.width - w) / 2);
9    var top = Math.max(0, (screen.height - h) / 2);
10    window.open(
11      url,
12      name,
13      "width=" + w + ",height=" + h + ",left=" + left + ",top=" + top + ",noopener,noreferrer"
14    );
15  }
16
17  document.addEventListener("click", function (e) {
18    var a = e.target.closest("a");
19    if (!a) return;
20
21    var wrap = a.closest(".live-share-buttons");
22    if (!wrap) return;
23
24    var net = a.getAttribute("data-share-network");
25    if (!net) return;
26
27    // mail: lascia comportamento standard
28    if (net === "mail") return;
29
30    // se l'utente sta già forzando un comportamento (ctrl/cmd click ecc.), non interferire
31    if (isModifiedClick(e)) return;
32
33    // popup solo per alcuni (evita rogne su whatsapp)
34    if (net === "facebook" || net === "x" || net === "linkedin" || net === "telegram") {
35      e.preventDefault();
36      openPopup(a.href, "lnvshare_" + net);
37    }
38  });
39})();

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.