var Main=(function($, FB){
'use strict';
return {
data: {},
boot: function(data){
this.data=data;
$(document).ready(function(){
this.init();
}.bind(this));
},
init: function(){
this.listen();
this.removeP();
},
listen: function(){
var self=this;
$('body').on('click', '.ssba-wrap a', function(event){
event.preventDefault();
self.engageShareButton(this);
});
},
engageShareButton: function(event){
if('mobile'===$(event).data('facebook')){
FB.ui({
method: 'share',
mobile_iframe: true,
href: $(event).data('href')
}, function(response){});
}else{
if('email'===$(event).data('site')||'print'===$(event).data('site')||'pinterest'===$(event).data('site')){
window.location.href=$(event).attr('href');
}else{
var width=575,
height=520,
left=($(window).width() - width) / 2,
top=($(window).height() - height) / 2,
opts='status=1' +
',width=' + width +
',height=' + height +
',top=' + top +
',left=' + left;
window.open($(event).attr('href'), 'share', opts);
}}
},
removeP: function(){
}};})(window.jQuery, window.FB);