{"size": 858, "ext": "js", "max_stars_repo_path": "assets/blocks/map/index.js", "max_stars_repo_name": "yanadyukova/yourstart", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "assets/blocks/map/index.js", "max_issues_repo_name": "yanadyukova/yourstart", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "assets/blocks/map/index.js", "max_forks_repo_name": "yanadyukova/yourstart", "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": 25.2352941176, "max_line_length": 52, "alphanum_fraction": 0.5303030303}
import Scroller from 'scroller';

export default function() {
    let scroller = new Scroller();
    scroller.init();

    $('.jsMapContentToggle').click(function() {
        $(this).toggleClass('active');
        $('.jsMapContent').toggleClass('full');
        setTimeout(function() {
            scroller.update();
            scroller.update();
        }, 500);
        return false;
    });

    $('.jsMapViewToggle').click(function() {
        $('.jsMapViewToggle').toggleClass('active');
        $('.jsMapView').toggle();
        return false;
    });

    $('.jsMapSortingToggle').click(function() {
        $('.jsMapSorting').toggle();
        $('.jsMapSearch').hide();
        return false;
    });

    $('.jsMapSearchToggle').click(function() {
        $('.jsMapSearch').toggle();
        $('.jsMapSorting').hide();
        return false;
    });
}