Feature tour navigation not working due to broken inline JavaScript

Bug #1860617 reported by Benjamin Geese
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kubuntu Website
Undecided
Unassigned

Bug Description

On the Feature Tour Site [1], the navigation using the icons is not working. This is probably caused by a html tag inside the JavaScript. See Line 214 of the source:
```
      <p><script type="text/javascript"><br />
(function ($) {<br />
$( document ).ready(function() {<br />
 var topDistance = $('#header').height() - 32;<br />
 var animateTimer = 800; // Miliseconds<br />
 $('.feature_tour_nav_element').click(function(){<br />
 $this = $(this);<br />
 var section = $this.data('section');<br />
 section = $('.'+section);<br />
 var top = section.offset().top;<br />
 $('body,html').animate({scrollTop: top-topDistance}, animateTimer);<br />
 })<br />
});<br />
}(jQuery));<br />
```

1: https://kubuntu.org/feature-tour/

Revision history for this message
Aaron Honeycutt (aaronhoneycutt) wrote :

Are you talking about this line?:

 $('body,html').animate({scrollTop: top-topDistance}, animateTimer);<br />

TBH I'm not quite sure how it could be fixed due to some oddness in WordPress.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers