Skip to content

Commit

Permalink
New release: V1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
toutjavascript committed Feb 15, 2024
1 parent 46932c3 commit a1054e2
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ The idea and initial work is inspired by @sngazm at https://github.com/lllyasvie


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

1.5.1 Fix issues opened by friendly users
- Close issues [#11](https://github.com/toutjavascript/Fooocus-Log-Viewer/issues/11)
Expand Down
53 changes: 48 additions & 5 deletions viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Modestly updated by https://github.com/toutjavascript
https://www.toutjavascript.com
File Version 2024-02-06/A1
File Version 2024-01-24/A1
-->

<html lang="us">
Expand Down Expand Up @@ -281,15 +281,24 @@
yesterday.setDate(yesterday.getDate() - 1);
setDate(getWorkingDate(yesterday, -1));
};
const goDate = (e) => {
const goDate0 = (e) => {
console.log("goDate("+e.target.value+")");
const day = new Date(e.target.value);
console.log("day="+day);
day.setDate(day.getDate());
console.log("day="+day);
setDate(day);
}

const goDate = (e) => {
console.log("goDate("+e.target.value+")");
// Changed the direct entry into Date with a split version of the date string broken by year, month, day
let wd_sp = e.target.value.split("-"); // split date into its parts
const day = new Date(parseInt(wd_sp[0]), parseInt(wd_sp[1])-1, parseInt(wd_sp[2])); // loading parts directly in Date object
console.log("day="+day);
day.setDate(day.getDate());
console.log("day="+day);
setDate(day);
}

const fetchData = () => {
if (!isToday) {
Expand Down Expand Up @@ -1763,7 +1772,7 @@
}


function toggleCalendar() {
function toggleCalendar0() {
if (!promiseAll) {
new jBox('Notice', {
content: "All logs and images are not processed. Please wait...",
Expand All @@ -1787,6 +1796,33 @@
$("div#calendarList").hide();
}
}

function toggleCalendar() {
if (!promiseAll) {
new jBox('Notice', {
content: "All logs and images are not processed. Please wait...",
theme: 'TooltipDark',
attributes: {x: "right", y: "bottom"},
offset: { x: 20, y: 45 }
});
return;
}

if (workingDates.length>0) {
let list="";
for (let i=0; i<workingDates.length; i++) {
let wd_sp = workingDates[i].split("-"); // Same principle, splitting date into its parts
let dt=new Date(parseInt(wd_sp[0]), parseInt(wd_sp[1])-1, parseInt(wd_sp[2])); // loading parts directly in Date object
list+="<div class='workingDate' onclick='loadDay("+i+")'>"+dt.toLocaleDateString()+" <span class='nbImages'>"+detailDates[workingDates[i]]+" <span>&#x1f4f7;</span></span></div>"
}
$("div#calendarList").html(list).toggle();
}

if (modeSearch) {
$("div#calendarList").hide();
}
}

function loadDay(i) {
$("input#changeCalendar").attr("value", workingDates[i]);
$("input#changeCalendar").click();
Expand Down Expand Up @@ -2145,6 +2181,8 @@





/* Button click Show/hide metadatas */
function toggleMetadatas() {
$("div.containerData").toggle();
Expand Down Expand Up @@ -2573,5 +2611,10 @@


<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>
</body>

<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>

<br><br><br><br>

</body>
</html>

0 comments on commit a1054e2

Please sign in to comment.