Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- $('#site-header a').click(function() {
- var divId = $(this).data('href');
- $('body').animate({scrollTop: $('#' + divId).offset().top}, 800);
- });
- // MenuButton
- var menuBtn = $('#menu-button');
- var menu = $('#site-menu > ul');
- menuBtn.click(function(e) {
- e.preventDefault();
- menu.slideToggle();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement