Sh3ll
OdayForums


Server : Apache
System : Linux 145.162.205.92.host.secureserver.net 5.14.0-611.45.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 1 05:56:53 EDT 2026 x86_64
User : tradze ( 1001)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /home/tradze/public_html/public/themes/frontend_new/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/tradze/public_html/public/themes/frontend_new/assets/js/jquery-countdowngampang.min.js
/**************************************************************************************************************************************************/
/* 
 * jQuery CountdownGampang
 * written by Shidiq Fadhilah - Indonesia <akhmadshidiqfadhilah@gmail.com>
 * Licensed under the MIT license https://github.com/fadhilah1992/jquery-countdowngampang/blob/main/LICENSE
 * Version 1.0.1
 * 
 * jQuery ClassyCountdown
 * www.class.pm
 *
 * Written by Marius Stanciu - Sergiu <marius@class.pm>
 * Licensed under the MIT license www.class.pm/LICENSE-MIT
 * Version 1.0.1
 /**************************************************************************************************************************************************/

!(function (s) {
    s.fn.CountdownGampang = function (e, o) {
        if (!jQuery().knob) throw "CountdownGampang require jQuery knob.";
        if (!jQuery.throttle) throw "CountdownGampang require jQuery throttle / debounce.";
        var a = s(this),
            l = {
                rampung: void 0,
                labels: !0,
                labelsOptions: { lang: { days: "Days", hours: "Hours", minutes: "Minutes", seconds: "Seconds" }, style: "font-size: 0.5em;" },
                style: {
                    element: "",
                    labels: !1,
                    textResponsive: 0.5,
                    days: { gauge: { thickness: 0.02, bgColor: "rgba(0, 0, 0, 0)", fgColor: "rgba(0, 0, 0, 1)", lineCap: "butt" }, textCSS: "" },
                    hours: { gauge: { thickness: 0.02, bgColor: "rgba(0, 0, 0, 0)", fgColor: "rgba(0, 0, 0, 1)", lineCap: "butt" }, textCSS: "" },
                    minutes: { gauge: { thickness: 0.02, bgColor: "rgba(0, 0, 0, 0)", fgColor: "rgba(0, 0, 0, 1)", lineCap: "butt" }, textCSS: "" },
                    seconds: { gauge: { thickness: 0.02, bgColor: "rgba(0, 0, 0, 0)", fgColor: "rgba(0, 0, 0, 1)", lineCap: "butt" }, textCSS: "" },
                },
                onEndCallback: function () {
                    window.console && window.console.log && window.console.log("[CountdownGampang::isRampung] Wayae, wayae ......");
                },
            };
        if (!e.rampung) throw "Parameter options.rampung must passed bro.";
        function t() {
            a.find(".ClassyCountdown-wrapper > div").each(function () {
                s(this).css("height", s(this).width() + "px");
            }),
                l.style.textResponsive && a.find(".ClassyCountdown-value").css("font-size", Math.floor((a.find("> div").eq(0).width() * l.style.textResponsive) / 10) + "px"),
                a.find(".ClassyCountdown-value").each(function () {
                    s(this).css("margin-top", Math.floor(0 - parseInt(s(this).height()) / 2) + "px");
                }),
                a.find(".ClassyCountdown-days input").trigger("change"),
                a.find(".ClassyCountdown-hours input").trigger("change"),
                a.find(".ClassyCountdown-minutes input").trigger("change"),
                a.find(".ClassyCountdown-seconds input").trigger("change");
        }
        function n(e) {
            switch (e) {
                case "flat-colors":
                    return {
                        labels: !0,
                        style: {
                            element: "",
                            textResponsive: 0.5,
                            days: { gauge: { thickness: 0.01, bgColor: "rgba(0,0,0,0.05)", fgColor: "#1abc9c" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            hours: { gauge: { thickness: 0.01, bgColor: "rgba(0,0,0,0.05)", fgColor: "#008000" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            minutes: { gauge: { thickness: 0.01, bgColor: "rgba(0,0,0,0.05)", fgColor: "#8e44ad" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            seconds: { gauge: { thickness: 0.01, bgColor: "rgba(0,0,0,0.05)", fgColor: "#f39c12" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                        },
                    };
                case "flat-colors-wide":
                    return {
                        labels: !0,
                        style: {
                            element: "",
                            textResponsive: 0.5,
                            days: { gauge: { thickness: 0.05, bgColor: "rgba(0,0,0,0.05)", fgColor: "#0022c3" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            hours: { gauge: { thickness: 0.05, bgColor: "rgba(0,0,0,0.05)", fgColor: "#0022c3" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            minutes: { gauge: { thickness: 0.05, bgColor: "rgba(0,0,0,0.05)", fgColor: "#0022c3" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            seconds: { gauge: { thickness: 0.05, bgColor: "rgba(0,0,0,0.05)", fgColor: "#0022c3" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                        },
                    };
                case "flat-colors-very-wide":
                    return {
                        labels: !0,
                        style: {
                            element: "",
                            textResponsive: 0.5,
                            days: { gauge: { thickness: 0.05, bgColor: "rgba(255,255,255,.3)", fgColor: "#0022c3" }, textCSS: "font-weight:600;color:#fff;" },
                            hours: { gauge: { thickness: 0.05, bgColor: "rgba(255,255,255,.3)", fgColor: "#0022c3" }, textCSS: "font-weight:600;color:#fff;" },
                            minutes: { gauge: { thickness: 0.05, bgColor: "rgba(255,255,255,.3)", fgColor: "#0022c3" }, textCSS: "font-weight:600;color:#fff;" },
                            seconds: { gauge: { thickness: 0.05, bgColor: "rgba(255,255,255,.3)", fgColor: "#0022c3" }, textCSS: "font-weight:600;color:#fff;" },
                        },
                    };
                case "flat-colors-black":
                    return {
                        labels: !0,
                        style: {
                            element: "",
                            textResponsive: 0.5,
                            days: { gauge: { thickness: 0.25, bgColor: "rgba(0,0,0,0.05)", fgColor: "#1abc9c", lineCap: "round" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            hours: { gauge: { thickness: 0.25, bgColor: "rgba(0,0,0,0.05)", fgColor: "#008000", lineCap: "round" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            minutes: { gauge: { thickness: 0.25, bgColor: "rgba(0,0,0,0.05)", fgColor: "#8e44ad", lineCap: "round" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            seconds: { gauge: { thickness: 0.25, bgColor: "rgba(0,0,0,0.05)", fgColor: "#f39c12", lineCap: "round" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                        },
                    };
                case "black":
                    return {
                        labels: !0,
                        style: {
                            element: "",
                            textResponsive: 0.5,
                            days: { gauge: { thickness: 0.01, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            hours: { gauge: { thickness: 0.01, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            minutes: { gauge: { thickness: 0.01, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            seconds: { gauge: { thickness: 0.01, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                        },
                    };
                case "black-wide":
                    return {
                        labels: !0,
                        style: {
                            element: "",
                            textResponsive: 0.5,
                            days: { gauge: { thickness: 0.03, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            hours: { gauge: { thickness: 0.03, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            minutes: { gauge: { thickness: 0.03, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            seconds: { gauge: { thickness: 0.03, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                        },
                    };
                case "black-very-wide":
                    return {
                        labels: !0,
                        style: {
                            element: "",
                            textResponsive: 0.5,
                            days: { gauge: { thickness: 0.17, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            hours: { gauge: { thickness: 0.17, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            minutes: { gauge: { thickness: 0.17, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            seconds: { gauge: { thickness: 0.17, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                        },
                    };
                case "black-black":
                    return {
                        labels: !0,
                        style: {
                            element: "",
                            textResponsive: 0.5,
                            days: { gauge: { thickness: 0.25, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222", lineCap: "round" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            hours: { gauge: { thickness: 0.25, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222", lineCap: "round" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            minutes: { gauge: { thickness: 0.25, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222", lineCap: "round" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                            seconds: { gauge: { thickness: 0.25, bgColor: "rgba(0,0,0,0.05)", fgColor: "#222", lineCap: "round" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#34495e;" },
                        },
                    };
                case "white":
                    return {
                        labels: !0,
                        style: {
                            element: "",
                            textResponsive: 0.5,
                            days: { gauge: { thickness: 0.03, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                            hours: { gauge: { thickness: 0.03, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                            minutes: { gauge: { thickness: 0.03, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                            seconds: { gauge: { thickness: 0.03, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                        },
                    };
                case "white-wide":
                    return {
                        labels: !0,
                        style: {
                            element: "",
                            textResponsive: 0.5,
                            days: { gauge: { thickness: 0.06, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                            hours: { gauge: { thickness: 0.06, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                            minutes: { gauge: { thickness: 0.06, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                            seconds: { gauge: { thickness: 0.06, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                        },
                    };
                case "white-very-wide":
                    return {
                        labels: !0,
                        style: {
                            element: "",
                            textResponsive: 0.5,
                            days: { gauge: { thickness: 0.16, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                            hours: { gauge: { thickness: 0.16, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                            minutes: { gauge: { thickness: 0.16, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                            seconds: { gauge: { thickness: 0.16, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                        },
                    };
                case "white-black":
                    return {
                        labels: !0,
                        style: {
                            element: "",
                            textResponsive: 0.5,
                            days: { gauge: { thickness: 0.25, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff", lineCap: "round" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                            hours: { gauge: { thickness: 0.25, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff", lineCap: "round" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                            minutes: { gauge: { thickness: 0.25, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff", lineCap: "round" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                            seconds: { gauge: { thickness: 0.25, bgColor: "rgba(255,255,255,0.05)", fgColor: "#fff", lineCap: "round" }, textCSS: "font-family:'Open Sans';font-weight:300;color:#fff;" },
                        },
                    };
            }
        }
        ((l = s.extend(!0, l, e)).onEndCallback = o),
            (l = e.theme ? ("default" === e.theme && (e.theme = "flat-colors-very-wide"), s.extend(!0, l, n(e.theme))) : s.extend(!0, l, n("flat-colors-very-wide"))),
            a.append(
                '<div class="ClassyCountdown-wrapper"><div class="ClassyCountdown-days"><input type="text" /><span class="ClassyCountdown-value"><div></div><span></span></span></div><div class="ClassyCountdown-hours"><input type="text" /><span class="ClassyCountdown-value"><div></div><span></span></span></div><div class="ClassyCountdown-minutes"><input type="text" /><span class="ClassyCountdown-value"><div></div><span></span></span></div><div class="ClassyCountdown-seconds"><input type="text" /><span class="ClassyCountdown-value"><div></div><span></span></span></div></div>'
            ),
            a.find(".ClassyCountdown-days input").knob(s.extend({ width: "100%", displayInput: !1, readOnly: !0, max: 365 }, l.style.days.gauge)),
            a.find(".ClassyCountdown-hours input").knob(s.extend({ width: "100%", displayInput: !1, readOnly: !0, max: 24 }, l.style.hours.gauge)),
            a.find(".ClassyCountdown-minutes input").knob(s.extend({ width: "100%", displayInput: !1, readOnly: !0, max: 60 }, l.style.minutes.gauge)),
            a.find(".ClassyCountdown-seconds input").knob(s.extend({ width: "100%", displayInput: !1, readOnly: !0, max: 60 }, l.style.seconds.gauge)),
            a.find(".ClassyCountdown-wrapper > div").attr("style", l.style.element),
            a.find(".ClassyCountdown-days .ClassyCountdown-value").attr("style", l.style.days.textCSS),
            a.find(".ClassyCountdown-hours .ClassyCountdown-value").attr("style", l.style.hours.textCSS),
            a.find(".ClassyCountdown-minutes .ClassyCountdown-value").attr("style", l.style.minutes.textCSS),
            a.find(".ClassyCountdown-seconds .ClassyCountdown-value").attr("style", l.style.seconds.textCSS),
            a.find(".ClassyCountdown-value").each(function () {
                s(this).css("margin-top", Math.floor(0 - parseInt(s(this).height()) / 2) + "px");
            }),
            l.labels &&
                (a.find(".ClassyCountdown-days .ClassyCountdown-value > span").html(l.labelsOptions.lang.days),
                a.find(".ClassyCountdown-hours .ClassyCountdown-value > span").html(l.labelsOptions.lang.hours),
                a.find(".ClassyCountdown-minutes .ClassyCountdown-value > span").html(l.labelsOptions.lang.minutes),
                a.find(".ClassyCountdown-seconds .ClassyCountdown-value > span").html(l.labelsOptions.lang.seconds),
                a.find(".ClassyCountdown-value > span").attr("style", l.labelsOptions.style));
        var g = setInterval(function () {
            var e = new Date().getTime(),
                o = l.rampung - e,
                t = Math.floor(o / 864e5),
                n = Math.floor((o % 864e5) / 36e5),
                s = Math.floor((o % 36e5) / 6e4),
                e = Math.floor((o % 6e4) / 1e3);
            o < 0 && (e = s = n = t = 0),
                a
                    .find(".ClassyCountdown-days input")
                    .val(365 - t)
                    .trigger("change"),
                a
                    .find(".ClassyCountdown-hours input")
                    .val(24 - n)
                    .trigger("change"),
                a
                    .find(".ClassyCountdown-minutes input")
                    .val(60 - s)
                    .trigger("change"),
                a
                    .find(".ClassyCountdown-seconds input")
                    .val(60 - e)
                    .trigger("change"),
                a.find(".ClassyCountdown-days .ClassyCountdown-value > div").html(t),
                a.find(".ClassyCountdown-hours .ClassyCountdown-value > div").html(n),
                a.find(".ClassyCountdown-minutes .ClassyCountdown-value > div").html(s),
                a.find(".ClassyCountdown-seconds .ClassyCountdown-value > div").html(e),
                o < 0 && (clearInterval(g), l.onEndCallback());
        }, 1e3);
        a.find(".ClassyCountdown-wrapper > div").each(function () {
            s(this).css("height", s(this).width() + "px");
        }),
            l.style.textResponsive &&
                (a.find(".ClassyCountdown-value").css("font-size", Math.floor((a.find("> div").eq(0).width() * l.style.textResponsive) / 10) + "px"),
                a.find(".ClassyCountdown-value").each(function () {
                    s(this).css("margin-top", Math.floor(0 - parseInt(s(this).height()) / 2) + "px");
                })),
            s(window).trigger("resize"),
            s(window).resize(s.throttle(50, t));
    };
})(jQuery);

ZeroDay Forums Mini