Sep 03, 2019
Select a new website them...
Learn how to select a new website theme and build out your home page 0){
jQuery(".skFacebookLink").trigger("click");
} else if (typeof window.defaultTab !== "undefined" && window.defaultTab === "TW1" && jQuery(".skTwitter").length > 0){
jQuery(".skTwitterLink").trigger("click");
} else {
jQuery($link[0]).trigger("click");
}
}
});
var $win = jQuery(window),
currentWidth = $win.width();
$win.resize( function(){
if (currentWidth == $win.width()) return;
currentWidth = $win.width();
resizeFacebookPagePlugin();
});
function resizeFacebookPagePlugin(){
if ( jQuery(".facebook-plugin:visible").length > 0 ){
var $iframe = jQuery(".facebook-plugin:visible"),
$parent = $iframe.parents(".skFBWrapper:visible"),
$cntWidth = $parent.width(),
$iframeWidth = $iframe.width(),
$cntHeight = $parent.height(),
$url = $iframe.attr('data-src'),
$updateUrl = $url.replace(/&width=.*&height=.*&small/g, "&width=" + $cntWidth + "&height=" + $cntHeight + "&small");
if ( $cntWidth > 500 ) {
$cntWidth = 500;
}
if ( ( $cntWidth == $iframeWidth && typeof $iframe.attr("src") !== "undefined") || ( $cntWidth >= 500 && $iframeWidth >= 500 && typeof $iframe.attr("src") !== "undefined") ) return;
$iframe.attr({"src": $updateUrl,"height": $cntHeight, "width": $cntWidth });
$iframe.css({"height": $cntHeight, "width": $cntWidth });
}
}