![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/claquemagazineawards.com/wp-content/themes/coming-soon-event/assets/js/ |
/** * =================================================================== * javascript plugins * * ------------------------------------------------------------------- */ /*! Notes: ===== /* HTML5 Placeholder jQuery Plugin - v2.1.2 * Copyright (c)2015 Mathias Bynens * 2015-06-09 */ !(function(a) { "function" == typeof define && define.amd ? define(["jquery"], a) : a("object" == typeof module && module.exports ? require("jquery") : jQuery); })(function(a) { function b(b) { var c = {}, d = /^jQuery\d+$/; return(a.each(b.attributes, function(a, b) { b.specified && !d.test(b.name) && (c[b.name] = b.value); }), c); } function c(b, c) { var d = this, f = a(d); if(d.value == f.attr("placeholder") && f.hasClass(m.customClass)) if(f.data("placeholder-password")) { if(((f = f.hide().nextAll('input[type="password"]:first').show().attr("id", f.removeAttr("id").data("placeholder-id"))), b === !0)) return(f[0].value = c); f.focus(); } else(d.value = ""), f.removeClass(m.customClass), d == e() && d.select(); } function d() { var d, e = this, f = a(e), g = this.id; if("" === e.value) { if("password" === e.type) { if(!f.data("placeholder-textinput")) { try { d = f.clone().prop({ type: "text" }); } catch(h) { d = a("<input>").attr(a.extend(b(this), { type: "text" })); } d.removeAttr("name").data({ "placeholder-password": f, "placeholder-id": g }).bind("focus.placeholder", c), f.data({ "placeholder-textinput": d, "placeholder-id": g }).before(d); } f = f.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id", g).show(); } f.addClass(m.customClass), (f[0].value = f.attr("placeholder")); } else f.removeClass(m.customClass); } function e() { try { return document.activeElement; } catch(a) {} } var f, g, h = "[object OperaMini]" == Object.prototype.toString.call(window.operamini), i = "placeholder" in document.createElement("input") && !h, j = "placeholder" in document.createElement("textarea") && !h, k = a.valHooks, l = a.propHooks; if(i && j) (g = a.fn.placeholder = function() { return this; }), (g.input = g.textarea = !0); else { var m = {}; (g = a.fn.placeholder = function(b) { var e = { customClass: "placeholder" }; m = a.extend({}, e, b); var f = this; return(f.filter((i ? "textarea" : ":input") + "[placeholder]").not("." + m.customClass).bind({ "focus.placeholder": c, "blur.placeholder": d }).data("placeholder-enabled", !0).trigger("blur.placeholder"), f); }), (g.input = i), (g.textarea = j), (f = { get: function(b) { var c = a(b), d = c.data("placeholder-password"); return d ? d[0].value : c.data("placeholder-enabled") && c.hasClass(m.customClass) ? "" : b.value; }, set: function(b, f) { var g = a(b), h = g.data("placeholder-password"); return h ? (h[0].value = f) : g.data("placeholder-enabled") ? ("" === f ? ((b.value = f), b != e() && d.call(b)) : g.hasClass(m.customClass) ? c.call(b, !0, f) || (b.value = f) : (b.value = f), g) : (b.value = f); }, }), i || ((k.input = f), (l.value = f)), j || ((k.textarea = f), (l.value = f)), a(function() { a(document).delegate("form", "submit.placeholder", function() { var b = a("." + m.customClass, this).each(c); setTimeout(function() { b.each(d); }, 10); }); }), a(window).bind("beforeunload.placeholder", function() { a("." + m.customClass).each(function() { this.value = ""; }); }); } }); /*! * The Final Countdown for jQuery v2.2.0 (http://hilios.github.io/jQuery.countdown/) * Copyright (c) 2016 Edson Hilios * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ !(function(a) { "use strict"; "function" == typeof define && define.amd ? define(["jquery"], a) : a(jQuery); })(function(a) { "use strict"; function b(a) { if(a instanceof Date) return a; 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); throw new Error("Couldn't cast `" + a + "` to a date object."); } function c(a) { var b = a.toString().replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1"); return new RegExp(b); } function d(a) { return function(b) { var d = b.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi); if(d) for(var f = 0, g = d.length; f < g; ++f) { var h = d[f].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/), j = c(h[0]), k = h[1] || "", l = h[3] || "", m = null; (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()))); } return(b = b.replace(/%%/, "%")); }; } function e(a, b) { var c = "s", d = ""; 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; } var f = [], g = [], h = { precision: 100, elapse: !1, defer: !1 }; 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("|"))); var i = { Y: "years", m: "months", n: "daysToMonth", d: "daysToWeek", w: "weeks", W: "weeksToMonth", H: "hours", M: "minutes", S: "seconds", D: "totalDays", I: "totalHours", N: "totalMinutes", T: "totalSeconds" }, j = function(b, c, d) { (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(); }; a.extend(j.prototype, { start: function() { null !== this.interval && clearInterval(this.interval); var a = this; this.update(), (this.interval = setInterval(function() { a.update.call(a); }, this.options.precision)); }, stop: function() { clearInterval(this.interval), (this.interval = null), this.dispatchEvent("stoped"); }, toggle: function() { this.interval ? this.stop() : this.start(); }, pause: function() { this.stop(); }, resume: function() { this.start(); }, remove: function() { this.stop.call(this), (f[this.instanceNumber] = null), delete this.$el.data().countdownInstance; }, setFinalDate: function(a) { this.finalDate = b(a); }, update: function() { if(0 === this.$el.closest("html").length) return void this.remove(); var b, c = void 0 !== a._data(this.el, "events"), d = new Date(); (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 = { seconds: this.totalSecsLeft % 60, minutes: Math.floor(this.totalSecsLeft / 60) % 60, hours: Math.floor(this.totalSecsLeft / 60 / 60) % 24, days: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7, daysToWeek: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7, daysToMonth: Math.floor((this.totalSecsLeft / 60 / 60 / 24) % 30.4368), weeks: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 7), weeksToMonth: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 7) % 4, months: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 30.4368), years: Math.abs(this.finalDate.getFullYear() - d.getFullYear()), totalDays: Math.floor(this.totalSecsLeft / 60 / 60 / 24), totalHours: Math.floor(this.totalSecsLeft / 60 / 60), totalMinutes: Math.floor(this.totalSecsLeft / 60), totalSeconds: this.totalSecsLeft, }), this.options.elapse || 0 !== this.totalSecsLeft ? this.dispatchEvent("update") : (this.stop(), this.dispatchEvent("finish"))); }, dispatchEvent: function(b) { var c = a.Event(b + ".countdown"); (c.finalDate = this.finalDate), (c.elapsed = this.elapsed), (c.offset = a.extend({}, this.offset)), (c.strftime = d(this.offset)), this.$el.trigger(c); }, }), (a.fn.countdown = function() { var b = Array.prototype.slice.call(arguments, 0); return this.each(function() { var c = a(this).data("countdown-instance"); if(void 0 !== c) { var d = f[c], e = b[0]; 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)); } else new j(this, b[0], b[1]); }); }); });