1if ('undefined' !== typeof jQuery && null != jQuery) { 2 3 jQuery.fn.extend({ 4 5 sfsipluscss: function (styleName, value) { 6 this[0].style.setProperty(styleName, value, 'important'); 7 }, 8 9 sfsi_plus_align_icons_center_orientation: function (_centerPosition) { 10 11 function applyOrientation() { 12 13 var elemF = jQuery('#sfsi_plus_floater'); 14 15 if (elemF.length > 0) { 16 17 switch (_centerPosition) { 18 case 'center-right': 19 case 'center-left': 20 var toptalign = (jQuery(window).height() - elemF.height()) / 2; 21 elemF.css('top', toptalign); 22 break; 23 24 case 'center-top': 25 case 'center-bottom': 26 var leftalign = (jQuery(window).width() - elemF.width()) / 2; 27 elemF.css('left', leftalign); 28 break; 29 } 30 } 31 } 32 33 var prev_onresize = window.onresize; 34 window.onresize = function (event) { 35 36 if ('function' === typeof prev_onload) { 37 prev_onresize(), applyOrientation(); 38 } else { 39 applyOrientation(); 40 } 41 } 42 } 43 }); 44 45 jQuery("#sfsi_plus_wDivothrWid").find("p:empty").remove(); 46 47 /*! flip - v1.1.2 - 2016-10-20 48 * https://github.com/nnattawat/flip 49 * Copyright (c) 2016 Nattawat Nonsung; Licensed MIT */ 50 ! function (a) { 51 var b = function () { 52 var a, b = document.createElement("fakeelement"), 53 c = { 54 transition: "transitionend", 55 OTransition: "oTransitionEnd", 56 MozTransition: "transitionend", 57 WebkitTransition: "webkitTransitionEnd" 58 }; 59 for (a in c) 60 if (void 0 !== b.style[a]) return c[a] 61 }, 62 c = function (b, c, d) { 63 this.setting = { 64 axis: "y", 65 reverse: !1, 66 trigger: "click", 67 speed: 500, 68 forceHeight: !1, 69 forceWidth: !1, 70 autoSize: !0, 71 front: ".front", 72 back: ".back" 73 }, this.setting = a.extend(this.setting, c), "string" != typeof c.axis || "x" !== c.axis.toLowerCase() && "y" !== c.axis.toLowerCase() || (this.setting.axis = c.axis.toLowerCase()), "boolean" == typeof c.reverse && (this.setting.reverse = c.reverse), "string" == typeof c.trigger && (this.setting.trigger = c.trigger.toLowerCase()); 74 var e = parseInt(c.speed); 75 isNaN(e) || (this.setting.speed = e), "boolean" == typeof c.forceHeight && (this.setting.forceHeight = c.forceHeight), "boolean" == typeof c.forceWidth && (this.setting.forceWidth = c.forceWidth), "boolean" == typeof c.autoSize && (this.setting.autoSize = c.autoSize), ("string" == typeof c.front || c.front instanceof a) && (this.setting.front = c.front), ("string" == typeof c.back || c.back instanceof a) && (this.setting.back = c.back), this.element = b, this.frontElement = this.getFrontElement(), this.backElement = this.getBackElement(), this.isFlipped = !1, this.init(d) 76 }; 77 a.extend(c.prototype, { 78 flipDone: function (a) { 79 var c = this; 80 c.element.one(b(), function () { 81 c.element.trigger("flip:done"), "function" == typeof a && a.call(c.element) 82 }) 83 }, 84 flip: function (a) { 85 if (!this.isFlipped) { 86 this.isFlipped = !0; 87 var b = "rotate" + this.setting.axis; 88 this.frontElement.css({ 89 transform: b + (this.setting.reverse ? "(-180deg)" : "(180deg)"), 90 "z-index": "0" 91 }), this.backElement.css({ 92 transform: b + "(0deg)", 93 "z-index": "1" 94 }), this.flipDone(a) 95 } 96 }, 97 unflip: function (a) { 98 if (this.isFlipped) { 99 this.isFlipped = !1; 100 var b = "rotate" + this.setting.axis; 101 this.frontElement.css({ 102 transform: b + "(0deg)", 103 "z-index": "1" 104 }), this.backElement.css({ 105 transform: b + (this.setting.reverse ? "(180deg)" : "(-180deg)"), 106 "z-index": "0" 107 }), this.flipDone(a) 108 } 109 }, 110 getFrontElement: function () { 111 return this.setting.front instanceof a ? this.setting.front : this.element.find(this.setting.front) 112 }, 113 getBackElement: function () { 114 return this.setting.back instanceof a ? this.setting.back : this.element.find(this.setting.back) 115 }, 116 init: function (a) { 117 var b = this, 118 c = b.frontElement.add(b.backElement), 119 d = "rotate" + b.setting.axis, 120 e = 2 * b.element["outer" + ("rotatex" === d ? "Height" : "Width")](), 121 f = { 122 perspective: e, 123 position: "relative" 124 }, 125 g = { 126 transform: d + "(" + (b.setting.reverse ? "180deg" : "-180deg") + ")", 127 "z-index": "0", 128 position: "relative" 129 }, 130 h = { 131 "backface-visibility": "hidden", 132 "transform-style": "preserve-3d", 133 position: "absolute",
134 "z-index": "1" 135 }; 136 b.setting.forceHeight ? c.outerHeight(b.element.height()) : b.setting.autoSize && (h.height = "100%"), b.setting.forceWidth ? c.outerWidth(b.element.width()) : b.setting.autoSize && (h.width = "100%"), (window.chrome || window.Intl && Intl.v8BreakIterator) && "CSS" in window && (f["-webkit-transform-style"] = "preserve-3d"), c.css(h).find("*").css({ 137 "backface-visibility": "hidden" 138 }), b.element.css(f), b.backElement.css(g), setTimeout(function () { 139 var d = b.setting.speed / 1e3 || .5; 140 c.css({ 141 transition: "all " + d + "s ease-out" 142 }), "function" == typeof a && a.call(b.element) 143 }, 20), b.attachEvents() 144 }, 145 clickHandler: function (b) { 146 b || (b = window.event), this.element.find(a(b.target).closest('button, a, input[type="submit"]')).length || (this.isFlipped ? this.unflip() : this.flip()) 147 }, 148 hoverHandler: function () { 149 var b = this; 150 b.element.off("mouseleave.flip"), b.flip(), setTimeout(function () { 151 b.element.on("mouseleave.flip", a.proxy(b.unflip, b)), b.element.is(":hover") || b.unflip() 152 }, b.setting.speed + 150) 153 }, 154 attachEvents: function () { 155 var b = this; 156 "click" === b.setting.trigger ? b.element.on(a.fn.tap ? "tap.flip" : "click.flip", a.proxy(b.clickHandler, b)) : "hover" === b.setting.trigger && (b.element.on("mouseenter.flip", a.proxy(b.hoverHandler, b)), b.element.on("mouseleave.flip", a.proxy(b.unflip, b))) 157 }, 158 flipChanged: function (a) { 159 this.element.trigger("flip:change"), "function" == typeof a && a.call(this.element) 160 }, 161 changeSettings: function (a, b) { 162 var c = this, 163 d = !1; 164 if (void 0 !== a.axis && c.setting.axis !== a.axis.toLowerCase() && (c.setting.axis = a.axis.toLowerCase(), d = !0), void 0 !== a.reverse && c.setting.reverse !== a.reverse && (c.setting.reverse = a.reverse, d = !0), d) { 165 var e = c.frontElement.add(c.backElement), 166 f = e.css(["transition-property", "transition-timing-function", "transition-duration", "transition-delay"]); 167 e.css({ 168 transition: "none" 169 }); 170 var g = "rotate" + c.setting.axis; 171 c.isFlipped ? c.frontElement.css({ 172 transform: g + (c.setting.reverse ? "(-180deg)" : "(180deg)"), 173 "z-index": "0" 174 }) : c.backElement.css({ 175 transform: g + (c.setting.reverse ? "(180deg)" : "(-180deg)"), 176 "z-index": "0" 177 }), setTimeout(function () { 178 e.css(f), c.flipChanged(b) 179 }, 0) 180 } else c.flipChanged(b) 181 } 182 }), a.fn.flip = function (b, d) { 183 return "function" == typeof b && (d = b), "string" == typeof b || "boolean" == typeof b ? this.each(function () { 184 var c = a(this).data("flip-model"); 185 "toggle" === b && (b = !c.isFlipped), b ? c.flip(d) : c.unflip(d) 186 }) : this.each(function () { 187 if (a(this).data("flip-model")) { 188 var e = a(this).data("flip-model"); 189 !b || void 0 === b.axis && void 0 === b.reverse || e.changeSettings(b, d) 190 } else a(this).data("flip-model", new c(a(this), b || {}, d)) 191 }), this 192 } 193 }(jQuery); 194 195 var SFSI = jQuery; 196} 197 198 199jQuery(document).ready(function (e) { 200 // sfsi_premium_on_coordinates(); 201 // console.log(imgSrc); 202 function getinstacount(id) { 203 jQuery.get('https://www.instagram.com/' + id + '/?__a=1').done(function (data) { 204 var countblog = JSON.parse(data); 205 var count = countblog.graphql && countblog.graphql.user && countblog.graphql.user.edge_followed_by && countblog.graphql.user.edge_followed_by.count; 206 count = Math.abs(count) > 999 ? Math.sign(count) * ((Math.abs(count) / 1000).toFixed(1)) + 'k' : Math.sign(num) * Math.abs(count) 207 jQuery(".sfsi_premium_instagram_icon").parent().find('bot_no').text(count); 208 return count; 209 // var insta2 = jQuery.parseHTML(data); 210 // var meta = insta2.filter(function(i,j){return i.tagName=="META" && jQuery(i).attr("property")=="og:description"}) 211 // if(meta.length>0){ 212 // meta = meta[0] 213 // var content = meta.content; 214 // var count = content.match(/\d+\.?\d?\w?/)[0]; 215 // console.log(count); 216 // window.sfsi_premium_instacount = count; 217 // return count; 218 // }else{ 219 // console.log(insta2); 220 // } 221 }) 222 } 223 // getinstacount('nick'); 224 jQuery("#sfsi_plus_floater").attr("data-top", jQuery(document).height()); 225 226 // Whatsapp sharing 227 jQuery('.clWhatsapp').each(function () { 228 229 // Get title to be shared 230 var title = encodeURIComponent(jQuery(this).attr('data-text'));
231 232 // Get link to be shared 233 var link = encodeURIComponent(jQuery(this).attr('data-url')); 234 235 // Get custom whatsappmessage to be shared entered by user 236 var customtxt = jQuery(this).attr('data-customtxt'); 237 238 var customtxt = customtxt.replace("${title}", title); 239 var customtxt = customtxt.replace("${link}", link); 240 var customtxt = customtxt.replace(/['"]+/g, ''); // Remove single & double quotes 241 242 var whats_app_message = title + " - " + link; 243 var whatsapp_url = "https://api.whatsapp.com/send?text=" + customtxt; 244 245 jQuery(this).attr('href', whatsapp_url); 246 }); 247 jQuery('.sf_pinit>a').each(function (index, ref) { 248 var href = ref.href; 249 var data_pin_href = ref['data-pin-href']; 250 if (href) { 251 query_vars = sfsi_premium_getUrlVars(href); 252 var media_encoded = query_vars['media']; 253 media = decodeURI(media_encoded); 254 if (media.startsWith('/') && !(media.startsWith('//'))) { 255 var current_domain = window.location.protocol + '//' + window.location.hostname; 256 if (window.location.port && window.location.port !== "") { 257 current_domain = current_domain + ':' + window.location.port; 258 } 259 href = href.slice(0, href.indexOf('?')) + '?url=' + current_domain + query_vars['url'] + '&media=' + current_domain + media + '&description=' + decodeURI(query_vars['description']); 260 // href.replace(media_encoded,current_domain+media_encoded); 261 ref.href = href; 262 } 263 } 264 }) 265 266}); 267 268function sfsi_premium_getUrlVars(url) { 269 var vars = [], 270 hash; 271 var hashes = url.slice(url.indexOf('?') + 1).split('&'); 272 for (var i = 0; i < hashes.length; i++) { 273 hash = hashes[i].split('='); 274 vars.push(hash[0]); 275 vars[hash[0]] = hash[1]; 276 } 277 return vars; 278} 279 280function sfsiplus_showErrorSuc(s, i, e) { 281 if ("error" == s) var t = "errorMsg"; 282 else var t = "sucMsg"; 283 return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(), SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function () { 284 SFSI("." + t).slideUp("slow") 285 }, 5e3), !1 286} 287 288function sfsiplus_beForeLoad() { 289 SFSI(".loader-img").show(), SFSI(".save_button >a").html("Saving..."), SFSI(".save_button >a").css("pointer-events", "none") 290} 291 292function sfsi_plus_make_popBox() { 293 var s = 0; 294 SFSI(".plus_sfsi_sample_icons >li").each(function () { 295 "none" != SFSI(this).css("display") && (s = 1) 296 }), 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()), SFSI(".sfsi_plus_Popinner >h2").show()) : SFSI(".sfsi_plus_Popinner >h2").hide(), SFSI(".sfsi_plus_Popinner").css({ 297 "border-color": SFSI('input[name="sfsi_plus_popup_border_color"]').val(), 298 "border-width": SFSI('input[name="sfsi_plus_popup_border_thickness"]').val(), 299 "border-style": "solid" 300 }), SFSI(".sfsi_plus_Popinner").css("background-color", SFSI('input[name="sfsi_plus_popup_background_color"]').val()), 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()), SFSI(".sfsi_plus_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_plus_popup_fontSize"]').val())), SFSI(".sfsi_plus_Popinner >h2").css("color", SFSI('input[name="sfsi_plus_popup_fontColor"]').val() + " !important"), "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") 301} 302 303function sfsi_plus_stick_widget(s) { 304 0 == sfsiplus_initTop.length && (SFSI(".sfsi_plus_widget").each(function (s) { 305 sfsiplus_initTop[s] = SFSI(this).position().top 306 })); 307 var i = SFSI(window).scrollTop(), 308 e = [], 309 t = []; 310 SFSI(".sfsi_plus_widget").each(function (s) { 311 e[s] = SFSI(this).position().top, t[s] = SFSI(this) 312 }); 313 var n = !1; 314 for (var o in e) { 315 var a = parseInt(o) + 1; 316 e[o] < i && e[a] > i && a < e.length ? (SFSI(t[o]).css({ 317 position: "fixed", 318 top: s 319 }), SFSI(t[a]).css({ 320 position: "", 321 top: sfsiplus_initTop[a] 322 }), n = !0) : SFSI(t[o]).css({ 323 position: "", 324 top: sfsiplus_initTop[o] 325 }) 326 } 327 if (!n) { 328 var r = e.length - 1, 329 c = -1; 330 e.length > 1 && (c = e.length - 2), sfsiplus_initTop[r] < i ? (SFSI(t[r]).css({ 331 position: "fixed", 332 top: s 333 }), c >= 0 && SFSI(t[c]).css({ 334 position: "", 335 top: sfsiplus_initTop[c] 336 })) : (SFSI(t[r]).css({ 337 position: "", 338 top: sfsiplus_initTop[r] 339 }), c >= 0 && e[c] < i) 340 } 341} 342 343function sfsi_plus_float_widget(s) { 344 console.log('dnfgnkdfjg'); 345 346 function iplus() { 347 348 rplus = "Microsoft Internet Explorer" === navigator.appName ? aplus - document.documentElement.scrollTop : aplus - window.pageYOffset, Math.abs(rplus) > 0 ? (window.removeEventListener("scroll", iplus), aplus -= rplus * oplus, SFSI("#sfsi_plus_floater").css({ 349 top: (aplus + t).toString() + "px" 350 }), setTimeout(iplus, n)) : window.addEventListener("scroll", iplus, !1) 351 } 352 353 SFSI(window).scroll(function () { 354 355 var documentheight = SFSI(document).height(); 356 var fltrhght = parseInt(SFSI("#sfsi_plus_floater").height()); 357 var fltrtp = parseInt(SFSI("#sfsi_plus_floater").css("top")); 358 if (parseInt(fltrhght) + parseInt(fltrtp) <= documentheight) { 359 window.addEventListener("scroll", iplus, !1) 360 } else { 361 window.removeEventListener("scroll", iplus); 362 SFSI("#sfsi_plus_floater").css("top", documentheight + "px") 363 } 364 }); 365 if ("center" == s) { 366 var t = (jQuery(window).height() - SFSI("#sfsi_plus_floater").height()) / 2 367 } else if ("bottom" == s) { 368 var t = jQuery(window).height() - (SFSI("#sfsi_plus_floater").height() + parseInt(SFSI('#sfsi_plus_floater').css('margin-bottom'))); 369 } else { 370 var t = parseInt(s) 371 } 372 var n = 50, 373 oplus = .1, 374 aplus = 0, 375 rplus = 0 376} 377 378function sfsi_plus_shuffle() { 379 var s = []; 380 SFSI(".sfsi_premium_wicons ").each(function (i) { 381 SFSI(this).text().match(/^\s*$/) || (s[i] = "<div class='" + SFSI(this).attr("class") + "'>" + SFSI(this).html() + "</div>", SFSI(this).fadeOut("slow"), SFSI(this).insertBefore(SFSI(this).prev(".
381sfsi_premium_wicons")), SFSI(this).fadeIn("slow")) 382 }), s = sfsiplus_Shuffle(s), $("#sfsi_plus_wDiv").html(""); 383 for (var i = 0; i < testArray.length; i++) $("#sfsi_plus_wDiv").append(s[i]); 384} 385 386function sfsi_plus_shuffle_new() { 387 var $ = window.jQuery; 388 389 return SFSI('.sfsi_plus_wDiv').each(function (index, container) { 390 var s = []; 391 s = SFSI(container).find(".sfsi_premium_wicons "); 392 s = sfsiplus_Shuffle(s); 393 SFSI(container).html(""); 394 for (var i = 0; i < s.length; i++) { 395 SFSI(s[i]).css('transform', 'none'); 396 SFSI(s[i]).css('position', 'relative'); 397 SFSI(container).append(s[i]); 398 } 399 }) 400 401} 402 403function sfsiplus_Shuffle(s) { 404 for (var i, e, t = s.length; t; i = parseInt(Math.random() * t), e = s[--t], s[t] = s[i], s[i] = e); 405 return s 406} 407 408function sfsi_plus_setCookie(name, value, time) { 409 var date = new Date(); 410 date.setTime(date.getTime() + (time * 1000)); 411 var expires = "; expires=" + date.toGMTString(); 412 document.cookie = name + "=" + value + expires + "; path=/" 413} 414 415function sfsi_plus_getCookie(name) { 416 var nameEQ = name + "="; 417 var ca = document.cookie.split(';'); 418 for (var i = 0; i < ca.length; i++) { 419 var c = ca[i]; 420 while (c.charAt(0) == ' ') c = c.substring(1, c.length); 421 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length) 422 } 423 return null 424} 425 426function sfsi_plus_eraseCookie(name) { 427 sfsi_plus_setCookie(name, "", -1) 428} 429 430function sfsi_plus_hideFooter() {} 431window.onerror = function () {}, SFSI = jQuery, SFSI(window).on('load', function () { 432 SFSI("#sfpluspageLoad").fadeOut(2e3) 433}); 434 435var global_error = 0; 436 437SFSI(document).ready(function (s) { 438 SFSI("body").on("click", ".mailchimpSubscription", function () { 439 var nonce = SFSI(this).attr('data-nonce'); 440 SFSI.ajax({ 441 url: sfsi_premium_ajax_object.ajax_url, 442 type: "post", 443 data: { 444 action: "mailchimpSubscription", 445 nonce: nonce 446 }, 447 async: !0, 448 dataType: "json", 449 success: function (s) { 450 alert(s) 451 } 452 }) 453 }); 454 455 SFSI("head").append('<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'), SFSI("head").append('<meta http-equiv="Pragma" content="no-cache" />'), SFSI("head").append('<meta http-equiv="Expires" content="0" />'), SFSI(document).click(function (s) { 456 var i = SFSI(".sfsi_plus_FrntInner_changedmonad"), 457 e = SFSI(".sfsi_plus_wDiv"), 458 t = SFSI("#at15s"); 459 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() 460 }), SFSI(".sfsi_plus_outr_div").find(".addthis_button").mousemove(function () { 461 var s = SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().top + 10; 462 SFSI("#at15s").css({ 463 top: s + "px", 464 left: SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().left + "px" 465 }) 466 // }), SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseover(function() { 467 // SFSI(this).attr("src", sfsi_premium_ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg") 468 // }), SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() { 469 // SFSI(this).attr("src", sfsi_premium_ajax_object.plugin_url + "images/visit_icons/linkedIn.svg") 470 }), SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseover(function () { 471 var src_selected_lang = SFSI(this).attr("src"); 472 SFSI(this).attr("src", src_selected_lang); 473 }), SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseleave(function () { 474 var src_selected_lang = SFSI(this).attr("src"); 475 SFSI(this).attr("src", src_selected_lang); 476 }), SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseover(function () { 477 SFSI(this).css("opacity", "0.9") 478 }), SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseleave(function () { 479 SFSI(this).css("opacity", "1") 480 }), SFSI("div#sfsiplusid_twitter .cstmicon1 a img, div#sfsiplusid_twitter .icon1 a img, div#sfsiplusid_twitter .icon2 a img, div#sfsiplusid_facebook .icon3 a img, div#sfsiplusid_youtube .icon1 a img, div#sfsiplusid_pinterest .icon1 a img, div#sfsiplusid_pinterest .icon2 a img, div#sfsiplusid_yummly .icon1 a img, div#sfsiplusid_yummly .icon2 a img, div#sfsiplusid_linkedin .icon4 a img, div#sfsiplusid_linkedin .icon2 a img, div#sfsiplusid_mix .icon1 a img, div#sfsiplusid_mix .icon2 a img, div#sfsiplusid_ok .icon1 a img, div#sfsiplusid_ok .icon2 a img, div#sfsiplusid_ok .icon3 a img, div#sfsiplusid_telegram .icon1 a img, div#sfsiplusid_telegram .icon2 a img, div#sfsiplusid_vk .icon1 a img, div#sfsiplusid_vk .icon2 a img, div#sfsiplusid_weibo .icon1 a img, div#sfsiplusid_weibo .icon2 a img, div#sfsiplusid_wechat .icon1 a img, div#sfsiplusid_wechat .icon2 a img, div#sfsiplusid_xing .icon1 a img, div#sfsiplusid_xing .icon2 a img").mouseover(function () { 481 SFSI(this).css("opacity", "0.9") 482 }), SFSI("div#sfsiplusid_twitter .cstmicon1 a img, div#sfsiplusid_twitter .icon1 a img, div#sfsiplusid_twitter .icon2 a img, div#sfsiplusid_facebook .icon3 a img, div#sfsiplusid_youtube .icon1 a img, div#sfsiplusid_pinterest .icon1 a img, div#sfsiplusid_pinterest .icon2 a img, div#sfsiplusid_yummly .icon1 a img, div#sfsiplusid_yummly .icon2 a img, div#sfsiplusid_linkedin .icon4 a img, div#sfsiplusid_linkedin .icon2 a img, div#sfsiplusid_mix .icon1 a img, div#sfsiplusid_mix .icon2 a img, div#sfsiplusid_ok .icon1 a img, div#sfsiplusid_ok .icon2 a img, div#sfsiplusid_ok .icon3 a img, div#sfsiplusid_telegram .icon1 a img, div#sfsiplusid_telegram .icon2 a img, div#sfsiplusid_vk .icon1 a img, div#sfsiplusid_vk .icon2 a img, div#sfsiplusid_weibo .icon1 a img, div#sfsiplusid_weibo .icon2 a img, div#sfsiplusid_wechat .icon1 a img, div#sfsiplusid_wechat .icon2 a img, div#sfsiplusid_xing .icon1 a img, div#sfsiplusid_xing .icon2 a imgg").mouseleave(function () { 483 SFSI(this).css("opacity", "1") 484 }), SFSI(".pop-up").on("click", function () { 485 ("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(), SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")), SFSI("." + SFSI(this).attr("data-id")).show("slow") 486 }), SFSI(document).on("click", '#close_popup', function () { 487 SFSI(".read-overlay").hide("slow") 488 }); 489 var e = 0; 490 sfsi_plus_make_popBox(), 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), 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), SFSI("#sfsi_plus_popup_font ,#sfsi_plus_popup_fontStyle").on("change", sfsi_plus_make_popBox), SFSI(document).on("click", '.radio', function () { 491 var s = SFSI(this).parent().find("input:radio:first"); 492 "sfsi_plus_popup_border_shadow" == s.attr("name") && sfsi_plus_make_popBox() 493 }), 494 /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI(document).on("click", "img.sfsi_premium_wicon", function (s) { 495 if (!SFSI(this).hasClass('sfsi_premium_pinterest_icon')) { 496 s.stopPropagation(); 497 } 498 var i = SFSI("#sfsi_plus_floater_sec").val(); 499 var iconPos = SFSI(this).parents(".sfsi_premium_wicons ").offset().top - SFSI(window).scrollTop(); 500 var tooltipExists = SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").length > 0;
501 var automatic_tooltip = SFSI(this).parentsUntil("div").siblings("div.sfsi_premium_tooltip_automatic").length > 0; 502 if (iconPos < 130) { 503 if (tooltipExists && automatic_tooltip) { 504 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass('sfsi_premium_tooltip_bottom sfsi_premium_tooltip_bottom_adjust'); 505 SFSI(".sfsi_premium_tooltip_bottom_adjust").parents(".sfsiplus_inerCnt").css("position", "unset"); 506 SFSI(".sfsi_premium_tooltip_bottom_adjust").parents(".sfsi_premium_tooltip_align_automatic").css("position", "unset"); 507 } 508 } else if (iconPos > (screen.height + 10)) { 509 if (tooltipExists && automatic_tooltip) { 510 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass('sfsi_premium_tooltip_top'); 511 } 512 } else { 513 if (tooltipExists && automatic_tooltip) { 514 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass('sfsi_premium_tooltip_bottom').removeClass('sfsi_premium_tooltip_bottom'); 515 } 516 } 517 SFSI("div.sfsi_premium_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_premium_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(), 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"), SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_premium_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide()), SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({ 518 "z-index": "999" 519 }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 520 opacity: 1, 521 "z-index": 10 522 }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "fade_out" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 523 opacity: '0.6', 524 "z-index": 10 525 }), SFSI(this).parent().css("opacity", "0.6")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 526 opacity: 1, 527 "z-index": 10 528 }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 529 opacity: 1, 530 "z-index": 10 531 })), SFSI(this).attr("data-effect") && "combo-fade-out-scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), SFSI(this).parent().css("opacity", "0.6"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 532 opacity: 0.6, 533 "z-index": 10 534 }
534)), ("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"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 535 opacity: 1, 536 "z-index": 10, 537 }), 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"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 538 opacity: 1, 539 "z-index": 1e3 540 }), 541 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show() 542 ) 543 }) : SFSI(document).on("mouseenter", "img.sfsi_premium_wicon", function () { 544 var s = SFSI("#sfsi_plus_floater_sec").val(); 545 SFSI("div.sfsi_premium_wicons").css("z-index", "0"); 546 SFSI(this).parent().parent().parent().siblings("div.sfsi_premium_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(); 547 if (SFSI(this).parent().parent().parent().parent().siblings("li").length > 0) { 548 SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_tool_tip_2").css("z-index", "0"); 549 SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_premium_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(); 550 } 551 SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({ 552 "z-index": "999" 553 }); 554 SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 555 opacity: 1, 556 "z-index": 10, 557 }), SFSI(this).parent().css("opacity", "1")); 558 SFSI(this).attr("data-effect") && "fade_out" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 559 opacity: "0.6", 560 "z-index": 10 561 }), SFSI(this).parent().css("opacity", "0.6")); 562 SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 563 opacity: 1, 564 "z-index": 10 565 }), SFSI(this).parent().css("opacity", "1")) 566 SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 567 opacity: 1, 568 "z-index": 10, 569 570 })) 571 SFSI(this).attr("data-effect") && "combo-fade-out-scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), SFSI(this).parent().css("opacity", "0.6"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 572 opacity: "0.6", 573 "z-index": 10 574 })) 575 if (("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")) { 576 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2"); 577 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"); 578 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 579 opacity: 1, 580 "z-index": 10, 581 }) 582 var iconPos = SFSI(this).parents(".sfsi_premium_wicons ").offset().top - SFSI(window).scrollTop(); 583 var tooltipExists = SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").length > 0;
584 var automatic_tooltip = SFSI(this).parentsUntil("div").siblings("div.sfsi_premium_tooltip_automatic").length > 0; 585 586 if (iconPos < 130) { 587 if (tooltipExists && automatic_tooltip) { 588 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass('sfsi_premium_tooltip_bottom sfsi_premium_tooltip_bottom_adjust'); 589 SFSI(".sfsi_premium_tooltip_bottom_adjust").parents(".sfsiplus_inerCnt").css("position", "unset"); 590 SFSI(".sfsi_premium_tooltip_bottom_adjust").parents(".sfsi_premium_tooltip_align_automatic").css("position", "unset"); 591 } 592 } else if (iconPos > (screen.height + 10)) { 593 if (tooltipExists && automatic_tooltip) { 594 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass('sfsi_premium_tooltip_top'); 595 } 596 } else { 597 if (tooltipExists && automatic_tooltip) { 598 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass('sfsi_premium_tooltip_bottom').removeClass('sfsi_premium_tooltip_bottom'); 599 } 600 } 601 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show(); 602 } else { 603 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2 ").find("span.bot_arow").removeClass("top_big_arow"); 604 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2"); 605 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 606 opacity: 1, 607 "z-index": 10 608 }) 609 var iconPos = SFSI(this).parents(".sfsi_premium_wicons ").offset() ? SFSI(this).parents(".sfsi_premium_wicons ").offset().top : 0 - SFSI(window).scrollTop(); 610 var tooltipExists = SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").length > 0; 611 var automatic_tooltip = SFSI(this).parentsUntil("div").siblings("div.sfsi_premium_tooltip_automatic").length > 0; 612 if (iconPos < 130) { 613 if (tooltipExists && automatic_tooltip) { 614 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass('sfsi_premium_tooltip_bottom sfsi_premium_tooltip_bottom_adjust'); 615 SFSI(".sfsi_premium_tooltip_bottom_adjust").parents(".sfsiplus_inerCnt").css("position", "unset"); 616 SFSI(".sfsi_premium_tooltip_bottom_adjust").parents(".sfsi_premium_tooltip_align_automatic").css("position", "unset"); 617 } 618 } else if (iconPos > (screen.height + 10)) { 619 if (tooltipExists && automatic_tooltip) { 620 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass('sfsi_premium_tooltip_top'); 621 } 622 } else { 623 if (tooltipExists && automatic_tooltip) { 624 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass('sfsi_premium_tooltip_bottom').removeClass('sfsi_premium_tooltip_bottom'); 625 } 626 } 627 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show() 628 } 629 }), SFSI("div.sfsi_premium_wicons").on("mouseleave", function () { 630 SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "fade_in" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity", "0.6"), 631 SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "fade_out" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity", "1"), 632 SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "scale" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale"), 633 SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "combo" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && (SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity", "0.6"), 634 SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale") 635 ), 636 SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "combo-fade-out-scale" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && (SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity", "1"), 637 SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale") 638 ), 639 "sfsiplusid_google" == SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").attr("id") ? SFSI("body").on("click", function () { 640 SFSI(this).children(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide() 641 }) : (SFSI(this).css({ 642 "z-index": "0" 643 }), 644 SFSI(this).children(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide() 645 ) 646 }), 647 SFSI("body").on("click", function () { 648 SFSI(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide() 649 }), SFSI(".adminTooltip >a").on("hover", function () { 650 SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "1"), SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").show() 651 }), SFSI(".adminTooltip").on("mouseleave", function () { 652 "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 () { 653 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() 654 }) : (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()) 655 }), SFSI(".expand-area").on("click", function () { 656 "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"), SFSI(this).text("Collapse")) : (SFSI(this).siblings("p").children("label").fadeOut("slow"), SFSI(this).text("Read more")) 657 }), SFSI(".sfsi_plus_wDiv").length > 0 && setTimeout(function () { 658 var s = parseInt(SFSI(".sfsi_plus_wDiv").height()) + 15 + "px"; 659 SFSI(".sfsi_plus_holders").each(function () { 660 SFSI(this).css("height", s) 661 }); 662 SFSI(".sfsi_plus_widget").css("min-height", "auto") 663 }, 200) 664 var sfsi_premium_responsive_icon_bg_color = { 665 "Buffer": "#151515", 666 "Facebook": "#336699", 667 "Flicker": "#FF0084", 668 "Follow": "#00B04E", 669 "Google": "#DD4B39", 670 "Houzz": "#7BC044", 671 "Google": "#DD4B39", 672 "Houzz": "#7BC044", 673 "Instagram": "", 674 "Linkedin": "#0877B5", 675 "Mail": "#343D44", 676 "Pinterest": "#CB3233", 677 "Reddit": "#FF4500", 678 "RSS": "#FF9845", 679 "Skype": "#00A9F0", 680 "Share": "#26AD62", 681 "Snapchat": "#F5E728", 682 "Soundcloud": "#FF4500", 683 "Speicifcfeeds": "#E54543", 684 "Tumblr": "#36465F", 685 "Twitter": "#55ACEE", 686 "Vimeo": "#1AB7EA", 687 "Whatsapp": "#3CD946", 688 "Yelp": "#C6331E", 689 "Yummly": "#E36308", 690 "Youtube": "#E02F2F", 691 "Amazon": "#2E2B2C", 692 "Angieslist": "#3EA258", 693 "Blogger": "#F38032", 694 "Goodreads": "#784733", 695 "Print": "#353535", 696 "Steam": "#373435", 697 "Stumbleupon": "#E9513D", 698 "Telegram": "#33A1D1", 699 "Twitch": "#6B529B", 700 "Vk": "#4E77A2", 701 "Xing": "#286266", 702 "Flipboard": "#E02828", 703 "Bandcamp": "#6199AA", 704 "Spotify": "#1ED760", 705 "Odnoklassniki": "#F58220", 706 "Pocket": "#EF4056", 707 "Meetup": "#ED1C40", 708 "Discord": "#6E8ACC", 709 "GitHub": "#000000", 710 "Wordpress": "#464342", 711 "CodePen": "#231F20", 712 "Etsy": "#F27224", 713 "Meneame": "#E35614", 714 "Digg": "#000000", 715 "Delicious": "#000000", 716 "Frype.com": "#FF6600", 717 "THN": "#190A8D", 718 "MeWe": "#190A8D", 719 "Viber": "#7C529E", 720 "Line": "#3ACE01", 721 "LiveJournal": "#15374C", 722 "IMDB": "#E5B922", 723 "Patreon": "#FF5900", 724 "Dloky": "#E73F38",
725 "BBB": "#0D7C99", 726 "Weibo": "#E6162D", 727 "Academia": "#41454A", 728 "Wikipedia": "#000000", 729 "TripAdvisor": "#00AF87", 730 "Zillow": "#3871B8", 731 "Realtor": "#000000", 732 "Messenger": "#447BBF", 733 "Yahoo": "#6A2E8C", 734 "iTunes": "#EE3459", 735 "AppStore": "#3C69B3", 736 "PlayStore": "#1AB0C3", 737 "SellCodes": "#149E4A", 738 "Windows": "Store#118B44", 739 "BookBub": "#E61E25", 740 "Threema": "#50504F", 741 "Stocktwits": "#283646", 742 "Refind": "#1A4696", 743 "Thumbtack": "#F27802", 744 "Mixcloud": "#232323", 745 "Slack2": "#232323", 746 "Airbnb": "#FF7977", 747 "Kudzu": "#1790BF", 748 "movingcompanyrevies": "#405361", 749 "Superpages": "#F8981B", 750 "QQ2": "#D5D5D5", 751 "WeChat": "#4BAD33", 752 "scoop.it": "#93C240", 753 "Venmo": "#4395CF", 754 "Apple": "#000000", 755 "PayPal": "linear-gradient(#1F87C9 , #223463)", 756 "mymovingreviews": "#039146", 757 "yellowpages": "#F4E72A", 758 "medium": "#000000", 759 "ReFind2": "#0090F2", 760 "stackoverflow": "#F08026", 761 "Apple": "Pay#000000", 762 "Blogvlovinv": "#000000", 763 "Hometalk": "#51A2D6", 764 "stitcher": "#000000", 765 "iheart": "#DB0A38", 766 "periscope": "#41A9C7", 767 "Bitcoin": "#F7931A", 768 "GAB": "#25CC80", 769 "Teachers Pay Teachers": "#09A56C", 770 "Pocket": "casts#F44336", 771 "Next": "Door#19975D", 772 "Home": "Advisor #F69020", 773 "Vine": "#00B389", 774 "WikiDIY": "#678C3C", 775 "Talk": "#FFE812", 776 "Dailymotion": "#0066DC", 777 "Mix.com": "", 778 "Ravelry": "#DC2357", 779 "Steem": "#2463A6", 780 "ebay": "#E1E1E1", 781 "Steemit": "#64C3A5", 782 "Trustpilot": "linear-gradient(#F05426 , #F78D2A) ", 783 "DTube": "#ED1E24", 784 "Phone": "#51AD47", 785 "Spreaker": "#0E0E0E", 786 "HackerNews": "#F26622", 787 "Booking.com": "radial-gradient(#2654A5 , #233D7B)", 788 "tunein": "#3EB4A7", 789 "Google": "#F6F6F6", 790 "Behance": "#2A2A2A", 791 "500px": "#2A2A2A", 792 "Apple podcast": "linear-gradient(#7E29C5 , #D36CFB)", 793 "xiaohongshu": "#F40A0B", 794 "TuneIn": "#1C203C", 795 "About": "us#1496E2", 796 "Informations": "#E9891D", 797 "Gallery": "#27BA9A", 798 "Question": "#F74741", 799 "Text": -"icon#363436", 800 "Home": "#5C80C8", 801 "Shopping cart": "#F7AB00", 802 "Calendar": "#A00341", 803 "Shazam": "#0187FD", 804 "Poshmark": "linear-gradient(#832432 , #B63A4D)", 805 "Tidal.com": "#202020", 806 "Zalo.com": "#02ABD3" 807 } 808 for (var key in sfsi_premium_responsive_icon_bg_color) { 809 if (sfsi_premium_responsive_icon_bg_color.hasOwnProperty(key)) { 810 var icon_name = key.toLowerCase(); 811 var class_name = 'sfsi_premium_responsive_icon_' + icon_name + '_container'; 812 jQuery('.' + class_name).css('background-color', sfsi_premium_responsive_icon_bg_color[key]); 813 } 814 } 815}); 816 817function sfsi_plus_new_window_popup(event) { 818 819 event.preventDefault(); 820 821 var target = SFSI(event.target); 822 823 if (target.tagName !== "a") { 824 target = target.parents('a'); 825 } 826 827 var url = target.attr('href'); 828 829 if (undefined != url && null != url && url.length > 0) { 830 831 var cond1 = (new RegExp('https://twitter.com/intent/tweet')).test(url); 832 // console.log(cond1, url, !cond1 && "javascript:void(0);" != url); 833 if ("javascript:void(0);" != url) { 834 var x = (jQuery(window).width() - 520) / 2; 835 var y = (jQuery(window).height() - 570) / 2; 836 window.open(url, 'window_popup', 'height=570,width=520,location=1,status=1,left=' + x + ',top=' + y + ',scrollbars=1'); 837 } 838 } 839} 840var sfsiplus_initTop = new Array(); 841window.sfsi_premium_fittext_shouldDisplay = true; 842 843// image hover icon 844function sfsi_hover_icon_handler() { 845 var api_link = document.querySelectorAll('link[rel="https://api.w.org/"]'); 846 if (api_link.length > 0) { 847 var api_root = document.querySelectorAll('link[rel="https://api.w.org/"]')[0].getAttribute('href'); 848 } 849 var is_archive = SFSI("body").hasClass("archive"); 850 var is_date = SFSI("body").hasClass("date"); 851 var is_author = SFSI("body").hasClass("author"); 852 853 if (undefined !== api_root) { 854 SFSI.ajax({ 855 'url': api_root + 'usm-premium-icons/v1/hover_icon_setting/', 856 'method': 'GET', 857 'data': { 858 'url': window.location.href, 859 'is_archive': is_archive ? 'yes' : 'no', 860 'is_date': is_date ? 'yes' : 'no', 861 'is_author': is_author ? 'yes' : 'no', 862 863 } 864 }).then(function (sfsi_plus_result) { 865 // settings=JSON.parse(result); 866 // settings = result; 867 if (undefined !== sfsi_plus_result.icon && sfsi_plus_result.icon.length > 0) { 868 if (undefined === window.sfsi_premium) { 869 window.sfsi_premium = { 870 img_hover_setting: sfsi_plus_result 871 } 872 } else { 873 window.sfsi_premium.img_hover_setting = sfsi_plus_result; 874 } 875 if (sfsi_plus_result.type == "regular") { 876 sfsi_register_img_hover_handler(); 877 } else { 878 879 sfsi_premium_pinterest_absolute(sfsi_plus_result); 880 } 881 } 882 });
883 } else { 884 SFSI.ajax({ 885 'url': sfsi_premium_ajax_object.ajax_url, 886 'type': 'POST', 887 async: !0, 888 dataType: "json", 889 'data': { 890 'action': 'premium_hover_icon_settings', 891 'url': window.location.href, 892 'is_archive': is_archive ? 'yes' : 'no', 893 'is_date': is_date ? 'yes' : 'no', 894 'is_author': is_author ? 'yes' : 'no', 895 } 896 }).then(function (sfsi_plus_result) { 897 // settings = result; 898 if (undefined !== sfsi_plus_result.icon && sfsi_plus_result.icon.length > 0) { 899 if (undefined === window.sfsi_premium) { 900 window.sfsi_premium = { 901 img_hover_setting: sfsi_plus_result 902 } 903 } else { 904 window.sfsi_premium.img_hover_setting = sfsi_plus_result; 905 } 906 if (sfsi_plus_result.type == "regular") { 907 sfsi_register_img_hover_handler(); 908 } else { 909 sfsi_premium_pinterest_absolute(sfsi_plus_result); 910 } 911 } 912 913 }); 914 } 915 916 function sfsi_register_img_hover_handler() { 917 918 var ismobile = navigator.userAgent.match(/ipad|iphone|ipod|android/i) != null; 919 var device_check = false; 920 try { 921 var slength = "undefined" !== typeof window.sfsi_premium.img_hover_setting.show_on.length ? 922 window.sfsi_premium.img_hover_setting.show_on.length : 0; 923 924 if (slength > 0) { 925 926 if (ismobile) { 927 for (var i = 0; i < slength; i++) { 928 if (window.sfsi_premium.img_hover_setting.show_on[i] === 'mobile') { 929 device_check = true; 930 } 931 } 932 } else { 933 for (var i = 0; i < slength; i++) { 934 if (window.sfsi_premium.img_hover_setting.show_on[i] === 'desktop') { 935 device_check = true; 936 } 937 } 938 } 939 } 940 } catch (e) { 941 942 } 943 944 SFSI(document).on('mouseover', 'img', function () { 945 if ( 946 SFSI(this).attr('data-pin-nopin') !== 'true' && 947 !SFSI(this).hasClass('sfsi_premium_wicon') && 948 ( 949 SFSI(this).width() > parseInt(window.sfsi_premium.img_hover_setting.width) && 950 SFSI(this).height() > parseInt(window.sfsi_premium.img_hover_setting.height) 951 ) && 952 SFSI(this).parents('.sfsi_premium_image_hover_container').length == 0 && 953 window.sfsi_premium && 954 window.sfsi_premium.img_hover_setting && 955 device_check 956 ) { 957 var settings = window.sfsi_premium.img_hover_setting; 958 var container = document.createElement('div'); 959 container.className = "sfsi_premium_image_hover_container"; 960 var parent = jQuery(this).parent(); 961 var icons_container = document.createElement('div'); 962 icons_container.className = "sfsi_premium_image_hover_icon_container"; 963 var margin_top = 5; 964 var margin_h = 5; 965 var margin_v = 5; 966 if (window.sfsi_premium.img_hover_setting.icon_type === "small-rectangle") { 967 margin_top = 2; 968 margin_bottom = 2; 969 margin_h = 2; 970 margin_v = 0; 971 } 972 if (window.sfsi_premium.img_hover_setting['placement'] === 'bottom-right') { 973 icons_container.style = "position:absolute;right:5px;bottom:5px"; 974 } else if (window.sfsi_premium.img_hover_setting['placement'] === 'top-right') { 975 icons_container.style = "position:absolute;right:5px;top:" + margin_top + "px;"; 976 } else if (window.sfsi_premium.img_hover_setting['placement'] === 'bottom-left') { 977 icons_container.style = "position:absolute;left:5px;bottom:5px;"; 978 } else { 979 icons_container.style = "position:absolute;left:5px;top:" + margin_top + 'px'; 980 } 981 var target_image_src = SFSI(this).attr('src'); 982 if (target_image_src.substring(0, 5) == "data:") { 983 srcset = SFSI(this).attr('srcset'); 984 if (target_image_src.indexOf(' ') !== false) { 985 target_image_src = srcset.substring(0, target_image_src.indexOf(' ')); 986 } else { 987 target_image_src = srcset; 988 } 989 } 990 var target_image_title = SFSI(this).attr('title') || SFSI(this).attr('alt') || SFSI('meta[property="og:title"]').attr('content'); 991 var current_url = window.location.href; 992 var image_width = SFSI(this).width(); 993 var image_height = SFSI(this).height(); 994 var image_with_figure = false; 995 if (SFSI(this).parent('figure').length === 1) { 996 image_with_figure = true; 997 } 998 settings.icon.forEach(function (icon_setting) { 999 var icon = document.createElement('a'); 1000 target_image_title = encodeURIComponent(target_image_title).replace('+', '%20'); 1001 target_image_title = target_image_title.replace('#', '%23'); 1002 icon.href = icon_setting.share_url_template + encodeURIComponent(current_url) + '&media=' + encodeURIComponent(target_image_src) + '&description=' + target_image_title; 1003 icon.target = "_blank" 1004 icon.className = "sfsi_open_window" 1005 icon.innerHTML = icon_setting.icon; 1006 icons_container.appendChild(icon); 1007 }); 1008 container.appendChild(icons_container); 1009 if (SFSI(this).parent('a').length === 1) { 1010 var target = SFSI(this).parent().clone(); 1011 target.addClass('sfsi_premium_hover_img'); 1012 container.appendChild(target[0]); 1013 SFSI(this).parent().replaceWith(container); 1014 } else { 1015 var target = SFSI(this).clone(); 1016 target.addClass('sfsi_premium_hover_img'); 1017 container.appendChild(target[0]); 1018 SFSI(this).replaceWith(container); 1019 } 1020 container_2 = parent.find('.sfsi_premium_image_hover_icon_container'); 1021 var container_height = SFSI(container_2).height(); 1022 var container_width = SFSI(container_2).width(); 1023 if (container_height > image_height && image_with_figure === true) { 1024 image_with_figure = false; 1025 } 1026 1027 var icon_margin_top = SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('top'); 1028 var icon_margin_bottom = SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('bottom'); 1029 var icon_margin_right = SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('right'); 1030 // if(icon_margin_top!=="0px" && image_with_figure==false){ 1031 // SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('margin-top',((container_height-image_height)+parseInt(icon_margin_top))+'px' ) 1032 // } 1033 if (icon_margin_bottom !== "0px" && image_with_figure == false && window.sfsi_premium.img_hover_setting.icon_type !== 'square') { 1034 SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('bottom', (((container_height - image_height) / 2) + margin_top) + 'px') 1035 } 1036 var adjustment_h = (container_width - image_width) / 2; 1037 if (adjustment_h < 0) { 1038 adjustment_h = adjustment_h * -1; 1039 } 1040 // if (icon_margin_right !== "0px" && image_with_figure == false) { 1041 // SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('right', ((adjustment_h) + margin_top) + 'px') 1042 // } 1043 jQuery('.sfsi_premium_image_hover_container').css('display', 'block'); 1044 // console.log(jQuery('.sfsi_premium_image_hover_container').width(), jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').width()); 1045 if (window.sfsi_premium.img_hover_setting['placement'] === 'bottom-right') { 1046 jQuery('.sfsi_premium_image_hover_icon_container').css('right', ((jQuery('.sfsi_premium_image_hover_container').width() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').width()) + margin_h) + 'px'); 1047 jQuery('.sfsi_premium_image_hover_icon_container').css('bottom', (((jQuery('.sfsi_premium_image_hover_container').height() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').height()) / 2) + margin_v) + 'px'); 1048 } else if (window.sfsi_premium.img_hover_setting['placement'] === 'top-right') { 1049 jQuery('.sfsi_premium_image_hover_icon_container').css('right', ((jQuery('.sfsi_premium_image_hover_container').width() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').width()) + margin_h) + 'px'); 1050 jQuery('.sfsi_premium_image_hover_icon_container').css('top', (((jQuery('.sfsi_premium_image_hover_container').height() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').height()) / 2) + margin_v) + 'px'); 1051 } else if (window.sfsi_premium.img_hover_setting['placement'] === 'bottom-left') { 1052 // jQuery('.sfsi_premium_image_hover_icon_container').css('left',(( (jQuery('.sfsi_premium_image_hover_container').width() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').width())/2)+margin_h) +'px'); 1053 jQuery('.sfsi_premium_image_hover_icon_container').css('bottom', (((jQuery('.sfsi_premium_image_hover_container').height() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').height()) / 2) + margin_v) + 'px'); 1054 } else { 1055 // jQuery('.sfsi_premium_image_hover_icon_container').css('left',(( (jQuery('.sfsi_premium_image_hover_container').width() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').width())/2)+margin_h) +'px'); 1056 // jQuery('.sfsi_premium_image_hover_icon_container').css('top',(( (jQuery('.sfsi_premium_image_hover_container').height() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').height())/2)+margin_v) +'px'); 1057 } 1058 1059 } 1060 SFSI(document).on('click', 'a.sfsi_open_window', function (event) { 1061 event.preventDefault(); 1062 var url = SFSI(this).attr('href'); 1063 window.open(url, "Share This Image", "width=800,height=350,status=0,toolbar=0,menubar=0,location=1,scrollbars=1"); 1064 }) 1065 });
1066 SFSI(document).on('mouseleave', '.sfsi_premium_image_hover_container', function () { 1067 var restore_img = SFSI(this).find('.sfsi_premium_hover_img'); 1068 restore_img.removeClass('sfsi_premium_hover_img'); 1069 SFSI(this).replaceWith(restore_img); 1070 }); 1071 } 1072 1073} 1074SFSI(document).ready(function () { 1075 SFSI(document).on('click', 'a.sfsi_open_window', function (event) { 1076 event.preventDefault(); 1077 var url = SFSI(this).attr('href'); 1078 window.open(url, "Share This Image", "width=800,height=350,status=0,toolbar=0,menubar=0,location=1,scrollbars=1"); 1079 }) 1080 var sfsi_premium_responsive_icon_bg_color = { 1081 "Buffer": "#151515", 1082 "Facebook": "#336699", 1083 "Flicker": "#FF0084", 1084 "Follow": "#16CB30", 1085 "GooglePlus": "#DD4B39", 1086 "Houzz": "#7BC044", 1087 "Google": "#DD4B39", 1088 "Houzz": "#7BC044", 1089 "Instagram": "", 1090 "Linkedin": "#0877B5", 1091 "Mail": "#343D44", 1092 "Pinterest": "#CB3233", 1093 "Reddit": "#FF4500", 1094 "RSS": "#FF9845", 1095 "Skype": "#00A9F0", 1096 "Share": "#26AD62", 1097 "Snapchat": "#F5E728", 1098 "Soundcloud": "#FF4500", 1099 "Speicifcfeeds": "#E54543", 1100 "Tumblr": "#36465F", 1101 "Twitter": "#55ACEE", 1102 "Vimeo": "#1AB7EA", 1103 "Whatsapp": "#3CD946", 1104 "Yelp": "#C6331E", 1105 "Yummly": "#E36308", 1106 "Youtube": "#E02F2F", 1107 "Amazon": "#2E2B2C", 1108 "Angieslist": "#3EA258", 1109 "Blogger": "#F38032", 1110 "Goodreads": "#784733", 1111 "Print": "#353535", 1112 "Steam": "#373435", 1113 "Stumbleupon": "#E9513D", 1114 "Telegram": "#33A1D1", 1115 "Twitch": "#6B529B", 1116 "Vk": "#4E77A2", 1117 "Xing": "#286266", 1118 "Flipboard": "#E02828", 1119 "Bandcamp": "#6199AA", 1120 "Spotify": "#1ED760", 1121 "Odnoklassniki": "#F58220", 1122 "Pocket": "#EF4056", 1123 "Meetup": "#ED1C40", 1124 "Discord": "#6E8ACC", 1125 "GitHub": "#000000", 1126 "Wordpress": "#464342", 1127 "CodePen": "#231F20", 1128 "Etsy": "#F27224", 1129 "Meneame": "#E35614", 1130 "Digg": "#000000", 1131 "Delicious": "#000000", 1132 "Frype.com": "#FF6600", 1133 "THN": "#190A8D", 1134 "MeWe": "#190A8D", 1135 "Viber": "#7C529E", 1136 "Line": "#3ACE01", 1137 "LiveJournal": "#15374C", 1138 "IMDB": "#E5B922", 1139 "Patreon": "#FF5900", 1140 "Dloky": "#E73F38", 1141 "BBB": "#0D7C99", 1142 "Weibo": "#E6162D", 1143 "Academia": "#41454A", 1144 "Wikipedia": "#000000", 1145 "TripAdvisor": "#00AF87", 1146 "Zillow": "#3871B8", 1147 "Realtor": "#000000", 1148 "Messenger": "#447BBF", 1149 "Yahoo": "#6A2E8C", 1150 "iTunes": "#EE3459", 1151 "AppStore": "#3C69B3", 1152 "PlayStore": "#1AB0C3", 1153 "SellCodes": "#149E4A", 1154 "Windows": "Store#118B44", 1155 "BookBub": "#E61E25", 1156 "Threema": "#50504F", 1157 "Stocktwits": "#283646", 1158 "Refind": "#1A4696", 1159 "Thumbtack": "#F27802", 1160 "Mixcloud": "#232323", 1161 "Slack2": "#232323", 1162 "Airbnb": "#FF7977", 1163 "Kudzu": "#1790BF", 1164 "movingcompanyrevies": "#405361", 1165 "Superpages": "#F8981B", 1166 "QQ2": "#D5D5D5", 1167 "WeChat": "#4BAD33", 1168 "scoop.it": "#93C240", 1169 "Venmo": "#4395CF", 1170 "Apple": "#000000", 1171 "PayPal": "linear-gradient(#1F87C9 , #223463)", 1172 "mymovingreviews": "#039146", 1173 "yellowpages": "#F4E72A", 1174 "medium": "#000000", 1175 "ReFind2": "#0090F2", 1176 "stackoverflow": "#F08026", 1177 "Apple": "Pay#000000", 1178 "Blogvlovinv": "#000000", 1179 "Hometalk": "#51A2D6", 1180 "stitcher": "#000000", 1181 "iheart": "#DB0A38", 1182 "periscope": "#41A9C7", 1183 "Bitcoin": "#F7931A", 1184 "GAB": "#25CC80", 1185 "Teachers Pay Teachers": "#09A56C", 1186 "Pocket Cast": "#F44336", 1187 "Next": "#19975D", 1188 "Home Advisor": "#F69020", 1189 "Vine": "#00B389", 1190 "WikiDIY": "#678C3C", 1191 "Talk": "#FFE812", 1192 "Dailymotion": "#0066DC", 1193 "Mix.com": "", 1194 "Ravelry": "#DC2357", 1195 "Steem": "#2463A6", 1196 "ebay": "#E1E1E1", 1197 "Steemit": "#64C3A5", 1198 "Trustpilot": "linear-gradient(#F05426 , #F78D2A) ", 1199 "DTube": "#ED1E24", 1200 "Phone": "#51AD47", 1201 "Spreaker": "#0E0E0E", 1202 "HackerNews": "#F26622", 1203 "Booking.com": "radial-gradient(#2654A5 , #233D7B)", 1204 "tunein": "#3EB4A7", 1205 "Google": "#F6F6F6", 1206 "Behance": "#2A2A2A", 1207 "500px": "#2A2A2A", 1208 "Apple podcast": "linear-gradient(#7E29C5 , #D36CFB)", 1209 "xiaohongshu": "#F40A0B", 1210 "TuneIn": "#1C203C", 1211 "About": "us#1496E2", 1212 "Informations": "#E9891D", 1213 "Gallery": "#27BA9A", 1214 "Question": "#F74741", 1215 "Text": -"icon#363436", 1216 "Home": "#5C80C8", 1217 "Shopping cart": "#F7AB00", 1218 "Calendar": "#A00341", 1219 "Shazam": "#0187FD", 1220 "Poshmark": "linear-gradient(#832432 , #B63A4D)", 1221 "Tidal.com": "#202020", 1222 "Zalo.com": "#02ABD3" 1223 } 1224 for (var key in sfsi_premium_responsive_icon_bg_color) { 1225 if (sfsi_premium_responsive_icon_bg_color.hasOwnProperty(key)) { 1226 var icon_name = key.toLowerCase(); 1227 var class_name = 'sfsi_premium_responsive_icon_' + icon_name + '_container'; 1228 jQuery('.' + class_name).css('background-color', sfsi_premium_responsive_icon_bg_color[key]); 1229 } 1230 } 1231 jQuery(document).on('mouseenter', '.sfsi_premium_icons_container a', function () { 1232 jQuery(this).css('opacity', 0.8); 1233 }) 1234 jQuery(document).on('mouseleave', '.sfsi_premium_icons_container a', function () { 1235 jQuery(this).css('opacity', 1); 1236 }) 1237 1238 jQuery('.sfsi_premium_icons_container a').each(function (index, a_container) { 1239 if (jQuery(a_container).css('display') !== "none") { 1240 sfsi_premium_fitText(jQuery(a_container).find('.sfsi_premium_responsive_icon_item_container')); 1241 } 1242 }); 1243 var sfsi_premium_rtime; 1244 var sfsi_premium_timeout = false; 1245 var sfsi_premium_delta = 500; 1246 window.sfsi_premium_fittext_shouldDisplay = true; 1247 jQuery(window).resize(function () { 1248 sfsi_premium_rtime = new Date(); 1249 // console.log('resize', sfsi_premium_timeout, sfsi_premium_rtime, sfsi_premium_delta); 1250 if (sfsi_premium_timeout === false) { 1251 sfsi_premium_timeout = true; 1252 setTimeout(sfsi_premium_resizeend, sfsi_premium_delta); 1253 } 1254 }); 1255 1256 function sfsi_premium_resizeend() { 1257 // console.log((new Date()).getTime(), sfsi_premium_rtime.getTime()); 1258 if ((new Date()).getTime() - sfsi_premium_rtime.getTime() < sfsi_premium_delta) { 1259 // console.log('sfsi_premium resize reset'); 1260 setTimeout(sfsi_premium_resizeend, sfsi_premium_delta); 1261 } else { 1262 sfsi_premium_timeout = false; 1263 // console.log('sfsi_premium resize executed'); 1264 sfsi_premium_resize_icons_container(); 1265 jQuery('.sfsi_premium_icons_container a').each(function (index, a_container) { 1266 if (jQuery(a_container).css('display') !== "none") { 1267 sfsi_premium_fitText(jQuery(a_container).find('.sfsi_premium_responsive_icon_item_container')); 1268 } 1269 }); 1270 } 1271 } 1272 sfsi_premium_resize_icons_container(); 1273}); 1274 1275function force_initialize_fb_icons() { 1276 if (window.FB && window.FB.XFBML && window.FB.XFBML.parse) { 1277 try { 1278 window.FB.XFBML.parse(); 1279 } catch (e) { 1280 window.fbAsyncInit = function () { 1281 FB.init({ 1282 status: true, 1283 cookie: true, 1284 xfbml: true, 1285 version: 'v3.0' 1286 }) 1287 } 1288 window.fbAsyncInit(); 1289 window.FB.XFBML.parse(); 1290 } 1291 } else { 1292 setTimeout(force_initialize_fb_icons, 1000); 1293 } 1294} 1295 1296function sfsi_premium_wechat_follow(url) { 1297 if (jQuery('.sfsi_premium_wechat_scan').length == 0) { 1298 jQuery('body').append( 1299 "<div class='sfsi_premium_wechat_scan sfsi_premium_overlay show'>" + 1300 "<div class='sfsi_premium_inner_display'>
1300" + 1301 '<a class="close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_premium_wechat_scan\')" >Ã</a>' + 1302 "<img src='" + url + "' style='max-width:90%;max-height:90%' />" + 1303 "</div>" + 1304 "</div>" 1305 ); 1306 } else { 1307 jQuery('.sfsi_premium_wechat_scan').removeClass('hide').addClass('show'); 1308 } 1309} 1310 1311function close_overlay(selector) { 1312 if (typeof selector === "undefined") { 1313 selector = '.sfsi_premium_overlay'; 1314 } 1315 jQuery(selector).removeClass('show').addClass('hide').hide(); 1316} 1317 1318function sfsi_premium_wechat_share(url) { 1319 if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { 1320 sfsi_premium_wechat_share_mobile(url); 1321 } else { 1322 if (jQuery('.sfsi_premium_wechat_follow_overlay').length == 0) { 1323 jQuery('body').append( 1324 "<div class='sfsi_premium_wechat_follow_overlay sfsi_premium_overlay show'>" + 1325 "<div class='sfsi_premium_inner_display'>" + 1326 '<a class="close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_premium_wechat_follow_overlay\')" >Ã</a>' + 1327 "<div style='width:95%;max-width:500px; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;'>" + 1328 "<div style='width:90%;margin: 0 auto;text-align:center'>" + 1329 "<div class='sfsi_premium_wechat_qr_display' style='display:inline-block'>" + 1330 "</div>" + 1331 "</div>" + 1332 "<div style='width:80%;margin:10px auto 0 auto;text-align:center;font-weight:900;font-size:25px;'>" + 1333 '"Scan QR Code" in WeChat and press ··· to share!' + 1334 "</div>" + 1335 "</div>" + 1336 "</div>" + 1337 "</div>" 1338 ); 1339 new QRCode(jQuery('.sfsi_premium_wechat_follow_overlay .sfsi_premium_wechat_qr_display')[0], encodeURI(decodeURI(window.location.href))) 1340 jQuery('.sfsi_premium_wechat_follow_overlay .sfsi_premium_wechat_qr_display img').attr('nopin', 'nopin') 1341 } else { 1342 jQuery('.sfsi_premium_wechat_scan').removeClass('hide').addClass('show'); 1343 } 1344 } 1345} 1346 1347function sfsi_premium_wechat_share_mobile(url) { 1348 if (jQuery('.sfsi_premium_wechat_follow_overlay').length == 0) { 1349 jQuery('body').append( 1350 "<div class='sfsi_premium_wechat_follow_overlay sfsi_premium_overlay show'>" + 1351 "<div class='sfsi_premium_inner_display'>
1351" + 1352 '<a class="close_btn sfsi_premium_wechat_mobile_share_close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_premium_wechat_follow_overlay\')" >Ã</a>' + 1353 "<div style='width:95%; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;'>" + 1354 "<div style='width:90%;margin: 0 auto;'>" + 1355 "<input type='text' value='" + encodeURI(decodeURI(window.location.href)) + "' style='width:100%;padding:7px 0;text-align:center' />" + 1356 "</div>" + 1357 "<div style='width:80%;margin:10px auto 0 auto'>" + 1358 "<div style='width:50%;display:inline-block;text-align:center' class='sfsi_premium_upload_butt_container' >" + 1359 "<button onclick='sfsi_copy_text_parent_input(event)' class='upload_butt' >Copy</button>" + 1360 "</div>" + 1361 "<div style='width:50%;display:inline-block;text-align:center' class='sfsi_premium_upload_butt_container' >" + 1362 "<a href='weixin://' class='upload_butt'>Open WeChat</a>" + 1363 "</div>" + 1364 "</div>" + 1365 "</div>" + 1366 "</div>" + 1367 "</div>" 1368 ); 1369 } else { 1370 jQuery('.sfsi_premium_wechat_scan').removeClass('hide').addClass('show'); 1371 } 1372} 1373 1374function sfsi_copy_text_parent_input(event) { 1375 var target = jQuery(event.target); 1376 input_target = target.parent().parent().parent().find('input'); 1377 input_target.select(); 1378 document.execCommand('copy'); 1379} 1380 1381function sfsi_premium_fitText(container) { 1382 if (container.parent().parent().hasClass('sfsi_premium_icons_container_box_fixed_container')) { 1383 // console.log(window.sfsi_premium_fittext_shouldDisplay); 1384 if (window.sfsi_premium_fittext_shouldDisplay === true) { 1385 var container_width = container.width(); 1386 // var container_img_width = container.find('img').width(); 1387 var container_img_width = 65; 1388 // var span=container.find('span').clone(); 1389 var span = container.find('span'); 1390 // var span_original_width = container.find('span').width(); 1391 var span_original_width = container_width - (container_img_width) 1392 span 1393 // .css('display','inline-block') 1394 .css('white-space', 'nowrap') 1395 // .css('width','auto') 1396 ; 1397 var span_flatted_width = span.width(); 1398 if (span_flatted_width == 0) { 1399 span.css('display', "inline"); 1400 span_flatted_width = span.width(); 1401 if (span_flatted_width == 0) { 1402 span.css('font-size', 20); 1403 span_flatted_width = span.width(); 1404 span.css('font-size', 0); 1405 } 1406 span.css('display', "none"); 1407 1408 } 1409 span 1410 // .css('display','inline-block') 1411 .css('white-space', 'unset') 1412 // .css('width','auto') 1413 ; 1414 var shouldDisplay = true; 1415 var fontSize = parseInt(span.css('font-size')); 1416 if (0 == fontSize) { 1417 fontSize = 15; 1418 } 1419 var computed_fontSize = (Math.floor((fontSize * span_original_width) / span_flatted_width)); 1420 1421 if (computed_fontSize < 8) { 1422 shouldDisplay = false; 1423 window.sfsi_premium_fittext_shouldDisplay = false; 1424 } 1425 // console.log(fontSize, span_original_width, span_flatted_width, computed_fontSize, shouldDisplay); 1426 1427 span.css('font-size', Math.min(computed_fontSize, 15)); 1428 span 1429 // .css('display','inline-block') 1430 .css('white-space', 'nowrap') 1431 // .css('width','auto') 1432 ; 1433 if (shouldDisplay) { 1434 span.show(); 1435 } else { 1436 span.hide(); 1437 jQuery('.sfsi_premium_responsive_icon_item_container span').hide(); 1438 } 1439 } 1440 } 1441} 1442 1443function sfsi_premium_resize_icons_container() { 1444 jQuery('.sfsi_premium_responsive_icons').each(function (index, container_elem) { 1445 var container = jQuery(container_elem); 1446 // console.log(container.find('.sfsi_premium_icons_container').hasClass('sfsi_premium_icons_container_box_fully_container'), container.find('.sfsi_premium_icons_container').hasClass('sfsi_premium_responsive_without_counter_icons')) 1447 // if((!container.find('.sfsi_premium_icons_container').hasClass('sfsi_premium_icons_container_box_fully_container'))&&(!container.find('.sfsi_premium_icons_container').hasClass('sfsi_premium_responsive_without_counter_icons'))) { 1448 // var actual_width=container.width(); 1449 // var count_width=container.find('.sfsi_premium_responsive_icons_count').width(); 1450 // // jQuery('.sfsi_premium_responsive_cloned_list').remove(); 1451 // var sfsi_premium_inline_style=container.attr('style'); 1452 // // remove_width 1453 // sfsi_premium_inline_style=sfsi_premium_inline_style.replace(/width:\s*(-|)\d*\s*(px|%)\s*($|!important|)(;|$)/g,''); 1454 // sfsi_premium_inline_style=sfsi_premium_inline_style.replace(/width:\s*auto\s*($|!important|)(;|$)/g,''); 1455 // // sfsi_premium_inline_style.replace('width:\s*\d*\s*(px|%)\s*($|!important|)(;|$)',''); 1456 // var should_width=(actual_width-count_width-27); 1457 // sfsi_premium_inline_style+="width:"+should_width+'px!important;'; 1458 // var abc = container.find('a').filter(function(index,icons){ 1459 // return 'none'!==jQuery(icons).css('display'); 1460 // }); 1461 // scrollWidth=container_elem.scrollWidth; 1462 // var sfsi_premium_icons_active = abc.length; 1463 // container.attr('style',sfsi_premium_inline_style); 1464 // // jQuery('.sfsi_premium_icons_container').css('display','flex'); 1465 // }else 1466 if (container.find('.sfsi_premium_icons_container').hasClass('sfsi_premium_icons_container_box_fully_container') && container.find('.sfsi_premium_icons_container').hasClass('sfsi_premium_responsive_without_counter_icons')) { 1467 var sfsi_premium_inline_style = container.find('.sfsi_premium_icons_container').attr('style'); 1468 sfsi_premium_inline_style = sfsi_premium_inline_style.replace(/width:\s*auto\s*($|!important|)(;|$)/g, ''); 1469 sfsi_premium_inline_style = sfsi_premium_inline_style.replace(/width:\s*(-|)\d*\s*(px|%)\s*($|!important|)(;|$)/g, ''); 1470 sfsi_premium_inline_style += "width:auto!important;"; 1471 container.find('.sfsi_premium_icons_container').attr('style', sfsi_premium_inline_style); 1472 } 1473 }); 1474} 1475 1476SFSI(document).ready(function () { 1477 SFSI(".sfsiplus_inerCnt a.sficn").click(function (event) { 1478 if (SFSI(this).attr('href') == '' || SFSI(this).attr('href') == '#') { 1479 event.preventDefault(); 1480 } 1481 }); 1482}); 1483 1484function escapeDoubleQuotes(str) { 1485 return str.replace(/\\([\s\S])|(")/g, "\\$1$2"); // thanks @slevithan! 1486} 1487 1488function sfsi_premium_pinterest_modal_images(url, title) { 1489 1490 var imgSrc = []; 1491 var page_title; 1492 1493 page_title = SFSI('meta[property="og:title"]').attr('content'); 1494 1495 SFSI('body img').each(function (index) { 1496 var src = SFSI(this).attr('src') || ""; 1497 if (src.substring(0, 5) == "data:") { 1498 srcset = SFSI(this).attr('srcset'); 1499 if (src.indexOf(' ') !== false) { 1500 src = srcset.substring(0, src.indexOf(' ')); 1501 } else { 1502 src = srcset; 1503 } 1504 } 1505 var height = SFSI(this).height(); 1506 var width = SFSI(this).width(); 1507 var image_title = SFSI(this).attr('title') || ""; 1508 var alt = SFSI(this).attr('alt') || ""; 1509 var no_pin = SFSI(this).attr('data-pin-nopin') || ""; 1510 var no_pin_old = SFSI(this).attr('nopin') || ""; 1511 1512 if (src !== "" && !src.startsWith("javascript") && height > 100 && width > 100 && no_pin_old !== "nopin" && no_pin !== "true") { 1513 imgSrc.push({ 1514 src: src, 1515 title: title && "" !== title ? title : (image_title && "" !== image_title ? image_title : alt) 1516 }); 1517 } 1518 }); 1519 1520 sfsi_premium_pinterest_modal(); 1521 event.preventDefault(); 1522 1523 // console.log(imgSrc); 1524 SFSI.each(imgSrc, function (index, val) { 1525 // console.log('discrip',val); 1526 SFSI('.sfsi_premium_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 data-pin-nopin="true" src="' + val.src + '"><span class="sfsi_premium_pinterest_overlay"><img data-pin-nopin="true" height="30" width="30" src="' + window.sfsi_premium_ajax_object.plugin_url + '/images/pinterest.png" /></span></a></div>'); 1527 }), 1528 event.preventDefault(); 1529} 1530 1531function sfsi_premium_pinterest_modal(imgs) {
1532 // if (jQuery('.sfsi_premium_wechat_follow_overlay').length == 0) { 1533 jQuery('body').append( 1534 "<div class='sfsi_premium_wechat_follow_overlay sfsi_premium_overlay show'>" + 1535 "<div class='sfsi_premium_inner_display'>" + 1536 '<a class="close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_premium_wechat_follow_overlay\')" >Ã</a>' + 1537 "<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;'>" + 1538 "<h4 style='margin-left:10px;'>Pin It on Pinterest</h4>" + 1539 "<div class='sfsi_premium_flex_container'>" + 1540 1541 "</div>" + 1542 "</div>" + 1543 "</div>" + 1544 "</div>" 1545 ); 1546} 1547 1548function sfsi_premium_pinterest_absolute(icon) { 1549 1550 var style_icon = "display:none"; 1551 var margin_top = 5; 1552 var margin_h = 5; 1553 var margin_v = 5; 1554 var ismobile = navigator.userAgent.match(/ipad|iphone|ipod|android/i) != null; 1555 var page_title = SFSI('meta[property="og:title"]').attr('content'); 1556 if ((ismobile == false && icon.show_on.includes('desktop'))) { 1557 SFSI("body").append('<div class="sfsi_premium_pinterest_absolute" style="' + style_icon + '"><a class="sfsi_premium_hover_link" href="">' + icon.icon[0].icon + '</a></div>'); 1558 1559 SFSI("body img").mouseover(function (e) { 1560 SFSI('.sfsi_premium_pinterest_absolute').show(); 1561 var src = SFSI(this).attr('src') || ""; 1562 if (src && src.substring(0, 5) == "data:") { 1563 srcset = SFSI(this).attr('srcset'); 1564 if (src.indexOf(' ') !== false) { 1565 src = srcset.substring(0, src.indexOf(' ')); 1566 } else { 1567 src = srcset; 1568 } 1569 } 1570 var height = SFSI(this).height(); 1571 var width = SFSI(this).width(); 1572 var offset = SFSI(this).offset(); 1573 var right = offset.left + width; 1574 var bottom = offset.top + width; 1575 var left = offset.left; 1576 var top = offset.top; 1577 button_width = 40; 1578 button_height = 40; 1579 if (icon.placement == "bottom-left") { 1580 top = offset.top + height - button_height - 5; 1581 left = left + 5; 1582 } else if (icon.placement == "top-right") { 1583 left = offset.left + width - button_width - 5; 1584 top = top + 5; 1585 } else if (icon.placement == "bottom-right") { 1586 top = offset.top + height - button_height - 5; 1587 left = offset.left + width - button_width - 5; 1588 } else { 1589 top = top + 5; 1590 left = left + 5; 1591 } 1592 var no_pin_old = SFSI(this).attr('nopin'); 1593 var no_pin = SFSI(this).attr('data-pin-nopin'); 1594 1595 if (src !== "" && !src.startsWith("javascript") && 1596 height >= parseFloat(icon.height) && width >= parseFloat(icon.width) && no_pin_old !== "nopin" && no_pin !== "true") { 1597 SFSI('.sfsi_premium_pinterest_absolute').css({ 1598 "position": "absolute", 1599 "left": left, 1600 "top": top, 1601 "z-index": 99999, 1602 }); 1603 var target; 1604 if (icon.page == "tab") { 1605 target = "_blank"; 1606 } else { 1607 target = "_self"; 1608 } 1609 // console.log(icon); 1610 var desc = icon.description; 1611 if (desc == "") { 1612 desc = page_title; 1613 } 1614 var share_link = icon.icon[0].share_url_template; 1615 share_link = share_link + encodeURI(window.location); 1616 share_link = share_link + "&media=" + encodeURI(src); 1617 share_link = share_link + "&description=" + encodeURI(desc).replace("+", "%20").replace('#', "%23"); 1618 1619 if ("window" == icon.page) { 1620 SFSI('.sfsi_premium_pinterest_absolute .sfsi_premium_hover_link').attr({ 1621 'href': share_link, 1622 'onclick': 'sfsi_plus_new_window_popup(event)' 1623 }); 1624 } else { 1625 SFSI('.sfsi_premium_pinterest_absolute .sfsi_premium_hover_link').attr({ 1626 'href': share_link, 1627 'target': target 1628 }); 1629 } 1630 } 1631 }); 1632 SFSI("body img").mouseout(function (e) { 1633 SFSI('.sfsi_premium_pinterest_absolute').hide(); 1634 }); 1635 } else if (ismobile == true && icon.show_on.includes('mobile')) { 1636 SFSI("body img").each(function (index, data) { 1637 var src = SFSI(data).attr('src'); 1638 if (src && src.substring(0, 5) == "data:") { 1639 srcset = SFSI(this).attr('srcset'); 1640 if (src.indexOf(' ') !== false) { 1641 src = srcset.substring(0, src.indexOf(' ')); 1642 } else { 1643 src = srcset; 1644 } 1645 } 1646 var height = SFSI(data).height(); 1647 var width = SFSI(data).width(); 1648 var offset = SFSI(data).offset(); 1649 // console.log(offset,data); 1650 var right = offset.left + width; 1651 var bottom = offset.top + width; 1652 var left = offset.left; 1653 var top = offset.top; 1654 button_width = 40; 1655 button_height = 40; 1656 if (icon.placement == "bottom-left") { 1657 top = offset.top + height - button_height - 5; 1658 left = left + 5; 1659 } else if (icon.placement == "top-right") { 1660 left = offset.left + width - button_width - 5; 1661 top = top + 5; 1662 } else if (icon.placement == "bottom-right") { 1663 top = offset.top + height - button_height - 5; 1664 left = offset.left + width - button_width - 5; 1665 } else { 1666 top = top + 5; 1667 left = left + 5; 1668 } 1669 var no_pin_old = SFSI(data).attr('nopin'); 1670 var no_pin = SFSI(data).attr('data-pin-nopin'); 1671 if ( 1672 src !== "" && 1673 !src.startsWith("javascript") && 1674 height >= parseFloat(icon.height) && 1675 width >= parseFloat(icon.width) && 1676 no_pin_old !== "nopin" && 1677 no_pin !== "true" && 1678 data.style.dispaly !== "none" && 1679 !data.src.includes('gravatar.com') 1680 ) { 1681 // console.log(data,index); 1682 SFSI("body").append('<div class="sfsi_premium_pinterest_absolute_mobile sfsi_premium_pinterest_absolute_' + index + '" style="" ><a class="sfsi_premium_hover_link" href="">' + icon.icon[0].icon + '</a></div>'); 1683 SFSI('.sfsi_premium_pinterest_absolute_' + index).css({ 1684 "position": "absolute",
1685 "left": left, 1686 "top": top, 1687 "z-index": 99999, 1688 }); 1689 var target; 1690 if (icon.page == "tab") { 1691 target = "_blank"; 1692 } else { 1693 target = "_self"; 1694 } 1695 // console.log(icon); 1696 var desc = icon.description; 1697 if (desc == "") { 1698 desc = page_title; 1699 } 1700 var share_link = icon.icon[0].share_url_template; 1701 share_link = share_link + encodeURI(window.location); 1702 share_link = share_link + "&media=" + encodeURI(src); 1703 share_link = share_link + "&description=" + encodeURI(desc); 1704 1705 if ("window" == icon.page) { 1706 SFSI('.sfsi_premium_pinterest_absolute_' + index + ' .sfsi_premium_hover_link').attr({ 1707 'href': share_link, 1708 'onclick': 'sfsi_plus_new_window_popup(event)' 1709 }); 1710 } else { 1711 SFSI('.sfsi_premium_pinterest_absolute_' + index + ' .sfsi_premium_hover_link').attr({ 1712 'href': share_link, 1713 'target': target 1714 }); 1715 } 1716 } 1717 }); 1718 } 1719} 1720 1721SFSI(document).ready(function () { 1722 SFSI('.sfsiaftrpstwpr a img').each(function (index) { 1723 var src = SFSI(this).attr('src'); 1724 if (src && src.substring(0, 5) == "data:") { 1725 srcset = SFSI(this).attr('data-src'); 1726 // if(src.indexOf(' ')!==false){ 1727 // src = srcset.substring(0,src.indexOf(' ')); 1728 1729 // }else{ 1730 src = srcset; 1731 // } 1732 }else if(src && src.substring(0, 6) == "image/" && SFSI(this).is('[data-src]')){ 1733 srcset = SFSI(this).attr('data-src'); 1734 src = srcset; 1735 } 1736 SFSI(this).attr('src', src); 1737 }); 1738}); 1739 1740// SFSI(document).ready(function() { 1741// SFSI('.sfsi_premium_wicons').tooltipster({ 1742// interactive: true, 1743// trigger: 'hover', 1744// functionInit: function(instance, helper) { 1745// var $origin = jQuery(helper.origin); 1746// var tooltipdiv =$origin.find('.sfsi_plus_inside'); 1747// console.log(tooltipdiv); 1748// if(tooltipdiv.length>0){ 1749// instance.content = jQuery(tooltipdiv[0].().detach(); 1750// console.log(instance.content); 1751// }else{ 1752// instance.close(); 1753// } 1754// // console.log($origin); 1755// } 1756// }); 1757// });
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.