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 345 function iplus() { 346 rplus = "Microsoft Internet Explorer" === navigator.appName ? aplus - document.documentElement.scrollTop : aplus - window.pageYOffset, 347 Math.abs(rplus) > 0 ? (window.removeEventListener("scroll", iplus), 348 aplus -= rplus * oplus, 349 SFSI("#sfsi_plus_floater").css({ 350 top: Math.round((aplus + t).toString()) + "px", 351 transition: "all 0.6s ease 0s" 352 }), setTimeout(iplus, n)) : window.addEventListener("scroll", iplus, !1) 353 /*console.log((aplus + t).toString(),aplus,t);*/ 354 355 } 356 357 SFSI(window).scroll(function () { 358 359 var documentheight = SFSI("#sfsi_plus_floater").attr("data-top"); 360 var fltrhght = parseInt(SFSI("#sfsi_plus_floater").height()); 361 var fltrtp = parseInt(SFSI("#sfsi_plus_floater").css("top")); 362 if (parseInt(fltrhght) + parseInt(fltrtp) <= documentheight) { 363 window.addEventListener("scroll", iplus, !1) 364 } else { 365 window.removeEventListener("scroll", iplus); 366 SFSI("#sfsi_plus_floater").css("top", documentheight + "px") 367 } 368 }); 369 if ("center" == s) { 370 var t = (jQuery(window).height() - SFSI("#sfsi_plus_floater").height()) / 2 371 372 } else if ("bottom" == s) { 373 var t = jQuery(window).height() - (SFSI("#sfsi_plus_floater").height() + parseInt(SFSI('#sfsi_plus_floater').css('margin-bottom'))); 374 } else { 375 var t = parseInt(s) 376 } 377 var n = 50, 378 oplus = .1, 379 aplus = 0, 380 rplus = 0 381} 382 383function sfsi_plus_shuffle() { 384 var s = []; 385 SFSI(".sfsi_premium_wicons ").each(function (i) { 386 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(".
386sfsi_premium_wicons")), SFSI(this).fadeIn("slow")) 387 }), s = sfsiplus_Shuffle(s), $("#sfsi_plus_wDiv").html(""); 388 for (var i = 0; i < testArray.length; i++) $("#sfsi_plus_wDiv").append(s[i]); 389} 390 391function sfsi_plus_shuffle_new() { 392 var $ = window.jQuery; 393 394 return SFSI('.sfsi_plus_wDiv').each(function (index, container) { 395 var s = []; 396 s = SFSI(container).find(".sfsi_premium_wicons "); 397 s = sfsiplus_Shuffle(s); 398 SFSI(container).html(""); 399 for (var i = 0; i < s.length; i++) { 400 SFSI(s[i]).css('transform', 'none'); 401 SFSI(s[i]).css('position', 'relative'); 402 SFSI(container).append(s[i]); 403 } 404 }) 405 406} 407 408function sfsiplus_Shuffle(s) { 409 for (var i, e, t = s.length; t; i = parseInt(Math.random() * t), e = s[--t], s[t] = s[i], s[i] = e); 410 return s 411} 412 413function sfsi_plus_setCookie(name, value, time) { 414 var date = new Date(); 415 date.setTime(date.getTime() + (time * 1000)); 416 var expires = "; expires=" + date.toGMTString(); 417 document.cookie = name + "=" + value + expires + "; path=/" 418} 419 420function sfsi_plus_getCookie(name) { 421 var nameEQ = name + "="; 422 var ca = document.cookie.split(';'); 423 for (var i = 0; i < ca.length; i++) { 424 var c = ca[i]; 425 while (c.charAt(0) == ' ') c = c.substring(1, c.length); 426 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length) 427 } 428 return null 429} 430 431function sfsi_plus_eraseCookie(name) { 432 sfsi_plus_setCookie(name, "", -1) 433} 434 435function sfsi_plus_hideFooter() {} 436window.onerror = function () {}, SFSI = jQuery, SFSI(window).on('load', function () { 437 SFSI("#sfpluspageLoad").fadeOut(2e3) 438}); 439 440var global_error = 0; 441 442SFSI(document).ready(function (s) { 443 SFSI("body").on("click", ".mailchimpSubscription", function () { 444 var nonce = SFSI(this).attr('data-nonce'); 445 SFSI.ajax({ 446 url: sfsi_premium_ajax_object.ajax_url, 447 type: "post", 448 data: { 449 action: "mailchimpSubscription", 450 nonce: nonce 451 }, 452 async: !0, 453 dataType: "json", 454 success: function (s) { 455 alert(s) 456 } 457 }) 458 }); 459 460 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) { 461 var i = SFSI(".sfsi_plus_FrntInner_changedmonad"), 462 e = SFSI(".sfsi_plus_wDiv"), 463 t = SFSI("#at15s"); 464 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() 465 }), SFSI(".sfsi_plus_outr_div").find(".addthis_button").mousemove(function () { 466 var s = SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().top + 10; 467 SFSI("#at15s").css({ 468 top: s + "px", 469 left: SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().left + "px" 470 }) 471 /*}), SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseover(function() { 472 SFSI(this).attr("src", sfsi_premium_ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg") 473 }), SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() { 474 SFSI(this).attr("src", sfsi_premium_ajax_object.plugin_url + "images/visit_icons/linkedIn.svg")*/ 475 }), SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseover(function () { 476 var src_selected_lang = SFSI(this).attr("src"); 477 SFSI(this).attr("src", src_selected_lang); 478 }), SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseleave(function () { 479 var src_selected_lang = SFSI(this).attr("src"); 480 SFSI(this).attr("src", src_selected_lang); 481 }), SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseover(function () { 482 SFSI(this).css("opacity", "0.9") 483 }), SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseleave(function () { 484 SFSI(this).css("opacity", "1") 485 }), 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 () { 486 SFSI(this).css("opacity", "0.9") 487 }), 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 () { 488 SFSI(this).css("opacity", "1") 489 }), SFSI(".pop-up").on("click", function () { 490 ("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") 491 }), SFSI(document).on("click", '#close_popup', function () { 492 SFSI(".read-overlay").hide("slow") 493 }); 494 var e = 0; 495 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 () { 496 var s = SFSI(this).parent().find("input:radio:first"); 497 "sfsi_plus_popup_border_shadow" == s.attr("name") && sfsi_plus_make_popBox() 498 }), 499 /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI(document).on("click", "img.sfsi_premium_wicon", function (s) { 500 if (!SFSI(this).hasClass('sfsi_premium_pinterest_icon')) { 501 s.stopPropagation(); 502 } 503 var i = SFSI("#sfsi_plus_floater_sec").val(); 504 var iconPos = SFSI(this).parents(".sfsi_premium_wicons ").offset().top - SFSI(window).scrollTop(); 505 var tooltipExists = SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").length > 0; 506 var automatic_tooltip = SFSI(this).parentsUntil("div").siblings("div.sfsi_premium_tooltip_automatic").length > 0; 507 if (iconPos < 130) { 508 if (tooltipExists && automatic_tooltip) { 509 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass('sfsi_premium_tooltip_bottom sfsi_premium_tooltip_bottom_adjust'); 510 SFSI(".sfsi_premium_tooltip_bottom_adjust").parents(".sfsiplus_inerCnt").css("position", "unset"); 511 /*SFSI(".sfsi_premium_tooltip_bottom_adjust").parents(".sfsi_premium_tooltip_align_automatic").css("position", "unset");*/ 512 } 513 } else if (iconPos > (screen.height + 10)) { 514 if (tooltipExists && automatic_tooltip) { 515 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass('sfsi_premium_tooltip_top'); 516 } 517 } else { 518 if (tooltipExists && automatic_tooltip) { 519 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass('sfsi_premium_tooltip_bottom').removeClass('sfsi_premium_tooltip_bottom'); 520 } 521 } 522 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", "10000001"), SFSI(this).parent().parent().css({ 523 "z-index": "999" 524 }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 525 opacity: 1, 526 "z-index": 10 527 }), 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({ 528 opacity: '0.6', 529 "z-index": 10 530 }), 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({ 531 opacity: 1, 532 "z-index": 10 533 }), 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({ 534 opacity: 1, 535 "z-index": 10 536 })), 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({ 537 opacity: 0.6, 538 "z-index": 10 539 }
539)), ("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({ 540 opacity: 1, 541 "z-index": 10, 542 }), 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({ 543 opacity: 1, 544 "z-index": 1e3 545 }), 546 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show() 547 ) 548 }) : SFSI(document).on("mouseenter", "img.sfsi_premium_wicon", function () { 549 var s = SFSI("#sfsi_plus_floater_sec").val(); 550 SFSI("div.sfsi_premium_wicons").css("z-index", "0"); 551 SFSI(this).parent().parent().parent().siblings("div.sfsi_premium_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(); 552 if (SFSI(this).parent().parent().parent().parent().siblings("li").length > 0) { 553 SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_tool_tip_2").css("z-index", "0"); 554 SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_premium_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(); 555 } 556 SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({ 557 "z-index": "999" 558 }); 559 SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 560 opacity: 1, 561 "z-index": 10, 562 }), SFSI(this).parent().css("opacity", "1")); 563 SFSI(this).attr("data-effect") && "fade_out" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 564 opacity: "0.6", 565 "z-index": 10 566 }), SFSI(this).parent().css("opacity", "0.6")); 567 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({ 568 opacity: 1, 569 "z-index": 10 570 }), SFSI(this).parent().css("opacity", "1")) 571 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({ 572 opacity: 1, 573 "z-index": 10, 574 575 })) 576 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({ 577 opacity: "0.6", 578 "z-index": 10 579 })) 580 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")) { 581 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2"); 582 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"); 583 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 584 opacity: 1, 585 "z-index": 10, 586 }) 587 var iconPos = SFSI(this).parents(".sfsi_premium_wicons ").offset().top - SFSI(window).scrollTop(); 588 var tooltipExists = SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").length > 0; 589 var automatic_tooltip = SFSI(this).parentsUntil("div").siblings("div.sfsi_premium_tooltip_automatic").length > 0; 590 591 if (iconPos < 130) { 592 if (tooltipExists && automatic_tooltip) { 593 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass('sfsi_premium_tooltip_bottom sfsi_premium_tooltip_bottom_adjust'); 594 SFSI(".sfsi_premium_tooltip_bottom_adjust").parents(".sfsiplus_inerCnt").css("position", "unset"); 595 /*SFSI(".sfsi_premium_tooltip_bottom_adjust").parents(".sfsi_premium_tooltip_align_automatic").css("position", "unset");*/ 596 } 597 } else if (iconPos > (screen.height + 10)) { 598 if (tooltipExists && automatic_tooltip) { 599 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass('sfsi_premium_tooltip_top'); 600 } 601 } else { 602 if (tooltipExists && automatic_tooltip) { 603 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass('sfsi_premium_tooltip_bottom').removeClass('sfsi_premium_tooltip_bottom'); 604 } 605 } 606 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show(); 607 } else { 608 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2 ").find("span.bot_arow").removeClass("top_big_arow"); 609 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2"); 610 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({ 611 opacity: 1, 612 "z-index": 10 613 }) 614 var iconPos = SFSI(this).parents(".sfsi_premium_wicons ").offset() ? SFSI(this).parents(".sfsi_premium_wicons ").offset().top : 0 - SFSI(window).scrollTop(); 615 var tooltipExists = SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").length > 0; 616 var automatic_tooltip = SFSI(this).parentsUntil("div").siblings("div.sfsi_premium_tooltip_automatic").length > 0; 617 if (iconPos < 130) { 618 if (tooltipExists && automatic_tooltip) { 619 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass('sfsi_premium_tooltip_bottom sfsi_premium_tooltip_bottom_adjust'); 620 SFSI(".sfsi_premium_tooltip_bottom_adjust").parents(".sfsiplus_inerCnt").css("position", "unset"); 621 /*SFSI(".sfsi_premium_tooltip_bottom_adjust").parents(".sfsi_premium_tooltip_align_automatic").css("position", "unset");*/ 622 } 623 } else if (iconPos > (screen.height + 10)) { 624 if (tooltipExists && automatic_tooltip) { 625 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass('sfsi_premium_tooltip_top'); 626 } 627 } else { 628 if (tooltipExists && automatic_tooltip) { 629 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass('sfsi_premium_tooltip_bottom').removeClass('sfsi_premium_tooltip_bottom'); 630 } 631 } 632 SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show() 633 } 634 }), SFSI("div.sfsi_premium_wicons").on("mouseleave", function () { 635 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"), 636 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"), 637 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"), 638 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"), 639 SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale") 640 ), 641 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"), 642 SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale") 643 ), 644 "sfsiplusid_google" == SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").attr("id") ? SFSI("body").on("click", function () { 645 SFSI(this).children(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide() 646 }) : (SFSI(this).css({ 647 "z-index": "0" 648 }), 649 SFSI(this).children(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide() 650 ) 651 }), 652 SFSI("body").on("click", function () { 653 SFSI(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide() 654 }), SFSI(".adminTooltip >a").on("hover", function () { 655 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() 656 }), SFSI(".adminTooltip").on("mouseleave", function () { 657 "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 () { 658 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() 659 }) : (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()) 660 }), SFSI(".expand-area").on("click", function () { 661 "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")) 662 }), SFSI(".sfsi_plus_wDiv").length > 0 && setTimeout(function () { 663 var s = parseInt(SFSI(".sfsi_plus_wDiv").height()) + 15 + "px"; 664 SFSI(".sfsi_plus_holders").each(function () { 665 SFSI(this).css("height", s) 666 }); 667 SFSI(".sfsi_plus_widget").css("min-height", "auto") 668 }, 200); 669 jQuery(document).find('.wp-block-ultimate-social-media-plus-sfsi-plus-share-block').each(function (index, target) { 670 var actual_target = jQuery(target).find('.sfsi_plus_block'); 671 var align = jQuery(actual_target).attr('data-align'); 672 var maxPerRow = jQuery(actual_target).attr('data-count'); 673 var iconType = jQuery(actual_target).attr('data-icon-type'); 674 jQuery.ajax({ 675 'url': '/wp-json/usm-premium-icons/v1/icons/?url=' + encodeURI(decodeURI(window.location.href)) + '&ractangle_icon=' + ('round' == iconType ? 0 : ('responsive' == iconType) ? 2 : 1), 676 'method': 'GET' 677 /*'data':{'is_admin':true,'share_url':'/'}*/ 678 }).done((response) => { 679 jQuery(actual_target).html(response); 680 if (iconType == 'round') { 681 sfsi_plus_changeIconWidth(maxPerRow, target, align); 682 } else {
683 if ('center' === align) { 684 jQuery(target).find('.sfsi_plus_block_text_before_icon').css({ 685 'display': 'inherit' 686 }); 687 } 688 jQuery(target).css({ 689 'text-align': align 690 }); 691 } 692 if (window.gapi) { 693 window.gapi.plusone.go(); 694 window.gapi.plus.go(); 695 window.gapi.ytsubscribe.go(); 696 }; 697 if (window.twttr) { 698 window.twttr.widgets.load(); 699 }; 700 if (window.IN && window.IN.parse) { 701 window.IN.parse(); 702 }; 703 if (window.addthis) { 704 if (window.addthis.toolbox) { 705 window.addthis.toolbox('.addthis_button.sficn'); 706 } else { 707 window.addthis.init(); 708 window.addthis.toolbox('.addthis_button.sficn'); 709 } 710 }; 711 if (window.PinUtils) { 712 window.PinUtils.build(); 713 }; 714 if (window.FB) { 715 if (window.FB.XFBML) { 716 window.FB.XFBML.parse(); 717 } 718 }; 719 }).fail((response) => { 720 jQuery(actual_target).html(response.responseText.replace('/\\/g', '')); 721 }); 722 }); 723 if (undefined !== window.location.hash) { 724 switch (window.location.hash) { 725 case '#ui-id-3': 726 jQuery('#ui-id-3').click(); 727 case '#ui-id-1': 728 jQuery('#ui-id-1').click(); 729 } 730 } 731 var sfsi_premium_responsive_icon_bg_color = { 732 "Buffer": "#151515", 733 "Facebook": "#336699", 734 "Flicker": "#FF0084", 735 "Follow": "#00B04E", 736 "Google": "#DD4B39", 737 "Houzz": "#7BC044", 738 "Google": "#DD4B39", 739 "Houzz": "#7BC044", 740 "Instagram": "", 741 "Linkedin": "#0877B5", 742 "Mail": "#343D44", 743 "Pinterest": "#CB3233", 744 "Reddit": "#FF4500", 745 "RSS": "#FF9845", 746 "Skype": "#00A9F0", 747 "Share": "#26AD62", 748 "Snapchat": "#F5E728", 749 "Soundcloud": "#FF4500", 750 "Speicifcfeeds": "#E54543", 751 "Tumblr": "#36465F", 752 "Twitter": "#55ACEE", 753 "Vimeo": "#1AB7EA", 754 "Whatsapp": "#3CD946", 755 "Yelp": "#C6331E", 756 "Yummly": "#E36308", 757 "Youtube": "#E02F2F", 758 "Amazon": "#2E2B2C", 759 "Angieslist": "#3EA258", 760 "Blogger": "#F38032", 761 "Goodreads": "#784733", 762 "Print": "#353535", 763 "Steam": "#373435", 764 "Stumbleupon": "#E9513D", 765 "Telegram": "#33A1D1", 766 "Twitch": "#6B529B", 767 "Vk": "#4E77A2", 768 "Xing": "#286266", 769 "Flipboard": "#E02828", 770 "Bandcamp": "#6199AA", 771 "Spotify": "#1ED760", 772 "Odnoklassniki": "#F58220", 773 "Pocket": "#EF4056", 774 "Meetup": "#ED1C40", 775 "Discord": "#6E8ACC", 776 "GitHub": "#000000", 777 "Wordpress": "#464342", 778 "CodePen": "#231F20", 779 "Etsy": "#F27224", 780 "Meneame": "#E35614", 781 "Digg": "#000000", 782 "Delicious": "#000000", 783 "Frype.com": "#FF6600", 784 "THN": "#190A8D", 785 "MeWe": "#190A8D", 786 "Viber": "#7C529E", 787 "Line": "#3ACE01", 788 "LiveJournal": "#15374C", 789 "IMDB": "#E5B922", 790 "Patreon": "#FF5900", 791 "Dloky": "#E73F38", 792 "BBB": "#0D7C99", 793 "Weibo": "#E6162D", 794 "Academia": "#41454A", 795 "Wikipedia": "#000000", 796 "TripAdvisor": "#00AF87", 797 "Zillow": "#3871B8", 798 "Realtor": "#000000", 799 "Messenger": "#447BBF", 800 "Yahoo": "#6A2E8C", 801 "iTunes": "#EE3459", 802 "AppStore": "#3C69B3", 803 "PlayStore": "#1AB0C3", 804 "SellCodes": "#149E4A", 805 "Windows": "Store#118B44", 806 "BookBub": "#E61E25", 807 "Threema": "#50504F", 808 "Stocktwits": "#283646", 809 "Refind": "#1A4696", 810 "Thumbtack": "#F27802", 811 "Mixcloud": "#232323", 812 "Slack2": "#232323", 813 "Airbnb": "#FF7977", 814 "Kudzu": "#1790BF", 815 "movingcompanyrevies": "#405361", 816 "Superpages": "#F8981B", 817 "QQ2": "#D5D5D5", 818 "WeChat": "#4BAD33", 819 "scoop.it": "#93C240", 820 "Venmo": "#4395CF", 821 "Apple": "#000000", 822 "PayPal": "linear-gradient(#1F87C9 , #223463)", 823 "mymovingreviews": "#039146", 824 "yellowpages": "#F4E72A", 825 "medium": "#000000", 826 "ReFind2": "#0090F2", 827 "stackoverflow": "#F08026", 828 "Apple": "Pay#000000", 829 "Blogvlovinv": "#000000", 830 "Hometalk": "#51A2D6", 831 "stitcher": "#000000", 832 "iheart": "#DB0A38", 833 "periscope": "#41A9C7", 834 "Bitcoin": "#F7931A", 835 "GAB": "#25CC80", 836 "Teachers Pay Teachers": "#09A56C", 837 "Pocket": "casts#F44336", 838 "Next": "Door#19975D", 839 "Home": "Advisor #F69020", 840 "Vine": "#00B389", 841 "WikiDIY": "#678C3C", 842 "Talk": "#FFE812", 843 "Dailymotion": "#0066DC", 844 "Mix.com": "", 845 "Ravelry": "#DC2357", 846 "Steem": "#2463A6", 847 "ebay": "#E1E1E1", 848 "Steemit": "#64C3A5", 849 "Trustpilot": "linear-gradient(#F05426 , #F78D2A) ", 850 "DTube": "#ED1E24", 851 "Phone": "#51AD47", 852 "Spreaker": "#0E0E0E", 853 "HackerNews": "#F26622", 854 "Booking.com": "radial-gradient(#2654A5 , #233D7B)", 855 "tunein": "#3EB4A7", 856 "Google": "#F6F6F6", 857 "Behance": "#2A2A2A", 858 "500px": "#2A2A2A", 859 "Apple podcast": "linear-gradient(#7E29C5 , #D36CFB)", 860 "xiaohongshu": "#F40A0B", 861 "TuneIn": "#1C203C", 862 "About": "us#1496E2", 863 "Informations": "#E9891D", 864 "Gallery": "#27BA9A", 865 "Question": "#F74741", 866 "Text": -"icon#363436", 867 "Home": "#5C80C8", 868 "Shopping cart": "#F7AB00", 869 "Calendar": "#A00341", 870 "Shazam": "#0187FD", 871 "Poshmark": "linear-gradient(#832432 , #B63A4D)", 872 "Tidal.com": "#202020", 873 "Zalo.com": "#02ABD3" 874 } 875 for (var key in sfsi_premium_responsive_icon_bg_color) { 876 if (sfsi_premium_responsive_icon_bg_color.hasOwnProperty(key)) { 877 var icon_name = key.toLowerCase(); 878 var class_name = 'sfsi_premium_responsive_icon_' + icon_name + '_container'; 879 jQuery('.' + class_name).css('background-color', sfsi_premium_responsive_icon_bg_color[key]); 880 } 881 } 882}); 883 884 885function sfsi_plus_update_iconcount() { 886 SFSI(".wp-block-ultimate-social-media-plus-sfsi-plus-share-block").each(function () { 887 var icon_count = SFSI(this).find(".sfsi_plus_block").attr('data-count'); 888 var icon_align = SFSI(this).find(".sfsi_plus_block").attr('data-align'); 889 /*sfsi_plus_changeIconWidth(icon_count,this);*/ 890 891 if (jQuery(this).find('.sfsiplus_norm_row').length < 1) { 892 setTimeout(function () { 893 sfsi_plus_changeIconWidth(icon_count, this, icon_align); 894 }, 1000); 895 } else { 896 sfsi_plus_changeIconWidth(icon_count, this, icon_align); 897 } 898 }); 899} 900 901function sfsi_plus_changeIconWidth(per_row = null, target, icon_align) {
902 var iconWidth = parseInt(jQuery(target).find('.sfsiplus_norm_row div').css('width')) || 40; 903 var iconMargin = parseInt(jQuery(target).find('.sfsiplus_norm_row div').css('margin-left')) || 0; 904 905 var wrapperWidth = (iconWidth + iconMargin) * per_row; 906 jQuery(target).find('.sfsiplus_norm_row').css({ 907 'width': wrapperWidth + 'px' 908 }); 909 jQuery(target).find('.sfsi_plus_block').css({ 910 'width': wrapperWidth + 'px' 911 }); 912 jQuery(target).find('.sfsi_plus_block_text_before_icon').css({ 913 'padding-top': '12px' 914 }); 915 if ('center' === icon_align) { 916 jQuery(target).find('.sfsi_plus_block_text_before_icon').css({ 917 'display': 'inherit' 918 }); 919 } 920 jQuery(target).css({ 921 'text-align': icon_align 922 }); 923} 924 925function sfsi_plus_new_window_popup(event) { 926 927 event.preventDefault(); 928 929 var target = SFSI(event.target); 930 931 if (target.tagName !== "a") { 932 target = target.parents('a'); 933 } 934 935 var url = target.attr('href'); 936 937 if (undefined != url && null != url && url.length > 0) { 938 939 var cond1 = (new RegExp('https://twitter.com/intent/tweet')).test(url); 940 /*console.log(cond1, url, !cond1 && "javascript:void(0);" != url);*/ 941 if ("javascript:void(0);" != url) { 942 var x = (jQuery(window).width() - 520) / 2; 943 var y = (jQuery(window).height() - 570) / 2; 944 window.open(url, 'window_popup', 'height=570,width=520,location=1,status=1,left=' + x + ',top=' + y + ',scrollbars=1'); 945 } 946 } 947} 948var sfsiplus_initTop = new Array(); 949window.sfsi_premium_fittext_shouldDisplay = true; 950 951/*image hover icon*/ 952function sfsi_hover_icon_handler() { 953 var api_link = document.querySelectorAll('link[rel="https://api.w.org/"]'); 954 if (api_link.length > 0) { 955 var api_root = document.querySelectorAll('link[rel="https://api.w.org/"]')[0].getAttribute('href'); 956 } 957 var is_archive = SFSI("body").hasClass("archive"); 958 var is_date = SFSI("body").hasClass("date"); 959 var is_author = SFSI("body").hasClass("author"); 960 961 if (undefined !== api_root) { 962 SFSI.ajax({ 963 'url': api_root + 'usm-premium-icons/v1/hover_icon_setting/', 964 'method': 'GET', 965 'data': { 966 'url': window.location.href, 967 'is_archive': is_archive ? 'yes' : 'no', 968 'is_date': is_date ? 'yes' : 'no', 969 'is_author': is_author ? 'yes' : 'no', 970 971 } 972 }).then(function (sfsi_plus_result) { 973 /*settings=JSON.parse(result); 974 settings = result;*/ 975 if (undefined !== sfsi_plus_result.icon && sfsi_plus_result.icon.length > 0) { 976 if (undefined === window.sfsi_premium) { 977 window.sfsi_premium = { 978 img_hover_setting: sfsi_plus_result 979 } 980 } else { 981 window.sfsi_premium.img_hover_setting = sfsi_plus_result; 982 } 983 if (sfsi_plus_result.type == "regular") { 984 sfsi_register_img_hover_handler(); 985 } else { 986 987 sfsi_premium_pinterest_absolute(sfsi_plus_result); 988 } 989 } 990 }); 991 } else { 992 SFSI.ajax({ 993 'url': sfsi_premium_ajax_object.ajax_url, 994 'type': 'POST', 995 async: !0, 996 dataType: "json", 997 'data': { 998 'action': 'premium_hover_icon_settings', 999 'url': window.location.href, 1000 'is_archive': is_archive ? 'yes' : 'no', 1001 'is_date': is_date ? 'yes' : 'no', 1002 'is_author': is_author ? 'yes' : 'no', 1003 } 1004 }).then(function (sfsi_plus_result) { 1005 /*settings = result;*/ 1006 if (undefined !== sfsi_plus_result.icon && sfsi_plus_result.icon.length > 0) { 1007 if (undefined === window.sfsi_premium) { 1008 window.sfsi_premium = { 1009 img_hover_setting: sfsi_plus_result 1010 } 1011 } else { 1012 window.sfsi_premium.img_hover_setting = sfsi_plus_result; 1013 } 1014 if (sfsi_plus_result.type == "regular") { 1015 sfsi_register_img_hover_handler(); 1016 } else { 1017 sfsi_premium_pinterest_absolute(sfsi_plus_result); 1018 } 1019 } 1020 1021 }); 1022 } 1023 1024 function sfsi_register_img_hover_handler() { 1025 1026 var ismobile = navigator.userAgent.match(/ipad|iphone|ipod|android/i) != null; 1027 var device_check = false; 1028 try { 1029 var slength = "undefined" !== typeof window.sfsi_premium.img_hover_setting.show_on.length ? 1030 window.sfsi_premium.img_hover_setting.show_on.length : 0; 1031 1032 if (slength > 0) { 1033 1034 if (ismobile) { 1035 for (var i = 0; i < slength; i++) { 1036 if (window.sfsi_premium.img_hover_setting.show_on[i] === 'mobile') { 1037 device_check = true; 1038 } 1039 } 1040 } else { 1041 for (var i = 0; i < slength; i++) { 1042 if (window.sfsi_premium.img_hover_setting.show_on[i] === 'desktop') { 1043 device_check = true; 1044 } 1045 } 1046 } 1047 } 1048 } catch (e) { 1049 1050 } 1051 1052 SFSI(document).on('mouseover', 'img', function () { 1053 if ( 1054 SFSI(this).attr('data-pin-nopin') !== 'true' && 1055 !SFSI(this).hasClass('sfsi_premium_wicon') && 1056 ( 1057 SFSI(this).width() > parseInt(window.sfsi_premium.img_hover_setting.width) && 1058 SFSI(this).height() > parseInt(window.sfsi_premium.img_hover_setting.height) 1059 ) && 1060 SFSI(this).parents('.sfsi_premium_image_hover_container').length == 0 && 1061 window.sfsi_premium && 1062 window.sfsi_premium.img_hover_setting && 1063 device_check 1064 ) { 1065 var settings = window.sfsi_premium.img_hover_setting; 1066 var container = document.createElement('div'); 1067 container.className = "sfsi_premium_image_hover_container"; 1068 var parent = jQuery(this).parent(); 1069 var icons_container = document.createElement('div'); 1070 icons_container.className = "sfsi_premium_image_hover_icon_container"; 1071 var margin_top = 5; 1072 var margin_h = 5; 1073 var margin_v = 5; 1074 if (window.sfsi_premium.img_hover_setting.icon_type === "small-rectangle") { 1075 margin_top = 2; 1076 margin_bottom = 2; 1077 margin_h = 2; 1078 margin_v = 0; 1079 } 1080 if (window.sfsi_premium.img_hover_setting['placement'] === 'bottom-right') { 1081 icons_container.style = "position:absolute;right:5px;bottom:5px"; 1082 } else if (window.sfsi_premium.img_hover_setting['placement'] === 'top-right') { 1083 icons_container.style = "position:absolute;right:5px;top:" + margin_top + "px;"; 1084 } else if (window.sfsi_premium.img_hover_setting['placement'] === 'bottom-left') { 1085 icons_container.style = "position:absolute;
1085left:5px;bottom:5px;"; 1086 } else { 1087 icons_container.style = "position:absolute;left:5px;top:" + margin_top + 'px'; 1088 } 1089 var target_image_src = SFSI(this).attr('src'); 1090 if (target_image_src.substring(0, 5) == "data:") { 1091 srcset = SFSI(this).attr('srcset'); 1092 if (target_image_src.indexOf(' ') !== false) { 1093 target_image_src = srcset.substring(0, target_image_src.indexOf(' ')); 1094 } else { 1095 target_image_src = srcset; 1096 } 1097 } 1098 var target_image_title = SFSI(this).attr('title') || SFSI(this).attr('alt') || SFSI('meta[property="og:title"]').attr('content'); 1099 var current_url = window.location.href; 1100 var image_width = SFSI(this).width(); 1101 var image_height = SFSI(this).height(); 1102 var image_with_figure = false; 1103 if (SFSI(this).parent('figure').length === 1) { 1104 image_with_figure = true; 1105 } 1106 settings.icon.forEach(function (icon_setting) { 1107 var icon = document.createElement('a'); 1108 target_image_title = encodeURIComponent(target_image_title).replace('+', '%20'); 1109 target_image_title = target_image_title.replace('#', '%23'); 1110 icon.href = icon_setting.share_url_template + encodeURIComponent(current_url) + '&media=' + encodeURIComponent(target_image_src) + '&description=' + target_image_title; 1111 icon.target = "_blank" 1112 icon.className = "sfsi_open_window" 1113 icon.innerHTML = icon_setting.icon; 1114 icons_container.appendChild(icon); 1115 }); 1116 container.appendChild(icons_container); 1117 if (SFSI(this).parent('a').length === 1) { 1118 var target = SFSI(this).parent().clone(); 1119 target.addClass('sfsi_premium_hover_img'); 1120 container.appendChild(target[0]); 1121 SFSI(this).parent().replaceWith(container); 1122 } else { 1123 var target = SFSI(this).clone(); 1124 target.addClass('sfsi_premium_hover_img'); 1125 container.appendChild(target[0]); 1126 SFSI(this).replaceWith(container); 1127 } 1128 container_2 = parent.find('.sfsi_premium_image_hover_icon_container'); 1129 var container_height = SFSI(container_2).height(); 1130 var container_width = SFSI(container_2).width(); 1131 if (container_height > image_height && image_with_figure === true) { 1132 image_with_figure = false; 1133 } 1134 1135 var icon_margin_top = SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('top'); 1136 var icon_margin_bottom = SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('bottom'); 1137 var icon_margin_right = SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('right'); 1138 /*if(icon_margin_top!=="0px" && image_with_figure==false){ 1139 SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('margin-top',((container_height-image_height)+parseInt(icon_margin_top))+'px' ) 1140 }*/ 1141 if (icon_margin_bottom !== "0px" && image_with_figure == false && window.sfsi_premium.img_hover_setting.icon_type !== 'square') { 1142 SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('bottom', (((container_height - image_height) / 2) + margin_top) + 'px') 1143 } 1144 var adjustment_h = (container_width - image_width) / 2; 1145 if (adjustment_h < 0) { 1146 adjustment_h = adjustment_h * -1; 1147 } 1148 /*if (icon_margin_right !== "0px" && image_with_figure == false) { 1149 SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('right', ((adjustment_h) + margin_top) + 'px') 1150 }*/ 1151 jQuery('.sfsi_premium_image_hover_container').css('display', 'block'); 1152 /*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());*/ 1153 if (window.sfsi_premium.img_hover_setting['placement'] === 'bottom-right') { 1154 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'); 1155 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'); 1156 } else if (window.sfsi_premium.img_hover_setting['placement'] === 'top-right') { 1157 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'); 1158 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'); 1159 } else if (window.sfsi_premium.img_hover_setting['placement'] === 'bottom-left') { 1160 /*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');*/ 1161 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'); 1162 } else { 1163 /*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'); 1164 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');*/ 1165 } 1166 1167 } 1168 SFSI(document).on('click', 'a.sfsi_open_window', function (event) { 1169 event.preventDefault(); 1170 var url = SFSI(this).attr('href'); 1171 window.open(url, "Share This Image", "width=800,height=350,status=0,toolbar=0,menubar=0,location=1,scrollbars=1"); 1172 }) 1173 }); 1174 SFSI(document).on('mouseleave', '.sfsi_premium_image_hover_container', function () { 1175 var restore_img = SFSI(this).find('.sfsi_premium_hover_img'); 1176 restore_img.removeClass('sfsi_premium_hover_img'); 1177 SFSI(this).replaceWith(restore_img); 1178 }); 1179 } 1180 1181} 1182SFSI(document).ready(function () { 1183 SFSI(document).on('click', 'a.sfsi_open_window', function (event) { 1184 event.preventDefault(); 1185 var url = SFSI(this).attr('href'); 1186 window.open(url, "Share This Image", "width=800,height=350,status=0,toolbar=0,menubar=0,location=1,scrollbars=1"); 1187 }) 1188 var sfsi_premium_responsive_icon_bg_color = { 1189 "Buffer": "#151515", 1190 "Facebook": "#336699", 1191 "Flicker": "#FF0084", 1192 "Follow": "#16CB30", 1193 "GooglePlus": "#DD4B39", 1194 "Houzz": "#7BC044", 1195 "Google": "#DD4B39", 1196 "Houzz": "#7BC044", 1197 "Instagram": "", 1198 "Linkedin": "#0877B5", 1199 "Mail": "#343D44", 1200 "Pinterest": "#CB3233", 1201 "Reddit": "#FF4500", 1202 "RSS": "#FF9845", 1203 "Skype": "#00A9F0", 1204 "Share": "#26AD62", 1205 "Snapchat": "#F5E728", 1206 "Soundcloud": "#FF4500", 1207 "Speicifcfeeds": "#E54543", 1208 "Tumblr": "#36465F", 1209 "Twitter": "#55ACEE", 1210 "Vimeo": "#1AB7EA", 1211 "Whatsapp": "#3CD946", 1212 "Yelp": "#C6331E", 1213 "Yummly": "#E36308", 1214 "Youtube": "#E02F2F", 1215 "Amazon": "#2E2B2C", 1216 "Angieslist": "#3EA258", 1217 "Blogger": "#F38032", 1218 "Goodreads": "#784733", 1219 "Print": "#353535", 1220 "Steam": "#373435", 1221 "Stumbleupon": "#E9513D", 1222 "Telegram": "#33A1D1", 1223 "Twitch": "#6B529B", 1224 "Vk": "#4E77A2", 1225 "Xing": "#286266", 1226 "Flipboard": "#E02828", 1227 "Bandcamp": "#6199AA", 1228 "Spotify": "#1ED760", 1229 "Odnoklassniki": "#F58220", 1230 "Pocket": "#EF4056", 1231 "Meetup": "#ED1C40", 1232 "Discord": "#6E8ACC", 1233 "GitHub": "#000000", 1234 "Wordpress": "#464342", 1235 "CodePen": "#231F20", 1236 "Etsy": "#F27224", 1237 "Meneame": "#E35614", 1238 "Digg": "#000000", 1239 "Delicious": "#000000", 1240 "Frype.com": "#FF6600", 1241 "THN": "#190A8D", 1242 "MeWe": "#190A8D", 1243 "Viber": "#7C529E", 1244 "Line": "#3ACE01", 1245 "LiveJournal": "#15374C", 1246 "IMDB": "#E5B922", 1247 "Patreon": "#FF5900", 1248 "Dloky": "#E73F38",
1249 "BBB": "#0D7C99", 1250 "Weibo": "#E6162D", 1251 "Academia": "#41454A", 1252 "Wikipedia": "#000000", 1253 "TripAdvisor": "#00AF87", 1254 "Zillow": "#3871B8", 1255 "Realtor": "#000000", 1256 "Messenger": "#447BBF", 1257 "Yahoo": "#6A2E8C", 1258 "iTunes": "#EE3459", 1259 "AppStore": "#3C69B3", 1260 "PlayStore": "#1AB0C3", 1261 "SellCodes": "#149E4A", 1262 "Windows": "Store#118B44", 1263 "BookBub": "#E61E25", 1264 "Threema": "#50504F", 1265 "Stocktwits": "#283646", 1266 "Refind": "#1A4696", 1267 "Thumbtack": "#F27802", 1268 "Mixcloud": "#232323", 1269 "Slack2": "#232323", 1270 "Airbnb": "#FF7977", 1271 "Kudzu": "#1790BF", 1272 "movingcompanyrevies": "#405361", 1273 "Superpages": "#F8981B", 1274 "QQ2": "#D5D5D5", 1275 "WeChat": "#4BAD33", 1276 "scoop.it": "#93C240", 1277 "Venmo": "#4395CF", 1278 "Apple": "#000000", 1279 "PayPal": "linear-gradient(#1F87C9 , #223463)", 1280 "mymovingreviews": "#039146", 1281 "yellowpages": "#F4E72A", 1282 "medium": "#000000", 1283 "ReFind2": "#0090F2", 1284 "stackoverflow": "#F08026", 1285 "Apple": "Pay#000000", 1286 "Blogvlovinv": "#000000", 1287 "Hometalk": "#51A2D6", 1288 "stitcher": "#000000", 1289 "iheart": "#DB0A38", 1290 "periscope": "#41A9C7", 1291 "Bitcoin": "#F7931A", 1292 "GAB": "#25CC80", 1293 "Teachers Pay Teachers": "#09A56C", 1294 "Pocket Cast": "#F44336", 1295 "Next": "#19975D", 1296 "Home Advisor": "#F69020", 1297 "Vine": "#00B389", 1298 "WikiDIY": "#678C3C", 1299 "Talk": "#FFE812", 1300 "Dailymotion": "#0066DC", 1301 "Mix.com": "", 1302 "Ravelry": "#DC2357", 1303 "Steem": "#2463A6", 1304 "ebay": "#E1E1E1", 1305 "Steemit": "#64C3A5", 1306 "Trustpilot": "linear-gradient(#F05426 , #F78D2A) ", 1307 "DTube": "#ED1E24", 1308 "Phone": "#51AD47", 1309 "Spreaker": "#0E0E0E", 1310 "HackerNews": "#F26622", 1311 "Booking.com": "radial-gradient(#2654A5 , #233D7B)", 1312 "tunein": "#3EB4A7", 1313 "Google": "#F6F6F6", 1314 "Behance": "#2A2A2A", 1315 "500px": "#2A2A2A", 1316 "Apple podcast": "linear-gradient(#7E29C5 , #D36CFB)", 1317 "xiaohongshu": "#F40A0B", 1318 "TuneIn": "#1C203C", 1319 "About": "us#1496E2", 1320 "Informations": "#E9891D", 1321 "Gallery": "#27BA9A", 1322 "Question": "#F74741", 1323 "Text": -"icon#363436", 1324 "Home": "#5C80C8", 1325 "Shopping cart": "#F7AB00", 1326 "Calendar": "#A00341", 1327 "Shazam": "#0187FD", 1328 "Poshmark": "linear-gradient(#832432 , #B63A4D)", 1329 "Tidal.com": "#202020", 1330 "Zalo.com": "#02ABD3" 1331 } 1332 for (var key in sfsi_premium_responsive_icon_bg_color) { 1333 if (sfsi_premium_responsive_icon_bg_color.hasOwnProperty(key)) { 1334 var icon_name = key.toLowerCase(); 1335 var class_name = 'sfsi_premium_responsive_icon_' + icon_name + '_container'; 1336 jQuery('.' + class_name).css('background-color', sfsi_premium_responsive_icon_bg_color[key]); 1337 } 1338 } 1339 jQuery(document).on('mouseenter', '.sfsi_premium_icons_container a', function () { 1340 jQuery(this).css('opacity', 0.8); 1341 }) 1342 jQuery(document).on('mouseleave', '.sfsi_premium_icons_container a', function () { 1343 jQuery(this).css('opacity', 1); 1344 }) 1345 1346 jQuery('.sfsi_premium_icons_container a').each(function (index, a_container) { 1347 if (jQuery(a_container).css('display') !== "none") { 1348 sfsi_premium_fitText(jQuery(a_container).find('.sfsi_premium_responsive_icon_item_container')); 1349 } 1350 }); 1351 var sfsi_premium_rtime; 1352 var sfsi_premium_timeout = false; 1353 var sfsi_premium_delta = 500; 1354 window.sfsi_premium_fittext_shouldDisplay = true; 1355 jQuery(window).resize(function () { 1356 sfsi_premium_rtime = new Date(); 1357 /*console.log('resize', sfsi_premium_timeout, sfsi_premium_rtime, sfsi_premium_delta);*/ 1358 if (sfsi_premium_timeout === false) { 1359 sfsi_premium_timeout = true; 1360 setTimeout(sfsi_premium_resizeend, sfsi_premium_delta); 1361 } 1362 }); 1363 1364 function sfsi_premium_resizeend() { 1365 /*console.log((new Date()).getTime(), sfsi_premium_rtime.getTime());*/ 1366 if ((new Date()).getTime() - sfsi_premium_rtime.getTime() < sfsi_premium_delta) { 1367 /*console.log('sfsi_premium resize reset');*/ 1368 setTimeout(sfsi_premium_resizeend, sfsi_premium_delta); 1369 } else { 1370 sfsi_premium_timeout = false; 1371 /*console.log('sfsi_premium resize executed');*/ 1372 sfsi_premium_resize_icons_container(); 1373 jQuery('.sfsi_premium_icons_container a').each(function (index, a_container) { 1374 if (jQuery(a_container).css('display') !== "none") { 1375 sfsi_premium_fitText(jQuery(a_container).find('.sfsi_premium_responsive_icon_item_container')); 1376 } 1377 }); 1378 } 1379 } 1380 sfsi_premium_resize_icons_container(); 1381}); 1382 1383function force_initialize_fb_icons() { 1384 if (window.FB && window.FB.XFBML && window.FB.XFBML.parse) { 1385 try { 1386 window.FB.XFBML.parse(); 1387 } catch (e) { 1388 window.fbAsyncInit = function () { 1389 FB.init({ 1390 status: true, 1391 cookie: true, 1392 xfbml: true, 1393 version: 'v3.0' 1394 }) 1395 } 1396 window.fbAsyncInit(); 1397 window.FB.XFBML.parse(); 1398 } 1399 } else { 1400 setTimeout(force_initialize_fb_icons, 1000); 1401 } 1402} 1403 1404function sfsi_premium_wechat_follow(url) { 1405 if (jQuery('.sfsi_premium_wechat_scan').length == 0) { 1406 jQuery('body').append( 1407 "<div class='sfsi_premium_wechat_scan sfsi_premium_overlay show'>" + 1408 "<div class='sfsi_premium_inner_display'>
1408" + 1409 '<a class="close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_premium_wechat_scan\')" >Ã</a>' + 1410 "<img src='" + url + "' style='max-width:90%;max-height:90%' />" + 1411 "</div>" + 1412 "</div>" 1413 ); 1414 } else { 1415 jQuery('.sfsi_premium_wechat_scan').removeClass('hide').addClass('show'); 1416 } 1417} 1418 1419function close_overlay(selector) { 1420 if (typeof selector === "undefined") { 1421 selector = '.sfsi_premium_overlay'; 1422 } 1423 jQuery(selector).removeClass('show').addClass('hide').hide(); 1424} 1425 1426function sfsi_premium_wechat_share(url) { 1427 if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { 1428 sfsi_premium_wechat_share_mobile(url); 1429 } else { 1430 if (jQuery('.sfsi_premium_wechat_follow_overlay').length == 0) { 1431 jQuery('body').append( 1432 "<div class='sfsi_premium_wechat_follow_overlay sfsi_premium_overlay show'>" + 1433 "<div class='sfsi_premium_inner_display'>" + 1434 '<a class="close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_premium_wechat_follow_overlay\')" >Ã</a>' + 1435 "<div style='width:95%;max-width:500px; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;'>" + 1436 "<div style='width:90%;margin: 0 auto;text-align:center'>" + 1437 "<div class='sfsi_premium_wechat_qr_display' style='display:inline-block'>" + 1438 "</div>" + 1439 "</div>" + 1440 "<div style='width:80%;margin:10px auto 0 auto;text-align:center;font-weight:900;font-size:25px;'>" + 1441 '"Scan QR Code" in WeChat and press ··· to share!' + 1442 "</div>" + 1443 "</div>" + 1444 "</div>" + 1445 "</div>" 1446 ); 1447 new QRCode(jQuery('.sfsi_premium_wechat_follow_overlay .sfsi_premium_wechat_qr_display')[0], encodeURI(decodeURI(window.location.href))) 1448 jQuery('.sfsi_premium_wechat_follow_overlay .sfsi_premium_wechat_qr_display img').attr('nopin', 'nopin') 1449 } else { 1450 jQuery('.sfsi_premium_wechat_scan').removeClass('hide').addClass('show'); 1451 } 1452 } 1453} 1454 1455function sfsi_premium_wechat_share_mobile(url) { 1456 if (jQuery('.sfsi_premium_wechat_follow_overlay').length == 0) { 1457 jQuery('body').append( 1458 "<div class='sfsi_premium_wechat_follow_overlay sfsi_premium_overlay show'>" + 1459 "<div class='sfsi_premium_inner_display'>
1459" + 1460 '<a class="close_btn sfsi_premium_wechat_mobile_share_close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_premium_wechat_follow_overlay\')" >Ã</a>' + 1461 "<div style='width:95%; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;'>" + 1462 "<div style='width:90%;margin: 0 auto;'>" + 1463 "<input type='text' value='" + encodeURI(decodeURI(window.location.href)) + "' style='width:100%;padding:7px 0;text-align:center' />" + 1464 "</div>" + 1465 "<div style='width:80%;margin:10px auto 0 auto'>" + 1466 "<div style='width:50%;display:inline-block;text-align:center' class='sfsi_premium_upload_butt_container' >" + 1467 "<button onclick='sfsi_copy_text_parent_input(event)' class='upload_butt' >Copy</button>" + 1468 "</div>" + 1469 "<div style='width:50%;display:inline-block;text-align:center' class='sfsi_premium_upload_butt_container' >" + 1470 "<a href='weixin://' class='upload_butt'>Open WeChat</a>" + 1471 "</div>" + 1472 "</div>" + 1473 "</div>" + 1474 "</div>" + 1475 "</div>" 1476 ); 1477 } else { 1478 jQuery('.sfsi_premium_wechat_scan').removeClass('hide').addClass('show'); 1479 } 1480} 1481 1482function sfsi_copy_text_parent_input(event) { 1483 var target = jQuery(event.target); 1484 input_target = target.parent().parent().parent().find('input'); 1485 input_target.select(); 1486 document.execCommand('copy'); 1487} 1488 1489function sfsi_premium_fitText(container) { 1490 if (container.parent().parent().hasClass('sfsi_premium_icons_container_box_fixed_container')) { 1491 /*console.log(window.sfsi_premium_fittext_shouldDisplay);*/ 1492 if (window.sfsi_premium_fittext_shouldDisplay === true) { 1493 var container_width = container.width(); 1494 /*var container_img_width = container.find('img').width();*/ 1495 var container_img_width = 65; 1496 /*var span=container.find('span').clone();*/ 1497 var span = container.find('span'); 1498 /*var span_original_width = container.find('span').width();*/ 1499 var span_original_width = container_width - (container_img_width) 1500 span 1501 /*.css('display','inline-block')*/ 1502 .css('white-space', 'nowrap') 1503 /*.css('width','auto')*/ 1504 ; 1505 var span_flatted_width = span.width(); 1506 if (span_flatted_width == 0) { 1507 span.css('display', "inline"); 1508 span_flatted_width = span.width(); 1509 if (span_flatted_width == 0) { 1510 span.css('font-size', 20); 1511 span_flatted_width = span.width(); 1512 span.css('font-size', 0); 1513 } 1514 span.css('display', "none"); 1515 1516 } 1517 span 1518 /*.css('display','inline-block')*/ 1519 .css('white-space', 'unset') 1520 /*.css('width','auto')*/ 1521 ; 1522 var shouldDisplay = true; 1523 var fontSize = parseInt(span.css('font-size')); 1524 if (0 == fontSize) { 1525 fontSize = 15; 1526 } 1527 var computed_fontSize = (Math.floor((fontSize * span_original_width) / span_flatted_width)); 1528 1529 if (computed_fontSize < 8) { 1530 shouldDisplay = false; 1531 window.sfsi_premium_fittext_shouldDisplay = false; 1532 } 1533 /*console.log(fontSize, span_original_width, span_flatted_width, computed_fontSize, shouldDisplay);*/ 1534 1535 span.css('font-size', Math.min(computed_fontSize, 15)); 1536 span 1537 /*.css('display','inline-block')*/ 1538 .css('white-space', 'nowrap') 1539 /*.css('width','auto')*/ 1540 ; 1541 if (shouldDisplay) { 1542 span.show(); 1543 } else { 1544 span.hide(); 1545 jQuery('.sfsi_premium_responsive_icon_item_container span').hide(); 1546 } 1547 } 1548 } 1549} 1550 1551function sfsi_premium_resize_icons_container() { 1552 jQuery('.sfsi_premium_responsive_icons').each(function (index, container_elem) { 1553 var container = jQuery(container_elem); 1554 /*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')) 1555 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'))) { 1556 var actual_width=container.width(); 1557 var count_width=container.find('.sfsi_premium_responsive_icons_count').width(); 1558 // jQuery('.sfsi_premium_responsive_cloned_list').remove(); 1559 var sfsi_premium_inline_style=container.attr('style'); 1560 // remove_width 1561 sfsi_premium_inline_style=sfsi_premium_inline_style.replace(/width:\s*(-|)\d*\s*(px|%)\s*($|!important|)(;|$)/g,''); 1562 sfsi_premium_inline_style=sfsi_premium_inline_style.replace(/width:\s*auto\s*($|!important|)(;|$)/g,''); 1563 // sfsi_premium_inline_style.replace('width:\s*\d*\s*(px|%)\s*($|!important|)(;|$)',''); 1564 var should_width=(actual_width-count_width-27); 1565 sfsi_premium_inline_style+="width:"+should_width+'px!important;'; 1566 var abc = container.find('a').filter(function(index,icons){ 1567 return 'none'!==jQuery(icons).css('display'); 1568 }); 1569 scrollWidth=container_elem.scrollWidth; 1570 var sfsi_premium_icons_active = abc.length; 1571 container.attr('style',sfsi_premium_inline_style); 1572 // jQuery('.sfsi_premium_icons_container').css('display','flex'); 1573 }else */ 1574 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')) { 1575 var sfsi_premium_inline_style = container.find('.sfsi_premium_icons_container').attr('style'); 1576 sfsi_premium_inline_style = sfsi_premium_inline_style.replace(/width:\s*auto\s*($|!important|)(;|$)/g, ''); 1577 sfsi_premium_inline_style = sfsi_premium_inline_style.replace(/width:\s*(-|)\d*\s*(px|%)\s*($|!important|)(;|$)/g, ''); 1578 sfsi_premium_inline_style += "width:auto!important;"; 1579 container.find('.sfsi_premium_icons_container').attr('style', sfsi_premium_inline_style); 1580 } 1581 }); 1582} 1583 1584SFSI(document).ready(function () { 1585 SFSI(".sfsiplus_inerCnt a.sficn").click(function (event) { 1586 if (SFSI(this).attr('href') == '' || SFSI(this).attr('href') == '#') { 1587 event.preventDefault(); 1588 } 1589 }); 1590}); 1591 1592function escapeDoubleQuotes(str) { 1593 return str.replace(/\\([\s\S])|(")/g, "\\$1$2"); /* thanks @slevithan!*/ 1594} 1595 1596function sfsi_premium_pinterest_modal_images(url, title) { 1597 1598 var imgSrc = []; 1599 var page_title; 1600 1601 page_title = SFSI('meta[property="og:title"]').attr('content'); 1602 1603 SFSI('body img').each(function (index) { 1604 var src = SFSI(this).attr('src') || ""; 1605 if (src.substring(0, 5) == "data:") { 1606 srcset = SFSI(this).attr('srcset'); 1607 if (src.indexOf(' ') !== false) { 1608 src = srcset.substring(0, src.indexOf(' ')); 1609 } else { 1610 src = srcset; 1611 } 1612 } 1613 var height = SFSI(this).height(); 1614 var width = SFSI(this).width(); 1615 var image_title = SFSI(this).attr('title') || ""; 1616 var alt = SFSI(this).attr('alt') || ""; 1617 var no_pin = SFSI(this).attr('data-pin-nopin') || ""; 1618 var no_pin_old = SFSI(this).attr('nopin') || ""; 1619 1620 if (src !== "" && !src.startsWith("javascript") && height > 100 && width > 100 && no_pin_old !== "nopin" && no_pin !== "true") { 1621 imgSrc.push({ 1622 src: src, 1623 title: title && "" !== title ? title : (image_title && "" !== image_title ? image_title : alt) 1624 }); 1625 } 1626 }); 1627 1628 sfsi_premium_pinterest_modal(); 1629 event.preventDefault(); 1630 1631 /* Remove duplicate */ 1632 if ( imgSrc.length > 0 ) { 1633 var uniquesimgSrc = []; 1634 var itemsFound = {}; 1635 for(var i = 0, l = imgSrc.length; i < l; i++) { 1636 var stringified = JSON.stringify(imgSrc[i]); 1637 if(itemsFound[stringified]) { continue; } 1638 uniquesimgSrc.push(imgSrc[i]); 1639 itemsFound[stringified] = true; 1640 } 1641 } 1642 1643 /* Check click state for popup */ 1644 var popup_elements = ''; 1645 if( SFSI('.sfsi_premium_pinterest_create').hasClass( 'pinterest_new_window') ) { 1646 popup_elements = "onclick='sfsi_plus_new_window_popup(event)'"; 1647 } 1648 1649 if( SFSI('.sfsi_premium_pinterest_create').hasClass( 'pinterest_new_tab') ) { 1650 popup_elements = "target='_blank'"; 1651 } 1652 1653 SFSI.each(uniquesimgSrc, function (index, val) { 1654 /*console.log('discrip',val);*/ 1655 SFSI('.sfsi_premium_flex_container').append('<div><a '+popup_elements+' 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>'); 1656 }), 1657 event.preventDefault(); 1658} 1659 1660function sfsi_premium_pinterest_modal(imgs) { 1661 /*if (jQuery('.sfsi_premium_wechat_follow_overlay').length == 0) {*/ 1662 jQuery('body').append( 1663 "<div class='sfsi_premium_wechat_follow_overlay sfsi_premium_overlay show'>" + 1664 "<div class='sfsi_premium_inner_display'>
1664" + 1665 '<a class="close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_premium_wechat_follow_overlay\')" >Ã</a>' + 1666 "<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;'>" + 1667 "<h4 style='margin-left:10px;'>Pin It on Pinterest</h4>" + 1668 "<div class='sfsi_premium_flex_container'>" + 1669 1670 "</div>" + 1671 "</div>" + 1672 "</div>" + 1673 "</div>" 1674 ); 1675} 1676 1677function sfsi_premium_pinterest_absolute(icon) { 1678 1679 var style_icon = "display:none"; 1680 var margin_top = 5; 1681 var margin_h = 5; 1682 var margin_v = 5; 1683 var ismobile = navigator.userAgent.match(/ipad|iphone|ipod|android/i) != null; 1684 var page_title = SFSI('meta[property="og:title"]').attr('content'); 1685 if ((ismobile == false && icon.show_on.includes('desktop'))) { 1686 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>'); 1687 1688 SFSI("body img").mouseover(function (e) { 1689 SFSI('.sfsi_premium_pinterest_absolute').show(); 1690 var src = SFSI(this).attr('src') || ""; 1691 if (src && src.substring(0, 5) == "data:") { 1692 srcset = SFSI(this).attr('srcset'); 1693 if (src.indexOf(' ') !== false) { 1694 src = srcset.substring(0, src.indexOf(' ')); 1695 } else { 1696 src = srcset; 1697 } 1698 } 1699 var height = SFSI(this).height(); 1700 var width = SFSI(this).width(); 1701 var offset = SFSI(this).offset(); 1702 var right = offset.left + width; 1703 var bottom = offset.top + width; 1704 var left = offset.left; 1705 var top = offset.top; 1706 button_width = 40; 1707 button_height = 40; 1708 if (icon.placement == "bottom-left") { 1709 top = offset.top + height - button_height - 5; 1710 left = left + 5; 1711 } else if (icon.placement == "top-right") { 1712 left = offset.left + width - button_width - 5; 1713 top = top + 5; 1714 } else if (icon.placement == "bottom-right") { 1715 top = offset.top + height - button_height - 5; 1716 left = offset.left + width - button_width - 5; 1717 } else { 1718 top = top + 5; 1719 left = left + 5; 1720 } 1721 var no_pin_old = SFSI(this).attr('nopin'); 1722 var no_pin = SFSI(this).attr('data-pin-nopin'); 1723 1724 if (src !== "" && !src.startsWith("javascript") && 1725 height >= parseFloat(icon.height) && width >= parseFloat(icon.width) && no_pin_old !== "nopin" && no_pin !== "true") { 1726 SFSI('.sfsi_premium_pinterest_absolute').css({ 1727 "position": "absolute", 1728 "left": left, 1729 "top": top, 1730 "z-index": 99999, 1731 }); 1732 var target; 1733 if (icon.page == "tab") { 1734 target = "_blank"; 1735 } else { 1736 target = "_self"; 1737 } 1738 /*console.log(icon);*/ 1739 var desc = icon.description; 1740 if (desc == "") { 1741 desc = page_title; 1742 } 1743 var share_link = icon.icon[0].share_url_template; 1744 share_link = share_link + encodeURI(window.location); 1745 share_link = share_link + "&media=" + encodeURI(src); 1746 share_link = share_link + "&description=" + encodeURI(desc).replace("+", "%20").replace('#', "%23"); 1747 1748 if ("window" == icon.page) { 1749 SFSI('.sfsi_premium_pinterest_absolute .sfsi_premium_hover_link').attr({ 1750 'href': share_link, 1751 'onclick': 'sfsi_plus_new_window_popup(event)' 1752 }); 1753 } else { 1754 SFSI('.sfsi_premium_pinterest_absolute .sfsi_premium_hover_link').attr({ 1755 'href': share_link, 1756 'target': target 1757 }); 1758 } 1759 } 1760 }); 1761 SFSI("body img").mouseout(function (e) { 1762 SFSI('.sfsi_premium_pinterest_absolute').hide(); 1763 }); 1764 } else if (ismobile == true && icon.show_on.includes('mobile')) { 1765 SFSI("body img").each(function (index, data) { 1766 var src = SFSI(data).attr('src'); 1767 if (src && src.substring(0, 5) == "data:") { 1768 srcset = SFSI(this).attr('srcset'); 1769 if (src.indexOf(' ') !== false) { 1770 src = srcset.substring(0, src.indexOf(' ')); 1771 } else { 1772 src = srcset; 1773 } 1774 } 1775 var height = SFSI(data).height(); 1776 var width = SFSI(data).width(); 1777 var offset = SFSI(data).offset(); 1778 /*console.log(offset,data);*/ 1779 var right = offset.left + width; 1780 var bottom = offset.top + width; 1781 var left = offset.left; 1782 var top = offset.top; 1783 button_width = 40; 1784 button_height = 40; 1785 if (icon.placement == "bottom-left") { 1786 top = offset.top + height - button_height - 5; 1787 left = left + 5; 1788 } else if (icon.placement == "top-right") { 1789 left = offset.left + width - button_width - 5; 1790 top = top + 5; 1791 } else if (icon.placement == "bottom-right") { 1792 top = offset.top + height - button_height - 5; 1793 left = offset.left + width - button_width - 5; 1794 } else { 1795 top = top + 5; 1796 left = left + 5; 1797 } 1798 var no_pin_old = SFSI(data).attr('nopin'); 1799 var no_pin = SFSI(data).attr('data-pin-nopin'); 1800 if ( 1801 src !== "" && 1802 !src.startsWith("javascript") && 1803 height >= parseFloat(icon.height) && 1804 width >= parseFloat(icon.width) && 1805 no_pin_old !== "nopin" && 1806 no_pin !== "true" && 1807 data.style.dispaly !== "none" && 1808 !data.src.includes('gravatar.com') 1809 ) { 1810 /*console.log(data,index);*/ 1811 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>'); 1812 SFSI('.sfsi_premium_pinterest_absolute_' + index).css({ 1813 "position": "absolute", 1814 "left": left, 1815 "top": top, 1816 "z-index": 99999, 1817 }); 1818 var target; 1819 if (icon.page == "tab") { 1820 target = "_blank"; 1821 } else { 1822 target = "_self"; 1823 } 1824 /*console.log(icon);*/ 1825 var desc = icon.description; 1826 if (desc == "") { 1827 desc = page_title; 1828 } 1829 var share_link = icon.icon[0].share_url_template; 1830 share_link = share_link + encodeURI(window.location); 1831 share_link = share_link + "&media=" + encodeURI(src); 1832 share_link = share_link + "&description=" + encodeURI(desc); 1833 1834 if ("window" == icon.page) { 1835 SFSI('.sfsi_premium_pinterest_absolute_' + index + ' .sfsi_premium_hover_link').attr({ 1836 'href': share_link, 1837 'onclick': 'sfsi_plus_new_window_popup(event)' 1838 }); 1839 } else { 1840 SFSI('.sfsi_premium_pinterest_absolute_' + index + ' .sfsi_premium_hover_link').attr({ 1841 'href': share_link, 1842 'target': target 1843 }); 1844 } 1845 } 1846 }); 1847 } 1848} 1849 1850SFSI(document).ready(function () { 1851 SFSI('.sfsiaftrpstwpr a img').each(function (index) { 1852 var src = SFSI(this).attr('src'); 1853 if (src && src.substring(0, 5) == "data:") { 1854 srcset = SFSI(this).attr('data-src'); 1855 /*if(src.indexOf(' ')!==false){ 1856 src = srcset.substring(0,src.indexOf(' ')); 1857 }else{ 1858 src = srcset; 1859 }*/ 1860 src = srcset; 1861 }else if(src && src.substring(0, 6) == "image/" && SFSI(this).is('[data-src]')){ 1862 srcset = SFSI(this).attr('data-src'); 1863 src = srcset; 1864 } 1865 SFSI(this).attr('src', src); 1866 }); 1867}); 1868 1869/*SFSI(document).ready(function() { 1870 SFSI('.sfsi_premium_wicons').tooltipster({ 1871 interactive: true, 1872 trigger: 'hover', 1873 functionInit: function(instance, helper) { 1874 var $origin = jQuery(helper.origin); 1875 var tooltipdiv =$origin.find('.sfsi_plus_inside'); 1876 console.log(tooltipdiv); 1877 if(tooltipdiv.length>0){
1878 instance.content = jQuery(tooltipdiv[0].().detach(); 1879 console.log(instance.content); 1880 }else{ 1881 instance.close(); 1882 } 1883 // console.log($origin); 1884 } 1885 }); 1886});*/ 1887SFSI(document).ready(function(){ 1888var isMobile = window.matchMedia("only screen and (max-width: 760px)"); 1889 1890 if (isMobile.matches) { 1891 if(SFSI(".extra-hatom-entry-title").prev().text() == "Footnotes"){ 1892 SFSI(".extra-hatom-entry-title").prev().css({"position": "relative", "top": "71px"}); 1893 } 1894 1895 } 1896 });
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.