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 if (jQuery('#sfsi_tifm_scroll_value').val()) { 170 jQuery('.sfsi_tifm_module_menu_block').click(); 171 setTimeout(function () { 172 document.querySelector('.sfsi_tifm_tab_module_block').scrollIntoView({behavior: "smooth", block: "center", inline: "nearest"}); 173 }, 300); 174 } 175}); 176 177var global_error = 0; 178 179SFSI(document).ready(function (s) { 180 //changes done {Monad} 181 //putting it before to make sure it registers before the mobile click function 182 SFSI(document).on('click', '.inerCnt a[href=""]', function (event) { 183 //check if not mobile 184 if (!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))) { 185 event.preventDefault(); 186 } 187 }); 188 189 SFSI("head").append('<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'), 190 SFSI("head").append('<meta http-equiv="Pragma" content="no-cache" />'), SFSI("head").append('<meta http-equiv="Expires" content="0" />'), 191 SFSI(document).click(function (s) { 192 193 var i = SFSI(".sfsi_FrntInner"), 194 e = SFSI(".sfsi_wDiv"), 195 t = SFSI("#at15s"); 196 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(); 197 }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function () { 198 SFSI(this).css("opacity", "0.9"); 199 }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function () { 200 SFSI(this).css("opacity", "1"); 201 }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function () { 202 SFSI(this).css("opacity", "0.9"); 203 }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function () { 204 SFSI(this).css("opacity", "1"); 205 }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function () { 206 SFSI(this).css("opacity", "0.9"); 207 }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseleave(function () { 208 SFSI(this).css("opacity", "1"); 209 /*{Monad}*/ 210 }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function () { 211 SFSI(this).css("opacity", "0.9"); 212 }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function () { 213 SFSI(this).css("opacity", "1"); 214 }), SFSI(".pop-up").on("click", function () { 215 ("fbex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(), 216 SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")), 217 SFSI("." + SFSI(this).attr("data-id")).show("slow"); 218 }), /*SFSI("#close_popup").live("click", function() {*/ SFSI(document).on("click", '#close_popup', function () { 219 SFSI(".read-overlay").hide("slow"); 220 }); 221 var e = 0; 222 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), 223 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), 224 SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox), 225 /*SFSI(".radio").live("click", function() {*/ 226 227 SFSI(document).on("click", '.radio', function () { 228 var s = SFSI(this).parent().find("input:radio:first"); 229 "sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox(); 230 }), 231 232 /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI(document).on("click", 'img.sfsi_wicon',function (s) { 233 /*console.log('document mouse click', s, s.target);*/ 234 235 if (SFSI(s.target).parent().attr('href') == "") { 236 s.preventDefault(); 237 } 238 if (!SFSI(this).hasClass('sfsi_click_wicon')) { 239 s.stopPropagation && s.stopPropagation(); 240 } 241 var i = SFSI("#sfsi_floater_sec").val(); 242 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(), 243 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"), 244 SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()), 245 SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({ 246 "z-index": "999" 247 }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ 248 opacity: 1, 249 "z-index": 10 250 }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), 251 SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ 252 opacity: 1, 253 "z-index": 10 254 }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), 255 SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ 256 opacity: 1, 257 "z-index": 10 258 }
258)), ("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"), 259 SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"), 260 SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ 261 opacity: 1, 262 "z-index": 10 263 }), 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"), 264 SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"), 265 SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ 266 opacity: 1, 267 "z-index": 1e3 268 }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()); 269 }) : SFSI(document).on("mouseenter", "img.sfsi_wicon", function () { 270 /*console.log('img mouseenter');*/ 271 var s = SFSI("#sfsi_floater_sec").val(); 272 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(), 273 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"), 274 SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()), 275 SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({ 276 "z-index": "999" 277 }), SFSI(this).parent().css({ 278 "opacity": "1" 279 }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ 280 opacity: 1, 281 "z-index": 10 282 }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), 283 SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ 284 opacity: 1, 285 "z-index": 10 286 }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), 287 SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ 288 opacity: 1, 289 "z-index": 10 290 })), ("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"), 291 SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"), 292 SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ 293 opacity: 1, 294 "z-index": 10 295 }), 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"), 296 SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"), 297 SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ 298 opacity: 1, 299 "z-index": 10 300 }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()); 301 }), 302 SFSI(document).on("mouseleave", "div.sfsi_wicons", function () { 303 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"), 304 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"), 305 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"), 306 SFSI(this).parent("div").find("div.sfsi_tool_tip_2").css("display", "none"), 307 SFSI(this).parent("div").find("div.sfsi_tool_tip_2").css("opacity", "0"); 308 }), SFSI("body").on("click", function (e) { 309 var target = SFSI( e.target ); 310 if ( ! target.is( ".sfsi_wicon" ) ) { 311 SFSI(".inerCnt").find("div.sfsi_tool_tip_2").hide(); 312 } 313 314 }), SFSI(".adminTooltip >a").on("hover", function () { 315 SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "1"), 316 SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show(); 317 }), SFSI(".adminTooltip").on("mouseleave", function () { 318 "none" != SFSI(".gpls_tool_bdr").css("display") && 0 != SFSI(".gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function () { 319 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(); 320 }) : (SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"), 321 SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide()); 322 }), SFSI(".expand-area").on("click", function () { 323 "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"), 324 SFSI(this).text("Collapse")) : (SFSI(this).siblings("p").children("label").fadeOut("slow"), 325 SFSI(this).text("Read more")); 326 }), SFSI(".sfsi_wDiv").length > 0 && setTimeout(function () { 327 var s = parseInt(SFSI(".sfsi_wDiv").height()) + 15 + "px"; 328 SFSI(".sfsi_holders").each(function () { 329 SFSI(this).css("height", s); 330 SFSI(".sfsi_widget"); 331 }); 332 }, 200); 333 334 /* Admin forum notification */ 335 SFSI( '.usm-widget__footer-text-link' ).on( 'click', function () { 336 SFSI( this ).parents( '.usm-widget' ).toggle( 'usm-widget--open' ); 337 338 SFSI.ajax({ 339 type: "post", 340 dataType: "json", 341 url: sfsi_icon_ajax_object.ajax_url, 342 data : { action: "sfsi_hide_admin_forum_notification" }, 343 success: function(){ 344 SFSI( '.usm-widget' ).remove(); 345 } 346 }); 347 }); 348 349 /* Hide Admin forum notification popup */ 350 SFSI( '.usm-widget__toggle-btn' ).on( 'click', function () { 351 var currentThis = SFSI( this ); 352 currentThis.parents( '.usm-widget' ).toggleClass( 'usm-widget--open' ); 353 var toggleStatus = ''; 354 if( currentThis.parents( '.usm-widget' ).hasClass( 'usm-widget--open' ) ) { 355 toggleStatus = 'hide'; 356 } else { 357 toggleStatus = 'show'; 358 } 359 SFSI.ajax({ 360 type: "post", 361 dataType: "json", 362 url: sfsi_icon_ajax_object.ajax_url, 363 data : { action: "sfsi_default_hide_admin_notification", status: toggleStatus }, 364 success: function(){ 365 currentThis.addClass( 'sfsi-first-click-enabled' ); 366 } 367 }); 368 }); 369}); 370 371//hiding popup on close button 372function sfsihidemepopup() { 373 SFSI(".sfsi_FrntInner_chg").fadeOut(); 374} 375var initTop = new Array(); 376 377function close_overlay(selector) { 378 if (typeof selector === "undefined") { 379 selector = '.sfsi_overlay'; 380 } 381 jQuery(selector).removeClass('show').addClass('hide').hide(); 382} 383 384function sfsi_wechat_share(url) { 385 if (jQuery('.sfsi_wechat_follow_overlay').length == 0) { 386 jQuery('body').append("<div class='sfsi_wechat_follow_overlay sfsi_overlay show'>
386<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>"); 387 new QRCode(jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display')[0], encodeURI(decodeURI(window.location.href))) 388 jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display img').attr('nopin', 'nopin') 389 } else { 390 jQuery('.sfsi_wechat_follow_overlay').removeClass('hide').addClass('show').show(); 391 } 392} 393 394function sfsi_mobile_wechat_share(url) { 395 if (jQuery('.sfsi_wechat_follow_overlay').length == 0) { 396 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>"); 397 } else { 398 jQuery('.sfsi_wechat_scan').removeClass('hide').addClass('show'); 399 } 400} 401 402function sfsi_copy_text_parent_input(event) { 403 var target = jQuery(event.target); 404 /*console.log(target);*/ 405 input_target = target.parent().parent().parent().find('input'); 406 input_target.select(); 407 document.execCommand('copy'); 408} 409 410function sfsi_responsive_toggle() { 411 jQuery(document).scroll(function ($) { 412 var y = jQuery(this).scrollTop(); 413 if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { 414 if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 100) { 415 jQuery('.sfsi_outr_div').css({ 416 'z-index': '9996', 417 opacity: 1, 418 top: jQuery(window).scrollTop() + "px", 419 position: "absolute" 420 }); 421 jQuery('.sfsi_outr_div').fadeIn(200); 422 jQuery('.sfsi_FrntInner_chg').fadeIn(200); 423 } else { 424 jQuery('.sfsi_outr_div').fadeOut(); 425 jQuery('.sfsi_FrntInner_chg').fadeOut(); 426 } 427 } else { 428 if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 3) { 429 jQuery('.sfsi_outr_div').css({ 430 'z-index': '9996', 431 opacity: 1, 432 top: jQuery(window).scrollTop() + 200 + "px", 433 position: "absolute" 434 }); 435 jQuery('.sfsi_outr_div').fadeIn(200); 436 jQuery('.sfsi_FrntInner_chg').fadeIn(200); 437 } else { 438 jQuery('.sfsi_outr_div').fadeOut(); 439 jQuery('.sfsi_FrntInner_chg').fadeOut(); 440 } 441 } 442 }); 443} 444 445function sfsi_time_pop_up(time_popUp) { 446 jQuery(document).ready(function ($) { 447 setTimeout(function () { 448 jQuery('.sfsi_outr_div').css({ 449 'z-index': '1000000', 450 opacity: 1 451 }); 452 jQuery('.sfsi_outr_div').fadeIn(200); 453 jQuery('.sfsi_FrntInner_chg').fadeIn(200); 454 }, time_popUp); 455 }); 456} 457 458function sfsi_social_pop_up(time_popUp) { 459 jQuery(document).ready(function ($) { 460 //jQuery('.sfsi_outr_div').fadeIn(); 461 sfsi_setCookie('sfsi_socialPopUp', time(), 32); 462 setTimeout(function () { 463 jQuery('.sfsi_outr_div').css({ 464 'z-index': '1000000', 465 opacity: 1 466 }); 467 jQuery('.sfsi_outr_div').fadeIn(); 468 }, time_popUp); 469 }); 470} 471 472function sfsi_plugin_version(pluginVersion) { 473 jQuery(document).ready(function (e) { 474 jQuery("body").addClass("sfsi_" + pluginVersion) 475 }); 476} 477 478function sfsi_widget_set() { 479 jQuery(".sfsi_widget").each(function (index) { 480 if (jQuery(this).attr("data-position") == "widget") { 481 var wdgt_hght = jQuery(this).children(".norm_row.sfsi_wDiv").height(); 482 var title_hght = jQuery(this).parent(".widget.sfsi").children(".widget-title").height(); 483 var totl_hght = parseInt(title_hght) + parseInt(wdgt_hght); 484 jQuery(this).parent(".widget.sfsi").css("min-height", totl_hght + "px"); 485 /*console.log('widget');*/ 486 } 487 }); 488} 489 490SFSI(window).on('load', function () { 491 SFSI('.sfsi_pinterest_sm_click').on('click touchstart', function () { 492 sfsi_pinterest_modal_images(e); 493 }); 494}); 495 496function sfsi_pinterest_modal_images(event, url, title) { 497 /*console.log(event);*/ 498 event && event.preventDefault(); 499 var imgSrc = []; 500 var page_title; 501 502 page_title = SFSI('meta[property="og:title"]').attr('content'); 503 if (undefined == page_title) { 504 page_title = SFSI('head title').text(); 505 } 506 if (undefined == title) { 507 title = page_title; 508 } 509 if (undefined == url) { 510 url = window.location.href; 511 // url = encodeURIComponent(window.location.href); 512 } 513 SFSI('body img').each(function (index) { 514 var src = SFSI(this).attr('src') || ""; 515 var height = SFSI(this).height(); 516 var width = SFSI(this).width(); 517 var image_title = SFSI(this).attr('title') || ""; 518 var alt = SFSI(this).attr('alt') || ""; 519 var no_pin = SFSI(this).attr('data-pin-nopin') || ""; 520 var no_pin_old = SFSI(this).attr('nopin') || ""; 521 522 if (src !== "" && !src.startsWith("javascript") && height > 100 && width > 100 && no_pin_old !== "nopin" && no_pin !== "true") { 523 imgSrc.push({ 524 src: src, 525 title: title && "" !== title ? title : (image_title && "" !== image_title ? image_title : alt) 526 }); 527 } 528 }); 529 530 sfsi_pinterest_modal(); 531 if (imgSrc.length == 0) { 532 var meta_img = SFSI('meta[property="og:image"]').attr('content'); 533 if (undefined == meta_img) { 534 meta_img = ""; 535 } 536 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>') 537 } else { 538 539 SFSI.each(imgSrc, function (index, val) { 540 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>'); 541 }); 542 } 543 event.preventDefault(); 544 545} 546 547function sfsi_pinterest_modal(imgs) {
548 // if (jQuery('.sfsi_premium_wechat_follow_overlay').length == 0) { 549 jQuery('body').append( 550 "<div class='sfsi_wechat_follow_overlay sfsi_overlay show'>" + 551 "<div class='sfsi_inner_display'>" + 552 '<a class="close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_wechat_follow_overlay\')" >Ã</a>' + 553 "<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;'>" + 554 "<h4 style='margin-left:10px;'>Pin It on Pinterest</h4>" + 555 "<div class='sfsi_flex_container'>" + 556 557 "</div>" + 558 "</div>" + 559 "</div>" + 560 "</div>" 561 ); 562} 563 564// should execute at last so that every function is acceable in body. 565var sfsi_functions_loaded = new CustomEvent('sfsi_functions_loaded', { 566 detail: { 567 "abc": "def" 568 } 569}); 570window.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.