diff --git a/README.md b/README.md index 98b71c3..74fcc73 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ To test the PHP code, navigate to the `service` directory and run `phpunit socia * `v0.1.4` Fix for twitter widget share of non-current page URL. Added data-share-text. * `v0.1.5` Option for activate on click, instead of hover. i18n Code, adds de_DE support. Fix for Google+ issue with disappearing tooltip. Local url filtering on counts service. More accurate Facebook counts. * `v0.1.6` Added Pinterest button. Thanks @dustMason! Fix for IE10 support (wasn’t passing A-Grade test). Facebook button requires long form locale. Tweaks to German button sizes. +* `v0.1.7` Bug fix: #42 ## Advanced Options diff --git a/dist/socialcount-with-icons.css b/dist/socialcount-with-icons.css index 65672f4..a9f2ab7 100644 --- a/dist/socialcount-with-icons.css +++ b/dist/socialcount-with-icons.css @@ -1,6 +1,6 @@ -/*! SocialCount - v0.1.6 - 2013-08-08 +/*! SocialCount - v0.1.7 - 2014-08-26 * https://github.com/filamentgroup/SocialCount -* Copyright (c) 2013 zachleat; Licensed MIT */ +* Copyright (c) 2014 zachleat; Licensed MIT */ .socialcount { color: #fff; @@ -223,4 +223,70 @@ 0% { opacity: 0; } 50% { opacity: 0.8; } 100% { opacity: 0; } -} \ No newline at end of file +} +.social-icon { + display: inline-block; + *display: inline; + zoom: 1; + vertical-align: middle; + *margin-right: 5px; +} + +.socialcount.grade-a.activate-on-hover > li.hover .social-icon, +.socialcount.grade-a.activate-on-click > li.hover.active .social-icon { + display: none; +} + +.socialcount-small.grade-a.activate-on-hover > li.hover .social-icon, +.socialcount-small.grade-a.activate-on-click > li.hover.active .social-icon, +.socialcount-large.grade-a.activate-on-hover > li.hover .social-icon, +.socialcount-large.grade-a.activate-on-click > li.hover.active .social-icon { + display: inline-block; + *display: inline; + zoom: 1; +} + +.icon-sprite, .icon-facebook, .icon-googleplus, .icon-pinterest, .icon-share, .icon-twitter { + background: url('icon-sd6cd4d0ec7.png') no-repeat; +} + +.icon-facebook { + background-position: 0 0; + height: 15px; + width: 17px; +} + +.icon-googleplus { + background-position: -21px 0; + height: 17px; + width: 20px; +} + +.icon-pinterest { + background-position: -45px 0; + height: 15px; + width: 11px; +} + +.icon-share { + background-position: -60px 0; + height: 16px; + width: 20px; +} + +.icon-twitter { + background-position: -84px 0; + height: 15px; + width: 17px; +} + +/* HD icons */ +@media (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) { + .social-icon { + -webkit-background-size: auto 17px; + -moz-background-size: auto 17px; + -o-background-size: auto 17px; + background-size: auto 17px; + background-image: url('icon-hd-s816aa7a6b3.png'); + } +} diff --git a/dist/socialcount-with-icons.min.css b/dist/socialcount-with-icons.min.css index c6055d5..9bda0e3 100644 --- a/dist/socialcount-with-icons.min.css +++ b/dist/socialcount-with-icons.min.css @@ -1,5 +1,5 @@ -/*! SocialCount - v0.1.6 - 2013-08-08 +/*! SocialCount - v0.1.7 - 2014-08-26 * https://github.com/filamentgroup/SocialCount -* Copyright (c) 2013 zachleat; Licensed MIT */ +* Copyright (c) 2014 zachleat; Licensed MIT */ -.socialcount{color:#fff;font-size:.875em;line-height:2.2em}.socialcount>li{background-color:#999}.socialcount>li,.socialcount>li>a:focus,.socialcount .loading{border-radius:5px}.socialcount>li>a:focus,.socialcount>li:hover,.socialcount>li.hover{background-color:#464646}.socialcount .count.minimum{}.socialcount{list-style:none;padding-left:0;margin:0 0 .6em;overflow:hidden}.socialcount-large{line-height:normal}.socialcount :link,.socialcount :visited{color:inherit}.socialcount>li{display:inline-block;*display:inline;zoom:1;position:relative;vertical-align:top;min-width:80px;min-height:30px;text-align:center;white-space:nowrap;*margin-right:4px}.socialcount.like.de_DE>.facebook{min-width:90px}.socialcount-small>li{min-width:0}.socialcount-large>li{float:left;margin:0 .6em .6em 0}.socialcount.recommend .facebook{min-width:120px}.socialcount-small.recommend .facebook{min-width:0}.socialcount-large>li,.socialcount-large.recommend .facebook{min-width:105px}.socialcount>li>a{display:block;padding:0 5px;text-decoration:none;color:inherit}.socialcount-small>li>a{padding-left:8px;padding-right:8px}.socialcount-large>li>a{padding:12px 5px 8px}.socialcount .count{color:inherit;position:relative;display:inline-block;*display:inline;zoom:1;text-align:center;margin-left:6px}.socialcount-large .count{display:block;width:100%;margin-left:0;padding-top:10px}.socialcount-small .count{margin-left:0}.socialcount .facebook iframe{height:21px;width:90px}.socialcount.de_DE .facebook iframe{width:83px}.socialcount.like .facebook iframe{width:48px}.socialcount.like.de_DE .facebook iframe{width:83px}.socialcount .button{display:none;width:100%;position:absolute;left:0;top:5px;text-align:center;pointer-events:none}.socialcount .button iframe{pointer-events:auto}.socialcount-large .button{top:auto;bottom:2px}.socialcount.grade-a.activate-on-hover>li.hover .count,.socialcount.grade-a.activate-on-click>li.hover.active .count{text-indent:-999px}.socialcount.grade-a.activate-on-hover>li.hover .button,.socialcount.grade-a.activate-on-click>li.hover.active .button{display:block}.socialcount.grade-a.activate-on-hover>li.hover>a,.socialcount.grade-a.activate-on-click>li.hover.active>a{cursor:default}.socialcount-small.grade-a.activate-on-hover>li.hover>a,.socialcount-small.grade-a.activate-on-click>li.hover.active>a,.socialcount.grade-a.activate-on-hover>li.hover .button iframe,.socialcount.grade-a.activate-on-click>li.hover.active .button iframe{cursor:pointer}.socialcount .loading{position:absolute;left:0;top:0;width:100%;height:100%;z-index:3;background-color:#aaa;background-color:rgba(170,170,170,.7);color:#000;text-transform:uppercase;font-size:.75em;text-align:center}.socialcount-large .loading{padding-top:30%}.socialcount .loading .dot{display:inline-block;width:6px;height:6px;margin:0 3px;background:#fff;opacity:0;border-radius:50%;-webkit-animation:socialCountLoadingFade .6s infinite;-moz-animation:socialCountLoadingFade .6s infinite;animation:socialCountLoadingFade .6s infinite}.socialcount .loading .dot:nth-child(1){-webkit-animation-delay:0s;-moz-animation-delay:0s;animation-delay:0s}.socialcount .loading .dot:nth-child(2){-webkit-animation-delay:.05s;-moz-animation-delay:.05s;animation-delay:.05s}.socialcount .loading .dot:nth-child(3){-webkit-animation-delay:.1s;-moz-animation-delay:.1s;animation-delay:.1s}@-webkit-keyframes socialCountLoadingFade{0%{opacity:0}50%{opacity:.8}100%{opacity:0}}@-moz-keyframes socialCountLoadingFade{0%{opacity:0}50%{opacity:.8}100%{opacity:0}}@keyframes socialCountLoadingFade{0%{opacity:0}50%{opacity:.8}100%{opacity:0}} \ No newline at end of file +.socialcount{color:#fff;font-size:.875em;line-height:2.2em}.socialcount>li{background-color:#999}.socialcount>li,.socialcount>li>a:focus,.socialcount .loading{border-radius:5px}.socialcount>li>a:focus,.socialcount>li:hover,.socialcount>li.hover{background-color:#464646}.socialcount .count.minimum{}.socialcount{list-style:none;padding-left:0;margin:0 0 .6em;overflow:hidden}.socialcount-large{line-height:normal}.socialcount :link,.socialcount :visited{color:inherit}.socialcount>li{display:inline-block;*display:inline;zoom:1;position:relative;vertical-align:top;min-width:80px;min-height:30px;text-align:center;white-space:nowrap;*margin-right:4px}.socialcount.like.de_DE>.facebook{min-width:90px}.socialcount-small>li{min-width:0}.socialcount-large>li{float:left;margin:0 .6em .6em 0}.socialcount.recommend .facebook{min-width:120px}.socialcount-small.recommend .facebook{min-width:0}.socialcount-large>li,.socialcount-large.recommend .facebook{min-width:105px}.socialcount>li>a{display:block;padding:0 5px;text-decoration:none;color:inherit}.socialcount-small>li>a{padding-left:8px;padding-right:8px}.socialcount-large>li>a{padding:12px 5px 8px}.socialcount .count{color:inherit;position:relative;display:inline-block;*display:inline;zoom:1;text-align:center;margin-left:6px}.socialcount-large .count{display:block;width:100%;margin-left:0;padding-top:10px}.socialcount-small .count{margin-left:0}.socialcount .facebook iframe{height:21px;width:90px}.socialcount.de_DE .facebook iframe{width:83px}.socialcount.like .facebook iframe{width:48px}.socialcount.like.de_DE .facebook iframe{width:83px}.socialcount .button{display:none;width:100%;position:absolute;left:0;top:5px;text-align:center;pointer-events:none}.socialcount .button iframe{pointer-events:auto}.socialcount-large .button{top:auto;bottom:2px}.socialcount.grade-a.activate-on-hover>li.hover .count,.socialcount.grade-a.activate-on-click>li.hover.active .count{text-indent:-999px}.socialcount.grade-a.activate-on-hover>li.hover .button,.socialcount.grade-a.activate-on-click>li.hover.active .button{display:block}.socialcount.grade-a.activate-on-hover>li.hover>a,.socialcount.grade-a.activate-on-click>li.hover.active>a{cursor:default}.socialcount-small.grade-a.activate-on-hover>li.hover>a,.socialcount-small.grade-a.activate-on-click>li.hover.active>a,.socialcount.grade-a.activate-on-hover>li.hover .button iframe,.socialcount.grade-a.activate-on-click>li.hover.active .button iframe{cursor:pointer}.socialcount .loading{position:absolute;left:0;top:0;width:100%;height:100%;z-index:3;background-color:#aaa;background-color:rgba(170,170,170,.7);color:#000;text-transform:uppercase;font-size:.75em;text-align:center}.socialcount-large .loading{padding-top:30%}.socialcount .loading .dot{display:inline-block;width:6px;height:6px;margin:0 3px;background:#fff;opacity:0;border-radius:50%;-webkit-animation:socialCountLoadingFade .6s infinite;-moz-animation:socialCountLoadingFade .6s infinite;animation:socialCountLoadingFade .6s infinite}.socialcount .loading .dot:nth-child(1){-webkit-animation-delay:0s;-moz-animation-delay:0s;animation-delay:0s}.socialcount .loading .dot:nth-child(2){-webkit-animation-delay:.05s;-moz-animation-delay:.05s;animation-delay:.05s}.socialcount .loading .dot:nth-child(3){-webkit-animation-delay:.1s;-moz-animation-delay:.1s;animation-delay:.1s}@-webkit-keyframes socialCountLoadingFade{0%{opacity:0}50%{opacity:.8}100%{opacity:0}}@-moz-keyframes socialCountLoadingFade{0%{opacity:0}50%{opacity:.8}100%{opacity:0}}@keyframes socialCountLoadingFade{0%{opacity:0}50%{opacity:.8}100%{opacity:0}}.social-icon{display:inline-block;*display:inline;zoom:1;vertical-align:middle;*margin-right:5px}.socialcount.grade-a.activate-on-hover>li.hover .social-icon,.socialcount.grade-a.activate-on-click>li.hover.active .social-icon{display:none}.socialcount-small.grade-a.activate-on-hover>li.hover .social-icon,.socialcount-small.grade-a.activate-on-click>li.hover.active .social-icon,.socialcount-large.grade-a.activate-on-hover>li.hover .social-icon,.socialcount-large.grade-a.activate-on-click>li.hover.active .social-icon{display:inline-block;*display:inline;zoom:1}.icon-sprite,.icon-facebook,.icon-googleplus,.icon-pinterest,.icon-share,.icon-twitter{background:url(icon-sd6cd4d0ec7.png) no-repeat}.icon-facebook{background-position:0 0;height:15px;width:17px}.icon-googleplus{background-position:-21px 0;height:17px;width:20px}.icon-pinterest{background-position:-45px 0;height:15px;width:11px}.icon-share{background-position:-60px 0;height:16px;width:20px}.icon-twitter{background-position:-84px 0;height:15px;width:17px}@media (min--moz-device-pixel-ratio:1.5),(-o-min-device-pixel-ratio:3/2),(-webkit-min-device-pixel-ratio:1.5),(min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){.social-icon{-webkit-background-size:auto 17px;-moz-background-size:auto 17px;-o-background-size:auto 17px;background-size:auto 17px;background-image:url(icon-hd-s816aa7a6b3.png)}} \ No newline at end of file diff --git a/dist/socialcount.css b/dist/socialcount.css index 65672f4..e208560 100644 --- a/dist/socialcount.css +++ b/dist/socialcount.css @@ -1,6 +1,6 @@ -/*! SocialCount - v0.1.6 - 2013-08-08 +/*! SocialCount - v0.1.7 - 2014-08-26 * https://github.com/filamentgroup/SocialCount -* Copyright (c) 2013 zachleat; Licensed MIT */ +* Copyright (c) 2014 zachleat; Licensed MIT */ .socialcount { color: #fff; diff --git a/dist/socialcount.js b/dist/socialcount.js index 378059b..df56359 100644 --- a/dist/socialcount.js +++ b/dist/socialcount.js @@ -1,6 +1,6 @@ -/*! SocialCount - v0.1.6 - 2013-08-08 +/*! SocialCount - v0.1.7 - 2014-08-26 * https://github.com/filamentgroup/SocialCount -* Copyright (c) 2013 zachleat; Licensed MIT */ +* Copyright (c) 2014 zachleat; Licensed MIT */ ;(function( win, doc, $ ) { diff --git a/dist/socialcount.min.css b/dist/socialcount.min.css index c6055d5..a4614c0 100644 --- a/dist/socialcount.min.css +++ b/dist/socialcount.min.css @@ -1,5 +1,5 @@ -/*! SocialCount - v0.1.6 - 2013-08-08 +/*! SocialCount - v0.1.7 - 2014-08-26 * https://github.com/filamentgroup/SocialCount -* Copyright (c) 2013 zachleat; Licensed MIT */ +* Copyright (c) 2014 zachleat; Licensed MIT */ .socialcount{color:#fff;font-size:.875em;line-height:2.2em}.socialcount>li{background-color:#999}.socialcount>li,.socialcount>li>a:focus,.socialcount .loading{border-radius:5px}.socialcount>li>a:focus,.socialcount>li:hover,.socialcount>li.hover{background-color:#464646}.socialcount .count.minimum{}.socialcount{list-style:none;padding-left:0;margin:0 0 .6em;overflow:hidden}.socialcount-large{line-height:normal}.socialcount :link,.socialcount :visited{color:inherit}.socialcount>li{display:inline-block;*display:inline;zoom:1;position:relative;vertical-align:top;min-width:80px;min-height:30px;text-align:center;white-space:nowrap;*margin-right:4px}.socialcount.like.de_DE>.facebook{min-width:90px}.socialcount-small>li{min-width:0}.socialcount-large>li{float:left;margin:0 .6em .6em 0}.socialcount.recommend .facebook{min-width:120px}.socialcount-small.recommend .facebook{min-width:0}.socialcount-large>li,.socialcount-large.recommend .facebook{min-width:105px}.socialcount>li>a{display:block;padding:0 5px;text-decoration:none;color:inherit}.socialcount-small>li>a{padding-left:8px;padding-right:8px}.socialcount-large>li>a{padding:12px 5px 8px}.socialcount .count{color:inherit;position:relative;display:inline-block;*display:inline;zoom:1;text-align:center;margin-left:6px}.socialcount-large .count{display:block;width:100%;margin-left:0;padding-top:10px}.socialcount-small .count{margin-left:0}.socialcount .facebook iframe{height:21px;width:90px}.socialcount.de_DE .facebook iframe{width:83px}.socialcount.like .facebook iframe{width:48px}.socialcount.like.de_DE .facebook iframe{width:83px}.socialcount .button{display:none;width:100%;position:absolute;left:0;top:5px;text-align:center;pointer-events:none}.socialcount .button iframe{pointer-events:auto}.socialcount-large .button{top:auto;bottom:2px}.socialcount.grade-a.activate-on-hover>li.hover .count,.socialcount.grade-a.activate-on-click>li.hover.active .count{text-indent:-999px}.socialcount.grade-a.activate-on-hover>li.hover .button,.socialcount.grade-a.activate-on-click>li.hover.active .button{display:block}.socialcount.grade-a.activate-on-hover>li.hover>a,.socialcount.grade-a.activate-on-click>li.hover.active>a{cursor:default}.socialcount-small.grade-a.activate-on-hover>li.hover>a,.socialcount-small.grade-a.activate-on-click>li.hover.active>a,.socialcount.grade-a.activate-on-hover>li.hover .button iframe,.socialcount.grade-a.activate-on-click>li.hover.active .button iframe{cursor:pointer}.socialcount .loading{position:absolute;left:0;top:0;width:100%;height:100%;z-index:3;background-color:#aaa;background-color:rgba(170,170,170,.7);color:#000;text-transform:uppercase;font-size:.75em;text-align:center}.socialcount-large .loading{padding-top:30%}.socialcount .loading .dot{display:inline-block;width:6px;height:6px;margin:0 3px;background:#fff;opacity:0;border-radius:50%;-webkit-animation:socialCountLoadingFade .6s infinite;-moz-animation:socialCountLoadingFade .6s infinite;animation:socialCountLoadingFade .6s infinite}.socialcount .loading .dot:nth-child(1){-webkit-animation-delay:0s;-moz-animation-delay:0s;animation-delay:0s}.socialcount .loading .dot:nth-child(2){-webkit-animation-delay:.05s;-moz-animation-delay:.05s;animation-delay:.05s}.socialcount .loading .dot:nth-child(3){-webkit-animation-delay:.1s;-moz-animation-delay:.1s;animation-delay:.1s}@-webkit-keyframes socialCountLoadingFade{0%{opacity:0}50%{opacity:.8}100%{opacity:0}}@-moz-keyframes socialCountLoadingFade{0%{opacity:0}50%{opacity:.8}100%{opacity:0}}@keyframes socialCountLoadingFade{0%{opacity:0}50%{opacity:.8}100%{opacity:0}} \ No newline at end of file diff --git a/dist/socialcount.min.js b/dist/socialcount.min.js index 4022352..ed8f964 100644 --- a/dist/socialcount.min.js +++ b/dist/socialcount.min.js @@ -1,5 +1,5 @@ -/*! SocialCount - v0.1.6 - 2013-08-08 +/*! SocialCount - v0.1.7 - 2014-08-26 * https://github.com/filamentgroup/SocialCount -* Copyright (c) 2013 zachleat; Licensed MIT */ +* Copyright (c) 2014 zachleat; Licensed MIT */ !function(a,b,c){function d(a,c){var d=b.createElement("social").style,e="webkit Moz o ms".split(" ");if(c in d)return!0;for(var f=0,g=e.length;g>f;f++)if(e[f]+a in d)return!0;return!1}function e(a){var b=a.split("/");return b.pop(),b.join("/")+"/"}function f(){var a;return c("script").each(function(){var b=this.src||"";return b.match(i.scriptSrcRegex)?(a=e(b),!1):void 0}),a}var g,h,i={isGradeA:"querySelectorAll"in b&&!a.blackberry&&!("ontouchstart"in window)&&("undefined"==typeof window.navigator.msMaxTouchPoints||0===window.navigator.msMaxTouchPoints),minCount:1,serviceUrl:"service/index.php",initSelector:".socialcount",classes:{js:"js",gradeA:"grade-a",active:"active",touch:"touch",hover:"hover",noTransforms:"no-transforms",showCounts:"counts",countContent:"count",minCount:"minimum",activateOnHover:"activate-on-hover",activateOnClick:"activate-on-click"},thousandCharacter:"K",millionCharacter:"M",missingResultText:"-",activateOnClick:!1,selectors:{facebook:".facebook",twitter:".twitter",googleplus:".googleplus"},locale:function(){var a=b.documentElement?b.documentElement.lang||"":"";return a=a.replace(/\-/,"_"),a.match(/\w{2}_\w{2}/)?a:""}(),googleplusTooltip:"table.gc-bubbleDefault",scriptSrcRegex:/socialcount[\w.]*.js/i,plugins:{init:[],bind:[]},cache:{},removeFileName:e,resolveServiceDir:f,isCssAnimations:function(){return d("AnimationName","animationName")},isCssTransforms:function(){return d("Transform","transform")},getUrl:function(a){return a.attr("data-url")||location.href},getShareText:function(a){return a.attr("data-share-text")||""},getFacebookAction:function(a){return(a.attr("data-facebook-action")||"like").toLowerCase()},isCountsEnabled:function(a){return"true"===a.attr("data-counts")},isSmallSize:function(a){return a.is(".socialcount-small")},getCounts:function(a,b){var d,e,g,j=i.selectors,k=i.cache,l={};for(g in j)d=a.find(j[g]),e=d.find("."+i.classes.countContent),e.length?l[g]=e:(l[g]=h.clone(),d.append(l[g]));return k[b]||(k[b]=c.ajax({url:f()+i.serviceUrl,data:{url:b},dataType:"json"})),k[b].done(function(a){for(var b in a)a.hasOwnProperty(b)&&l[b]&&a[b]>i.minCount&&l[b].addClass(i.classes.minCount).html(i.normalizeCount(a[b]))}),k[b]},init:function(a){var b=i.getFacebookAction(a),c=[b],d=i.isSmallSize(a),e=i.getUrl(a),f=i.plugins.init,g=i.isCountsEnabled(a);c.push(i.classes.js),i.isGradeA&&c.push(i.classes.gradeA),i.isCssTransforms()||c.push(i.classes.noTransforms),g&&c.push(i.classes.showCounts),i.activateOnClick?c.push(i.classes.activateOnClick):c.push(i.classes.activateOnHover),i.locale&&c.push(i.locale),a.addClass(c.join(" "));for(var h=0,j=f.length;j>h;h++)f[h].call(a);i.isGradeA&&i.bindEvents(a,e,b,d),g&&!d&&i.getCounts(a,e)},normalizeCount:function(a){return a||0===a?a>=1e6?Math.floor(a/1e6)+i.millionCharacter:a>=1e5?Math.floor(a/1e3)+i.thousandCharacter:a>1e3?(a/1e3).toFixed(1).replace(/\.0/,"")+i.thousandCharacter:a:i.missingResultText},bindEvents:function(a,d,e,f){function h(a,d,e){var f=!1,h=!1;a.closest("li").bind("mouseenter",function(){var a=c(this).closest("li");a.addClass(i.classes.hover),h=!0,c(document).on("mouseenter.socialcount mouseleave.socialcount",i.googleplusTooltip,function(b){f="mouseenter"===b.type,f||h||a.removeClass(i.classes.hover)})}).bind("mouseleave",function(){var a=this;window.setTimeout(function(){h=!1,f||h||(c(document).off(".socialcount"),c(a).closest("li").removeClass(i.classes.hover))},0)}),a.one(i.activateOnClick?"click":"mouseover",function(a){i.activateOnClick&&(a.preventDefault(),a.stopPropagation());var f,h=c(this),j=h.closest("li"),k=g.clone(),l=c(d),m=c('
').append(l),n=c.Deferred();n.promise().always(function(){var a=j.find("iframe");a.length?a.bind("load",function(){k.remove()}):k.remove()}),j.addClass(i.classes.active).append(k).append(m),e?(f=b.createElement("script"),f.src=e,f.attachEvent?f.attachEvent("onreadystatechange",function(){("loaded"===f.readyState||"complete"===f.readyState)&&n.resolve()}):c(f).bind("load",n.resolve),b.body.appendChild(f)):l.is("iframe")&&n.resolve()})}if(!f){var j=i.getShareText(a);h(a.find(i.selectors.facebook+" a"),''),h(a.find(i.selectors.twitter+" a"),'Tweet',"//platform.twitter.com/widgets.js"),h(a.find(i.selectors.googleplus+" a"),'
',"//apis.google.com/js/plusone.js")}for(var k=i.plugins.bind,l=0,m=k.length;m>l;l++)k[l].call(a,h,d,f)}};c(function(){g=c("
").addClass("loading").html(i.isCssAnimations()?new Array(4).join('
'):"Loading"),h=c("").addClass(i.classes.countContent).html(" "),c(i.initSelector).each(function(){var a=c(this);i.init(a)})}),window.SocialCount=i}(window,window.document,jQuery); \ No newline at end of file diff --git a/dist/socialcount.zip b/dist/socialcount.zip index 0e77b6f..90d0a81 100644 Binary files a/dist/socialcount.zip and b/dist/socialcount.zip differ diff --git a/examples/index.html b/examples/index.html index ad11e33..7a53808 100644 --- a/examples/index.html +++ b/examples/index.html @@ -7,7 +7,9 @@ + + diff --git a/package.json b/package.json index f0ae559..6eb0740 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "socialcount", "title": "SocialCount", "description": "Progressively enhanced, lazy loaded, mobile friendly Social Networking widgets.", - "version": "0.1.6", + "version": "0.1.7", "homepage": "https://github.com/filamentgroup/SocialCount", "author": { "name": "zachleat",