PageSourceSearch

https://angelaproffitt.com/wp-content/themes/soprano-theme/public/scripts/controllers/countdown.js?ver=7.1.3

js angelaproffitt.com collected 2026-10-08 12:03:59 UTC 1,334 bytes, 42 lines download raw bytes

1/*! ===================================
2 *  Author: Roman Nazarkin, Egor Dankov
3 *  -----------------------------------
4 *  PuzzleThemes
5 *  =================================== */
6
7
8/***********************************************
9 * Countdown widget init
10 ***********************************************/
11(function ($) {
12    'use strict';
13
14    // setup events
15    var $blocks = $('.sp-countdown-block').on('update.countdown', function (event) {
16        var $this = $(this);
17
18        $this.find('.remaining-timer.seconds > .count').html(event.strftime('%S'));
19        $this.find('.remaining-timer.minutes > .count').html(event.strftime('%M'));
20        $this.find('.remaining-timer.hours > .count').html(event.strftime('%H'));
21
22        if (event.offset.days > 0) {
23            $this.find('.remaining-timer.days > .count').html(event.strftime('%d'));
24        } else {
25            $this.find('.remaining-timer.days').hide();
26        }
27
28        if (event.offset.weeks > 0) {
29            $this.find('.remaining-timer.weeks > .count').html(event.strftime('%w'));
30        } else {
31            $this.find('.remaining-timer.weeks').hide();
32        }
33    });
34
35    // run countdowns
36    $blocks.each(function () {
37        var $this = $(this),
38            deadline = $this.data('deadline');
39
40        $this.countdown(deadline);
41    });
42})(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.