ACC SHELL

Path : /srv/www/vhosts/eqnxold/boardman/assets/js/src/
File Upload :
Current File : /srv/www/vhosts/eqnxold/boardman/assets/js/src/main.js

// Avoid `console` errors in browsers that lack a console.
(function() {
    var method;
    var noop = function () {};
    var methods = [
        'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
        'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
        'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
        'timeline', 'timelineEnd', 'timeStamp', 'trace', 'warn'
    ];
    var length = methods.length;
    var console = (window.console = window.console || {});

    while (length--) {
        method = methods[length];

        // Only stub undefined methods.
        if (!console[method]) {
            console[method] = noop;
        }
    }
}());

$(document).ready(function(){

    // Function for smooth scroll to target section
    function smoothScroll(target) {
        $('body, html').animate({
            'scrollTop': target.offset().top
        }, 600);
    }

    // Smooth scroll to the section
    $('.js-scroll').on('click', function(event){
        event.preventDefault();

        smoothScroll($(this.hash));
    });
});

ACC SHELL 2018