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
@ -17,7 +17,7 @@
|
|||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
#prompt {
|
#prompt {
|
||||||
width:500px;
|
width: 500px;
|
||||||
border-radius: 20px 0px 0px 20px;
|
border-radius: 20px 0px 0px 20px;
|
||||||
padding: 5px 10px 5px 10px;
|
padding: 5px 10px 5px 10px;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
@ -35,12 +35,16 @@
|
|||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
img {
|
img {
|
||||||
height:30vh;
|
cursor: pointer;
|
||||||
border-radius:5px;
|
height: 30vh;
|
||||||
margin:10px;
|
border-radius: 5px;
|
||||||
|
margin: 10px;
|
||||||
}
|
}
|
||||||
input[type="number"] {
|
input[type="number"] {
|
||||||
width:60px;
|
width: 60px;
|
||||||
|
}
|
||||||
|
#seed {
|
||||||
|
width: 150px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
@ -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…
Reference in New Issue
Block a user