Basic sample of AntLike button

In this basic sample, default parameters of AntLike button are used. Only the value of the counter is specified.

If the current state is "unlike", when on mouse hover event fired, it becomes "like". The counter is incremented when on click event fired. When on mouse out event fired, without click, the current state returns to its original state.

Source Code

//basic initialisation of AntLike button with 56 "likes"
$("#AntLikeButton").AntLike({//Custom parameters
    "nbLikes": 56