{"size": 494, "ext": "js", "max_stars_repo_path": "ui_scrollto.js", "max_stars_repo_name": "mjtalbatana/dev-library-js", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "ui_scrollto.js", "max_issues_repo_name": "mjtalbatana/dev-library-js", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "ui_scrollto.js", "max_forks_repo_name": "mjtalbatana/dev-library-js", "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": 32.9333333333, "max_line_length": 65, "alphanum_fraction": 0.6315789474}
// requires GreenSock's ScrollTo Plug-in to function

function uiScrollTo(targetid){
  var selectors = document.getElementsByClassName('ui-scrollto'),
      body = document.getElementsByTagName('body')[0];

  for(l=0; l<data.length; l++){
    var tl1 = new TimelineMax({repeat: 0, delay: 0}),
        tl2 = new TimelineMax({repeat: 0, delay: 0});

    tl1.to(selectors[l], 1, {scrollTo: {y:'#'+targetid}});
    tl2.to(body, 1, {opacity: 0.2})
       .to(selectors[l], 0.25, {opacity: 1});
  }
}