jQuery Code Tweak (resize not working on browser shrink)

Completed Posted 4 years ago Paid on delivery
Completed Paid on delivery

I have a piece of jQuery running to equalise the heights of title elements within posts (the posts already have equal height code running on them as well).

To minimise conflicts, I've reused some of the same code, but can't get the resize working when the browser is narrowed:

(function($){

function gridMatchTitleHeight(){

var highestTitle = 0;

$('.recent-activity .fl-post-text').css('height', '').each(function(){

if( $(this).height() > highestTitle ){

highestTitle = $(this).height();

}

});

$('.recent-activity .fl-post-text').height( highestTitle );

}

$(function(){

gridMatchTitleHeight();

});

[login to view URL]( 'resize', gridMatchTitleHeight );

})( jQuery );

It works great if you refresh the page/on page load, but if I could get the resize working when the browser size changes that'd be awesome.

Should hopefully be the work of moments for someone well versed in jQuery (not me), and I can try the code instantly and add it where it needs to be, so no need to log in or edit files etc. Tweak the above, send it over, I'll test, job done.

jQuery / Prototype CSS JavaScript HTML PHP

Project ID: #20466938

About the project

9 proposals Remote project Active 4 years ago

Awarded to:

fastestJohn

Hello. I have just read your project. https://www.freelancer.com/u/fastestJohn?w=f This is my profile. I am really interested in your project now. Because my skills are suitable for your project. I like the "Fastest" a More

£20 GBP in 7 days
(51 Reviews)
6.0

9 freelancers are bidding on average £16 for this job

kyleevert

Hi. thanks for your posting. I am a expert I'm very happy to have a chance of bidding your project. I have read carefully the descriptions and understood clearly what you want. I have experience in development of the p More

£15 GBP in 7 days
(24 Reviews)
5.9
scrufDev

Hello, Could you provide a link to the page where this is supposed to run? Your code looks good to me, so I think I'd need to see how the page actually behaves.

£15 GBP in 1 day
(19 Reviews)
4.6
pinesucceed01

Hi there, I am a PHP developer and very keen in your posted job, please check my experience according what you need: Back-End Web Development. 6 years’ commercial experience with CakePHP. 2 years’ commercial experien More

£15 GBP in 7 days
(9 Reviews)
4.3
germancasais

Hello. I can help you. I have more than 10 years of experience in website design and development over HTML, CSS, Bootstrap, Javascript, jQuery, AJAX, Angular, PHP and MySQL technologies. Thanks, regards.

£20 GBP in 1 day
(7 Reviews)
4.3
avnishtomarforu

Hi, Myself Avnish Tomar below is the working code you can use it. If gives any error you can msg me i can fix that. If you give me few minutes i can fix this on your desk. <script> function changeSize(){ var highestTi More

£15 GBP in 1 day
(2 Reviews)
1.4
anshsparkle

HI I am experienced in etc I can start right now but i have few doubts and questions lets have a quick chat and get it started waiting for your reply

£15 GBP in 7 days
(2 Reviews)
1.3
CathyNorris

Hi I am web designer. I can complete your project perfectly. I have top skill of php and html. I want to work for you. If you have good opinion for me, connect me! thank you. I believe, we meet again soon.

£15 GBP in 7 days
(0 Reviews)
0.0