From e9694c1e42a5071e9a4983d79261fa59e7278533 Mon Sep 17 00:00:00 2001 From: Lovebecile Date: Sun, 19 Mar 2023 21:07:39 -0400 Subject: [PATCH] Changed .min vers to 1.1.1 for release --- DfEx.min.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DfEx.min.js b/DfEx.min.js index 9ba8da6..2f40bfc 100644 --- a/DfEx.min.js +++ b/DfEx.min.js @@ -2,11 +2,11 @@ * Don't worry, you're not lost. You're at the minified version of DfEx.js. The below code is not readable- but if you want the readable version, refer to the Original File or Original Repo * * Minified Version of DfEx.js for faster deployment - * Original file : https://cdn.jsdelivr.net/gh/NekoFoox/Extensible-Date-Format-Processmaker-LIB@1.1.0/DfEx.js + * Original file : https://cdn.jsdelivr.net/gh/NekoFoox/Extensible-Date-Format-Processmaker-LIB@1.1.1/DfEx.js * Original repo : https://github.com/NekoFoox/Extensible-Date-Format-Processmaker-LIB * Title : DfEx.Js * Major vers : 1 - * Minor vers 1.1.0 + * Minor vers 1.1.1 */ var currentDate=new Date,monthNames={en:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayNames={en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},currentMonthName=monthNames.en[currentDate.getMonth()],currentDayName=dayNames.en[currentDate.getDay()];function padNumber(num){return num<10?"0"+num:num}function replaceDf(match){switch(match){case"DfEx_yyyy":case"Df_yyyy":return currentDate.getFullYear();case"DfEx_yy":case"Df_yy":return padNumber(currentDate.getFullYear()%100);case"DfEx_mm":case"Df_mm":return padNumber(currentDate.getMonth()+1);case"DfEx_m":case"Df_m":return currentDate.getMonth()+1;case"DfEx_M":case"Df_M":return currentMonthName;case"DfEx_dd":case"Df_dd":return padNumber(currentDate.getDate());case"DfEx_d":case"Df_d":return currentDate.getDate();case"DfEx_D":case"Df_D":return currentDayName;case"DfEx_h":case"Df_h":return padNumber(currentDate.getHours());case"Df_H":case"DfEx_H":var hours=currentDate.getHours()%12;return 0==hours?12:hours;case"DfEx_i":case"Df_i":return padNumber(currentDate.getMinutes());case"DfEx_s":case"Df_s":return padNumber(currentDate.getSeconds());case"DfEx_tz":case"Df_tz":return currentDate.getHours()>=12?"PM":"AM";default:return match}}var formattedDate=dateFormat.replace(/(DfEx|Df)_[A-Za-z]+/g,replaceDf); \ No newline at end of file