PageSourceSearch

https://www.reichertspr.com/-/media/themes/ameteksxa/basesite/base…/scripts/component-social.js?thm=1

js reichertspr.com collected 2026-10-07 08:19:21 UTC 1,768 bytes, 51 lines download raw bytes

1XA.component.social = (function($, document) {
2
3    var api = {},
4        attachExternalScript;
5
6    api.initFacebook = function() {
7        (function(d, s, id) {
8            var js, fjs = d.getElementsByTagName(s)[0];
9            if (d.getElementById(id)) {
10                return;
11            }
12            js = d.createElement(s);
13            js.id = id;
14            js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
15            fjs.parentNode.insertBefore(js, fjs);
16        }(document, 'script', 'facebook-jssdk'));
17    };
18
19    attachExternalScript = function(properties){
20        var component = $(".sharethis"),
21            shareThisExternal;
22        if(window.stLight === undefined){
23            shareThisExternal = document.createElement("script");
24            shareThisExternal.type = "text/javascript";
25            shareThisExternal.src = "https://w.sharethis.com/button/buttons.js";
26            // shareThisExternal.src = "http://w.sharethis.com/button/buttons.js";
27            //Edited jan2021
28            $(window).on("load",function(){
29                $(properties).each(function(){
30                    stLight.options(this);
31                });
32            });
33            $(component[0]).append(shareThisExternal);
34        } 
35    };
36
37    api.init = function() {
38        var shareThis = $(".sharethis:not(.initialized)"),
39            shareProperties = [];
40        shareThis.each(function () {
41            var properties = $(this).data("properties");
42            shareProperties.push(properties);
43            $(this).addClass("initialized");
44        });
45        attachExternalScript(shareProperties);       
46    };
47
48    return api;
49}(jQuery, document));
50
51XA.register("social", XA.component.social);

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.