!function(a){"use strict";function b(){f()}function c(){}function d(){}function e(){}function f(){a(document).on("click",".eltd-like",function(){var b,c=a(this),d=c.attr("id");if(c.hasClass("liked"))return!1;void 0!==c.data("type")&&(b=c.data("type"));var e={action:"creator_elated_like",likes_id:d,type:b};a.post(eltdLike.ajaxurl,e,function(a){c.html(a).addClass("liked").attr("title","You already like this!"),"portfolio_list"!==b&&c.children("span").css("opacity",1)});return!1})}var g={};eltd.modules.like=g,g.eltdLikes=f,g.eltdOnDocumentReady=b,g.eltdOnWindowLoad=c,g.eltdOnWindowResize=d,g.eltdOnWindowScroll=e,a(document).ready(b),a(window).on("load",c),a(window).resize(d),a(window).scroll(e)}(jQuery);