PageSourceSearch

https://queereuropeanasylum.org/wp-content/plugins/ultimate-social-media-icons/js/custom_ver-2.9.1.js

js queereuropeanasylum.org collected 2026-10-04 12:37:47 UTC 33,631 bytes, 692 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opener = _____WB$wombat$assign$function_____("opener");
10jQuery(document).ready(function (e) {
11    jQuery("#sfsi_floater").attr("data-top", jQuery(document).height());
12});
13
14function showErrorSuc(s, i, e) {
15    if ("error" == s) var t = "errorMsg";
16    else var t = "sucMsg";
17    return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(),
18        SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function () {
19            SFSI("." + t).slideUp("slow");
20        }, 5e3), !1;
21}
22
23function beForeLoad() {
24    SFSI(".loader-img").show(), SFSI(".save_button >a").html("Saving..."), SFSI(".save_button >a").css("pointer-events", "none");
25}
26
27function sfsi_make_popBox() {
28    var s = 0;
29    SFSI(".sfsi_sample_icons >li").each(function () {
30        "none" != SFSI(this).css("display") && (s = 1);
31    }), 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()),
32        SFSI(".sfsi_Popinner >h2").show()) : SFSI(".sfsi_Popinner >h2").hide(), SFSI(".sfsi_Popinner").css({
33            "border-color": SFSI('input[name="sfsi_popup_border_color"]').val(),
34            "border-width": SFSI('input[name="sfsi_popup_border_thickness"]').val(),
35            "border-style": "solid"
36        }), SFSI(".sfsi_Popinner").css("background-color", SFSI('input[name="sfsi_popup_background_color"]').val()),
37        SFSI(".sfsi_Popinner h2").css("font-family", SFSI("#sfsi_popup_font").val()), SFSI(".sfsi_Popinner h2").css("font-style", SFSI("#sfsi_popup_fontStyle").val()),
38        SFSI(".sfsi_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_popup_fontSize"]').val())),
39        SFSI(".sfsi_Popinner >h2").css("color", SFSI('input[name="sfsi_popup_fontColor"]').val() + " !important"),
40        "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");
41}
42
43function sfsi_stick_widget(s) {
44    0 == initTop.length && (SFSI(".sfsi_widget").each(function (s) {
45        initTop[s] = SFSI(this).position().top;
46    }));
47    var i = SFSI(window).scrollTop(),
48        e = [],
49        t = [];
50    SFSI(".sfsi_widget").each(function (s) {
51        e[s] = SFSI(this).position().top, t[s] = SFSI(this);
52    });
53    var n = !1;
54    for (var o in e) {
55        var a = parseInt(o) + 1;
56        e[o] < i && e[a] > i && a < e.length ? (SFSI(t[o]).css({
57            position: "fixed",
58            top: s
59        }), SFSI(t[a]).css({
60            position: "",
61            top: initTop[a]
62        }), n = !0) : SFSI(t[o]).css({
63            position: "",
64            top: initTop[o]
65        });
66    }
67    if (!n) {
68        var r = e.length - 1,
69            c = -1;
70        e.length > 1 && (c = e.length - 2), initTop[r] < i ? (SFSI(t[r]).css({
71            position: "fixed",
72            top: s
73        }), c >= 0 && SFSI(t[c]).css({
74            position: "",
75            top: initTop[c]
76        })) : (SFSI(t[r]).css({
77            position: "",
78            top: initTop[r]
79        }), c >= 0 && e[c] < i);
80    }
81}
82
83function sfsi_float_widget(s) {
84
85    function i() {
86        r = "Microsoft Internet Explorer" === navigator.appName ? a - document.documentElement.scrollTop : a - window.pageYOffset,
87            Math.abs(r) > 0 ?
88                (window.removeEventListener("scroll", i),
89                    a -= r * o,
90                    SFSI("#sfsi_floater").css({
91                        top: Math.round((a + t).toString()) + "px",
92                        transition: "all 0.6s ease 0s"
93                    }),
94                    setTimeout(i, n)) :
95                window.addEventListener("scroll", i, !1);
96    }
97
98    function e() {
99        var documentheight = SFSI("#sfsi_floater").attr("data-top");
100        var fltrhght = parseInt(SFSI("#sfsi_floater").height());
101        var fltrtp = parseInt(SFSI("#sfsi_floater").css("top"));
102
103        if (parseInt(fltrhght) + parseInt(fltrtp) <= documentheight) {
104            window.addEventListener("scroll", i, !1);
105        } else {
106            window.removeEventListener("scroll", i);
107            SFSI("#sfsi_floater").css("top", documentheight + "px");
108        }
109    }
110    if ("center" == s) {
111        var t = (SFSI(window).height() - SFSI("#sfsi_floater").height()) / 2;
112    } else if ("bottom" == s) {
113        var t = window.innerHeight - (SFSI("#sfsi_floater").height() + parseInt(SFSI('#sfsi_floater').css('margin-bottom')));
114    } else {
115        var t = parseInt(s);
116    }
117
118    var n = 50,
119        o = .1,
120        a = 0,
121        r = 0;
122    SFSI("#sfsi_floater");
123
124    var prev_onscroll = window.onscroll;
125
126    window.onscroll = function () {
127
128        if ('function' === typeof prev_onload) {
129            prev_onload(), e();
130        } else {
131            e();
132        }
133    }
134}
135
136function sfsi_shuffle() {
137    var $ = window.jQuery;
138
139    return SFSI('.sfsi_wDiv').each(function (index, container) {
140        var s = [];
141        s = SFSI(container).find(".sfsi_wicons ");
142        s = Shuffle(s);
143        SFSI(container).html("");
144        for (var i = 0; i < s.length; i++) {
145            SFSI(s[i]).css('transform', 'none');
146            SFSI(s[i]).css('position', 'relative');
147            SFSI(container).append(s[i]);
148        }
149    })
150
151}
152
153function Shuffle(s) {
154    for (var i, e, t = s.length; t; i = parseInt(Math.random() * t), e = s[--t], s[t] = s[i], s[i] = e);
155    return s
156}
157
158function sfsi_setCookie(s, i, e) {
159    var t = new Date();
160    t.setTime(t.getTime() + 1e3 * 60 * 60 * 24 * e);
161    var n = "expires=" + t.toGMTString();
162    document.cookie = s + "=" + i + "; " + n;
163}
164
165function sfsfi_getCookie(s) {
166    for (var i = s + "=", e = document.cookie.split(";"), t = 0; t < e.length; t++) {
167        var n = e[t].trim();
168        if (0 == n.indexOf(i)) return n.substring(i.length, n.length);
169    }
170    return "";
171}
172
173function sfsi_hideFooter() { }
174
175window.onerror = function () {
176    jQuery("#sfpageLoad").fadeOut(2e3);
177}, SFSI = jQuery, SFSI(window).on('load', function () {
178    SFSI("#sfpageLoad").fadeOut(2e3);
179
180    if (jQuery('#sfsi_tifm_scroll_value').val()) {
181        jQuery('.sfsi_tifm_module_menu_block').click();
182        setTimeout(function () {
183            document.querySelector('.sfsi_tifm_tab_module_block').scrollIntoView({ behavior: "smooth", block: "center", inline: "nearest" });
184        }, 300);
185    }
186});
187
188var global_error = 0;
189
190SFSI(document).ready(function (s) {
191    //changes done {Monad}
192    //putting it before to make sure it registers before the mobile click function
193    SFSI(document).on('click', '.inerCnt a[href=""]', function (event) {
194        //check if not mobile
195        if (!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))) {
196            event.preventDefault();
197        }
198    });
199
200    SFSI("head").append('<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'),
201        SFSI("head").append('<meta http-equiv="Pragma" content="no-cache" />'), SFSI("head").append('<meta http-equiv="Expires" content="0" />'),
202        SFSI(document).click(function (s) {
203
204            var i = SFSI(".sfsi_FrntInner"),
205                e = SFSI(".sfsi_wDiv"),
206                t = SFSI("#at15s");
207            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();
208        }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function () {
209            SFSI(this).css("opacity", "0.9");
210        }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function () {
211            SFSI(this).css("opacity", "1");
212        }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function () {
213            SFSI(this).css("opacity", "0.9");
214        }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function () {
215            SFSI(this).css("opacity", "1");
216        }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function () {
217            SFSI(this).css("opacity", "0.9");
218        }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseleave(function () {
219            SFSI(this).css("opacity", "1");
220            /*{Monad}*/
221        }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function () {
222            SFSI(this).css("opacity", "0.9");
223        }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function () {
224            SFSI(this).css("opacity", "1");
225        }), SFSI(".pop-up").on("click", function () {
226            ("fbex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(),
227                SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")),
228                SFSI("." + SFSI(this).attr("data-id")).show("slow");
229        }), /*SFSI("#close_popup").live("click", function() {*/ SFSI(document).on("click", '#close_popup', function () {
230            SFSI(".read-overlay").hide("slow");
231        });
232    var e = 0;
233    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),
234        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),
235        SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox),
236        /*SFSI(".radio").live("click", function() {*/
237
238        SFSI(document).on("click", '.radio', function () {
239            var s = SFSI(this).parent().find("input:radio:first");
240            "sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
241        }),
242
243        /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI(document).on("click", 'img.sfsi_wicon', function (s) {
244            /*console.log('document mouse click', s, s.target);*/
245
246            if (SFSI(s.target).parent().attr('href') == "") {
247                s.preventDefault();
248            }
249            if (!SFSI(this).hasClass('sfsi_click_wicon')) {
250                s.stopPropagation && s.stopPropagation();
251            }
252            var i = SFSI("#sfsi_floater_sec").val();
253
254            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(),
255                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"),
256                    SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
257                SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
258                    "z-index": "999"
259                }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
260                    opacity: 1,
261                    "z-index": 10
262                }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
263                    SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
264                        opacity: 1,
265                        "z-index": 10
266                    }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
267                        SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
268                            opacity: 1,
269                            "z-index": 10
270                        }
270)), ("top-left" == i || "top-right" == i || "center-top" == 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"),
271                            SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
272                            SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
273                                opacity: 1,
274                                "z-index": 10,
275                                "bottom": "auto"
276                            }), 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"),
277                                SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
278                                SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
279                                    opacity: 1,
280                                    "z-index": 1e3
281                                }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
282        })
283            : SFSI(document).on("mouseenter", "img.sfsi_wicon", function () {
284                /*console.log('img mouseenter');*/
285                var s = SFSI("#sfsi_floater_sec").val();
286                //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();
287                SFSI(this).parent().parent().parent().parent().siblings("li").length > 0
288                    && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
289                        SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide());
290                // SFSI(this).parent().parent().parent().css("z-index", "1000000");
291                // SFSI(this).parent().parent().css({ "z-index": "999" });
292                SFSI(this).parent().css({ "opacity": "1" });
293                SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
294                    opacity: 1,
295                    "z-index": 1e8
296                }), SFSI(this).parent().css("opacity", "1"));
297                SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
298                    SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
299                        opacity: 1,
300                        "z-index": 1e8
301                    }), SFSI(this).parent().css("opacity", "1"));
302                SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
303                    SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
304                        opacity: 1,
305                        "z-index": 1e8
306                    }));
307                ("top-left" == s || "top-right" == s || "center-top" == s) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0
308                    && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id")
309                    ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
310                        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
311                        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
312                            opacity: 1,
313                            "z-index": 1e8,
314                            "bottom": "auto"
315                        }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show())
316                    : (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
317                        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
318                        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
319                            opacity: 1,
320                            "z-index": 1e8
321                        }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
322            });
323    SFSI(document).on("mouseleave", "div.sfsi_wicons", function () {
324        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"),
325            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"),
326            SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "combo" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale").css("opacity", "0.6"),
327            SFSI(this).parent("div").find("div.sfsi_tool_tip_2").css("display", "none"),
328            SFSI(this).parent("div").find("div.sfsi_tool_tip_2").css("opacity", "0");
329    });
330
331    SFSI(document).on("mouseenter", "div.sfsi_tool_tip_2", function () {
332        SFSI(this).find("div.sfsi_tool_tip_2").css({ "z-index": 1e8, "opacity": 1 });
333    });
334    SFSI("body").on("click", function (e) {
335        var target = SFSI(e.target);
336        if (!target.is(".sfsi_wicon")) {
337            SFSI(".inerCnt").find("div.sfsi_tool_tip_2").hide();
338        }
339
340    });
341    SFSI(".adminTooltip >a").on("hover", function () {
342        SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "1"),
343            SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show();
344    });
345    SFSI(".adminTooltip").on("mouseleave", function () {
346        "none" != SFSI(".gpls_tool_bdr").css("display") && 0 != SFSI(".gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function () {
347            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();
348        }) : (SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"),
349            SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide());
350    });
351    SFSI(".expand-area").on("click", function () {
352        "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"),
353            SFSI(this).text("Collapse")) : (SFSI(this).siblings("p").children("label").fadeOut("slow"),
354                SFSI(this).text("Read more"));
355    });
356    SFSI(".sfsi_wDiv").length > 0 && setTimeout(function () {
357        var s = parseInt(SFSI(".sfsi_wDiv").height()) + 15 + "px";
358        SFSI(".sfsi_holders").each(function () {
359            SFSI(this).css("height", s);
360            SFSI(".sfsi_widget");
361        });
362    }, 200);
363
364    /* Admin forum notification */
365    SFSI('.usm-widget__footer-text-link').on('click', function () {
366        SFSI(this).parents('.usm-widget').toggle('usm-widget--open');
367
368        SFSI.ajax({
369            type: "post",
370            dataType: "json",
371            url: sfsi_icon_ajax_object.ajax_url,
372            data: {
373                nonce: sfsi_icon_ajax_object.nonce,
374                action: "sfsi_hide_admin_forum_notification"
375            },
376            success: function () {
377                SFSI('.usm-widget').remove();
378            }
379        });
380    });
381
382    /* Hide Admin forum notification popup */
383    SFSI('.usm-widget__toggle-btn').on('click', function () {
384        var currentThis = SFSI(this);
385        currentThis.parents('.usm-widget').toggleClass('usm-widget--open');
386        var toggleStatus = '';
387        if (currentThis.parents('.usm-widget').hasClass('usm-widget--open')) {
388            toggleStatus = 'hide';
389        } else {
390            toggleStatus = 'show';
391        }
392        SFSI.ajax({
393            type: "post",
394            dataType: "json",
395            url: sfsi_icon_ajax_object.ajax_url,
396            data: { action: "sfsi_default_hide_admin_notification", status: toggleStatus, nonce: sfsi_icon_ajax_object.unonce },
397            success: function () {
398                currentThis.addClass('sfsi-first-click-enabled');
399            }
400        });
401    });
402});
403
404//hiding popup on close button
405function sfsihidemepopup() {
406    SFSI(".sfsi_FrntInner_chg").fadeOut();
407}
408var initTop = new Array();
409
410function close_overlay(selector) {
411    if (typeof selector === "undefined") {
412        selector = '.sfsi_overlay';
413    }
414    jQuery(selector).removeClass('show').addClass('hide').hide();
415}
416
417function sfsi_wechat_share(url) {
418    if (jQuery('.sfsi_wechat_follow_overlay').length == 0) {
419        jQuery('body').append("<div class='sfsi_wechat_follow_overlay sfsi_overlay show'>
419<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>");
420        new QRCode(jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display')[0], encodeURI(decodeURI(window.location.href)))
421        jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display img').attr('nopin', 'nopin')
422    } else {
423        jQuery('.sfsi_wechat_follow_overlay').removeClass('hide').addClass('show').show();
424    }
425}
426
427function sfsi_mobile_wechat_share(url) {
428    if (jQuery('.sfsi_wechat_follow_overlay').length == 0) {
429        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>");
430    } else {
431        jQuery('.sfsi_wechat_scan').removeClass('hide').addClass('show');
432    }
433}
434
435function sfsi_copy_text_parent_input(event) {
436    var target = jQuery(event.target);
437    /*console.log(target);*/
438    input_target = target.parent().parent().parent().find('input');
439    input_target.select();
440    document.execCommand('copy');
441}
442
443function sfsi_responsive_toggle() {
444    jQuery(document).scroll(function ($) {
445        var y = jQuery(this).scrollTop();
446        if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
447            if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 100) {
448                jQuery('.sfsi_outr_div').css({
449                    'z-index': '9996',
450                    opacity: 1,
451                    top: jQuery(window).scrollTop() + "px",
452                    position: "absolute"
453                });
454                jQuery('.sfsi_outr_div').fadeIn(200);
455                jQuery('.sfsi_FrntInner_chg').fadeIn(200);
456            } else {
457                jQuery('.sfsi_outr_div').fadeOut();
458                jQuery('.sfsi_FrntInner_chg').fadeOut();
459            }
460        } else {
461            if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 3) {
462                jQuery('.sfsi_outr_div').css({
463                    'z-index': '9996',
464                    opacity: 1,
465                    top: jQuery(window).scrollTop() + 200 + "px",
466                    position: "absolute"
467                });
468                jQuery('.sfsi_outr_div').fadeIn(200);
469                jQuery('.sfsi_FrntInner_chg').fadeIn(200);
470            } else {
471                jQuery('.sfsi_outr_div').fadeOut();
472                jQuery('.sfsi_FrntInner_chg').fadeOut();
473            }
474        }
475    });
476}
477
478function createCookie(name, value, expires, path, domain) {
479    var cookie = name + "=" + escape(value) + ";";
480
481    if (expires) {
482        // If it's a date
483        if (expires instanceof Date) {
484            // If it isn't a valid date
485            if (isNaN(expires.getTime()))
486                expires = new Date();
487        }
488        else
489            expires = new Date(new Date().getTime() + parseInt(expires) * 1000 * 60 * 60 * 24);
490
491        cookie += "expires=" + expires.toGMTString() + ";";
492    }
493
494    if (path)
495        cookie += "path=" + path + ";";
496    if (domain)
497        cookie += "domain=" + domain + ";";
498
499    document.cookie = cookie;
500}
501
502function sfsi_time_pop_up(time_popUp) {
503    jQuery(document).ready(function ($) {
504        try {
505            // Check if cookie exists
506            if (document.cookie.indexOf('sfsi_popup') !== -1) {
507                return;
508            }
509
510            // If it doesn't exist, create it
511            createCookie('sfsi_popup', new Date.getTime(), 30, '/');
512        } catch (Exception) {
513            // Do nothing
514        }
515
516        setTimeout(function () {
517            jQuery('.sfsi_outr_div').css({
518                'z-index': '1000000',
519                opacity: 1
520            });
521            jQuery('.sfsi_outr_div').fadeIn(200);
522            jQuery('.sfsi_FrntInner_chg').fadeIn(200);
523        }, time_popUp);
524    });
525}
526
527function sfsi_social_pop_up(time_popUp) {
528    jQuery(document).ready(function ($) {
529        //jQuery('.sfsi_outr_div').fadeIn();
530        try {
531            // Check if cookie exists
532            if (document.cookie.indexOf('sfsi_socialPopUp') !== -1) {
533                return;
534            }
535
536            // If it doesn't sfsi_socialPopUp, create it
537            createCookie('sfsi_popup', new Date.getTime(), 30, '/');
538        } catch (Exception) {
539            // Do nothing
540        }
541
542        setTimeout(function () {
543            jQuery('.sfsi_outr_div').css({
544                'z-index': '1000000',
545                opacity: 1
546            });
547            jQuery('.sfsi_outr_div').fadeIn();
548        }, time_popUp);
549    });
550}
551
552function sfsi_plugin_version(pluginVersion) {
553    jQuery(document).ready(function (e) {
554        jQuery("body").addClass("sfsi_" + pluginVersion)
555    });
556}
557
558function sfsi_widget_set() {
559    jQuery(".sfsi_widget").each(function (index) {
560        if (jQuery(this).attr("data-position") == "widget") {
561            var wdgt_hght = jQuery(this).children(".norm_row.sfsi_wDiv").height();
562            var title_hght = jQuery(this).parent(".widget.sfsi").children(".widget-title").height();
563            var totl_hght = parseInt(title_hght) + parseInt(wdgt_hght);
564            jQuery(this).parent(".widget.sfsi").css("min-height", totl_hght + "px");
565            /*console.log('widget');*/
566        }
567    });
568}
569
570SFSI(window).on('load', function () {
571    SFSI('.sfsi_pinterest_sm_click').on('click touchstart', function () {
572        sfsi_pinterest_modal_images(e);
573    });
574});
575
576function sfsi_pinterest_modal_images(event, url, title) {
577    /*console.log(event);*/
578    event && event.preventDefault();
579    var imgSrc = [];
580    var page_title;
581
582    page_title = SFSI('meta[property="og:title"]').attr('content');
583    if (undefined == page_title) {
584        page_title = SFSI('head title').text();
585    }
586    if (undefined == title) {
587        title = page_title;
588    }
589    if (undefined == url) {
590        url = window.location.href;
591        // url = encodeURIComponent(window.location.href);
592    }
593    SFSI('body img').each(function (index) {
594        var src = SFSI(this).attr('src') || "";
595        var height = SFSI(this).height();
596        var width = SFSI(this).width();
597        var image_title = SFSI(this).attr('title') || "";
598        var alt = SFSI(this).attr('alt') || "";
599        var no_pin = SFSI(this).attr('data-pin-nopin') || "";
600        var no_pin_old = SFSI(this).attr('nopin') || "";
601
602        if (src !== "" && !src.startsWith("javascript") && height > 100 && width > 100 && no_pin_old !== "nopin" && no_pin !== "true") {
603            imgSrc.push({
604                src: src,
605                title: title && "" !== title ? title : (image_title && "" !== image_title ? image_title : alt)
606            });
607        }
608    });
609
610    sfsi_pinterest_modal();
611    if (imgSrc.length == 0) {
612        var meta_img = SFSI('meta[property="og:image"]').attr('content');
613        if (undefined == meta_img) {
614            meta_img = "";
615        }
616        SFSI('.sfsi_flex_container').append('<div><a href="http://www.pinterest.com/pin/create/button/?url=' + encodeURIComponent(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>')
617    } else {
618
619        SFSI.each(imgSrc, function (index, val) {
620            SFSI('.sfsi_flex_container').append('<div><a href="http://www.pinterest.com/pin/create/button/?url=' + encodeURIComponent(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>');
621        });
622    }
623    event.preventDefault();
624
625}
626
627function sfsi_pinterest_modal(imgs) {
628    // if (jQuery('.sfsi_premium_wechat_follow_overlay').length == 0) {
629    jQuery('body').append(
630        "<div class='sfsi_wechat_follow_overlay sfsi_overlay show'>" +
631        "<div class='sfsi_inner_display'>" +
632        '<a class="close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_wechat_follow_overlay\')" >×</a>' +
633        "<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;'>" +
634        "<h4 style='margin-left:10px;'>Pin It on Pinterest</h4>" +
635        "<div class='sfsi_flex_container'>" +
636
637        "</div>" +
638        "</div>" +
639        "</div>" +
640        "</div>"
641    );
642}
643
644// should execute at last so that every function is acceptable in body.
645var sfsi_functions_loaded = new CustomEvent('sfsi_functions_loaded', {
646    detail: {
647        "abc": "def"
648    }
649});
650window.dispatchEvent(sfsi_functions_loaded);
651
652/* Copy link */
653function sfsi_copyLink(str) {
654
655    try {
656
657        const el = document.createElement('textarea');
658        el.value = str;
659        el.setAttribute('readonly', '');
660        el.style.position = 'absolute';
661        el.style.left = '-9999px';
662        document.body.appendChild(el);
663        el.select();
664        document.execCommand('copy');
665        document.body.removeChild(el);
666
667        // Confirmation of copy success e.g. alert or notification
668
669        return true;
670
671    } catch (e) {
672
673        console.log(e);
674
675        // Rejection notice of copy faliure e.g. alert or notification
676
677        return false;
678
679    }
680
681}
682
683document.querySelectorAll('a.sfsi_copylink').forEach(function (anchor) {
684    anchor.addEventListener('click', function (e) {
685
686        e.preventDefault();
687        sfsi_copyLink(window.location.href);
688
689    });
690});
691
692}

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.