/** * Note: This file may contain artifacts of previous malicious infection. * However, the dangerous code has been removed, and the file is now safe to use. */ //]]> function getFrameFacebook() { if($('.fb-like-box').find('iframe').get(0) == undefined) { recursiveTimeout = setTimeout(function(){getFrameFacebook();},100); //console.log('undefined') } else { //console.log('sucess'+$('.fb-like-box').find('iframe').width()+'='+ fbWidth ) if ($('.fb-like-box').find('iframe').width() != 0) { $('.fb-like-box').find('iframe').attr('width',fbWidth+'px').css('width',fbWidth); recursiveTimeout = setTimeout(function(){getFrameFacebook();},100); $('.fb-like-box').find('iframe').load(function(){ clearTimeout(recursiveTimeout); }) } else { $('.fb-like-box').find('iframe').attr('width',fbWidth+'px').css('width',fbWidth); } } } $(document).ready(function(){ var recursiveDetectWidth = setTimeout(function(){ detectWidthFacebook(); },500); function detectWidthFacebook(){ if($('div.fbFanPageBlock').find('iframe').prop('tagName') == undefined){ recursiveDetectWidth = setTimeout(function(){ detectWidthFacebook(); },500); }else{ var fbWidth = $('div.fbFanPageBlock').find('div[data-width]').attr('data-width'); var fBody = $('div.fbFanPageBlock').find('iframe'); fBody.load(function(){ $(this).css('width',fbWidth); }) } } });