Line 217: | Line 217: | ||
popup.classList.toggle("show"); | popup.classList.toggle("show"); | ||
} | } | ||
+ | |||
+ | pagination(); | ||
+ | |||
+ | $(document).on('scroll', pagination); | ||
+ | |||
+ | $(document).on('click', 'a[href^="#"]', function(e) { | ||
+ | e.preventDefault(); | ||
+ | $('html, body').animate({ | ||
+ | scrollTop: $($.attr(this, 'href')).offset().top | ||
+ | }, 500); | ||
+ | }); | ||
</script> | </script> |
Revision as of 10:11, 17 October 2018