PageSourceSearch

https://www.atelier-maria-cepissakova.de/wp-content/themes/sixten/…/vendors/countdown.min.js?ver=@@version

js atelier-maria-cepissakova.de collected 2026-10-06 16:51:03 UTC 7,254 bytes, 148 lines download raw bytes

vendor: 7,254 bytes, lines 1-148
1/*!
2 * The Final Countdown for jQuery v2.2.0 (http://hilios.github.io/jQuery.countdown/)
3 * Copyright (c) 2016 Edson Hilios
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy of
6 * this software and associated documentation files (the "Software"), to deal in
7 * the Software without restriction, including without limitation the rights to
8 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 * the Software, and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in all
13 * copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 */
22! function (a) {
23    "use strict";
24    "function" == typeof define && define.amd ? define(["jquery"], a) : a(jQuery)
25}(function (a) {
26    "use strict";
27
28    function b(a) {
29        if (a instanceof Date) return a;
30        if (String(a).match(g)) return String(a).match(/^[0-9]*$/) && (a = Number(a)), String(a).match(/\-/) && (a = String(a).replace(/\-/g, "/")), new Date(a);
31        throw new Error("Couldn't cast `" + a + "` to a date object.")
32    }
33
34    function c(a) {
35        var b = a.toString().replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1");
36        return new RegExp(b)
37    }
38
39    function d(a) {
40        return function (b) {
41            var d = b.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);
42            if (d)
43                for (var f = 0, g = d.length; f < g; ++f) {
44                    var h = d[f].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),
45                        j = c(h[0]),
46                        k = h[1] || "",
47                        l = h[3] || "",
48                        m = null;
49                    h = h[2], i.hasOwnProperty(h) && (m = i[h], m = Number(a[m])), null !== m && ("!" === k && (m = e(l, m)), "" === k && m < 10 && (m = "0" + m.toString()), b = b.replace(j, m.toString()))
50                }
51            return b = b.replace(/%%/, "%")
52        }
53    }
54
55    function e(a, b) {
56        var c = "s",
57            d = "";
58        return a && (a = a.replace(/(:|;|\s)/gi, "").split(/\,/), 1 === a.length ? c = a[0] : (d = a[0], c = a[1])), Math.abs(b) > 1 ? c : d
59    }
60    var f = [],
61        g = [],
62        h = {
63            precision: 100,
64            elapse: !1,
65            defer: !1
66        };
67    g.push(/^[0-9]*$/.source), g.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source), g.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source), g = new RegExp(g.join("|"));
68    var i = {
69            Y: "years",
70            m: "months",
71            n: "daysToMonth",
72            d: "daysToWeek",
73            w: "weeks",
74            W: "weeksToMonth",
75            H: "hours",
76            M: "minutes",
77            S: "seconds",
78            D: "totalDays",
79            I: "totalHours",
80            N: "totalMinutes",
81            T: "totalSeconds"
82        },
83        j = function (b, c, d) {
84            this.el = b, this.$el = a(b), this.interval = null, this.offset = {}, this.options = a.extend({}, h), this.instanceNumber = f.length, f.push(this), this.$el.data("countdown-instance", this.instanceNumber), d && ("function" == typeof d ? (this.$el.on("update.countdown", d), this.$el.on("stoped.countdown", d), this.$el.on("finish.countdown", d)) : this.options = a.extend({}, h, d)), this.setFinalDate(c), this.options.defer === !1 && this.start()
85        };
86    a.extend(j.prototype, {
87        start: function () {
88            null !== this.interval && clearInterval(this.interval);
89            var a = this;
90            this.update(), this.interval = setInterval(function () {
91                a.update.call(a)
92            }, this.options.precision)
93        },
94        stop: function () {
95            clearInterval(this.interval), this.interval = null, this.dispatchEvent("stoped")
96        },
97        toggle: function () {
98            this.interval ? this.stop() : this.start()
99        },
100        pause: function () {
101            this.stop()
102        },
103        resume: function () {
104            this.start()
105        },
106        remove: function () {
107            this.stop.call(this), f[this.instanceNumber] = null, delete this.$el.data().countdownInstance
108        },
109        setFinalDate: function (a) {
110            this.finalDate = b(a)
111        },
112        update: function () {
113            if (0 === this.$el.closest("html").length) return void this.remove();
114            var b, c = void 0 !== a._data(this.el, "events"),
115                d = new Date;
116            b = this.finalDate.getTime() - d.getTime(), b = Math.ceil(b / 1e3), b = !this.options.elapse && b < 0 ? 0 : Math.abs(b), this.totalSecsLeft !== b && c && (this.totalSecsLeft = b, this.elapsed = d >= this.finalDate, this.offset = {
117                seconds: this.totalSecsLeft % 60,
118                minutes: Math.floor(this.totalSecsLeft / 60) % 60,
119                hours: Math.floor(this.totalSecsLeft / 60 / 60) % 24,
120                days: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7,
121                daysToWeek: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7,
122                daysToMonth: Math.floor(this.totalSecsLeft / 60 / 60 / 24 % 30.4368),
123                weeks: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 7),
124                weeksToMonth: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 7) % 4,
125                months: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 30.4368),
126                years: Math.abs(this.finalDate.getFullYear() - d.getFullYear()),
127                totalDays: Math.floor(this.totalSecsLeft / 60 / 60 / 24),
128                totalHours: Math.floor(this.totalSecsLeft / 60 / 60),
129                totalMinutes: Math.floor(this.totalSecsLeft / 60),
130                totalSeconds: this.totalSecsLeft
131            }, this.options.elapse || 0 !== this.totalSecsLeft ? this.dispatchEvent("update") : (this.stop(), this.dispatchEvent("finish")))
132        },
133        dispatchEvent: function (b) {
134            var c = a.Event(b + ".countdown");
135            c.finalDate = this.finalDate, c.elapsed = this.elapsed, c.offset = a.extend({}, this.offset), c.strftime = d(this.offset), this.$el.trigger(c)
136        }
137    }), a.fn.countdown = function () {
138        var b = Array.prototype.slice.call(arguments, 0);
139        return this.each(function () {
140            var c = a(this).data("countdown-instance");
141            if (void 0 !== c) {
142                var d = f[c],
143                    e = b[0];
144                j.prototype.hasOwnProperty(e) ? d[e].apply(d, b.slice(1)) : null === String(e).match(/^[$A-Z_][0-9A-Z_$]*$/i) ? (d.setFinalDate.call(d, e), d.start()) : a.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi, e))
145            } else new j(this, b[0], b[1])
146        })
147    }
148});

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.