{"id":13447737,"url":"https://github.com/filamentgroup/SocialCount","last_synced_at":"2025-03-22T01:31:14.709Z","repository":{"id":3921440,"uuid":"5011210","full_name":"filamentgroup/SocialCount","owner":"filamentgroup","description":"Unmaintained (see the README): Simple barebones project to show share counts from various social networks.","archived":true,"fork":false,"pushed_at":"2018-11-30T18:24:40.000Z","size":838,"stargazers_count":1356,"open_issues_count":0,"forks_count":118,"subscribers_count":85,"default_branch":"master","last_synced_at":"2025-03-15T02:39:16.816Z","etag":null,"topics":["facebook","third-party-javascript","twitter","widget"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/filamentgroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-12T22:25:34.000Z","updated_at":"2024-10-31T10:04:40.000Z","dependencies_parsed_at":"2022-08-31T05:22:07.097Z","dependency_job_id":null,"html_url":"https://github.com/filamentgroup/SocialCount","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filamentgroup%2FSocialCount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filamentgroup%2FSocialCount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filamentgroup%2FSocialCount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filamentgroup%2FSocialCount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/filamentgroup","download_url":"https://codeload.github.com/filamentgroup/SocialCount/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244893433,"owners_count":20527590,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["facebook","third-party-javascript","twitter","widget"],"created_at":"2024-07-31T05:01:25.577Z","updated_at":"2025-03-22T01:31:14.403Z","avatar_url":"https://github.com/filamentgroup.png","language":"JavaScript","readme":"# ⚠️ Unmaintained: SocialCount\n\nPer [our unmaintained repository status documentation](https://github.com/filamentgroup/standards-and-conventions/) this repository is in an as-is state and is no longer accepting issue reports or pull requests.\n\n[![Filament Group](http://filamentgroup.com/images/fg-logo-positive-sm-crop.png) ](http://www.filamentgroup.com/)\n\n*Copyright (c) 2012 Filament Group, developed by [@zachleat](https://github.com/zachleat). MIT licensed.*\n\nRelated: [Filament Group Lab Post](http://filamentgroup.com/lab/socialcount/)\n\nThe problems with social networking widgets are [well documented][zurb]. They're heavy and slow to load especially on high-latency mobile connections.\n\n[zurb]: http://www.zurb.com/article/883/small-painful-buttons-why-social-media-bu\n\nSocialCount is a small jQuery plugin for progressively enhanced, lazy loaded, mobile friendly social networking widgets.\n\n * Currently supports Facebook, Twitter, and Google Plus.\n * **1.12 kB** CSS and **2.73 kB** JS (after Min+GZip—compared to 366 kB, or 100 kB repeat view, for Facebook, Twitter, and Google Plus widgets)\n * 1 JS request, 1 CSS request, 1 optional request for icons (compared to 21 total requests for Facebook, Twitter, and Google Plus widgets)\n * Easy to fit in with existing page design\n * Ability to share without JavaScript or before JavaScript has loaded.\n * Works with mouse, touchscreen, or keyboard.\n\t * Mouse: On hover, loads a social network's native widget so that the user can Like/Recommend/+1 without leaving the current page.\n\t * Touch screen: simple redirects to dedicated network share pages.\n\t * Keyboard: Concise tab order.\n * Intelligent client-side caching so that two or more widgets with the same share URL only make one AJAX request.\n * Requires jQuery 1.6+\n\n_Note that while this project is named *SocialCount*, the server side code to fetch the share counts was removed. Both Twitter and Facebook have or will remove their public share count APIs. This functionality is going bye bye._\n\n## [SocialCount Demo][demourl]\n\n[demourl]: http://filamentgroup.github.io/SocialCount/examples/\n\n## Getting Started\n\nInstall via [NPM](https://www.npmjs.com/package/fg-socialcount) (`npm install --save fg-socialcount`).\n\nAlternatively, the following archive contains both minified (`socialcount.min.js`+`socialcount.min.css`) and unminified (`socialcount.js`+`socialcount.css`) versions of the JS and CSS required to use SocialCount.\n\nBy default, the social networking icons are not included. However, SocialCount publishes a version that does include the social networking icons: Use the regular `socialcount.js` with `socialcount-with-icons.css` or `socialcount-with-icons.min.css` and the included SD and HD image sprites.\n\n### Download [socialcount.zip][zipfile]\n\n[zipfile]: https://raw.github.com/filamentgroup/SocialCount/master/dist/socialcount.zip\n\n### Markup with icons:\n\nCustomize the sample markup below or use the provided  [markup generator][generator].\n\n[generator]: http://filamentgroup.github.io/SocialCount/examples/markup-generator.html\n\n    \u003c!-- Replace YOUR_CUSTOM_URL with the URL you're sharing --\u003e\n\n\t\u003cul class=\"socialcount\" data-url=\"YOUR_CUSTOM_URL\"\u003e\n\n\t\u003cli class=\"facebook\"\u003e\u003ca href=\"https://www.facebook.com/sharer/sharer.php?u=YOUR_CUSTOM_URL\" title=\"Share on Facebook\"\u003e\u003cspan class=\"social-icon icon-facebook\"\u003e\u003c/span\u003e\u003cspan class=\"count\"\u003eLike\u003c/span\u003e\u003c/a\u003e\u003c/li\u003e\n\n\t\u003cli class=\"twitter\"\u003e\u003ca href=\"https://twitter.com/intent/tweet?text=YOUR_CUSTOM_URL\" title=\"Share on Twitter\"\u003e\u003cspan class=\"social-icon icon-twitter\"\u003e\u003c/span\u003e\u003cspan class=\"count\"\u003eTweet\u003c/span\u003e\u003c/a\u003e\u003c/li\u003e\n\n\t\u003cli class=\"googleplus\"\u003e\u003ca href=\"https://plus.google.com/share?url=YOUR_CUSTOM_URL\" title=\"Share on Google Plus\"\u003e\u003cspan class=\"social-icon icon-googleplus\"\u003e\u003c/span\u003e\u003cspan class=\"count\"\u003e+1\u003c/span\u003e\u003c/a\u003e\u003c/li\u003e\n\n\t\u003c/ul\u003e\n\n## Tested with\n* Chrome Desktop 23\n* Firefox 16\n* Opera 12\n* Safari 6\n* Internet Explorer 7 (Links Only)\n* Internet Explorer 8\n* Internet Explorer 9\n* Internet Explorer 10\n* Windows Phone 7.5\n\nTouchscreens (Links Only)\n\n* BlackBerry 5\n* BlackBerry 6.1\n* BlackBerry 7\n* iOS 6\n* Chrome for iOS 21\n* Android 2.3\n\n## Contributing\nAdd unit tests for any new or changed functionality. Lint and test your JavaScript code using [grunt](https://github.com/cowboy/grunt) and the `grunt qunit` command.\n\n## Release History\n* `v0.1.0` Initial release\n* `v0.1.1` Fix for IE (tested up to 9) issue with iframes and :hover rules\n* `v0.1.2` Default AJAX request for counts to false, added zip download, better documentation for counts service.\n* `v0.1.3` Added code to normalize service url directory (easier configuration).\n* `v0.1.4` Fix for twitter widget share of non-current page URL. Added data-share-text.\n* `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.\n* `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.\n* `v0.1.7` Bug fix: #42\n* `v0.1.8` Bug fix: #45\n* [`v0.1.9`](https://github.com/filamentgroup/SocialCount/releases/tag/v0.1.9)\n* [`v0.2.0`](https://github.com/filamentgroup/SocialCount/releases/tag/v0.2.0) Removes Twitter from service, per Twitter’s API retirement.\n* [`v1.0.0`](https://github.com/filamentgroup/SocialCount/milestone/3?closed=1)\n\n## Advanced Options\n\n* `SocialCount.activateOnClick = false;` Global option to switch from load triggering on hover to a manual click.\n* `SocialCount.thousandCharacter = 'K';` `SocialCount.millionCharacter = 'M';` i18n Strings.\n* Use `SocialCount.load( $element )` to programmatically load all of the SocialCount buttons in the `$element` object. You can pass a container with multiple types of buttons or a single button.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilamentgroup%2FSocialCount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilamentgroup%2FSocialCount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilamentgroup%2FSocialCount/lists"}