mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Update seed on click
This commit is contained in:
parent
0efc3bf780
commit
b1600d4ca3
@ -35,6 +35,7 @@
|
|||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
img {
|
img {
|
||||||
|
cursor: pointer;
|
||||||
height: 30vh;
|
height: 30vh;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
@ -42,6 +43,9 @@
|
|||||||
input[type="number"] {
|
input[type="number"] {
|
||||||
width: 60px;
|
width: 60px;
|
||||||
}
|
}
|
||||||
|
#seed {
|
||||||
|
width: 150px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
function append_output(output) {
|
function append_output(output) {
|
||||||
@ -51,6 +55,10 @@
|
|||||||
let alt_text = output[1].toString() + " | " + output[2];
|
let alt_text = output[1].toString() + " | " + output[2];
|
||||||
output_node.alt = alt_text;
|
output_node.alt = alt_text;
|
||||||
output_node.title = alt_text;
|
output_node.title = alt_text;
|
||||||
|
// Update seed on click
|
||||||
|
output_node.addEventListener('click', () => {
|
||||||
|
document.querySelector("#seed").value = output[1];
|
||||||
|
});
|
||||||
|
|
||||||
document.querySelector("#results").prepend(output_node);
|
document.querySelector("#results").prepend(output_node);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user