function vpn_height() { vpn_info_height = $('.vpn-info').outerHeight() - 6 + 29; $('.vpn-info-wrap .torrent-detail .shadow').css('bottom', -vpn_info_height) } function resizeHeight() { jQuery('.js-height .js-col').maxHeight(); } resizeHeight(); $(window).resize(function() { vpn_height(); resizeHeight(); }) function torrent_desc_width() { torrent_wrap_width = $('.torrent-detail-page .torrent-detail').width(); torrent_image_width = $('.torrent-image-wrap').outerWidth(); torrent_detail_width = $('.torrent-detail-info').outerWidth(); torrent_total_width = torrent_wrap_width - torrent_image_width - 1; $('.torrent-detail-info').css('min-width', torrent_total_width); } $(window).resize(function() { torrent_desc_width(); }); $('a[data-toggle="tab"]').tab(); $(window).load(function() { vpn_height(); torrent_desc_width(); $(".content-row").mCustomScrollbar(); }); $("img.lazy").lazyload({ effect: "fadeIn", placeholder: '/images/profile-load.svg' }); $('a[href="/torrent/4553507/Uncharted-4-A-Thief-s-End-CUSA04529-PS4-PKG-auctor/#comments"]').on('shown.bs.tab', function() { $("img.lazy").lazyload({ effect: "fadeIn", placeholder: '/images/profile-load.svg' }); }); var modal_url; $('.js-modal-url').click(function() { modal_url = $(this).attr('href') }); $('#alert-popup').on('shown.bs.modal', function(e) { setTimeout(function() { window.location.href = modal_url; }, 3000); // Chnage location Time })