PATH: /home/hwyuvbry/pelanggan.waroenkhoki123.web.id/js
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 custom.min.js
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: custom.min.js
jQuery.fn.endlessRiver = function(n) { return n = jQuery.extend({ speed: 30, pause: !0, buttons: !1 }, n), this.each(function() { function h(n, i) { t.animate({ left: "-=" + n }, i, "linear", function() { t.children("li:first").appendTo(t); t.css("left", 0); u = t.children("li:first").outerWidth(!0); o = i / n * u; r && h(u, o) }) } function a() { t.hover(b, k) } function b() { r = !1; t.stop() } function k() { r = !0; var i = t.offset().left , n = i + t.children("li:first").outerWidth(!0) - c , f = o / u * n; h(n, f) } var i = jQuery, t = i(this), f = "ER_" + (new Date).getTime(), v, e; t.wrap('<div id="' + f + '"><\/div>'); t.css({ margin: "0 !important", padding: "0 !important" }); var u, o, r = !0, c = t.offset().left, s = 1; t.children("li.tick-clones").remove(); t.addClass("newsticker"); for (var d = t.wrap("<div class='mask'><\/div>"), l = t.parent().wrap("<div class='tickercontainer'><\/div>"), y = t.children("li"), p = function() { s = 1; t.append(y.clone(!0).addClass("tick-clones")); t.children("li").each(function(n) { s += i(this, n).outerWidth(!0) }) }, w = l.outerWidth(!0); s < w; ) p(); if (t.width(s), u = t.children("li:first").outerWidth(!0), o = u / n.speed * 1e3, h(u, o), n.pause && a(), n.buttons) { v = i('<ul class="er-controls"><li class="prev glyphicon glyphicon-chevron-left"><\/li><li class="pause glyphicon glyphicon-pause"><\/li><li class="next glyphicon glyphicon-chevron-right"><\/li><\/ul>'); v.insertAfter(l); i("body").on("click", "#" + f + " .er-controls > .pause", function() { if (!r) return !1; i(this).toggleClass("pause glyphicon-pause play glyphicon-play"); t.unbind("mouseenter mouseleave"); r = !1 }); i("body").on("click", "#" + f + " .er-controls > .play", function() { if (r) return !1; i(this).toggleClass("pause glyphicon-pause play glyphicon-play"); r = !0; a(); var f = t.offset().left , n = f + t.children("li:first").outerWidth(!0) - c , e = o / u * n; h(n, e) }); e = !1; i("body").on("click", "#" + f + " .er-controls > .next", function() { if (r) { i("#" + f + " .er-controls > .pause").toggleClass("pause glyphicon-pause play glyphicon-play"); r = !1; return } if (e) return !1; var u = t.children("li:first").outerWidth(!0) , o = u / n.speed * 1e3; e = !0; t.stop(!0, !0).animate({ left: "-=" + u }, o, "linear", function() { t.children("li:first").appendTo(t); t.css("left", 0); e = !1 }) }); i("body").on("click", "#" + f + " .er-controls > .prev", function() { var u, o; if (r) { i("#" + f + " .er-controls > .pause").toggleClass("pause glyphicon-pause play glyphicon-play"); r = !1; return } if (e) return !1; u = t.children("li:last").outerWidth(!0); t.css("left", "-" + u + "px"); t.children("li:last").prependTo(t); o = u / n.speed * 1e3; e = !0; t.stop(!0, !0).animate({ left: "+=" + u }, o, "linear", function() { e = !1 }) }) } }) } ; $( () => { const n = document.querySelector("#announcement_list"); n && n.childElementCount > 0 && $(n).endlessRiver() } ); function formatCurrency(t, l, r, n) { if ("-" == t) return t; null == t && (t = "0"), dec2 = 0, r > 0 && (dec = t.toString().split(".")).length > 1 && (dec2 = dec[1]), sign = (t = t.toString().replace(/[^0-9+\-Ee.]/g, "")) == (t = Math.abs(t)), isNaN(t) && (t = "0"), null != n && n > 0 && sign && t > n && (t = n), t = Math.floor((t = Math.floor(100 * t + .50000000001)) / 100).toString(); for (var e = 0; e < Math.floor((t.length - (1 + e)) / 3); e++) t = t.substring(0, t.length - (4 * e + 3)) + "," + t.substring(t.length - (4 * e + 3)); return "0" != t || null != r && dec2 > 0 ? (prefix = sign ? "" : "-", null != r && r > 0 && (t += "." + (dec2 = (dec = (dec2 = parseFloat(dec2 = "0." + dec2).toFixed(r)).toString().split("."))[1])), null == l ? "-" == prefix && (t = "0") : t = prefix + t) : "0" == t ? (t = "0", null != r && r > 0 && (t += "." + (dec2 = (dec = (dec2 = parseFloat(dec2 = "0." + dec2).toFixed(r)).toString().split("."))[1]))) : t = "", t } var jpEl = $("#progressive_jackpot"); setInterval(function() { var t = new Date().getTime() / 100 - 149585e5; jpEl.attr("data-value", t), jpEl.text(formatCurrency(t, null, 2)) }, 60);
SIMPAN PERUBAHAN