You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
1.3 KiB

4 years ago
  1. /***************************************************************************************************
  2. LoadingOverlay Extras - Progress
  3. Author : Gaspare Sganga
  4. Version : 1.5.4
  5. License : MIT
  6. Documentation : https://gasparesganga.com/labs/jquery-loading-overlay/
  7. ****************************************************************************************************/
  8. var LoadingOverlayProgress = function (t) { function e() { var t = $("<div>", { class: "loadingoverlay_progress_wrapper", css: { position: "absolute", top: 0, left: 0, width: "100%", height: "100%" } }); return s = $("<div>", { class: "loadingoverlay_progress_bar", css: $.extend(!0, { position: "absolute", left: "0" }, a.bar) }).appendTo(t), r = $("<div>", { class: "loadingoverlay_progress_text", css: $.extend(!0, { position: "absolute", left: "0", "text-align": "right", "white-space": "nowrap" }, a.text), text: "0 %" }).appendTo(t), o(0), t } function o(t) { t < 0 && (t = 0), t > 100 && (t = 100); var e = { right: 100 - t + "%" }; s.css(e), r.css(e), r.text(t + "%") } var s, r, a = $.extend(!0, {}, { bar: { bottom: "25px", height: "20px", background: "#9bbb59" }, text: { bottom: "50px", font: "14pt/1.2 sans-serif", color: "#303030" } }, t); return { Init: e, Update: o } };