{"size": 1235, "ext": "js", "max_stars_repo_path": "public/js/hotel.js", "max_stars_repo_name": "IvanCeban/HotelRousseau", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/hotel.js", "max_issues_repo_name": "IvanCeban/HotelRousseau", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/hotel.js", "max_forks_repo_name": "IvanCeban/HotelRousseau", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.0681818182, "max_line_length": 65, "alphanum_fraction": 0.4647773279}
jQuery(document).ready(function($){
    $("select").selectBoxIt();
    $(function(){
        $(".slides").slidesjs({
            width: 460,
            height: 400,
            pagination: {
                active: false
            }
        });
    });

    $('.hotel_main_content_nav ul li').on('click', function(){
        $('.hotel_main_content_nav ul li').removeClass('active');
        $(this).addClass('active');
        var attr_name = $(this).attr('name');
        $('#hotel_rooms').css({"display": "none"});
        $('#hotel_offers').css({"display": "none"});
        $('#hotel_reservation').css({"display": "none"});
        $('#'+attr_name+'').css({"display": "block"})
    });



    // var offset = $('.sidebar-scroll').offset().top;
    // if($(window).scrollTop() > offset){
    //     $('.sidebar-scroll').addClass('fixed');
    // }


    $(window).on('scroll', function() {

        if($(this).scrollTop() > offset){
            if(!$('.sidebar-scroll').hasClass('fixed')){
                $('.sidebar-scroll').addClass('fixed');
            }
        } else {
            if ($('.sidebar-scroll').hasClass('fixed')) {
                $('.sidebar-scroll').removeClass('fixed');
            }
        }

    })
});