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