Skip to content

AyumuKasuga/LikeMeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LikeMeter

jQuery plugin for create custom like counters

If you want create custom like buttons, you might want to create custom like counters. This plugin will help you.

Example

$.LikeMeter(
    {
        urls: ['http://mail.ru', 'http://yandex.ru', 'http://google.com'],
        networks: ['facebook', 'twitter', 'vk', 'myworld', 'linkedin', 'odnoklassniki', 'pinterest'], 
        callback: your_callback_function
    }
);

parameters explanation:

  • urls - one or more urls (with http:// or https://)
  • networks - social networks (add only the ones you will use)
  • callback - your callback function (if you do not specify this, result will print into console)

Your function will get structure like this:

{
    'http://google.com': 
    {
        facebook: 5112940,
        linkedin: 10977,
        myworld: 491,
        twitter: 7485,
        vk: 4312,
        odnoklassniki: 100500,
        pinterest: 100500
    },
    'http://yandex.ru': 
    {
        facebook: 8476,
        linkedin: 173,
        myworld: 1757,
        twitter: 1053,
        vk: 2458,
        odnoklassniki: 100500,
        pinterest: 100500
    },
    'http://mail.ru': 
    {
        facebook: 10282,
        linkedin: 764,
        myworld: 116579,
        twitter: 120789,
        vk: 58929,
        odnoklassniki: 100500,
        pinterest: 100500
    },
    
}

Examples in action

Supported social networks

githalytics.com alpha

About

jQuery plugin for create custom like counters

Resources

Stars

Watchers

Forks

Packages

No packages published