function attachHandlers() {
            // event that check if the hash is changed
            $(window).on("hashchange", function() {
                isSurveyBusy(function(busy) {
                    // console.log(busy);
                    if (!busy) {
                        // get the hash without #
                        var hash = window.location.hash.substring(1);

                        // call the method that swipe through pages
                        slidingNavigation.loadSlide(hash);
                    } else {
                        window.location.hash = index;
                    }
                });
            });

        }
// method that handle all events within this class
method that handle all events within this class
method that handle all events within this class
function attachHandlers() {
            $(window).on("hashchange", function() {
                isSurveyBusy(function(busy) {
                    if (!busy) {
                        var hash = window.location.hash.substring(1);
                        slidingNavigation.loadSlide(hash);
                    } else {
                        window.location.hash = index;
                    }
                });
            });
        }
function attachHandlers ( ) { $ ( window ) . on ( "hashchange" , function ( ) { isSurveyBusy ( function ( busy ) { if ( ! busy ) { var hash = window . location . hash . substring ( 1 ) ; slidingNavigation . loadSlide ( hash ) ; } else { window . location . hash = index ; } } ) ; } ) ; }
method that handle all events within this class
method that handle all events within this class
// event that check if the hash is changed // console.log(busy); // get the hash without # // call the method that swipe through pages