Address:

© 2019 Knegt Tractors. all rights reserved. 6i © 2019 / Loaded in 0.1223 seconds

function setDescriptionBox(){ var ht = $('.mPartner .info .table').outerHeight(); var dh = $('.mPartner .info .description').height('').innerHeight(); var btnReadMore = $('.readmore.button'); console.log(dh); console.log(ht); if(dh < ht){ btnReadMore.hide(); }else{ btnReadMore.show(); $('.mPartner .info .description').stop(true,true).animate({height: ht + 'px'}); $('.mPartner .readmore a').unbind('click'); $('.mPartner .readmore a').click(function(e) { e.preventDefault(); if( $(this).hasClass('status') == 'isOpen' ){ $('.mPartner .info .description').animate({height: ht + 'px'}); $(this).html('Lees meer'); $(this).removeClass('status', 'more'); }else{ $('.mPartner .info .description').animate({height: dh + 'px'}); $(this).html('Verbergen'); $(this).addClass('isOpen'); } return false; }); } } $(window).resize(function(){ setDescriptionBox(); }); setDescriptionBox(); }