PageSourceSearch

https://tus-st.hr/wp-content/plugins/ultimate-social-media-icons/js/custom.js?ver=4.9.26

js tus-st.hr collected 2026-10-02 06:11:47 UTC 29,180 bytes, 526 lines download raw bytes

1jQuery(document).ready(function (e) {
2    jQuery("#sfsi_floater").attr("data-top", jQuery(document).height());
3});
4
5function showErrorSuc(s, i, e) {
6    if ("error" == s) var t = "errorMsg";
7    else var t = "sucMsg";
8    return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(),
9        SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function () {
10            SFSI("." + t).slideUp("slow");
11        }, 5e3), !1;
12}
13
14function beForeLoad() {
15    SFSI(".loader-img").show(), SFSI(".save_button >a").html("Saving..."), SFSI(".save_button >a").css("pointer-events", "none");
16}
17
18function sfsi_make_popBox() {
19    var s = 0;
20    SFSI(".sfsi_sample_icons >li").each(function () {
21            "none" != SFSI(this).css("display") && (s = 1);
22        }), 0 == s ? SFSI(".sfsi_Popinner").hide() : SFSI(".sfsi_Popinner").show(), "" != SFSI('input[name="sfsi_popup_text"]').val() ? (SFSI(".sfsi_Popinner >h2").html(SFSI('input[name="sfsi_popup_text"]').val()),
23            SFSI(".sfsi_Popinner >h2").show()) : SFSI(".sfsi_Popinner >h2").hide(), SFSI(".sfsi_Popinner").css({
24            "border-color": SFSI('input[name="sfsi_popup_border_color"]').val(),
25            "border-width": SFSI('input[name="sfsi_popup_border_thickness"]').val(),
26            "border-style": "solid"
27        }), SFSI(".sfsi_Popinner").css("background-color", SFSI('input[name="sfsi_popup_background_color"]').val()),
28        SFSI(".sfsi_Popinner h2").css("font-family", SFSI("#sfsi_popup_font").val()), SFSI(".sfsi_Popinner h2").css("font-style", SFSI("#sfsi_popup_fontStyle").val()),
29        SFSI(".sfsi_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_popup_fontSize"]').val())),
30        SFSI(".sfsi_Popinner >h2").css("color", SFSI('input[name="sfsi_popup_fontColor"]').val() + " !important"),
31        "yes" == SFSI('input[name="sfsi_popup_border_shadow"]:checked').val() ? SFSI(".sfsi_Popinner").css("box-shadow", "12px 30px 18px #CCCCCC") : SFSI(".sfsi_Popinner").css("box-shadow", "none");
32}
33
34function sfsi_stick_widget(s) {
35    0 == initTop.length && (SFSI(".sfsi_widget").each(function (s) {
36        initTop[s] = SFSI(this).position().top;
37    }));
38    var i = SFSI(window).scrollTop(),
39        e = [],
40        t = [];
41    SFSI(".sfsi_widget").each(function (s) {
42        e[s] = SFSI(this).position().top, t[s] = SFSI(this);
43    });
44    var n = !1;
45    for (var o in e) {
46        var a = parseInt(o) + 1;
47        e[o] < i && e[a] > i && a < e.length ? (SFSI(t[o]).css({
48            position: "fixed",
49            top: s
50        }), SFSI(t[a]).css({
51            position: "",
52            top: initTop[a]
53        }), n = !0) : SFSI(t[o]).css({
54            position: "",
55            top: initTop[o]
56        });
57    }
58    if (!n) {
59        var r = e.length - 1,
60            c = -1;
61        e.length > 1 && (c = e.length - 2), initTop[r] < i ? (SFSI(t[r]).css({
62            position: "fixed",
63            top: s
64        }), c >= 0 && SFSI(t[c]).css({
65            position: "",
66            top: initTop[c]
67        })) : (SFSI(t[r]).css({
68            position: "",
69            top: initTop[r]
70        }), c >= 0 && e[c] < i);
71    }
72}
73
74function sfsi_float_widget(s) {
75
76    function i() {
77        r = "Microsoft Internet Explorer" === navigator.appName ? a - document.documentElement.scrollTop : a - window.pageYOffset,
78            Math.abs(r) > 0 ?
79            (window.removeEventListener("scroll", i),
80                a -= r * o,
81                SFSI("#sfsi_floater").css({
82                    top: Math.round((a + t).toString()) + "px",
83                    transition: "all 0.6s ease 0s"
84                }),
85                setTimeout(i, n)) :
86            window.addEventListener("scroll", i, !1);
87    }
88
89    function e() {
90        var documentheight = SFSI("#sfsi_floater").attr("data-top");
91        var fltrhght = parseInt(SFSI("#sfsi_floater").height());
92        var fltrtp = parseInt(SFSI("#sfsi_floater").css("top"));
93
94        if (parseInt(fltrhght) + parseInt(fltrtp) <= documentheight) {
95            window.addEventListener("scroll", i, !1);
96        } else {
97            window.removeEventListener("scroll", i);
98            SFSI("#sfsi_floater").css("top", documentheight + "px");
99        }
100    }
101    if ("center" == s) {
102        var t = (SFSI(window).height() - SFSI("#sfsi_floater").height()) / 2;
103    } else if ("bottom" == s) {
104        var t = window.innerHeight - (SFSI("#sfsi_floater").height() + parseInt(SFSI('#sfsi_floater').css('margin-bottom')));
105    } else {
106        var t = parseInt(s);
107    }
108
109    var n = 50,
110        o = .1,
111        a = 0,
112        r = 0;
113    SFSI("#sfsi_floater");
114
115    var prev_onscroll = window.onscroll;
116
117    window.onscroll = function () {
118
119        if ('function' === typeof prev_onload) {
120            prev_onload(), e();
121        } else {
122            e();
123        }
124    }
125}
126
127function sfsi_shuffle() {
128    var $ = window.jQuery;
129
130    return SFSI('.sfsi_wDiv').each(function (index, container) {
131        var s = [];
132        s = SFSI(container).find(".sfsi_wicons ");
133        s = Shuffle(s);
134        SFSI(container).html("");
135        for (var i = 0; i < s.length; i++) {
136            SFSI(s[i]).css('transform', 'none');
137            SFSI(s[i]).css('position', 'relative');
138            SFSI(container).append(s[i]);
139        }
140    })
141
142}
143
144function Shuffle(s) {
145    for (var i, e, t = s.length; t; i = parseInt(Math.random() * t), e = s[--t], s[t] = s[i], s[i] = e);
146    return s
147}
148
149function sfsi_setCookie(s, i, e) {
150    var t = new Date();
151    t.setTime(t.getTime() + 1e3 * 60 * 60 * 24 * e);
152    var n = "expires=" + t.toGMTString();
153    document.cookie = s + "=" + i + "; " + n;
154}
155
156function sfsfi_getCookie(s) {
157    for (var i = s + "=", e = document.cookie.split(";"), t = 0; t < e.length; t++) {
158        var n = e[t].trim();
159        if (0 == n.indexOf(i)) return n.substring(i.length, n.length);
160    }
161    return "";
162}
163
164function sfsi_hideFooter() {}
165
166window.onerror = function () {}, SFSI = jQuery, SFSI(window).on('load', function () {
167    SFSI("#sfpageLoad").fadeOut(2e3);
168});
169
170var global_error = 0;
171
172SFSI(document).ready(function (s) {
173    //changes done {Monad}
174    //putting it before to make sure it registers before the mobile click function
175    SFSI(document).on('click', '.inerCnt a[href=""]', function (event) {
176        //check if not mobile
177        if (!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))) {
178            event.preventDefault();
179        }
180    });
181
182    SFSI("head").append('<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'),
183        SFSI("head").append('<meta http-equiv="Pragma" content="no-cache" />'), SFSI("head").append('<meta http-equiv="Expires" content="0" />'),
184        SFSI(document).click(function (s) {
185
186            var i = SFSI(".sfsi_FrntInner"),
187                e = SFSI(".sfsi_wDiv"),
188                t = SFSI("#at15s");
189            i.is(s.target) || 0 !== i.has(s.target).length || e.is(s.target) || 0 !== e.has(s.target).length || t.is(s.target) || 0 !== t.has(s.target).length || i.fadeOut();
190        }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function () {
191            SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
192        }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function () {
193            SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
194        }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function () {
195            SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
196        }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function () {
197            SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube.svg");
198        }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function () {
199            SFSI(this).css("opacity", "0.9");
200        }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseleave(function () {
201            SFSI(this).css("opacity", "1");
202            /*{Monad}*/
203        }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function () {
204            SFSI(this).css("opacity", "0.9");
205        }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function () {
206            SFSI(this).css("opacity", "1");
207        }), SFSI(".pop-up").on("click", function () {
208            ("fbex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(),
209                SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")),
210            SFSI("." + SFSI(this).attr("data-id")).show("slow");
211        }), /*SFSI("#close_popup").live("click", function() {*/ SFSI(document).on("click", '#close_popup', function () {
212            SFSI(".read-overlay").hide("slow");
213        });
214    var e = 0;
215    sfsi_make_popBox(), SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("keyup", sfsi_make_popBox),
216        SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("focus", sfsi_make_popBox),
217        SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox),
218        /*SFSI(".radio").live("click", function() {*/
219
220    SFSI(document).on("click", '.radio', function () {
221            var s = SFSI(this).parent().find("input:radio:first");
222            "sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
223        }),
224
225        /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI(document).on("click", 'img.sfsi_wicon',function (s) {
226            /*console.log('document mouse click', s, s.target);*/
227
228            if (SFSI(s.target).parent().attr('href') == "") {
229                s.preventDefault();
230            }
231            if (!SFSI(this).hasClass('sfsi_click_wicon')) {
232                s.stopPropagation && s.stopPropagation();
233            }
234            var i = SFSI("#sfsi_floater_sec").val();
235            SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),
236                SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
237                    SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
238                SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
239                    "z-index": "999"
240                }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
241                    opacity: 1,
242                    "z-index": 10
243                }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
244                    SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
245                        opacity: 1,
246                        "z-index": 10
247                    }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
248                    SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
249                        opacity: 1,
250                        "z-index": 10
251                    }
251)), ("top-left" == i || "top-right" == i) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0 && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
252                    SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
253                    SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
254                        opacity: 1,
255                        "z-index": 10
256                    }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
257                    SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
258                    SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
259                        opacity: 1,
260                        "z-index": 1e3
261                    }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
262        }) : SFSI(document).on("mouseenter", "img.sfsi_wicon", function () {
263            /*console.log('img mouseenter');*/
264            var s = SFSI("#sfsi_floater_sec").val();
265            SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),
266                SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
267                    SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
268                SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
269                    "z-index": "999"
270                }), SFSI(this).parent().css({
271                    "opacity": "1"
272                }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
273                    opacity: 1,
274                    "z-index": 10
275                }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
276                    SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
277                        opacity: 1,
278                        "z-index": 10
279                    }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
280                    SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
281                        opacity: 1,
282                        "z-index": 10
283                    })), ("top-left" == s || "top-right" == s) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0 && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
284                    SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
285                    SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
286                        opacity: 1,
287                        "z-index": 10
288                    }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
289                    SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
290                    SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
291                        opacity: 1,
292                        "z-index": 10
293                    }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
294        }),
295        SFSI(document).on("mouseleave", "div.sfsi_wicons", function () {
296            SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "fade_in" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"),
297                SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "scale" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale"),
298                SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-ffect") && "combo" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") /*  && SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"), */
299            SFSI(this).parent("div").find("div.sfsi_tool_tip_2").css("display", "none"),
300            SFSI(this).parent("div").find("div.sfsi_tool_tip_2").css("opacity", "0");
301        }), SFSI("body").on("click", function () {
302            SFSI(".inerCnt").find("div.sfsi_tool_tip_2").hide();
303        }), SFSI(".adminTooltip >a").on("hover", function () {
304            SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "1"),
305                SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show();
306        }), SFSI(".adminTooltip").on("mouseleave", function () {
307            "none" != SFSI(".gpls_tool_bdr").css("display") && 0 != SFSI(".gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function () {
308                SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide();
309            }) : (SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"),
310                SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide());
311        }), SFSI(".expand-area").on("click", function () {
312            "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"),
313                SFSI(this).text("Collapse")) : (SFSI(this).siblings("p").children("label").fadeOut("slow"),
314                SFSI(this).text("Read more"));
315        }), SFSI(".sfsi_wDiv").length > 0 && setTimeout(function () {
316            var s = parseInt(SFSI(".sfsi_wDiv").height()) + 15 + "px";
317            SFSI(".sfsi_holders").each(function () {
318                SFSI(this).css("height", s);
319                SFSI(".sfsi_widget");
320            });
321        }, 200);
322});
323
324//hiding popup on close button
325function sfsihidemepopup() {
326    SFSI(".sfsi_FrntInner_chg").fadeOut();
327}
328var initTop = new Array();
329
330function close_overlay(selector) {
331    if (typeof selector === "undefined") {
332        selector = '.sfsi_overlay';
333    }
334    jQuery(selector).removeClass('show').addClass('hide').hide();
335}
336
337function sfsi_wechat_share(url) {
338    if (jQuery('.sfsi_wechat_follow_overlay').length == 0) {
339        jQuery('body').append("<div class='sfsi_wechat_follow_overlay sfsi_overlay show'>
339<div class='sfsi_inner_display'><a class='close_btn' href='' onclick='event.preventDefault();close_overlay(\".sfsi_wechat_follow_overlay\")' >×</a><div style='width:95%;max-width:500px; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;'><div style='width:90%;margin: 0 auto;text-align:center'><div class='sfsi_wechat_qr_display' style='display:inline-block'></div></div><div style='width:80%;margin:10px auto 0 auto;text-align:center;font-weight:900;font-size:25px;'>\"Scan QR Code\" in WeChat and press ··· to share!</div></div></div>");
340        new QRCode(jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display')[0], encodeURI(decodeURI(window.location.href)))
341        jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display img').attr('nopin', 'nopin')
342    } else {
343        jQuery('.sfsi_wechat_follow_overlay').removeClass('hide').addClass('show').show();
344    }
345}
346
347function sfsi_mobile_wechat_share(url) {
348    if (jQuery('.sfsi_wechat_follow_overlay').length == 0) {
349        jQuery('body').append("<div class='sfsi_wechat_follow_overlay sfsi_overlay show'><div class='sfsi_inner_display'><a class='close_btn' href='' onclick=\"event.preventDefault();close_overlay(\'.sfsi_wechat_follow_overlay\')\" >×</a><div style='width:95%; min-height:80%;background-color:#fff;margin:0 auto;margin:30% auto;padding: 20px 0;'><div style='width:90%;margin: 0 auto;'><input type='text' value='" + encodeURI(decodeURI(window.location.href)) + "' style='width:100%;padding:7px 0;text-align:center' /></div><div style='width:80%;margin:10px auto 0 auto'><div  class='sfsi_upload_butt_container' ><button onclick='sfsi_copy_text_parent_input(event)' class='upload_butt' >Copy</button></div><div class='sfsi_upload_butt_container' ><a href='weixin://' class='upload_butt'>Open WeChat</a></div></div></div></div>");
350    } else {
351        jQuery('.sfsi_wechat_scan').removeClass('hide').addClass('show');
352    }
353}
354
355function sfsi_copy_text_parent_input(event) {
356    var target = jQuery(event.target);
357    /*console.log(target);*/
358    input_target = target.parent().parent().parent().find('input');
359    input_target.select();
360    document.execCommand('copy');
361}
362
363function sfsi_responsive_toggle() {
364    jQuery(document).scroll(function ($) {
365        var y = jQuery(this).scrollTop();
366        if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
367            if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 100) {
368                jQuery('.sfsi_outr_div').css({
369                    'z-index': '9996',
370                    opacity: 1,
371                    top: jQuery(window).scrollTop() + "px",
372                    position: "absolute"
373                });
374                jQuery('.sfsi_outr_div').fadeIn(200);
375                jQuery('.sfsi_FrntInner_chg').fadeIn(200);
376            } else {
377                jQuery('.sfsi_outr_div').fadeOut();
378                jQuery('.sfsi_FrntInner_chg').fadeOut();
379            }
380        } else {
381            if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 3) {
382                jQuery('.sfsi_outr_div').css({
383                    'z-index': '9996',
384                    opacity: 1,
385                    top: jQuery(window).scrollTop() + 200 + "px",
386                    position: "absolute"
387                });
388                jQuery('.sfsi_outr_div').fadeIn(200);
389                jQuery('.sfsi_FrntInner_chg').fadeIn(200);
390            } else {
391                jQuery('.sfsi_outr_div').fadeOut();
392                jQuery('.sfsi_FrntInner_chg').fadeOut();
393            }
394        }
395    });
396}
397
398function sfsi_time_pop_up(time_popUp) {
399    jQuery(document).ready(function ($) {
400        setTimeout(function () {
401            jQuery('.sfsi_outr_div').css({
402                'z-index': '1000000',
403                opacity: 1
404            });
405            jQuery('.sfsi_outr_div').fadeIn(200);
406            jQuery('.sfsi_FrntInner_chg').fadeIn(200);
407        }, time_popUp);
408    });
409}
410
411function sfsi_social_pop_up(time_popUp) {
412    jQuery(document).ready(function ($) {
413        //jQuery('.sfsi_outr_div').fadeIn();
414        sfsi_setCookie('sfsi_socialPopUp', time(), 32);
415        setTimeout(function () {
416            jQuery('.sfsi_outr_div').css({
417                'z-index': '1000000',
418                opacity: 1
419            });
420            jQuery('.sfsi_outr_div').fadeIn();
421        }, time_popUp);
422    });
423}
424
425function sfsi_plugin_version(pluginVersion) {
426    jQuery(document).ready(function (e) {
427        jQuery("body").addClass("sfsi_" + pluginVersion)
428    });
429}
430
431function sfsi_widget_set() {
432    jQuery(".sfsi_widget").each(function (index) {
433        if (jQuery(this).attr("data-position") == "widget") {
434            var wdgt_hght = jQuery(this).children(".norm_row.sfsi_wDiv").height();
435            var title_hght = jQuery(this).parent(".widget.sfsi").children(".widget-title").height();
436            var totl_hght = parseInt(title_hght) + parseInt(wdgt_hght);
437            jQuery(this).parent(".widget.sfsi").css("min-height", totl_hght + "px");
438            /*console.log('widget');*/
439        }
440    });
441}
442
443SFSI(window).on('load', function () {
444    SFSI('.sfsi_pinterest_sm_click').on('click touchstart', function () {
445        sfsi_pinterest_modal_images(e);
446    });
447});
448
449function sfsi_pinterest_modal_images(event, url, title) {
450    /*console.log(event);*/
451    event && event.preventDefault();
452    var imgSrc = [];
453    var page_title;
454
455    page_title = SFSI('meta[property="og:title"]').attr('content');
456    if (undefined == page_title) {
457        page_title = SFSI('head title').text();
458    }
459    if (undefined == title) {
460        title = page_title;
461    }
462    if (undefined == url) {
463        url = window.location.href;
464        // url = encodeURIComponent(window.location.href);
465    }
466    SFSI('body img').each(function (index) {
467        var src = SFSI(this).attr('src') || "";
468        var height = SFSI(this).height();
469        var width = SFSI(this).width();
470        var image_title = SFSI(this).attr('title') || "";
471        var alt = SFSI(this).attr('alt') || "";
472        var no_pin = SFSI(this).attr('data-pin-nopin') || "";
473        var no_pin_old = SFSI(this).attr('nopin') || "";
474
475        if (src !== "" && !src.startsWith("javascript") && height > 100 && width > 100 && no_pin_old !== "nopin" && no_pin !== "true") {
476            imgSrc.push({
477                src: src,
478                title: title && "" !== title ? title : (image_title && "" !== image_title ? image_title : alt)
479            });
480        }
481    });
482
483    sfsi_pinterest_modal();
484    /*console.log(imgSrc);*/
485    if (imgSrc.length == 0) {
486        var meta_img = SFSI('meta[property="og:image"]').attr('content');
487        if (undefined == meta_img) {
488            meta_img = "";
489        }
490        SFSI('.sfsi_flex_container').append('<div><a href="http://www.pinterest.com/pin/create/button/?url=' + url + '&media=&description=' + encodeURIComponent(page_title).replace('+', '%20').replace("#", "%23") + '"><div style="width:140px;height:90px;display:inline-block;" ></div><span class="sfsi_pinterest_overlay"><img data-pin-nopin="true" height="30" width="30" src="' + window.sfsi_icon_ajax_object.plugin_url + '/images/pinterest.png" /></span></a></div>')
491    } else {
492
493        /*console.log(imgSrc);*/
494        SFSI.each(imgSrc, function (index, val) {
495            /*console.log('discrip',val);*/
496            SFSI('.sfsi_flex_container').append('<div><a href="http://www.pinterest.com/pin/create/button/?url=' + url + '&media=' + val.src + '&description=' + encodeURIComponent(val.title ? val.title : page_title).replace('+', '%20').replace("#", "%23") + '"><img style="display:inline"  data-pin-nopin="true" src="' + val.src + '"><span class="sfsi_pinterest_overlay" style="width:140px;left:unset;"><img data-pin-nopin="true" height="30" width="30" style="display:inline" src="' + window.sfsi_icon_ajax_object.plugin_url + '/images/pinterest.png" /></span></a></div>');
497        });
498    }
499    event.preventDefault();
500
501}
502
503function sfsi_pinterest_modal(imgs) {
504    // if (jQuery('.sfsi_premium_wechat_follow_overlay').length == 0) {
505    jQuery('body').append(
506        "<div class='sfsi_wechat_follow_overlay sfsi_overlay show'>" +
507        "<div class='sfsi_inner_display'>" +
508        '<a class="close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_wechat_follow_overlay\')" >×</a>' +
509        "<div style='width:95%;max-width:500px; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;border-radius: 20px;'>" +
510        "<h4 style='margin-left:10px;'>Pin It on Pinterest</h4>" +
511        "<div class='sfsi_flex_container'>" +
512
513        "</div>" +
514        "</div>" +
515        "</div>" +
516        "</div>"
517    );
518}
519
520// should execute at last so that every function is acceable in body.
521var sfsi_functions_loaded = new CustomEvent('sfsi_functions_loaded', {
522    detail: {
523        "abc": "def"
524    }
525});
526window.dispatchEvent(sfsi_functions_loaded);

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.