{"id":15890748,"url":"https://github.com/distroid/share-it","last_synced_at":"2025-09-01T07:39:33.820Z","repository":{"id":48030390,"uuid":"66305637","full_name":"distroid/share-it","owner":"distroid","description":"Simple JS library for create sharing buttons","archived":false,"fork":false,"pushed_at":"2021-08-10T19:38:58.000Z","size":2063,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T12:55:33.310Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://distroid.github.io/share-it/","language":"CSS","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/distroid.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":"2016-08-22T20:28:56.000Z","updated_at":"2024-10-09T17:02:25.000Z","dependencies_parsed_at":"2022-08-12T17:01:24.957Z","dependency_job_id":null,"html_url":"https://github.com/distroid/share-it","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/distroid/share-it","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distroid%2Fshare-it","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distroid%2Fshare-it/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distroid%2Fshare-it/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distroid%2Fshare-it/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/distroid","download_url":"https://codeload.github.com/distroid/share-it/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distroid%2Fshare-it/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273089728,"owners_count":25043829,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-06T07:08:07.226Z","updated_at":"2025-09-01T07:39:33.772Z","avatar_url":"https://github.com/distroid.png","language":"CSS","readme":"# Share It\n\nShare It — Simple JS library for create sharing buttons with counters. The JavaScript library is written **without using JQuery** or any other tools / frameworks.\n\nHow supported:\n\n - VKontakte\n - Facebook\n - LinkedIn\n - Google Plus\n - Twitter\n - Pinterest\n - Mail.ru\n - Odnoklassniki\n - Tumblr\n\nYou can see online demo - [https://distroid.github.io/share-it/](https://distroid.github.io/share-it/)\n\n## Usage\n\nAdd HTML code to your page\n\n```html\n\u003cdiv data-url=\"https://github.com/\" class=\"share-it-buttons\"\u003e\n  \u003cdiv class=\"vkontakte\"\u003e\u003c/div\u003e\n  \u003cdiv class=\"linkedin\"\u003e\u003c/div\u003e\n  \u003cdiv class=\"facebook\"\u003e\u003c/div\u003e\n  \u003cdiv class=\"twitter\"\u003e\u003c/div\u003e\n  \u003cdiv class=\"google-plus\"\u003e\u003c/div\u003e\n  \u003cdiv class=\"mailru\"\u003e\u003c/div\u003e\n  \u003cdiv class=\"odnoklassniki\"\u003e\u003c/div\u003e\n  \u003cdiv class=\"tumblr\"\u003e\u003c/div\u003e\n  \u003cdiv data-media=\"https://code-bit.com/social.png\" class=\"pinterest\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n\nYou can init widget by two ways:\n\n1. Include JS script to footer your page or after widget code, widget will generate automatically.\n2. Include JS script on `\u003cHEAD\u003e` with other scripts and for init widget use constructor.\n```javascript\n\u003cscript type=\"text/javascript\"\u003e\n    new window.ShareIt()\n\u003c/script\u003e\n```\n\nWidget theme — Minimal color\n\n![enter image description here](https://code-bit.com/social.png?v=1.0.3)\n\n## Options\n\nFor add parameters to widget need add attrubute `data-\u003cparameter\u003e`\n\n### Base widget parameters\n\nCan be redefined for specific button\n\n\n Parameter      | Values            | Description                                       | Default\n----------------|:------------------|:--------------------------------------------------|:----------------\n`url`           | string            | Page url                                          | window.location\n`counters`      | true \\| false     | Use sharing counters                              | true\n`window`        | true \\| false     | Open url in a popup                               | false\n`titles`        | true \\| false     | Is add html attribute `title=\"Share to \u003csocial\u003e\"` | true\n`description`   | string            | Page description                                  | page title\n\n### Buttons parameters\n\nYou can use attribute `data-text=\"Button text\"` for specific button for replace custom button text.\n\n#### VKontakte\n\nParameter     | Values        | Description\n--------------|:--------------|:------------------\n`url`         | string        | Page url for share\n`title`       | string        | Post title\n`description` | string        | Post text\n`image`       | string        | Url to image\n`noparse`     | true \\| false |\n`no_vk_links` | integer [0,1] |\n\n[See more](https://vk.com/dev/widget_share?f=4.%20%D0%94%D0%BE%D0%BF%D0%BE%D0%BB%D0%BD%D0%B8%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%D1%8B%D0%B5%20%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B8) in official documentation.\n\n#### Facebook\n\nParameter     | Values        | Description\n--------------|:--------------|:------------------\n`url`         | string        | Page url for share\n`title`       | string        | Post title\n`description` | string        | Post text\n`picture`     | string        | Url to image\n\n\n[See more](https://developers.facebook.com/docs/plugins/share-button) in official documentation.\n\n#### LinkedIn\n\nParameter     | Values        | Description\n--------------|:--------------|:------------------\n`url`         | string        | Page url for share\n`title`       | string        | Post title\n`description` | string        | Post text\n\n#### Google Plus\n\nParameter     | Values        | Description\n--------------|:--------------|:------------------\n`url`         | string        | Page url for share\n\n[See more](https://developers.google.com/+/plugins/share/#sharelink) in official documentation.\n\n#### Twitter\n\nParameter     | Values        | Description\n--------------|:--------------|:------------------\n`url`         | string        | Page url for share\n`title`       | string        | Post title\n`description` | string        | Post text\n`hashtags`    | string        | List of tags (example,demo)\n`screen_name` | string        | Address the Tweet to a specific user.\n`via`         | string        | Attribute the source of a Tweet to a Twitter username\n`related`     | string        | List of accounts related to the content of the shared URI.\n\n\n[See more](https://dev.twitter.com/web/tweet-button/parameters) in official documentation.\n\n#### Pinterest\n\nParameter     | Values        | Description\n--------------|:--------------|:---------------------------------\n`media`       | string        | Url to image  (***requred***)\n`description` | string        | Post text\n\n#### Mail.ru\n\nParameter     | Values        | Description\n--------------|:--------------|:------------------\n`url`         | string        | Page url for share\n`title`       | string        | Post title\n`description` | string        | Post text\n`image_url`   | string        | Url to image\n`swfurl`      | string        | Url to Flash-movie\n`width`       | string        | Video width\n`height`      | string        | Video height\n\n[See more](http://api.mail.ru/sites/plugins/share/extended/) in official documentation.\n\n#### Odnoklassniki\n\nParameter     | Values        | Description\n--------------|:--------------|:------------------\n`url`         | string        | Page url for share\n`title`       | string        | Post title\n`description` | string        | Post text\n\n#### Tumblr\n\nParameter     | Values        | Description\n--------------|:--------------|:------------------\n`url`         | string        | Page url for share\n`title`       | string        | Post title\n\n[See more](https://www.tumblr.com/docs/en/share_button) in official documentation.\n\n## Contributions\n\n1. Fork the project\n2. Make your feature addition or bug fix\n3. Send me a pull request on Github\n\nFor compilation in root folder use command:\n\n`coffee --watch --compile --output lib/ src/`\n\nAnd for create min JS files:\n\n`gulp watch`\n\n## License\n\nShare-It is released under the [MIT License](http://www.opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistroid%2Fshare-it","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdistroid%2Fshare-it","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistroid%2Fshare-it/lists"}