PageSourceSearch

https://hsa.ie/scripts/socialshare.js?v=1

js hsa.ie collected 2026-10-02 02:45:56 UTC 4,116 bytes, 94 lines download raw bytes

1setShareLinks();
2
3function socialWindow(url) {
4    var left = (screen.width - 570) / 2;
5    var top = (screen.height - 570) / 2;
6    var params = "menubar=no,toolbar=no,status=no,width=570,height=570,top=" + top + ",left=" + left;
7    // Setting 'params' to an empty string will launch
8    // content in a new tab or window rather than a pop-up.
9    // params = "";
10    window.open(url, "NewWindow", params);
11}
12
13function setShareLinks() {
14    var pageUrl = encodeURIComponent(document.URL);
15    var tweet = encodeURIComponent($("meta[property='og:description']").attr("content"));
16
17    $(document).on("click", ".social-share.facebook", function () {
18        url = "https://www.facebook.com/sharer.php?u=" + pageUrl;
19        socialWindow(url);
20    });
21
22    $(document).on("click", ".social-share.twitter", function () {
23        var text = document.getElementById('SocialComment');
24        text = text.value;
25        if (text !== 'Write your comment here...') {
26            url = "https://twitter.com/intent/tweet?url=" + pageUrl + "&text=" + text;
27        }
28        else {
29            url = "https://twitter.com/intent/tweet?url=" + pageUrl;
30        }
31        socialWindow(url);
32    });
33
34    $(document).on("click", ".social-share.linkedin", function () {
35        var text = document.getElementById('SocialComment');
36        text = text.value;
37        if (text !== 'Write your comment here...') {
38            url = "https://www.linkedin.com/shareArticle?mini=true&url=" + pageUrl + "&summary=" + text;
39        }
40        else {
41            url = "https://www.linkedin.com/shareArticle?mini=true&url=" + pageUrl;
42        }
43        socialWindow(url);
44    });
45    $(document).on("click", ".social-share.mail", function () {
46        var text = document.getElementById('SocialComment');
47        text = text.value;
48        if (text !== 'Write your comment here...') {
49            url = "mailto:?to=&subject=i\'d like to share a link with you&body=" + text + " " + pageUrl;
50        }
51        else {
52            url = "mailto:?to=&subject=i\'d like to share a link with you&body=" + pageUrl;
53        }
54        socialWindow(url);
55    });
56    $(document).on("click", ".social-share.whatsapp", function () {
57        var ScreenWidth = screen.width;
58        var text = document.getElementById('SocialComment');
59        if (ScreenWidth < 768) {
60            text = text.value;
61            if (text !== 'Write your comment here...') {
62                url = "whatsapp://send/?text=" + text + " " + pageUrl;
63            }
64            else {
65                url = "whatsapp://send/?text=" + pageUrl;
66            }
67            socialWindow(url);
68        }
69        else {
70            text = text.value;
71            if (text !== 'Write your comment here...') {
72                url = "https://web.whatsapp.com/send?text=" + text + " " + pageUrl;
73            }
74            else {
75                url = "https://web.whatsapp.com/send?text=" + pageUrl;
76            }
77            socialWindow(url);
78        }
79    });
80}
81
82
83$('.st_sharethis_custom').click(function () {
84    $('body').addClass('overlay-on');
85    var link = window.location;
86    var popup = '<div class="popup-container"><button id="Close" class="close-button"><i class="fa fa-close"></i></button><textarea id="SocialComment" aria-label="social comment box">Write your comment here...</textarea><a class="link">' + link + '</a><div class="button-container"><button class="social-share facebook"><i class="fa fa-facebook"></i></button><button class="social-share twitter"><i class="fa fa-twitter"></i></button><button class="social-share linkedin"><i class="fa fa-linkedin"></i></button><button class="social-share whatsapp"><i class="fa fa-whatsapp"></i></button></button><button class="social-share mail"><i class="fa fa-envelope"></i></button></div></div><div class="overlay"></div>';
87    $('body').append(popup);
88});
89
90$(document).on('click', '.overlay, #Close', function () {
91    $('body').removeClass('overlay-on');
92    $('.popup-container').remove();
93    $('.overlay').remove();
94});

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.