PageSourceSearch

https://thesurprisedgourmet.com/wp-content/plugins/ultimate-social-media-icons/js/custom.js?ver=4.6.1

js thesurprisedgourmet.com collected 2026-09-26 16:49:37 UTC 17,730 bytes, 289 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"; else var t = "sucMsg";
7    return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(), 
8    SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function() {
9        SFSI("." + t).slideUp("slow");
10    }, 5e3), !1;
11}
12
13function beForeLoad() {
14    SFSI(".loader-img").show(), SFSI(".save_button >a").html("Saving..."), SFSI(".save_button >a").css("pointer-events", "none");
15}
16
17function sfsi_make_popBox() {
18    var s = 0;
19    SFSI(".sfsi_sample_icons >li").each(function() {
20        "none" != SFSI(this).css("display") && (s = 1);
21    }), 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()), 
22    SFSI(".sfsi_Popinner >h2").show()) :SFSI(".sfsi_Popinner >h2").hide(), SFSI(".sfsi_Popinner").css({
23        "border-color":SFSI('input[name="sfsi_popup_border_color"]').val(),
24        "border-width":SFSI('input[name="sfsi_popup_border_thickness"]').val(),
25        "border-style":"solid"
26    }), SFSI(".sfsi_Popinner").css("background-color", SFSI('input[name="sfsi_popup_background_color"]').val()), 
27    SFSI(".sfsi_Popinner h2").css("font-family", SFSI("#sfsi_popup_font").val()), SFSI(".sfsi_Popinner h2").css("font-style", SFSI("#sfsi_popup_fontStyle").val()), 
28    SFSI(".sfsi_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_popup_fontSize"]').val())), 
29    SFSI(".sfsi_Popinner >h2").css("color", SFSI('input[name="sfsi_popup_fontColor"]').val() + " !important"), 
30    "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");
31}
32
33function sfsi_stick_widget(s) {
34	0 == initTop.length && (SFSI(".sfsi_widget").each(function(s) {
35        initTop[s] = SFSI(this).position().top;
36    }), console.log(initTop));
37    var i = SFSI(window).scrollTop(), e = [], t = [];
38    SFSI(".sfsi_widget").each(function(s) {
39        e[s] = SFSI(this).position().top, t[s] = SFSI(this);
40    });
41    var n = !1;
42    for (var o in e) {
43        var a = parseInt(o) + 1;
44        e[o] < i && e[a] > i && a < e.length ? (SFSI(t[o]).css({
45            position:"fixed",
46            top:s
47        }), SFSI(t[a]).css({
48            position:"",
49            top:initTop[a]
50        }), n = !0) :SFSI(t[o]).css({
51            position:"",
52            top:initTop[o]
53        });
54    }
55    if (!n) {
56        var r = e.length - 1, c = -1;
57        e.length > 1 && (c = e.length - 2), initTop[r] < i ? (SFSI(t[r]).css({
58            position:"fixed",
59            top:s
60        }), c >= 0 && SFSI(t[c]).css({
61            position:"",
62            top:initTop[c]
63        })) :(SFSI(t[r]).css({
64            position:"",
65            top:initTop[r]
66        }), c >= 0 && e[c] < i);
67    }
68}
69
70function sfsi_float_widget(s) {
71    function i() {
72        r = "Microsoft Internet Explorer" === navigator.appName ? a - document.documentElement.scrollTop :a - window.pageYOffset, 
73        Math.abs(r) > 0 ? (window.removeEventListener("scroll", i), a -= r * o, SFSI("#sfsi_floater").css({
74            top:(a + t).toString() + "px"
75        }), setTimeout(i, n)) :window.addEventListener("scroll", i, !1);
76	}
77    function e() {
78		var documentheight = SFSI("#sfsi_floater").attr("data-top");
79		var fltrhght = parseInt(SFSI("#sfsi_floater").height());
80		var fltrtp = parseInt(SFSI("#sfsi_floater").css("top"));
81		if(parseInt(fltrhght)+parseInt(fltrtp) <=documentheight)
82		{
83			window.addEventListener("scroll", i, !1);
84		}
85		else
86		{
87			window.removeEventListener("scroll", i);
88			SFSI("#sfsi_floater").css("top",documentheight+"px");
89		}
90	}
91    if ("center" == s)
92	{
93		var t = ( jQuery(window).height() - SFSI("#sfsi_floater").height() ) / 2;
94	}
95	else if ("bottom" == s)
96	{
97		var t = window.innerHeight - SFSI("#sfsi_floater").height();
98	}
99	else
100	{
101		var t = parseInt(s);
102	}
103	var n = 50, o = .1, a = 0, r = 0;
104    SFSI("#sfsi_floater"), window.onscroll = e;
105}
106
107function sfsi_shuffle() {
108    var s = [];
109    SFSI(".sfsi_wicons ").each(function(i) {
110        SFSI(this).text().match(/^\s*$/) || (s[i] = "<div class='" + SFSI(this).attr("class") + "'>" + SFSI(this).html() + "</div>", 
111        SFSI(this).fadeOut("slow"), SFSI(this).insertBefore(SFSI(this).prev(".
111sfsi_wicons")), 
112        SFSI(this).fadeIn("slow"));
113    }), s = Shuffle(s), $("#sfsi_wDiv").html("");
114    for (var i = 0; i < testArray.length; i++) $("#sfsi_wDiv").append(s[i]);
115}
116
117function Shuffle(s) {
118    for (var i, e, t = s.length; t; i = parseInt(Math.random() * t), e = s[--t], s[t] = s[i], 
119    s[i] = e) ;
120    return s;
121}
122
123function sfsi_setCookie(s, i, e) {
124    var t = new Date();
125    t.setTime(t.getTime() + 1e3 * 60 * 60 * 24 * e);
126    var n = "expires=" + t.toGMTString();
127    document.cookie = s + "=" + i + "; " + n;
128}
129
130function sfsfi_getCookie(s) {
131    for (var i = s + "=", e = document.cookie.split(";"), t = 0; t < e.length; t++) {
132        var n = e[t].trim();
133        if (0 == n.indexOf(i)) return n.substring(i.length, n.length);
134    }
135    return "";
136}
137
138function sfsi_hideFooter() {}
139
140window.onerror = function() {}, SFSI = jQuery.noConflict(), SFSI(window).load(function() {
141    SFSI("#sfpageLoad").fadeOut(2e3);
142});
143
144var global_error = 0;
145
146SFSI(document).ready(function(s) {
147
148	//changes done {Monad}
149	
150    SFSI("head").append('<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'), 
151    SFSI("head").append('<meta http-equiv="Pragma" content="no-cache" />'), SFSI("head").append('<meta http-equiv="Expires" content="0" />'), 
152    SFSI(document).click(function(s) {
153        var i = SFSI(".sfsi_FrntInner"), e = SFSI(".sfsi_wDiv"), t = SFSI("#at15s");
154		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();
155    }), SFSI(".sfsi_outr_div").find(".addthis_button").mousemove(function() {
156        var s = SFSI(".sfsi_outr_div").find(".addthis_button").offset().top + 10;
157        SFSI("#at15s").css({
158            top:s + "px",
159            left:SFSI(".sfsi_outr_div").find(".addthis_button").offset().left + "px"
160        });
161    }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
162        SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
163    }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
164        SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
165    }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function() {
166        SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
167    }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function() {
168        SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube.svg");
169    }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function() {
170        SFSI(this).css("opacity", "0.9");
171    }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseleave(function() {
172        SFSI(this).css("opacity", "1");
173		/*{Monad}*/
174    }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function() {
175        SFSI(this).css("opacity", "0.9");
176    }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function() {
177        SFSI(this).css("opacity", "1");
178    }), SFSI(".pop-up").on("click", function() {
179        ("fbex-s2" == SFSI(this).attr("data-id") || "googlex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(), 
180        SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")), 
181        SFSI("." + SFSI(this).attr("data-id")).show("slow");
182    }), /*SFSI("#close_popup").live("click", function() {*/SFSI(document).on("click", '#close_popup', function () {
183        SFSI(".read-overlay").hide("slow");
184    });
185    var e = 0; 
186    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), 
187    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), 
188    SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox), 
189    /*SFSI(".radio").live("click", function() {*/
190	SFSI(document).on("click", '.radio', function () {
191        var s = SFSI(this).parent().find("input:radio:first");
192        "sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
193    }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function(s) {
194        s.stopPropagation();
195        var i = SFSI("#sfsi_floater_sec").val();
196        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(), 
197        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"), 
198        SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()), 
199        SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
200            "z-index":"999"
201        }), SFSI(this).attr("effect") && "fade_in" == SFSI(this).attr("effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
202            opacity:1,
203            "z-index":10
204        }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("effect") && "scale" == SFSI(this).attr("effect") && (SFSI(this).parent().addClass("scale"), 
205        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
206            opacity:1,
207            "z-index":10
208        }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("effect") && "combo" == SFSI(this).attr("effect") && (SFSI(this).parent().addClass("scale"), 
209        SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
210            opacity:1,
211            "z-index":10
212        }
212)), ("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"), 
213        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"), 
214        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
215            opacity:1,
216            "z-index":10
217        }), 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"), 
218        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"), 
219        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
220            opacity:1,
221            "z-index":1e3
222        }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
223    }) :SFSI("img.sfsi_wicon").on("mouseenter", function() {
224        var s = SFSI("#sfsi_floater_sec").val();
225        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(), 
226        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"), 
227        SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()), 
228        SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
229            "z-index":"999"
230        }), SFSI(this).attr("effect") && "fade_in" == SFSI(this).attr("effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
231            opacity:1,
232            "z-index":10
233        }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("effect") && "scale" == SFSI(this).attr("effect") && (SFSI(this).parent().addClass("scale"), 
234        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
235            opacity:1,
236            "z-index":10
237        }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("effect") && "combo" == SFSI(this).attr("effect") && (SFSI(this).parent().addClass("scale"), 
238        SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
239            opacity:1,
240            "z-index":10
241        })), ("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"), 
242        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"), 
243        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
244            opacity:1,
245            "z-index":10
246        }), 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"), 
247        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"), 
248        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
249            opacity:1,
250            "z-index":10
251        }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
252    }), SFSI("div.sfsi_wicons").on("mouseleave", function() {
253        SFSI(this).children("div.inerCnt").children("a.sficn").attr("effect") && "fade_in" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("effect") && SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"), 
254        SFSI(this).children("div.inerCnt").children("a.sficn").attr("effect") && "scale" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("effect") && SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale"), 
255        SFSI(this).children("div.inerCnt").children("a.sficn").attr("effect") && "combo" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("effect") && (SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"), 
256        SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale")), "sfsiid_google" == SFSI(this).children("div.inerCnt").find("a.sficn").attr("id") ? SFSI("body").on("click", function() {
257            SFSI(this).children(".inerCnt").find("div.sfsi_tool_tip_2").hide();
258        }) :(SFSI(this).css({
259            "z-index":"0"
260        }), SFSI(this).children(".inerCnt").find("div.sfsi_tool_tip_2").hide());
261    }), SFSI("body").on("click", function() {
262        SFSI(".inerCnt").find("div.sfsi_tool_tip_2").hide();
263    }), SFSI(".adminTooltip >a").on("hover", function() {
264        SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "1"), 
265        SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show();
266    }), SFSI(".adminTooltip").on("mouseleave", function() {
267        "none" != SFSI(".gpls_tool_bdr").css("display") && 0 != SFSI(".gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function() {
268            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();
269        }) :(SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"), 
270        SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide());
271    }), SFSI(".expand-area").on("click", function() {
272        "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"), 
273        SFSI(this).text("Collapse")) :(SFSI(this).siblings("p").children("label").fadeOut("slow"), 
274        SFSI(this).text("Read more"));
275    }), SFSI(".sfsi_wDiv").length > 0 && setTimeout(function() {
276        var s = parseInt(SFSI(".sfsi_wDiv").height()) + 15 + "px";
277        SFSI(".sfsi_holders").each(function() {
278            SFSI(this).css("height", s);
279			SFSI(".sfsi_widget").css("min-height", "auto");
280        });
281    }, 200);
282});
283
284//hiding popup on close button
285function sfsihidemepopup()
286{
287	SFSI(".sfsi_FrntInner_chg").fadeOut();
288}
289var initTop = new Array();

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.