Using the text-to-image plugin I generate a bunch of [output]'s in the container. How do I access the tag that the output object creates, for example if I want to get the title to get nseed from it using java script, or there's an easier way to do that? I'm trying to make a button over the image to perfect that seed easier. Also, how do I access the button with id "heartBtn" that [output] creates?
4 Comments
VioneT@lemmy.world · 1 pts · 1y
You can't access the 'heart button' since it is on an Iframe/embedded page. You can manually set seeds for the images like so:
Then on your HTML:
Koto@lemmy.world · 1 pts · 1y
thanks! I tried that and was super clunky to copy paste that. I tried to make the object clickable by doing like this <button id="nseed" onClick="toUserPromp([seed])>[output] but it's a layer on top and the image itself isn't clickable. is there any way to interact with the output to make it clickable or creating a button that is on top of the image just like the heartBtn and flagBtn?
VioneT@lemmy.world · 1 pts · 1y
Maybe something like this:
Koto@lemmy.world · 1 pts · 1y
thanks a lot, VioneT!