Skip to content

Instantly share code, notes, and snippets.

@cmehrabian
Created November 20, 2019 18:56
Show Gist options
  • Save cmehrabian/c66526ef419c02617d7dc96c31f4dca2 to your computer and use it in GitHub Desktop.
Save cmehrabian/c66526ef419c02617d7dc96c31f4dca2 to your computer and use it in GitHub Desktop.
!function(){if(void 0===t)var t={rokenCalled:!1};var e={version:"1.0.1",element:null,signInDuration:120,hasEtafParam:0,hasEtafToEmail:!1,etafLanguage:"en_US",etafTitle:"",params:null,usesEtaf:0,url:"",cssLoaded:!1,cssStack:[],test:"",language:"",imageUrl:"",spid:"",shareCmdHost:"",title:"",itemId:"",strings:{en_US:{share:"",tt_email:""},de_DE:{share:":",tt_email:""}},getElementsByClass:function(t,e){var i,a,n,o,r=RegExp("(^|\\s)"+t+"(\\s|$)"),s=[];for(void 0===e&&(e=document),i=e.getElementsByTagName("*"),a=i.length,o=n=0;a>n;n++)r.test(i[n].className)&&(s[o]=i[n],o++);return s},attr:function(t){return(t=this.element.getAttribute(t))?t:void 0},html:function(t){return t||0===t||""===t?(this.element.innerHTML=t,this):this.element.innerHTML},parseUrlParams:function(){for(var t={},e=document.location.search.substring(1).split("&"),i=0;i<e.length;i++){var a=e[i].split("=");t[a[0]]=a[1]}return t},loadScript:function(t,e){var i=document.createElement("script");i.id=t,i.src=e,document.getElementsByTagName("head")[0].appendChild(i)},checkEtafParam:function(){e.params=e.parseUrlParams(),void 0!==e.params.etaf&&"1"===e.params.etaf&&(Math.round((new Date).getTime()/1e3)-parseInt(e.params.tp,10)<e.signInDuration&&(e.hasEtafParam=1),void 0!==e.params.email&&(e.hasEtafToEmail=!0))},launchEtaf:function(t,i){e.params=e.parseUrlParams(),void 0!==e.params.etafElem&&(i=document.getElementById(e.params.etafElem)),void 0!==i&&null!==i&&(e.url=i.getAttribute("etafShareUrl"),e.etafTitle=i.getAttribute("etafShareTitle"),e.clickedEtafElement=i.getAttribute("id")),document.getElementById("ebay-etaf")?etaf.showEmailFlow():e.loadScript("ebay-etaf",t)},init:function(i,a){var n=e.getElementsByClass("swEmail"),o=0;e.shareCmdHost=e.getShareCommandHost(window.location.href);for(var r=0;r<n.length;r++)o++,e.render(n[r],o,i,a);!1===t.rokenCalled&&(n=e.parseUrlParams(),n.roken&&(o=document.createElement("img"),o.setAttribute("src","http://r.ebay.com/"+n.roken),o.setAttribute("width","1"),o.setAttribute("height","1"),o.setAttribute("align","left"),document.getElementById("ebayShare_1").appendChild(o),t.rokenCalled=!0))},render:function(t,i,a,n){this.element=t,t=n.language?n.language:"en_US",t=e.sanitizeLocale(t),e.spid=parseInt(n.spid,10),e.itemId=n.itemid,e.title=this.sanitizeTitle(encodeURIComponent(n.etafShareTitle)),e.encodedTitle=e.title,e.language=e.etafLanguage="de_CH"===t||"de_AT"===t?"de_DE":"fr_BE"===t?"fr_FR":t||"en_US",e.url=n.etafShareUrl,e.etafTitle=n.etafShareTitle,e.clickedEtafElement=n.id,e.usesEtaf=1,e.checkEtafParam(),e.launchEtaf(null!==a&&void 0!==a?a:"https://ir.ebaystatic.com/rs/c/share-widget/0.1.2/email-share.js")},sanitizeLocale:function(t){return t.replace(/-/g,"_")},capitalize:function(t){return t.substr(0,1).toUpperCase()+t.substr(1)},loadCss:function(t,i){for(var a=0;a<e.cssStack.length;a++)if(e.cssStack[a]===i)return;e.cssStack.push(i),a=document.createElement("style"),a.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(a);var n=document.createTextNode(t);a.styleSheet?a.styleSheet.cssText=n.nodeValue:a.appendChild(n)},sanitizeTitle:function(t){return t.replace(/'/g,"%27")},getItemId:function(){return e.itemId},isItemPage:function(){return!0},getEnv:function(t){return t=t.replace(/https:\/\//,"").split("/"),-1!==t[0].indexOf(".qa.ebay.")?"QA":-1!==t[0].indexOf("corp.ebay.")?"DEV":-1!==t[0].indexOf("dev.ebay.")?"DEV":-1!==t[0].indexOf(".latest.ebay.")||-1!==t[0].indexOf("pp.ebay.")?"PREPROD":-1!==t[0].indexOf("ebay.")?"PROD":"OON"},getShareCommandHost:function(t){var i=null,a=t.replace(/https:\/\//,"").split("/"),n=a[0].split(".");return n.splice(0,1),i=n.join("."),"QA"===e.getEnv(t)?-1!==i.indexOf("stratus")?"www."+i.match(/qa\.ebay\.[a-zA-Z]+\.*[a-zA-Z]*/g):"www."+i.match(/([a-zA-Z]+\.[a-zA-Z]+\.)*qa\.ebay\.[a-zA-Z]+\.*[a-zA-Z]*/g):"PROD"===e.getEnv(t)?-1!==i.indexOf("stratus")?"www."+i.match(/ebay\.[a-zA-Z]+\.*[a-zA-Z]*/g):"www."+i.match(/[a-zA-Z]*\.*[a-zA-Z]*\.*ebay\.[a-zA-Z]+\.*[a-zA-Z]*/g):"DEV"===e.getEnv(t)?"www.qa."+a[0].match(/ebay\.[a-zA-Z]+\.*[a-zA-Z]*/g):"PREPROD"===e.getEnv(t)?"www.latest."+a[0].match(/ebay\.[a-zA-Z]+\.*[a-zA-Z]*/g):"www.ebay.com"},getFacebookShareUrl:function(t,i,a){var i="",n=e.getImageUrl(),a=encodeURIComponent(a);return 18===t&&(i="&apnd="+encodeURIComponent("app_id="+etaf.fbSendappidProd+"&display=popup")),"http://"+e.shareCmdHost+"/soc/share?swd="+t+"&du="+a+"&rt=nc&t="+e.encodedTitle+"&spid="+e.spid+i+"&media="+n+"&shorten=0"},getImageUrl:function(){var t=e.attr("data-imageUrl");return e.imageUrl?e.imageUrl:t?(e.imageUrl=t,t):!!(t=e.getOGInfo("og:image"))&&(e.imageUrl=e.imageUrlCleanUp(t),t)},getOGInfo:function(t){for(var e=document.getElementsByTagName("meta"),i=0;i<e.length;i++)if("object"==typeof e[i]&&e[i].getAttribute("property")===t)return e[i].content},imageUrlCleanUp:function(t){return-1<t.indexOf("+")&&(t=t.replace(RegExp("\\+","g"),"%2B")),t}};window.ebayShare=e}(),function(){var t=function(e){e=e||{},this.options=$.extend(!0,{},t.defaults,e),this.listen()},e={de_DE:{Share:"Teilen"},en_AU:{Share:"Share"},en_CA:{Share:"Share"},en_GB:{Share:"Share"},en_IN:{Share:"Share"},en_SG:{Share:"Share"},en_US:{Share:"Share"},en:{Share:"Share"},es_CO:{Share:"Compartir"},es_ES:{Share:"Compartir"},fr_CA:{Share:"Partager"},fr_FR:{Share:"Partager"},it_IT:{Share:"Condividi"},nl_BE:{Share:"Delen"},nl_NL:{Share:"Delen"},pl_PL:{Share:"Udostępnij"},pt_BR:{Share:"Compartilhar"},ru_RU:{Share:"Поделиться с друзьями"},zh_HK:{Share:"分享"}};t.prototype={activeElement:null,hideAnimTimer:null,language:null,listen:function(){var t=this;$(this.options.buttonSelector).each(function(e,i){var a=$(i);t.language=a.data("language")||t.options.defaultLanguage,t.language=t.language.replace("-","_");var n=a;"SCRIPT"===a.prop("tagName")&&(n=t.getStyledButton(i),$(this).after(n));var o=null;n.on("click",function(e){setTimeout(function(){t.displayContainer($(e.currentTarget),$(i))},20),e.stopPropagation(),e.preventDefault()}).on("mouseenter",function(e){o=setTimeout(function(){t.displayContainer($(e.currentTarget),$(i))},200)}).on("mouseleave",function(){clearTimeout(o)})})},updateAccessibility:function(t,e){t&&t.attr("aria-expanded",e)},getStyledButton:function(t){var t=$(t),e=this.getText("Share"),i=["share-widget-btn"],a=t.data("style")||"";return 0<=a.indexOf("prim")?i.push("btn-prim"):0<=a.indexOf("minimized")?(i.push("minimized"),0<=a.indexOf("white")&&i.push("white")):i.push("btn"),0<=a.indexOf("minimal")&&(i.push("minimal"),e=""),t.data("text")&&(e=t.data("text")),$(this.renderTemplate('<button type="button" class="<%= css %>" title="<%= share %>" aria-haspopup="true"><%= share %></button>',{share:e,css:i.join(" ")}))},displayContainer:function(t,e){var i=this;this.activeElement=t,this.activeScript=e,this.swContainer||this.createContainer(),this.isMobile()?(this.setMobilePosition(t),this.displayLayerBg()):(this.setPosition(t),this.stopHideTimer(),t.on("mouseenter",function(){i.stopHideTimer()}).on("mouseleave",function(){i.startHideTimer()}),this.swContainer.on("mouseenter",function(){i.stopHideTimer()}).on("mouseleave",function(){i.startHideTimer()})),this.swContainer.show(),i.updateAccessibility(t,!0),setTimeout(function(){i.swContainer.find("button:first").focus()},100)},createContainer:function(){var t=this,e=$('<div class="buttons"></div>');$.each(this.options.shareServices,function(i,a){var n=a.charAt(0).toUpperCase()+a.slice(1),n=$('<button type="button" class="sw'+n+'" aria-haspopup="true" aria-label="'+n+'"></button>').on("click",function(){t.openShareService(a)});e.append(n)});var i=$('<div class="close"></div>').on("click",function(){t.hideContainer()}),i=$('<div class="header"></div>').append(i),i=$('<div class="swFrame"></div>').append(i).append(e);this.swContainer=$('<div id="swContainer"></div>').append(i),this.swButtons=this.swContainer.find("button"),this.swButtons.on("focusout",function(e){t.swButtons.is(e.relatedTarget)||t.startHideTimer()}),this.activeElement.after(this.swContainer)},startHideTimer:function(){var t=this;this.stopHideTimer(),this.hideTimer=setTimeout(function(){t.hideContainer("fade"),t.updateAccessibility(t.activeElement,!1)},t.options.hideTimeout)},stopHideTimer:function(){clearTimeout(this.hideTimer),clearTimeout(this.hideAnimTimer)},hideContainer:function(t){var e=this;"fade"===t?(e.swContainer.css({"margin-top":0,opacity:0}),e.hideAnimTimer=setTimeout(function(){e.swContainer.removeClass("show").hide()},400),this.swLayerBg&&this.swLayerBg.fadeOut()):(this.swContainer.hide().removeClass("show"),this.swLayerBg&&this.swLayerBg.hide())},setPosition:function(t){var e=this,i=t.offset(),a=$(document).width(),n=$(document).height(),o=Math.round,r=["show"],s={},d=this.options.containerOffset,m=this.swContainer.outerWidth(),s={top:o(i.top+t.outerHeight()+d),left:o(i.left-m/2+t.outerWidth()/2),opacity:1};i.left<m/2?(r.push("left"),s.left=i.left):a-i.left<(t.outerWidth()+m)/2&&(r.push("right"),s.top=o(i.top+t.outerHeight()+d),s.left=o(i.left-m+t.outerWidth())),n-i.top-t.outerHeight()-d<this.swContainer.outerHeight()?(r.push("bottom"),s.top=o(i.top-this.swContainer.outerHeight()-d),s["margin-top"]="-10px"):s["margin-top"]="10px",this.swContainer.removeClass("left right bottom").css(s),setTimeout(function(){e.swContainer.addClass(r.join(" "))},26)},setMobilePosition:function(){this.swContainer.css({"margin-left":this.swContainer.outerWidth()/-2,"margin-top":this.swContainer.outerHeight()/-2}).addClass("show")},getPageData:function(){return{title:this.activeScript.data("title")||$('meta[property="og:title"]').attr("content")||document.title,url:this.activeScript.data("url")||$('meta[property="og:url"]').attr("content")||location.toString(),image:this.activeScript.data("image")||$('meta[property="og:image"]').attr("content")||"",language:this.language||this.activeScript.data("language")||this.options.defaultLanguage,itemid:this.activeScript.data("itemid")||"",spid:this.activeScript.data("spid")||0,id:this.activeScript.attr("id")||""}},openShareService:function(t){var e=this.getPageData(),i=this.options.shareServiceUrl,i=i.replace("%swd%",this.options.shareServiceIds[t]),i=i.replace("%title%",encodeURIComponent(e.title)),i=i.replace("%url%",encodeURIComponent(e.url)),i=i.replace("%image%",encodeURIComponent(e.image)),i=i.replace("%spid%",encodeURIComponent(e.spid)),i=i.replace("%itemid%",encodeURIComponent(e.itemid)),i=i.replace("%lang%",e.language.substr(0,2)),e=this.options.customDimensions[t]||this.options.dimensions,a=screen.width/2-e.w/2,n=screen.height/2-e.h/2;if(this.isMobile()||"email"===t)return void(location.href=i);window.open(i,"eBay","scrollbars,resizable,screeny=top,width="+e.w+",height="+e.h+",top="+n+",left="+a,"_blank")},isMobile:function(){return"block"===this.swContainer.find(".header").css("display")},displayLayerBg:function(){var t=this;return this.swLayerBg?void this.swLayerBg.show():(this.swLayerBg=$('<div class="swLayerBg"></div>').on("click",function(){t.hideContainer()}),void $("body").append(this.swLayerBg))},renderTemplate:function(t,e){for(var i in e)t=t.replace(RegExp("<%= "+i+" %>","g"),e[i]);return t},addStyles:function(){$("body").append(t.styles)},getText:function(t){return e[this.language]&&e[this.language][t]?e[this.language][t]:e[this.options.defaultLanguage][t]||""}},t.styles='<style type="text/css">.share-widget-btn:before{content:"";width:15px;height:14px;overflow:hidden;background:url(https://ir.ebaystatic.com/pictures/aw/social/share_widget_spr_1x.min.png) -17px 0;display:inline-block;float:left;margin-right:5px;margin-top:1px}.share-widget-btn.btn-prim:before,.share-widget-btn.white:before{background-position:-67px 0}.share-widget-btn.minimal:before{margin-right:0}.share-widget-btn.btn{color:#555}.share-widget-btn.minimized{border:0;background:0 0;color:#555;font-weight:700}.share-widget-btn.minimized:hover{text-decoration:underline}.share-widget-btn.minimized.white{color:#fff}#swContainer{font-family:\'Helvetica Neue\',Helvetica,Arial,Verdana,sans-serif;font-size:12px;position:fixed;background:#FFF;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;border:1px solid #bbb;z-index:500001;opacity:0;visibility:hidden}#swContainer .header{display:none}#swContainer .close{position:absolute;top:-25px;right:0;background:url(https://ir.ebaystatic.com/pictures/aw/social/share_widget_spr_1x.min.png) -115px -1px;overflow:hidden;width:13px;height:12px}#swContainer .buttons{width:225px}#swContainer.show{opacity:1;visibility:visible}#swContainer.show button{opacity:1;-webkit-transition:opacity .25s;-moz-transition:opacity .25s;-o-transition:opacity .25s;transition:opacity .25s}#swContainer.show button:nth-child(1){-moz-animation-delay:.02s;-o-animation-delay:.02s;-webkit-animation-delay:.02s;animation-delay:.02s}#swContainer.show button:nth-child(2){-moz-animation-delay:.04s;-o-animation-delay:.04s;-webkit-animation-delay:.04s;animation-delay:.04s}#swContainer.show button:nth-child(3){-moz-animation-delay:.06s;-o-animation-delay:.06s;-webkit-animation-delay:.06s;animation-delay:.06s}#swContainer.show button:nth-child(4){-moz-animation-delay:.08s;-o-animation-delay:.08s;-webkit-animation-delay:.08s;animation-delay:.08s}#swContainer.show button:nth-child(5){-moz-animation-delay:.1s;-o-animation-delay:.1s;-webkit-animation-delay:.1s;animation-delay:.1s}#swContainer.show button:nth-child(6){-moz-animation-delay:.12s;-o-animation-delay:.12s;-webkit-animation-delay:.12s;animation-delay:.12s}#swContainer.show button:nth-child(7){-moz-animation-delay:.14s;-o-animation-delay:.14s;-webkit-animation-delay:.14s;animation-delay:.14s}#swContainer.show button:nth-child(8){-moz-animation-delay:.16s;-o-animation-delay:.16s;-webkit-animation-delay:.16s;animation-delay:.16s}#swContainer.show button:nth-child(9){-moz-animation-delay:.18s;-o-animation-delay:.18s;-webkit-animation-delay:.18s;animation-delay:.18s}#swContainer button{width:50px;height:50px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;border:0;background:#CCC;margin:0 25px 25px 0;padding:0;cursor:pointer;background:url(https://ir.ebaystatic.com/pictures/aw/social/share_widget_spr_1x.min.png);opacity:0}#swContainer button:hover{opacity:.7;filter:alpha(opacity=70);-webkit-transition:opacity .25s;-moz-transition:opacity .25s;-o-transition:opacity .25s;transition:opacity .25s}#swContainer button.swFacebook{background-position:-1px -16px}#swContainer button.swTwitter{background-position:-53px -16px}#swContainer button.swPinterest{background-position:-105px -16px}#swContainer button.swGoogleplus{background-position:-1px -68px}#swContainer button.swTumblr{background-position:-53px -68px}#swContainer button.swReddit{background-position:-105px -68px}#swContainer button.swWanelo{background-position:-1px -120px}#swContainer button.swHouzz{background-position:-53px -120px}#swContainer button.swEmail{background-position:-105px -120px}#swContainer .swFrame{margin:30px 10px 5px 35px;position:relative}#swContainer .swFrame:before{content:"";position:absolute;top:-40px;left:50%;border-width:0 10px 10px;border-style:solid;border-color:#bbb transparent;display:block;width:0;margin-left:-23px}#swContainer .swFrame:after{content:"";position:absolute;top:-39px;left:50%;border-width:0 10px 10px;border-style:solid;border-color:#FFF transparent;display:block;width:0;margin-left:-23px}#swContainer.left .swFrame:before,#swContainer.left .swFrame:after{left:10%}#swContainer.right .swFrame:before,#swContainer.right .swFrame:after{left:90%}#swContainer.bottom .swFrame:before{top:inherit;bottom:-16px;border-width:10px 10px 0}#swContainer.bottom .swFrame:after{top:inherit;bottom:-15px;border-width:10px 10px 0}#swContainer.bottom.show button{-webkit-animation:pop-in-bottom .25s 0s cubic-bezier(.175,.885,.32,1.275) backwards;-moz-animation:pop-in-bottom .25s 0s cubic-bezier(.175,.885,.32,1.275) backwards;-o-animation:pop-in-bottom .25s 0s cubic-bezier(.175,.885,.32,1.275) backwards;animation:pop-in-bottom .25s 0s cubic-bezier(.175,.885,.32,1.275) backwards}#swContainer.bottom.show button:nth-child(1){-moz-animation-delay:.02s;-o-animation-delay:.02s;-webkit-animation-delay:.16s;animation-delay:.02s}#swContainer.bottom.show button:nth-child(2){-moz-animation-delay:.04s;-o-animation-delay:.04s;-webkit-animation-delay:.14s;animation-delay:.04s}#swContainer.bottom.show button:nth-child(3){-moz-animation-delay:.06s;-o-animation-delay:.06s;-webkit-animation-delay:.12s;animation-delay:.06s}#swContainer.bottom.show button:nth-child(4){-moz-animation-delay:.08s;-o-animation-delay:.08s;-webkit-animation-delay:.1s;animation-delay:.08s}#swContainer.bottom.show button:nth-child(5){-moz-animation-delay:.1s;-o-animation-delay:.1s;-webkit-animation-delay:.08s;animation-delay:.1s}#swContainer.bottom.show button:nth-child(6){-moz-animation-delay:.12s;-o-animation-delay:.12s;-webkit-animation-delay:.06s;animation-delay:.12s}#swContainer.bottom.show button:nth-child(7){-moz-animation-delay:.14s;-o-animation-delay:.14s;-webkit-animation-delay:.04s;animation-delay:.14s}#swContainer.bottom.show button:nth-child(8){-moz-animation-delay:.16s;-o-animation-delay:.16s;-webkit-animation-delay:.02s;animation-delay:.16s}#swContainer.bottom.show button:nth-child(9){-moz-animation-delay:.18s;-o-animation-delay:.18s;-webkit-animation-delay:0s;animation-delay:.18s}.swLayerBg{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);z-index:500000}@media only screen and (max-width:568px){.swFrame:before,.swFrame:after{display:none!important}#swContainer{top:50%;left:50%}#swContainer .header{display:block}#swContainer .swFrame{margin-top:35px}}@media only screen and (min-width:568px){#swContainer{position:absolute;opacity:0}#swContainer.show{opacity:1;-webkit-animation:.4s cubic-bezier(.1,.9,.3,1.2) 0s normal backwards 1 bounce-down;-moz-animation:.4s cubic-bezier(.1,.9,.3,1.2) 0s normal backwards 1 bounce-down;-o-animation:.4s cubic-bezier(.1,.9,.3,1.2) 0s normal backwards 1 bounce-down;animation:.4s cubic-bezier(.1,.9,.3,1.2) 0s normal backwards 1 bounce-down;-webkit-transform-origin:center top 0;-moz-transform-origin:center top 0;-o-transform-origin:center top 0;transform-origin:center top 0;-webkit-transition:opacity .25s,margin .25s;-moz-transition:opacity .25s,margin .25s;-o-transition:opacity .25s,margin .25s;transition:opacity .25s,margin .25s}#swContainer.show button{-webkit-animation:pop-in .25s cubic-bezier(.175,.885,.32,1.275) backwards;-moz-animation:pop-in .25s cubic-bezier(.175,.885,.32,1.275) backwards;-o-animation:pop-in .25s cubic-bezier(.175,.885,.32,1.275) backwards;animation:pop-in .25s cubic-bezier(.175,.885,.32,1.275) backwards}#swContainer.show.bottom{-webkit-animation:.4s cubic-bezier(.175,.885,.32,1.275) 0s normal backwards 1 bounce-up;-moz-animation:.4s cubic-bezier(.175,.885,.32,1.275) 0s normal backwards 1 bounce-up;-o-animation:.4s cubic-bezier(.175,.885,.32,1.275) 0s normal backwards 1 bounce-up;animation:.4s cubic-bezier(.175,.885,.32,1.275) 0s normal backwards 1 bounce-up}}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#swContainer .buttons button,#swContainer .close,.share-widget-btn:before{background-image:url(https://ir.ebaystatic.com/pictures/aw/social/share_widget_spr_2x.min.png);background-size:156px}}@-webkit-keyframes bounce-down{0%{-webkit-transform:matrix(1,0,0,.8,0,-30)}100%{-webkit-transform:matrix(1,0,0,1,0,0)}}@-moz-keyframes bounce-down{0%{-moz-transform:matrix(1,0,0,.8,0,-30)}100%{-moz-transform:matrix(1,0,0,1,0,0)}}@keyframes bounce-down{0%{transform:matrix(1,0,0,.8,0,-30)}100%{transform:matrix(1,0,0,1,0,0)}}@-webkit-keyframes bounce-up{0%{-webkit-transform:matrix(1,0,0,.8,0,80)}100%{-webkit-transform:matrix(1,0,0,1,0,0)}}@-moz-keyframes bounce-up{0%{-moz-transform:matrix(1,0,0,.8,0,80)}100%{-moz-transform:matrix(1,0,0,1,0,0)}}@keyframes bounce-up{0%{transform:matrix(1,0,0,.8,0,80)}100%{transform:matrix(1,0,0,1,0,0)}}@-webkit-keyframes pop-in{0%{-webkit-transform:matrix(.7,0,0,.7,0,-20)}100%{-webkit-transform:matrix(1,0,0,1,0,0)}}@-moz-keyframes pop-in{0%{-moz-transform:matrix(.7,0,0,.7,0,-20)}100%{-moz-transform:matrix(1,0,0,1,0,0)}}@keyframes pop-in{0%{transform:matrix(.7,0,0,.7,0,-20)}100%{transform:matrix(1,0,0,1,0,0)}}@-webkit-keyframes pop-in-bottom{0%{-webkit-transform:matrix(.7,0,0,.7,0,20)}100%{-webkit-transform:matrix(1,0,0,1,0,0)}}@-moz-keyframes pop-in-bottom{0%{-moz-transform:matrix(.7,0,0,.7,0,20)}100%{-moz-transform:matrix(1,0,0,1,0,0)}}@keyframes pop-in-bottom{0%{transform:matrix(.7,0,0,.7,0,20)}100%{transform:matrix(1,0,0,1,0,0)}}</style>',t.defaults={defaultLanguage:"en_US",buttonSelector:".share-widget",buttonEvents:"click",shareServices:"facebook twitter pinterest googleplus tumblr email".split(" "),hideTimeout:200,containerOffset:8,dimensions:{w:600,h:400},shareServiceUrl:"/soc/share?swd=%swd%&du=%url%&rt=nc&t=%title%&media=%image%&spid=%spid%&lang=%lang%",shareServiceIds:{facebook:2,twitter:3,pinterest:11,googleplus:10,tumblr:24,reddit:22,wanelo:21,houzz:23,digg:7,delicious:8,email:13},customDimensions:{reddit:{w:1e3,h:500}}};var i=0;!function e(){window.jQuery?window.ShareWidget||(window.ShareWidget=new t,window.ShareWidget.addStyles()):100>i&&(setTimeout(e,50),i++)}()}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment