PageSourceSearch

https://www.cnumc.org/files/content/2023/themes/startbox_1_0/dist/assets/js/controllers/countdown.js

js cnumc.org collected 2026-10-02 07:00:16 UTC 821 bytes, 28 lines download raw bytes

1"use strict";
2
3/***********************************************
4 * TEMPLATE: COUNTDOWN
5 ***********************************************/
6(function ($) {
7  'use strict'; // check if plugin defined
8
9  if (typeof $.fn.countdown === 'undefined') {
10    return;
11  }
12
13  VLTJS.countdown = {
14    init: function init() {
15      $('.countdown').each(function () {
16        var $this = $(this),
17            dueDate = $this.data('due-date') || false;
18        $this.countdown(dueDate, function (event) {
19          $this.find('[data-days]').html(event.strftime('%D'));
20          $this.find('[data-hours]').html(event.strftime('%H'));
21          $this.find('[data-minutes]').html(event.strftime('%M'));
22          $this.find('[data-seconds]').html(event.strftime('%S'));
23        });
24      });
25    }
26  };
27  VLTJS.countdown.init();
28})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.