updates
Browse files- static/index.html +8 -9
- static/style.css +1 -1
static/index.html
CHANGED
@@ -83,7 +83,7 @@
|
|
83 |
<p>Ornare a est accumsan et platea quis rhoncus.</p>
|
84 |
</div>
|
85 |
<div class="col flex-grow-0">
|
86 |
-
<
|
87 |
</div>
|
88 |
<div class="col flex-grow-0">
|
89 |
<button type="button" id="goto-verify-button" class="btn btn-outline-primary">Go to verify tab <img src="images/link_icon.svg" /></button>
|
@@ -252,6 +252,9 @@
|
|
252 |
});
|
253 |
|
254 |
document.getElementById('goto-verify-button').addEventListener("click", (event) => {
|
|
|
|
|
|
|
255 |
setVerifyElementsDisplay('block');
|
256 |
setGenerateElementsDisplay('none');
|
257 |
});
|
@@ -405,17 +408,13 @@
|
|
405 |
spinner.style.display = "none";
|
406 |
generateImageContainer.appendChild(truepicDisplay);
|
407 |
|
|
|
|
|
|
|
408 |
generateActionMenu.style.display = "block";
|
409 |
|
410 |
-
downloadButton.addEventListener("click", (event) => {
|
411 |
-
event.preventDefault();
|
412 |
-
window.open(path);
|
413 |
-
});
|
414 |
-
|
415 |
/*
|
416 |
-
|
417 |
-
downloadLink.href = path;
|
418 |
-
downloadLink.download = resp;
|
419 |
|
420 |
modelParam.innerHTML = model.value;
|
421 |
promptParam.innerHTML = textGenInput.value;
|
|
|
83 |
<p>Ornare a est accumsan et platea quis rhoncus.</p>
|
84 |
</div>
|
85 |
<div class="col flex-grow-0">
|
86 |
+
<a id="download-button" class="btn btn-outline-primary">Download image <img src="images/download_icon.svg" /></a>
|
87 |
</div>
|
88 |
<div class="col flex-grow-0">
|
89 |
<button type="button" id="goto-verify-button" class="btn btn-outline-primary">Go to verify tab <img src="images/link_icon.svg" /></button>
|
|
|
252 |
});
|
253 |
|
254 |
document.getElementById('goto-verify-button').addEventListener("click", (event) => {
|
255 |
+
verifyTab.classList.add("active");
|
256 |
+
generateTab.classList.remove("active");
|
257 |
+
|
258 |
setVerifyElementsDisplay('block');
|
259 |
setGenerateElementsDisplay('none');
|
260 |
});
|
|
|
408 |
spinner.style.display = "none";
|
409 |
generateImageContainer.appendChild(truepicDisplay);
|
410 |
|
411 |
+
downloadButton.href = path;
|
412 |
+
downloadButton.download = resp;
|
413 |
+
|
414 |
generateActionMenu.style.display = "block";
|
415 |
|
|
|
|
|
|
|
|
|
|
|
416 |
/*
|
417 |
+
|
|
|
|
|
418 |
|
419 |
modelParam.innerHTML = model.value;
|
420 |
promptParam.innerHTML = textGenInput.value;
|
static/style.css
CHANGED
@@ -123,6 +123,6 @@ img.thumbnail {
|
|
123 |
display: none;
|
124 |
}
|
125 |
|
126 |
-
.action-menu button {
|
127 |
width: 175px;
|
128 |
}
|
|
|
123 |
display: none;
|
124 |
}
|
125 |
|
126 |
+
.action-menu button, .action-menu a.btn {
|
127 |
width: 175px;
|
128 |
}
|