diff --git a/index.html b/index.html
index 0c93e5b..c437ef5 100644
--- a/index.html
+++ b/index.html
@@ -1176,7 +1176,14 @@
- Save images to History
+ Save to History
diff --git a/scripts/civitai.js b/scripts/civitai.js
index f0e6397..1b3556b 100644
--- a/scripts/civitai.js
+++ b/scripts/civitai.js
@@ -430,12 +430,13 @@ function civitai_addLoraEntry(imageSrc, data, Blurred = null) {
infoDiv.setAttribute('data-modal-toggle', 'loraInfoModal');
const nameHeading = document.createElement('h3');
- nameHeading.classList.add('text-sm', 'text-gray-700');
+ nameHeading.classList.add('text-sm', 'text-gray-700',"m-1");
const nameLink = document.createElement('a');
- nameLink.classList.add("mb-2", "text-xl", "font-bold", "tracking-tight", "text-gray-900", "dark:text-white", "whitespace-normal", "break-words", "max-h-4", "overflow-hidden");
+ nameLink.classList.add("mb-2","mr-1", "font-bold","text-lg", "tracking-tight", "text-gray-900", "dark:text-white", "whitespace-normal", "break-words", "max-h-4", "overflow-hidden");
const nameText = document.createTextNode(data.name);
+
nameLink.appendChild(nameText);
const userFlexDiv = document.createElement('div');
@@ -594,6 +595,11 @@ function OpenCivitAiModal(id) {
var versionData = data.modelVersions[0];
model_name.textContent = data.name;
+
+ document.getElementById("civitai_useBtn").onclick = function () {
+
+ };
+
tag_container.innerHTML = "";
data.tags.forEach(tag => {
const tagSpan = document.createElement("span");
@@ -769,6 +775,11 @@ function loadCivitaiImages(modelId = null, nsfwLevel = null, clear = true, overr
_image.onerror = function () {
imageDiv.remove();
};
+ _image.addEventListener("click", () => {
+ //open https://civitai.com/images/ in new tab
+ window.open("https://civitai.com/images/" + data.items[i].id, '_blank');
+
+ });
if (data.items[i].meta) {
const infoIcon = document.createElement("i");
@@ -783,6 +794,43 @@ function loadCivitaiImages(modelId = null, nsfwLevel = null, clear = true, overr
imageDiv.appendChild(infoIcon);
}
+ const reactionDiv = document.createElement("div");
+ //rounded transparent black background horizontal in left corner container
+ reactionDiv.classList.add("absolute", "bottom-2", "left-2", "flex", "items-center", "rounded", "bg-black", "bg-opacity-50", "px-2", "py-0.5");
+
+ var stats = data.items[i].stats;
+ var likeCount = stats.heartCount + stats.likeCount + stats.laughCount
+
+ if(likeCount >0) {
+ const heartIcon = document.createElement("i");
+ heartIcon.classList.add("fa-solid", "fa-heart", "text-red-500", "text-base");
+ reactionDiv.appendChild(heartIcon);
+ const heartText = document.createElement("p");
+ heartText.classList.add("text-white", "text-sm", "ml-1");
+ heartText.textContent = likeCount
+ reactionDiv.appendChild(heartText);
+ }
+ if(stats.commentCount >0) {
+ const commentIcon = document.createElement("i");
+ commentIcon.classList.add("fa-solid", "fa-comment", "text-white", "text-base", "ml-2");
+ reactionDiv.appendChild(commentIcon);
+ const commentText = document.createElement("p");
+ commentText.classList.add("text-white", "text-sm", "ml-1");
+ commentText.textContent = stats.commentCount
+ reactionDiv.appendChild(commentText);
+ }
+
+
+
+
+
+
+
+
+
+
+ imageDiv.appendChild(reactionDiv);
+
columns[i % 4].appendChild(imageDiv);
}
initDropdowns();
diff --git a/scripts/horde.js b/scripts/horde.js
index 5445c1c..a11d47b 100644
--- a/scripts/horde.js
+++ b/scripts/horde.js
@@ -217,6 +217,9 @@ function GenerateHorde() {
"height": parseInt(height),
"steps": parseInt(stepsSlider.value),
"n": parseInt(batchSizeSlider.value),
+ "hires_fix": document.getElementById("horde_hires").checked,
+ "tiling": document.getElementById("horde_tiling").checked,
+ "karras": document.getElementById("horde_karras").checked,
},
"nsfw": document.getElementById("allowNSFW").checked,
"slow_workers": document.getElementById("slowWorkers").checked,
@@ -545,6 +548,7 @@ function horde_AddEmbedding(data, _id=null) {
});
return;
}
+
var name = data.name;
var id = data.id;
diff --git a/scripts/saving.js b/scripts/saving.js
index 89dc03f..eb91858 100644
--- a/scripts/saving.js
+++ b/scripts/saving.js
@@ -87,6 +87,9 @@ const InputsToSave = [
//horde
{id:"allowNSFW", type:"checked"},
{id:"slowWorkers", type:"checked"},
+ {id:"horde_karras", type:"checked"},
+ {id:"horde_hires", type:"value"},
+ {id:"horde_tiling", type:"checked"},
//filters
{id:"civitai_nsfw", type:"checked"},
{id:"civitai_favorites", type:"checked"},