1jQuery(document).ready(function (e) { 2 jQuery("#sfsi_plus_floater").attr("data-top", jQuery(document).height()); 3}); 4 5function sfsiplus_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), setTimeout(function () { 10 SFSI("." + t).slideUp("slow"); 11 }, 5e3), !1; 12} 13 14function sfsiplus_beForeLoad() { 15 SFSI(".loader-img").show(), SFSI(".save_button >a").html("Saving..."), SFSI(".save_button >a").css("pointer-events", "none"); 16} 17 18function sfsi_plus_make_popBox() { 19 var s = 0; 20 SFSI(".plus_sfsi_sample_icons >li").each(function () { 21 "none" != SFSI(this).css("display") && (s = 1); 22 }), 0 == s ? SFSI(".sfsi_plus_Popinner").hide() : SFSI(".sfsi_plus_Popinner").show(), "" != SFSI('input[name="sfsi_plus_popup_text"]').val() ? (SFSI(".sfsi_plus_Popinner >h2").html(SFSI('input[name="sfsi_plus_popup_text"]').val()), 23 SFSI(".sfsi_plus_Popinner >h2").show()) : SFSI(".sfsi_plus_Popinner >h2").hide(), SFSI(".sfsi_plus_Popinner").css({ 24 "border-color": SFSI('input[name="sfsi_plus_popup_border_color"]').val(), 25 "border-width": SFSI('input[name="sfsi_plus_popup_border_thickness"]').val(), 26 "border-style": "solid" 27 }), SFSI(".sfsi_plus_Popinner").css("background-color", SFSI('input[name="sfsi_plus_popup_background_color"]').val()), 28 SFSI(".sfsi_plus_Popinner h2").css("font-family", SFSI("#sfsi_plus_popup_font").val()), SFSI(".sfsi_plus_Popinner h2").css("font-style", SFSI("#sfsi_plus_popup_fontStyle").val()), 29 SFSI(".sfsi_plus_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_plus_popup_fontSize"]').val())), 30 SFSI(".sfsi_plus_Popinner >h2").css("color", SFSI('input[name="sfsi_plus_popup_fontColor"]').val() + " !important"), 31 "yes" == SFSI('input[name="sfsi_plus_popup_border_shadow"]:checked').val() ? SFSI(".sfsi_plus_Popinner").css("box-shadow", "12px 30px 18px #CCCCCC") : SFSI(".sfsi_plus_Popinner").css("box-shadow", "none"); 32} 33 34function sfsi_plus_stick_widget(s) { 35 0 == sfsiplus_initTop.length && (SFSI(".sfsi_plus_widget").each(function (s) { 36 sfsiplus_initTop[s] = SFSI(this).position().top; 37 })); 38 var i = SFSI(window).scrollTop(), 39 e = [], 40 t = []; 41 SFSI(".sfsi_plus_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: sfsiplus_initTop[a] 53 }), n = !0) : SFSI(t[o]).css({ 54 position: "", 55 top: sfsiplus_initTop[o] 56 }); 57 } 58 if (!n) { 59 var r = e.length - 1, 60 c = -1; 61 e.length > 1 && (c = e.length - 2), sfsiplus_initTop[r] < i ? (SFSI(t[r]).css({ 62 position: "fixed", 63 top: s 64 }), c >= 0 && SFSI(t[c]).css({ 65 position: "", 66 top: sfsiplus_initTop[c] 67 })) : (SFSI(t[r]).css({ 68 position: "", 69 top: sfsiplus_initTop[r] 70 }), c >= 0 && e[c] < i); 71 } 72} 73 74function sfsi_plus_float_widget(s) { 75 function iplus() { 76 rplus = "Microsoft Internet Explorer" === navigator.appName ? aplus - document.documentElement.scrollTop : aplus - window.pageYOffset, 77 Math.abs(rplus) > 0 ? (window.removeEventListener("scroll", iplus), aplus -= rplus * oplus, SFSI("#sfsi_plus_floater").css({ 78 top: (aplus + t).toString() + "px" 79 }), setTimeout(iplus, n)) : window.addEventListener("scroll", iplus, !1); 80 81 } 82 /*function eplus() 83 { 84 var documentheight = SFSI("#sfsi_plus_floater").attr("data-top"); 85 var fltrhght = parseInt(SFSI("#sfsi_plus_floater").height()); 86 var fltrtp = parseInt(SFSI("#sfsi_plus_floater").css("top")); 87 if(parseInt(fltrhght)+parseInt(fltrtp) <=documentheight) 88 { 89 window.addEventListener("scroll", iplus, !1); 90 } 91 else 92 { 93 window.removeEventListener("scroll", iplus); 94 SFSI("#sfsi_plus_floater").css("top",documentheight+"px"); 95 } 96 }*/ 97 98 SFSI(window).scroll(function () { 99 var documentheight = SFSI("#sfsi_plus_floater").attr("data-top"); 100 var fltrhght = parseInt(SFSI("#sfsi_plus_floater").height()); 101 var fltrtp = parseInt(SFSI("#sfsi_plus_floater").css("top")); 102 if (parseInt(fltrhght) + parseInt(fltrtp) <= documentheight) { 103 window.addEventListener("scroll", iplus, !1); 104 } else { 105 window.removeEventListener("scroll", iplus); 106 SFSI("#sfsi_plus_floater").css("top", documentheight + "px"); 107 } 108 }); 109 110 if ("center" == s) { 111 var t = (jQuery(window).height() - SFSI("#sfsi_plus_floater").height()) / 2; 112 } else if ("bottom" == s) { 113 var t = window.innerHeight - (SFSI("#sfsi_plus_floater").height() + parseInt(SFSI('#sfsi_plus_floater').css('margin-bottom'))); 114 } else { 115 var t = parseInt(s); 116 } 117 var n = 50, 118 oplus = .1, 119 aplus = 0, 120 rplus = 0; 121 //SFSI("#sfsi_plus_floater"), window.onscroll = eplus; 122} 123 124function sfsi_plus_shuffle() { 125 var $ = window.jQuery; 126 127 return SFSI('.sfsi_plus_wDiv').each(function (index, container) { 128 var s = []; 129 SFSI(container).find(".sfsi_plus_wicons ").animate({ 130 opacity: 0 131 }, 500, function () { 132 // Animation complete. 133 s = SFSI(container).find(".sfsi_plus_wicons "); 134 s = sfsiplus_Shuffle(s); 135 //SFSI(container).html("");F 136 for (var i = 0; i < s.length; i++) { 137 SFSI(s[i]).css('transform', 'none'); 138 SFSI(s[i]).css('position', 'relative'); 139 SFSI(s[i]).css('opacity', 1); 140 141 SFSI(container).append(s[i]).show('slow'); 142 } 143 }); 144 145 }) 146} 147 148function sfsiplus_Shuffle(s) { 149 for (var i, e, t = s.length; t; i = parseInt(Math.random() * t), e = s[--t], s[t] = s[i], 150 s[i] = e); 151 return s; 152} 153 154function sfsi_plus_setCookie(s, i, e) { 155 var t = new Date(); 156 t.setTime(t.getTime() + 1e3 * 60 * 60 * 24 * e); 157 var n = "expires=" + t.toGMTString(); 158 document.cookie = s + "=" + i + "; " + n; 159} 160 161function sfsfi_plus_getCookie(s) { 162 for (var i = s + "=", e = document.cookie.split(";"), t = 0; t < e.length; t++) { 163 var n = e[t].trim(); 164 if (0 == n.indexOf(i)) return n.substring(i.length, n.length); 165 } 166 return ""; 167} 168 169function sfsi_plus_hideFooter() { } 170 171window.onerror = function () { }, SFSI = jQuery.noConflict(), SFSI(window).on('load', function () {
172 SFSI("#sfpluspageLoad").fadeOut(2e3); 173 174 if (jQuery('#sfsiplus_tifm_scroll_value').val()) { 175 setTimeout(function () { 176 jQuery('.sfsiplus_tifm_module_menu_block').click(); 177 178 setTimeout(function () { 179 document.querySelector('.sfsiplus_tifm_tab_module_block').scrollIntoView({ behavior: "smooth", block: "center", inline: "nearest" }); 180 }, 400); 181 182 }, 300); 183 } 184}); 185 186var global_error = 0; 187 188SFSI(document).ready(function (s) { 189 190 //changes done {Monad} 191 SFSI("head").append('<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'), 192 SFSI("head").append('<meta http-equiv="Pragma" content="no-cache" />'), SFSI("head").append('<meta http-equiv="Expires" content="0" />'), 193 SFSI(document).click(function (s) { 194 var i = SFSI(".sfsi_plus_FrntInner_changedmonad"), 195 e = SFSI(".sfsi_plus_wDiv"), 196 t = SFSI("#at15s"); 197 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(); 198 }), 199 SFSI("div.sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseover(function () { 200 SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg"); 201 }), 202 SFSI("div.sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseleave(function () { 203 SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/linkedIn.svg"); 204 }), 205 SFSI("div.sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseover(function () { 206 SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg"); 207 }), 208 SFSI("div.sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseleave(function () { 209 SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/youtube.svg"); 210 }), 211 SFSI("div.sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseover(function () { 212 SFSI(this).css("opacity", "0.9"); 213 }), 214 SFSI("div.sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseleave(function () { 215 SFSI(this).css("opacity", "1"); 216 }), 217 SFSI("div.sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function () { 218 SFSI(this).css("opacity", "0.9"); 219 }), 220 SFSI("div.sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function () { 221 SFSI(this).css("opacity", "1"); 222 }), 223 SFSI(".pop-up").on("click", function () { 224 ("fbex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(), 225 SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")), 226 SFSI("." + SFSI(this).attr("data-id")).show("slow"); 227 }), 228 /*SFSI("#close_popup").live("click", function() {*/ 229 SFSI(document).on("click", '#close_popup', function () { 230 SFSI(".read-overlay").hide("slow"); 231 }); 232 var e = 0; 233 sfsi_plus_make_popBox(), 234 SFSI('input[name="sfsi_plus_popup_text"] ,input[name="sfsi_plus_popup_background_color"],input[name="sfsi_plus_popup_border_color"],input[name="sfsi_plus_popup_border_thickness"],input[name="sfsi_plus_popup_fontSize"],input[name="sfsi_plus_popup_fontColor"]').on("keyup", sfsi_plus_make_popBox), 235 SFSI('input[name="sfsi_plus_popup_text"] ,input[name="sfsi_plus_popup_background_color"],input[name="sfsi_plus_popup_border_color"],input[name="sfsi_plus_popup_border_thickness"],input[name="sfsi_plus_popup_fontSize"],input[name="sfsi_plus_popup_fontColor"]').on("focus", sfsi_plus_make_popBox), 236 SFSI("#sfsi_plus_popup_font ,#sfsi_plus_popup_fontStyle").on("change", sfsi_plus_make_popBox), 237 /*SFSI(".radio").live("click", function(){*/ 238 SFSI(document).on("click", '.radio', function () { 239 var s = SFSI(this).parent().find("input:radio:first"); 240 "sfsi_plus_popup_border_shadow" == s.attr("name") && sfsi_plus_make_popBox(); 241 }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function (s) { 242 s.stopPropagation(); 243 var i = SFSI("#sfsi_plus_floater_sec").val(); 244 SFSI("div.sfsi_plus_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(), 245 SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_tool_tip_2").css("z-index", "0"), 246 SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide()), 247 SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({ 248 "z-index": "999" 249 }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 250 opacity: 1, 251 "z-index": 10 252 }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), 253 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 254 opacity: 1, 255 "z-index": 10 256 }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), 257 SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 258 opacity: 1, 259 "z-index": 10 260 }
260)), ("top-left" == i || "top-right" == i) && SFSI(this).parent().parent().parent().parent("#sfsi_plus_floater").length > 0 && "sfsi_plus_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass("sfsi_plc_btm"), 261 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"), 262 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 263 opacity: 1, 264 "z-index": 10 265 }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"), 266 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass("sfsi_plc_btm"), 267 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 268 opacity: 1, 269 "z-index": 1e3 270 }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show()); 271 // if(SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").attr('id')=="sfsiplusid_twitter" || SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").hasClass("sfsiplusid_twitter")){ 272 // sfsi_plus_clone = SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2 iframe').clone(); 273 // SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2 iframe').detach().remove(); 274 // SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2').append(sfsi_plus_clone); 275 // } 276 277 }) : SFSI(document).on("mouseenter", "img.sfsi_wicon", function () { 278 var s = SFSI("#sfsi_plus_floater_sec").val(); 279 SFSI("div.sfsi_plus_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(), 280 SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_tool_tip_2").css("z-index", "0"), 281 SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide()), 282 SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({ 283 "z-index": "999" 284 }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 285 opacity: 1, 286 "z-index": 10 287 }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), 288 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 289 opacity: 1, 290 "z-index": 10 291 }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), 292 SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 293 opacity: 1, 294 "z-index": 10 295 })), ("top-left" == s || "top-right" == s) && SFSI(this).parent().parent().parent().parent("#sfsi_plus_floater").length > 0 && "sfsi_plus_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass("sfsi_plc_btm"), 296 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"), 297 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 298 opacity: 1, 299 "z-index": 10 300 }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"), 301 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass("sfsi_plc_btm"), 302 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 303 opacity: 1, 304 "z-index": 10 305 }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show()); 306 if (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").attr('id') == "sfsiplusid_twitter" || SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").hasClass("sfsiplusid_twitter")) { 307 sfsi_plus_clone = SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2 iframe").clone(); 308 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2 iframe").detach().remove(); 309 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2").append(sfsi_plus_clone); 310 } 311 }), SFSI(document).on("mouseleave", "div.sfsi_plus_wicons", function () { 312 313 SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn1").attr("data-effect") 314 && "fade_in" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn1").attr("data-effect") 315 && SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn1").css("opacity", "0.6"), 316 317 SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn1").attr("data-effect") 318 && "scale" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn1").attr("data-effect") 319 && SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn1").removeClass("scale"), 320 321 SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn1").attr("data-effect") 322 && "combo" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn1").attr("data-effect") 323 && (SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn1").css("opacity", "0.6"), 324 325 SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn1").removeClass("scale")); 326 SFSI(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").css("display", "none"); 327 328 }), SFSI("body").on("click", function () { 329 SFSI(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(); 330 }), SFSI(".adminTooltip >a").on("hover", function () { 331 SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "1"), 332 SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").show(); 333 }), SFSI(".adminTooltip").on("mouseleave", function () { 334 "none" != SFSI(".sfsi_plus_gpls_tool_bdr").css("display") && 0 != SFSI(".sfsi_plus_gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function () { 335 SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").hide(); 336 }) : (SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "0"), 337 SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").hide()); 338 }), SFSI(".expand-area").on("click", function () { 339 "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"), 340 SFSI(this).text("Collapse")) : (SFSI(this).siblings("p").children("label").fadeOut("slow"), 341 SFSI(this).text("Read more")); 342 }), SFSI(".sfsi_plus_wDiv").length > 0 && setTimeout(function () { 343 var s = parseInt(SFSI(".sfsi_plus_wDiv").height()) + 15 + "px"; 344 SFSI(".sfsi_plus_holders").each(function () { 345 SFSI(this).css("height", s); 346 }); 347 SFSI(".sfsi_plus_widget").css("min-height", "auto"); 348 }, 200); 349 jQuery(document).find('.wp-block-ultimate-social-media-plus-sfsi-plus-share-block').each(function (index, target) { 350 var actual_target = jQuery(target).find('.sfsi_plus_block'); 351 var align = jQuery(actual_target).attr('data-align'); 352 var maxPerRow = jQuery(actual_target).attr('data-count'); 353 var iconType = jQuery(actual_target).attr('data-icon-type'); 354 355 jQuery.ajax({ 356 'url': sfsi_plus_links.rest_url + 'ultimate-social-media-plus/v1/icons/?url=' + encodeURI(decodeURI(window.location.href)) + '&ractangle_icon=' + ('round' == iconType ? 0 : 1), 357 'method': 'GET' 358 // 'data':{'is_admin':true,'share_url':'/'} 359 }).done((response) => { 360 jQuery(actual_target).html(response); 361 if (iconType == 'round') { 362 sfsi_plus_changeIconWidth(maxPerRow, target, align); 363 } else {
364 if ('center' === align) { 365 jQuery(target).find('.sfsi_plus_block_text_before_icon').css({ 366 'display': 'inherit' 367 }); 368 } 369 jQuery(target).css({ 370 'text-align': align 371 }); 372 } 373 if (window.gapi) { 374 window.gapi.plusone.go(); 375 window.gapi.plus.go(); 376 window.gapi.ytsubscribe.go(); 377 }; 378 if (window.twttr) { 379 window.twttr.widgets.load(); 380 }; 381 if (window.IN && window.IN.parse) { 382 window.IN.parse(); 383 }; 384 if (window.addthis) { 385 if (window.addthis.toolbox) { 386 window.addthis.toolbox('.addthis_button.sficn'); 387 } else { 388 window.addthis.init(); 389 window.addthis.toolbox('.addthis_button.sficn'); 390 } 391 }; 392 if (window.PinUtils) { 393 window.PinUtils.build(); 394 }; 395 if (window.FB) { 396 if (window.FB.XFBML) { 397 window.FB.XFBML.parse(); 398 } 399 }; 400 }).fail((response) => { 401 jQuery(actual_target).html(response.responseText.replace('/\\/g', '')); 402 }); 403 }); 404 if (undefined !== window.location.hash) { 405 switch (window.location.hash) { 406 case '#ui-id-3': 407 jQuery('#ui-id-3').click(); 408 case '#ui-id-1': 409 jQuery('#ui-id-1').click(); 410 } 411 } 412 // sfsi_plus_update_iconcount(); 413 414 /* Admin forum notification */ 415 SFSI('.usm-plus-widget__footer-text-link').on('click', function () { 416 SFSI(this).parents('.usm-plus-widget').toggle('usm-plus-widget--open'); 417 418 SFSI.ajax({ 419 type: "post", 420 dataType: "json", 421 url: sfsi_plus_ajax_object.ajax_url, 422 data: { 423 action: "sfsi_plus_hide_admin_forum_notification", 424 nonce: sfsi_plus_ajax_object.anonce 425 }, 426 success: function () { 427 SFSI('.usm-plus-widget').remove(); 428 } 429 }); 430 }); 431 432 /* Hide Admin forum notification popup */ 433 SFSI('.usm-plus-widget__toggle-btn').on('click', function () { 434 var currentThis = SFSI(this); 435 currentThis.parents('.usm-plus-widget').toggleClass('usm-plus-widget--open'); 436 var toggleStatus = ''; 437 if (currentThis.parents('.usm-plus-widget').hasClass('usm-plus-widget--open')) { 438 toggleStatus = 'hide'; 439 } else { 440 toggleStatus = 'show'; 441 } 442 SFSI.ajax({ 443 type: "post", 444 dataType: "json", 445 url: sfsi_plus_ajax_object.ajax_url, 446 data: { action: "sfsi_plus_default_hide_admin_notification", status: toggleStatus }, 447 success: function () { 448 currentThis.addClass('sfsi-first-click-enabled'); 449 } 450 }); 451 }); 452}); 453 454function sfsi_plus_update_iconcount() { 455 SFSI(".wp-block-ultimate-social-media-plus-sfsi-plus-share-block").each(function () { 456 var icon_count = SFSI(this).find(".sfsi_plus_block").attr('data-count'); 457 var icon_align = SFSI(this).find(".sfsi_plus_block").attr('data-align'); 458 // sfsi_plus_changeIconWidth(icon_count,this); 459 if (jQuery(this).find('.sfsiplus_norm_row').length < 1) { 460 setTimeout(function () { 461 sfsi_plus_changeIconWidth(icon_count, this, icon_align); 462 }, 1000); 463 } else { 464 sfsi_plus_changeIconWidth(icon_count, this, icon_align); 465 } 466 }); 467} 468 469function sfsi_plus_changeIconWidth(per_row = null, target, icon_align) { 470 var iconWidth = parseInt(jQuery(target).find('.sfsiplus_norm_row div').css('width')) || 40; 471 var iconMargin = parseInt(jQuery(target).find('.sfsiplus_norm_row div').css('margin-left')) || 0; 472 473 var wrapperWidth = (iconWidth + iconMargin) * per_row; 474 jQuery(target).find('.sfsiplus_norm_row').css({
475 'width': wrapperWidth + 'px' 476 }); 477 jQuery(target).find('.sfsi_plus_block').css({ 478 'width': wrapperWidth + 'px' 479 }); 480 jQuery(target).find('.sfsi_plus_block_text_before_icon').css({ 481 'padding-top': '12px' 482 }); 483 if ('center' === icon_align) { 484 jQuery(target).find('.sfsi_plus_block_text_before_icon').css({ 485 'display': 'inherit' 486 }); 487 } 488 jQuery(target).css({ 489 'text-align': icon_align 490 }); 491} 492//hiding popup on close button 493function sfsiplushidemepopup() { 494 SFSI(".sfsi_plus_FrntInner").fadeOut(); 495} 496 497var sfsiplus_initTop = new Array(); 498 499function sfsi_plus_wechat_follow(url) { 500 if (jQuery('.sfsi_plus_wechat_scan').length == 0) { 501 jQuery('body').append("<div class='sfsi_plus_wechat_scan sfsi_plus_overlay show'><div class='sfsi_plus_inner_display'><a class='close_btn' href='' onclick=\"event.preventDefault();close_overlay(\'.sfsi_plus_wechat_scan\')\" >×</a><img src='" + url + "' style='max-width:90%;max-height:90%' /></div></div>"); 502 } else { 503 jQuery('.sfsi_plus_wechat_scan').removeClass('hide').addClass('show'); 504 } 505} 506 507function close_overlay(selector) { 508 if (typeof selector === "undefined") { 509 selector = '.sfsi_plus_overlay'; 510 } 511 jQuery(selector).removeClass('show').addClass('hide'); 512} 513 514function sfsi_plus_wechat_share(url) { 515 if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { 516 sfsi_plus_wechat_share_mobile(url); 517 } else { 518 if (jQuery('.sfsi_plus_wechat_follow_overlay').length == 0) { 519 jQuery('body').append("<div class='sfsi_plus_wechat_follow_overlay sfsi_plus_overlay show'><div class='sfsi_plus_inner_display'><a class='close_btn' style='position:absolute; top:10px; right:15px; width:24px; height:24px; display:flex; align-items:center; justify-content:center; font-size:24px; color:#999; text-decoration:none;' href='' onclick=\"event.preventDefault();close_overlay(\'.sfsi_plus_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_plus_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>"); 520 const currentUrl = window.location.href; 521 // Clean up the URL - remove any existing encoding and re-encode 522 const cleanUrl = new URL(currentUrl); 523 // Rebuild the URL with proper encoding 524 const finalUrl = cleanUrl.origin + cleanUrl.pathname + cleanUrl.search; 525 new QRCode(jQuery('.sfsi_plus_wechat_follow_overlay .sfsi_plus_wechat_qr_display')[0], { 526 text: finalUrl, 527 width: 256, 528 height: 256, 529 correctLevel: QRCode.CorrectLevel.L 530 }); 531 jQuery('.sfsi_plus_wechat_follow_overlay .sfsi_plus_wechat_qr_display img').attr('nopin', 'nopin') 532 } else { 533 jQuery('.sfsi_plus_wechat_follow_overlay').removeClass('hide').addClass('show'); 534 } 535 } 536} 537 538function sfsi_plus_wechat_share_mobile(url) { 539 if (jQuery('.sfsi_plus_wechat_follow_overlay').length == 0) { 540 const overlayContent = ` 541 <div class='sfsi_plus_wechat_follow_overlay sfsi_plus_overlay show'> 542 <div class='sfsi_plus_inner_display'> 543 <a class='close_btn' href='' onclick="event.preventDefault();close_overlay('.sfsi_plus_wechat_follow_overlay')" style='position:absolute; top:10px; right:15px; width:24px; height:24px; display:flex; align-items:center; justify-content:center; font-size:24px; color:#999; text-decoration:none;'>×</a> 544 <div style='width:95%; min-height:80%; background-color:#fff; margin:20% auto; padding:20px 0;'> 545 <div style='width:90%; margin:0 auto;'> 546 <input type='text' value='' style='width:95%; padding:10px; text-align:center; border:1px solid #ccc; font-size:14px;' /> 547 </div> 548 <div style='width:80%; margin:20px auto 0; display:flex; justify-content:space-between; gap:10px;'> 549 <button onclick='sfsi_copy_text_parent_input(event)' style='flex:1; padding:5px 0; background:#07C160; color:white; border:none; font-size:14px; cursor:pointer;'>Copy</button> 550 <a href='weixin://' style='flex:1; padding:5px 0; background:#07C160; color:white; text-align:center; text-decoration:none; font-size:14px; display:flex; align-items:center; justify-content:center;'>Open WeChat</a> 551 </div> 552 </div> 553 </div> 554 </div> 555 `; 556 jQuery('body').append(overlayContent); 557 // Set the URL through the DOM, not the HTML string: a quote in the query string would otherwise close the value attribute and inject attributes. 558 jQuery('.sfsi_plus_wechat_follow_overlay input').val(encodeURI(decodeURI(window.location.href))); 559 } else { 560 jQuery('.sfsi_plus_wechat_follow_overlay').removeClass('hide').addClass('show'); 561 } 562} 563 564function sfsi_copy_text_parent_input(event) { 565 var target = jQuery(event.target); 566 input_target = target.parent().parent().parent().find('input'); 567 input_target.select(); 568 document.execCommand('copy'); 569} 570 571 572function sfsi_plus_widget_set() { 573 jQuery(".sfsi_plus_widget").each(function (index) { 574 if (jQuery(this).attr("data-position") == "widget") { 575 var wdgt_hght = jQuery(this).children(".sfsiplus_norm_row.sfsi_plus_wDiv").height(); 576 var title_hght = jQuery(this).parent(".widget.sfsi_plus").children(".widget-title").height(); 577 var totl_hght = parseInt(title_hght) + parseInt(wdgt_hght); 578 jQuery(this).parent(".widget.sfsi_plus").css("min-height", totl_hght + "px"); 579 } 580 }); 581} 582 583function sfsi_plus_time_pop_up(time_popUp) { 584 jQuery(document).ready(function ($) { 585 setTimeout( 586 function () { 587 jQuery('.sfsi_plus_outr_div').css({ 588 'z-index': '1000000', 589 opacity: 1 590 }); 591 jQuery('.sfsi_plus_outr_div').fadeIn(); 592 jQuery('.sfsi_plus_FrntInner').fadeIn(200); 593 }, time_popUp); 594 }); 595} 596function sfsi_plus_responsive_toggle() { 597 jQuery(document).scroll(function ($) { 598 var y = jQuery(this).scrollTop(); 599 if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { 600 if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 100) { 601 jQuery('.sfsi_plus_outr_div').css({ 602 'z-index': '9996', 603 opacity: 1, 604 top: jQuery(window).scrollTop() + "px", 605 position: "absolute" 606 }); 607 jQuery('.sfsi_plus_outr_div').fadeIn(200); 608 jQuery('.sfsi_plus_FrntInner').fadeIn(200); 609 } else { 610 jQuery('.sfsi_plus_outr_div').fadeOut(); 611 jQuery('.sfsi_plus_FrntInner').fadeOut(); 612 } 613 } else { 614 if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 3) { 615 jQuery('.sfsi_plus_outr_div').css({ 616 'z-index': '9996', 617 opacity: 1, 618 top: jQuery(window).scrollTop() + 200 + "px", 619 position: "absolute" 620 }); 621 jQuery('.sfsi_plus_outr_div').fadeIn(200); 622 jQuery('.sfsi_plus_FrntInner').fadeIn(200); 623 } else { 624 jQuery('.sfsi_plus_outr_div').fadeOut(); 625 jQuery('.sfsi_plus_FrntInner').fadeOut(); 626 } 627 } 628 }); 629} 630 631function sfsi_social_pop_up(time_popUp) { 632 jQuery(document).ready(function ($) { 633 //SFSI('.sfsi_plus_outr_div').fadeIn(); 634 sfsi_plus_setCookie('sfsi_socialPopUp', time(), 32); 635 setTimeout(function () { 636 jQuery('.sfsi_plus_outr_div').css({ 637 'z-index': '1000000', 638 opacity: 1 639 }); 640 jQuery('.sfsi_plus_outr_div').fadeIn(); 641 }, time_popUp); 642 }); 643 var SFSI = jQuery.noConflict(); 644} 645 646// should execute at last so that every function is acceable. 647var sfsi_plus_functions_loaded = new CustomEvent('sfsi_plus_functions_loaded', { detail: { "abc": "def" } }); 648window.dispatchEvent(sfsi_plus_functions_loaded); 649 650 651function sfsi_plus_pinterest_modal_images(event, url, title) { 652 // console.log(event); 653 event && event.preventDefault(); 654 var imgSrc = []; 655 var page_title; 656 657 page_title = SFSI('meta[property="og:title"]').attr('content'); 658 if (undefined == page_title) { 659 page_title = SFSI('head title').text(); 660 } 661 if (undefined == title) { 662 title = page_title; 663 } 664 if (undefined == url) { 665 url = window.location.href; 666 // url = encodeURIComponent(window.location.href); 667 } 668 SFSI('body img').each(function (index) { 669 var src = SFSI(this).attr('src') || ""; 670 var height = SFSI(this).height(); 671 var width = SFSI(this).width(); 672 var image_title = SFSI(this).attr('title') || ""; 673 var alt = SFSI(this).attr('alt') || ""; 674 var no_pin = SFSI(this).attr('data-pin-nopin') || ""; 675 var no_pin_old = SFSI(this).attr('nopin') || ""; 676 677 if (src !== "" && !src.startsWith("javascript") && height > 100 && width > 100 && no_pin_old !== "nopin" && no_pin !== "true") { 678 imgSrc.push({ 679 src: src, 680 title: title && "" !== title ? title : (image_title && "" !== image_title ? image_title : alt) 681 }); 682 } 683 }); 684 685 sfsi_plus_pinterest_modal(); 686 console.log(imgSrc); 687 if (imgSrc.length == 0) { 688 var meta_img = SFSI('meta[property="og:image"]').attr('content'); 689 if (undefined == meta_img) { 690 meta_img = ""; 691 } 692 SFSI('.sfsi_plus_flex_container').app 693 end('<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_plus_pinterest_overlay"><img data-pin-nopin="true" height="30" width="30" src="' + window.sfsi_plus_ajax_object.plugin_url + '/images/pinterest.png" /></span></a></div>') 694 } else { 695 696 // console.log(imgSrc); 697 SFSI.each(imgSrc, function (index, val) { 698 // console.log('discrip',val); 699 SFSI('.sfsi_plus_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_plus_pinterest_overlay" style="width:140px;left:unset;"><img data-pin-nopin="true" height="30" width="30" style="display:inline" src="' + window.sfsi_plus_ajax_object.plugin_url + '/images/pinterest.png" /></span></a></div>'); 700 }); 701 } 702 event.preventDefault(); 703 704} 705 706function sfsi_plus_pinterest_modal(imgs) { 707 console.log();
708 // if (jQuery('.sfsi_premium_wechat_follow_overlay').length == 0) { 709 jQuery('body').append( 710 "<div class='sfsi_plus_wechat_follow_overlay sfsi_overlay show'>" + 711 "<div class='sfsi_plus_inner_display'>" + 712 '<a class="close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_plus_wechat_follow_overlay\')" >Ã</a>' + 713 "<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;'>" + 714 "<h4 style='margin-left:10px;'>Pin It on Pinterest</h4>" + 715 "<div class='sfsi_plus_flex_container'>" + 716 717 "</div>" + 718 "</div>" + 719 "</div>" + 720 "</div>" 721 ); 722} 723 724function showSuccessAlert() { 725 var alert = document.getElementById("success-alert"); 726 alert.style.display = "block"; 727 alert.style.animation = "intro-animation 1s"; 728 729 setTimeout(function() { 730 alert.style.animation = "fade-out 2s"; 731 setTimeout(function() { 732 alert.style.display = "none"; 733 alert.style.animation = "none"; // Reset the animation 734 }, 2000); // Adjust the timing to match the fade-out animation duration 735 }, 3000); // Show the alert for 3 seconds (you can adjust the timing) 736} 737 738/* Copy link */ 739function sfsi_copyLink(text) { 740 var input = document.createElement('input'); 741 input.setAttribute('value', text); 742 document.body.appendChild(input); 743 input.select(); 744 var result = document.execCommand('copy'); 745 document.body.removeChild(input); 746 return result; 747} 748 749document.querySelectorAll('a.sfsi_copylinksficn1').forEach(function (anchor) { 750 anchor.addEventListener('click', function () { 751 var page = window.location.href.replace(/#.*$/, '') 752 sfsi_copyLink(page); 753 showSuccessAlert(); 754 }); 755});
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.