Skip to content

Commit a1054e2

Browse files
New release: V1.5.2
1 parent 46932c3 commit a1054e2

File tree

2 files changed

+50
-5
lines changed

2 files changed

+50
-5
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ The idea and initial work is inspired by @sngazm at https://github.com/lllyasvie
7575

7676

7777
## Update log
78+
1.5.2 Fix issue opened and solved by friendly user
79+
- Close issue https://github.com/toutjavascript/Fooocus-Log-Viewer/issues/13
7880

7981
1.5.1 Fix issues opened by friendly users
8082
- Close issues [#11](https://github.com/toutjavascript/Fooocus-Log-Viewer/issues/11)

viewer.html

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Modestly updated by https://github.com/toutjavascript
1111
https://www.toutjavascript.com
1212
13-
File Version 2024-02-06/A1
13+
File Version 2024-01-24/A1
1414
-->
1515

1616
<html lang="us">
@@ -281,15 +281,24 @@
281281
yesterday.setDate(yesterday.getDate() - 1);
282282
setDate(getWorkingDate(yesterday, -1));
283283
};
284-
const goDate = (e) => {
284+
const goDate0 = (e) => {
285285
console.log("goDate("+e.target.value+")");
286286
const day = new Date(e.target.value);
287287
console.log("day="+day);
288288
day.setDate(day.getDate());
289289
console.log("day="+day);
290290
setDate(day);
291291
}
292-
292+
const goDate = (e) => {
293+
console.log("goDate("+e.target.value+")");
294+
// Changed the direct entry into Date with a split version of the date string broken by year, month, day
295+
let wd_sp = e.target.value.split("-"); // split date into its parts
296+
const day = new Date(parseInt(wd_sp[0]), parseInt(wd_sp[1])-1, parseInt(wd_sp[2])); // loading parts directly in Date object
297+
console.log("day="+day);
298+
day.setDate(day.getDate());
299+
console.log("day="+day);
300+
setDate(day);
301+
}
293302

294303
const fetchData = () => {
295304
if (!isToday) {
@@ -1763,7 +1772,7 @@
17631772
}
17641773

17651774

1766-
function toggleCalendar() {
1775+
function toggleCalendar0() {
17671776
if (!promiseAll) {
17681777
new jBox('Notice', {
17691778
content: "All logs and images are not processed. Please wait...",
@@ -1787,6 +1796,33 @@
17871796
$("div#calendarList").hide();
17881797
}
17891798
}
1799+
1800+
function toggleCalendar() {
1801+
if (!promiseAll) {
1802+
new jBox('Notice', {
1803+
content: "All logs and images are not processed. Please wait...",
1804+
theme: 'TooltipDark',
1805+
attributes: {x: "right", y: "bottom"},
1806+
offset: { x: 20, y: 45 }
1807+
});
1808+
return;
1809+
}
1810+
1811+
if (workingDates.length>0) {
1812+
let list="";
1813+
for (let i=0; i<workingDates.length; i++) {
1814+
let wd_sp = workingDates[i].split("-"); // Same principle, splitting date into its parts
1815+
let dt=new Date(parseInt(wd_sp[0]), parseInt(wd_sp[1])-1, parseInt(wd_sp[2])); // loading parts directly in Date object
1816+
list+="<div class='workingDate' onclick='loadDay("+i+")'>"+dt.toLocaleDateString()+" <span class='nbImages'>"+detailDates[workingDates[i]]+" <span>&#x1f4f7;</span></span></div>"
1817+
}
1818+
$("div#calendarList").html(list).toggle();
1819+
}
1820+
1821+
if (modeSearch) {
1822+
$("div#calendarList").hide();
1823+
}
1824+
}
1825+
17901826
function loadDay(i) {
17911827
$("input#changeCalendar").attr("value", workingDates[i]);
17921828
$("input#changeCalendar").click();
@@ -2145,6 +2181,8 @@
21452181

21462182

21472183

2184+
2185+
21482186
/* Button click Show/hide metadatas */
21492187
function toggleMetadatas() {
21502188
$("div.containerData").toggle();
@@ -2573,5 +2611,10 @@
25732611

25742612

25752613
<p class=" p-5 "><a href="https://github.com/toutjavascript/Fooocus-Log-Viewer/" target="_blank" class="underline text-slate-200 hover:text-slate-50 dark:hover:text-slate-300">Bug report/ideas/discussions on <svg viewBox="0 0 16 16" class="w-5 h-5 inline" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg> github.com/toutjavascript/Fooocus-Log-Viewer</a></p>
2576-
</body>
2614+
2615+
<div class="m-2 p-2 mx-5 alert alert alert-light"><u><b><a href="https://github.com/toutjavascript/FoooXus-Fooocus-Extender/" target="_blank" class="">Manage your Styles, Models and Loras with my new FoooXus, Fooocus Extender tool <br><svg viewBox="0 0 16 16" class="w-5 h-5 inline" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg> github.com/toutjavascript/FoooXus-Fooocus-Extender</a></u></b></div>
2616+
2617+
<br><br><br><br>
2618+
2619+
</body>
25772620
</html>

0 commit comments

Comments
 (0)