');
}});
});
});
window.likeButtonsReady = function() { };//callback in case anything needs to do something when all buttons are ready
function getUrlParams(str) {
var vars = [], hash;
var hashes = str.slice(str.indexOf('?') + 1).split('&');
for(var i = 0; i 0) {// do this because the fancyzoom does non-fancy things and copies the innerHTML so there are two or more of evertyhing
$('#fb-loading').remove();
}
});
FB.Event.subscribe('edge.create', function(href, widget) {
noteLikeEvent(href);
});
};
function loadFbScript() {
var fbscripty = document.createElement('script');
fbscripty.type = 'text/javascript';
fbscripty.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
fbscripty.async = true;
$('#fb-root').append(fbscripty);
};
function showLikeElement(source) {
$(source).trigger('click');
}
function isCampaignUrl(href) {
var hostname = 'campaign-archive.com';
return href.indexOf(hostname) != -1;
}
function noteLikeEvent(href) {
if (isCampaignUrl(href)) {// only track the like stat when it's for this campaign
$.get("http://us1.campaign-archive1.com/facebook/like?u=9d17c9217240226bbc79d6750&id=82befa08e3&e=4447a49df1");
}
}
// –>
|
|
|