I would like to present in the online version of my task an image of a checkmark on the screen for a few seconds in response to the key presses of participants reacting to things displayed on the screen for a longer amount of time which would remain on the screen after the checkmark disappears.
When running this on my laptop, I was using a python code component:
To load the image
from psychopy import visual
check = visual.ImageStim(win, 'icon/checkmark.png')
To display the image
check.draw()
win.flip()
core.wait(.15)
How would I code this into a Javascript code component?