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);
});
}