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