PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / 2.5.0
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution v2.5.0
2.5.0 2.4.0 2.3.0 2.2.5 2.2.0 2.1.2 2.1.1 trunk 1.10.0 1.10.01 1.10.02 1.5.0 1.5.01 1.5.02 1.5.1 1.5.10 1.5.20 1.5.21 1.5.22 1.5.23 1.5.24 1.5.25 1.6.0 1.7.0 1.7.1 All 34 releases
← All changes | assets/admin/global_admin.js +1 -1 2.2.0 → 2.5.0 View file →
@@ -1 +1 @@
1 -(()=>{function e(){var e=parseInt(document.getElementById("fcal_server_timestamp").getAttribute("data-timestamp"),10),t=new Date(1e3*e),o=t.getUTCFullYear()+"-"+("0"+(t.getUTCMonth()+1)).slice(-2)+"-"+("0"+t.getUTCDate()).slice(-2)+" "+("0"+(t.getUTCHours()%12||12)).slice(-2)+":"+("0"+t.getUTCMinutes()).slice(-2)+(t.getUTCHours()<12?" am":" pm");document.getElementById("fcal_server_timestamp").textContent="Server Time: "+o,document.getElementById("fcal_server_timestamp").setAttribute("data-timestamp",e+60)}var t;jQuery(document).ready((function(e){jQuery(".update-nag,.notice, #wpbody-content > .updated, #wpbody-content > .error").remove()})),window.toggleMobileMenu=function(){var e=document.getElementById("fcal_mobile_menu_list");null==e||e.style.setProperty("display","flex"===e.style.display?"none":"flex")},window.toggleColorMode=function(){var e=document.getElementById("wpbody-content");if(e){var t=e.classList.contains("dark");e.classList.toggle("dark",!t),document.documentElement.classList.toggle("dark",!t),localStorage.setItem("fcal_color_mode",t?"light":"dark")}},(t=document.getElementById("wpbody-content"))&&("dark"===localStorage.getItem("fcal_color_mode")?(t.classList.add("dark"),document.documentElement.classList.add("dark")):(t.classList.remove("dark"),document.documentElement.classList.remove("dark"))),e(),setInterval(e,6e4)})();
1 +(function(){"use strict";(function(){var c="fluent_theme_mode",m="fcal_color_mode",p="fcal_app_host",g="fluent_theme_dark",w="dark",y=["light","dark","system"],r=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null,i=null;function d(){var e="";try{e=window.localStorage.getItem(c)||""}catch{return"light"}if(!e)try{return window.localStorage.getItem(m)==="dark"?"dark":"light"}catch{return"light"}var t=e.split(":")[0];return y.indexOf(t)===-1?"light":t}function _(){return r&&r.matches?"dark":"light"}function u(e){return e==="system"?_():e}var f=!1;function v(){var e=u(d())==="dark",t=document.getElementById("wpbody-content");document.body.classList.add(p),document.body.classList.toggle(g,e),t&&t.classList.toggle(w,e)}function k(){if(document.body){v();return}f||(f=!0,document.addEventListener("DOMContentLoaded",function(){f=!1,v()}))}function o(e,t){var n=u(e),a=n==="dark";if(document.documentElement.classList.toggle(g,a),document.documentElement.classList.toggle(w,a),t!==!1)try{window.localStorage.setItem(c,e)}catch{}if(k(),window.dispatchEvent(new CustomEvent("fluent_theme_changed",{detail:{mode:n}})),t!==!1){try{window.localStorage.setItem(m,n)}catch{}i&&i.postMessage({mode:e})}}window.toggleColorMode=function(){o(u(d())==="dark"?"light":"dark",!0)},window.fluentBookingSetThemeMode=function(e){o(y.indexOf(e)===-1?"light":e,!0)},window.toggleMobileMenu=function(){var e=document.getElementById("fcal_mobile_menu_list");e&&e.style.setProperty("display",e.style.display==="flex"?"none":"flex")},typeof BroadcastChannel<"u"&&(i=new BroadcastChannel("fluent_theme_changed:"+window.location.origin),i.onmessage=function(e){e.data&&e.data.mode&&o(e.data.mode,!1)}),window.addEventListener("storage",function(e){e.key===c&&o(d(),!1)}),r&&r.addEventListener&&r.addEventListener("change",function(){d()==="system"&&o("system",!0)}),o(d(),!0);function h(){var e=document.getElementById("fcal_server_timestamp");if(e){var t=function(){var n=parseInt(e.getAttribute("data-timestamp"),10);if(!isNaN(n)){var a=new Date(n*1e3),s=a.getUTCHours(),l=function(C){return("0"+C).slice(-2)};e.textContent="Server Time: "+a.getUTCFullYear()+"-"+l(a.getUTCMonth()+1)+"-"+l(a.getUTCDate())+" "+l(s%12||12)+":"+l(a.getUTCMinutes())+(s<12?" am":" pm"),e.setAttribute("data-timestamp",n+60)}};t(),window.setInterval(t,6e4)}}window.jQuery&&window.jQuery(document).ready(function(e){e(".update-nag, .notice, #wpbody-content > .updated, #wpbody-content > .error").remove()}),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",h):h()})()})();