I have encountered an issue with my HTML code: I am using fullpage.js and the web page functions perfectly on localhost. However, once I upload all the files to the server, it stops working.
$(document).ready(function() {
if ($(window).width() > 768) {
$('#fullpage').fullpage({
menu: '#side-menu',
css3: true,
scrollingSpeed: 1500,
scrollBar: true,
recordHistory: false
});
}
else{
$.fn.fullpage.destroy('all');
}
});
Check out a demo of the website here.