Smooth scroll stopped working.

  • jdockett
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
10 years 2 months ago #44050 by jdockett
It looks like adding the catch caused an error. Try removing it and I'll take another look at it later today.

Please Log in to join the conversation.

More
10 years 2 months ago #44051 by info@keesvandenboogaart.nl
I.ll removed the script.
I'm curious if you can find a solution

thanks Kees

Please Log in to join the conversation.

More
10 years 2 months ago #44052 by ivan.milic
You have error in:

templates/hot_one_page/js/hot_onepage.js

use one in attachment.

Please Log in to join the conversation.

  • jdockett
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
10 years 2 months ago #44054 by jdockett
Ivan,

I don't see an attachment.

Kees,

When you track down the attachment I'd replace it as instructed. I'm just seeing errors in the hot_onepage.js script too. I haven't worked on the site in over a year now. I'm a little rusty.

Please Log in to join the conversation.

More
10 years 2 months ago #44060 by info@keesvandenboogaart.nl
I m sorry"
Here is the attachment
I think you mean the script in

templates/hot_one_page/js/hot_onepage.js

// calling tabs

jQuery("#tabs").tabs();


jQuery(".scroll, .mp_topmenu a").click(function(event){
event.preventDefault();
jQuery('html,body').animate({scrollTop:jQuery(this.hash).offset().top}, 500);
}catch(e){
jQuery('html,body').animate({scrollTop:0}, 500);
}
});

// set big image container height
var bodyHeight = jQuery(window).height();
var bodyHeightSinglePage = jQuery(window).height() - 240;
jQuery('.fullwidth').css('height', bodyHeight);
jQuery('div.item-page').css('min-height', bodyHeightSinglePage);


});

Please Log in to join the conversation.

More
10 years 2 months ago #44064 by ivan.milic
yes I see sorry, here it is.
Attachments:

Please Log in to join the conversation.

Time to create page: 0.094 seconds
Powered by Kunena Forum