HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/rentman.komma.pro/wwwroot/js/projectDetail.js
/**
 * Created by Pascal on 06/01/17.
 */

/**
 * Created by Pascal on 30/11/16.
 */

$(function () {

    // Detect if throttle and debounce function are init
    if (typeof $.throttle === "undefined") rebindThrottleDebounce();

    $(window).resize(
        $.throttle( 250, resizeProjectDetail )
    );

    setTimeout(function(){
        resizeProjectDetail();
    }, 100);

});

function resizeProjectDetail() {
    var height = 0;
    var elements = $('.other-features .feature-block a');
    elements.height('auto');
    elements.each(function () {
       if($(this).height() > height) height = $(this).height();
    });

    elements.height(height);

    $('.feature-content .feature-detail').height('auto');

    if($('.feature-content .feature-nav').height() > $('.feature-content .feature-detail').height()){
        $('.feature-content .feature-detail').height($('.feature-content .feature-nav').height());
    }

    $('.blog-items .blog-item .image').each(function(){
        $(this).height($(this).width()/70*50);
    });

}