$(function() { $('#faq').accordion({ autoHeight: false, }); setTimeout(function() { // Fix profile left white border $.each($('div.content div.posts'), function(i, e) { var h = $(e).height() + 'px'; $('div.content div.forum').eq(i).css('height', h); }); // Fix post borders $.each($('div.userinfo'), function(i, e) { var a = $('div.post-content').eq(i); var e = $(e); if ((a.height() > e.height()) && (a.height() > e.css('min-height').replace('px', ''))) { e.css('height', a.height() + 'px'); } else { a.css('height', e.height() + 'px'); } }); }, 100); $('.delete').click(function() { if (confirm('¿Estás seguro?')) { if ($(this).hasClass('submit')) { $('form').submit(); } return true; } return false; }); (function() { var max = 0; $.each($('div.info div.col'), function() { max = Math.max(max, $(this).height()); }); $.each($('div.info div.col'), function() { $(this).height(max + 'px'); }); return max; })(); }); (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));