JavaScript code not working correctly

I’m trying to use JavaScript to grab the page height and use that height on the div.

But somehow it’s not grabbing the right height. More details are in the ticket.

This is the code used

($ => {

$(document).ready(() => {

const page_height = $('.home').height();

$('.home .mask').height(page_height - 1440);

});

})(jQuery);

  • viobru
    • Recruit

    Hi, Rasmus!

    Hope you are doing great :slight_smile:

    I was checking this but I’m not a JavaScript expert, so I pinged my teammates from SLS to check if they can give their valuable feedback on this.

    Please note that they work round the clock and they have to deal with lots of critical issues on a daily basis, so it may take a little while for them to check this and give feedback. Also, if this customization is too complex to achieve, they might suggest to hire a developer to assist you with it.

    Thanks for your comprehension.

    Kind regards,

    Violeta

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.