{"size": 546, "ext": "js", "max_stars_repo_path": "src/js/components/_stickyHeader.js", "max_stars_repo_name": "rd290915/MokoMoko---FE", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/js/components/_stickyHeader.js", "max_issues_repo_name": "rd290915/MokoMoko---FE", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/js/components/_stickyHeader.js", "max_forks_repo_name": "rd290915/MokoMoko---FE", "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": 22.75, "max_line_length": 59, "alphanum_fraction": 0.6098901099}
var stickyHeader = {
  init: function() {
    this.dom()
    this.eventList()
  },
  dom: function() {
    this.window = $(window)
    this.header = $('#header')
    this.headerInner = this.header.find('.mk-header-inner')
  },
  eventList: function() {
    this.stickyHeader()
    this.window.on('scroll', this.stickyHeader.bind(this))
  },
  stickyHeader: function() {
    if (this.window.scrollTop() > 50) {
      this.headerInner.addClass('bg-white')
    } else {
      this.headerInner.removeClass('bg-white')
    }
  }
}
stickyHeader.init()
