standard.visible
Audio Button Canvas Controller DropDown Html Image MediaRecorder Scale Text TextInput Tooltip Video Youtube
description
Makes the element visible (again). This is useful if you previously hid the element with .hidden
.
syntax
getX(ELEMENT_NAME).visible()
example(s)
@newText("instruction", "Guess what fruit is in the image below")
@ .print()
@,
@newImage("fruit", "pear.png")
@ .hidden()
@ .print()
@,
@newButton("reveal", "Reveal fruit")
@ .print()
@ .wait()
@,
@getImage("fruit")
$ .visible()
-
Adds some text to the page, a blank space below it and a button below the blank space which, when clicked, reveals an image of a pear.