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;
|
||||
}
|
||||
img {
|
||||
cursor: pointer;
|
||||
height: 30vh;
|
||||
border-radius: 5px;
|
||||
margin: 10px;
|
||||
@ -42,6 +43,9 @@
|
||||
input[type="number"] {
|
||||
width: 60px;
|
||||
}
|
||||
#seed {
|
||||
width: 150px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
function append_output(output) {
|
||||
@ -51,6 +55,10 @@
|
||||
let alt_text = output[1].toString() + " | " + output[2];
|
||||
output_node.alt = 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user