[Solved] How have they made new Foxy Bingo site


The site don’t include multiple pages but use history api pushstate to change url with the name of the file like (using jQuery code):

var $win = $(window);
$('a#bar').click(function() {
    anim_jump($('#bar'));
    history.pushState(null, "page 2", "bar.html");
});

window.onpopstate = function(event) {
  var file = document.location.replace(/.*\//, '');
  $('html, body').prop('scrollTop', $('#' + file.replace(/.html$/)).offset().top);
};
function anim_jump(item) {
    $('html, body').animate({
        scrollTop: item.offset().top
    }, 2000);
}

solved How have they made new Foxy Bingo site