Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « show « compare « projects « pages « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f1cf9caa28b0c26e3e583d557746092e6e82bc94 (plain)
1
2
3
4
5
6
7
8
9
10
import Diff from '~/diff';
import GpgBadges from '~/gpg_badges';
import initChangesDropdown from '~/init_changes_dropdown';

document.addEventListener('DOMContentLoaded', () => {
  new Diff(); // eslint-disable-line no-new
  const paddingTop = 16;
  initChangesDropdown(document.querySelector('.navbar-gitlab').offsetHeight - paddingTop);
  GpgBadges.fetch();
});