2018-10-30, 10:28 PM
Hello,
Receiving one error:
When inspecting where this issue lies (via index page, which changes with each page as it is in the header) it is the code related to the sticky navigation. Hoping to see if anyone has any ideas what the fix for this could be.
When clicking at (index):115 this is what it is saying is an issue:
Thanks,
iso
https://fim-rpg.net/
Receiving one error:
Quote:Uncaught TypeError: Cannot read property 'top' of undefined
at (index):115
at dispatch (jquery.js?ver=1813:1)
at r.handle (jquery.js?ver=1813:1)
When inspecting where this issue lies (via index page, which changes with each page as it is in the header) it is the code related to the sticky navigation. Hoping to see if anyone has any ideas what the fix for this could be.
When clicking at (index):115 this is what it is saying is an issue:
<script>
$(document).ready(function() {
var s = $("#mainmenu");
var pos = s.position();
$(window).scroll(function() {
var windowpos = $(window).scrollTop();
if (windowpos >= pos.top) {
s.addClass("stick");
} else {
s.removeClass("stick");
}
});
});
</script>
Specifically THIS line:if (windowpos >= pos.top) {
Thanks,
iso
https://fim-rpg.net/