summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pages/projects/jobs/index/index.js
blob: 1b57c67f16b7ea41568658733364f78db2411327 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Vue from 'vue';
import GlCountdown from '~/vue_shared/components/gl_countdown.vue';

document.addEventListener('DOMContentLoaded', () => {
  const remainingTimeElements = document.querySelectorAll('.js-remaining-time');
  remainingTimeElements.forEach(
    el =>
      new Vue({
        ...GlCountdown,
        el,
        propsData: {
          endDateString: el.dateTime,
        },
      }),
  );
});