standard.settings.visible

getElement(id).settings.visible() (since beta 0.3)

Makes the element visible (again). This is useful if you previously hid the element with .settings.hidden.

Example:

[js highlight=”13″ try=”true”]newText(“instruction”, “Guess what fruit is in the image below”)
.print()
,
newImage(“fruit”, “pear.png”)
.settings.hidden()
.print()
,
newButton(“reveal”, “Reveal fruit”)
.print()
.wait()
,
getImage(“fruit”)
.settings.visible()
[/js]

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.