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 …

standard.settings.size

getElement(id).settings.size(width, height) Resizes the element to a width of width pixels and a height of height pixels. Example: [js highlight=”2″ try=”true”]newImage(“smiley”, “pear.png”) .settings.size(40, 40) .print() [/js] Adds a 40x40px image pear.png onto the screen.

standard.settings.selector

getElement(id).settings.selector( selectorName ) or getElement(id).settings.selector( getSelector(selectorName) ) (since beta 0.3) Since beta 0.3, adds a .settings.selector command to all elements as another method for adding them to a selector. Example: [js highlight=”4,7″ try=”true”]newSelector(“shapes”) , newImage(“square”, “square.png”) .settings.selector(“shapes”) , newImage(“triangle”, “triangle.png”) .settings.selector(“shapes”) , newCanvas(“shapes canvas”, 825, 400) .settings.add( 0, 0, getImage(“square”) ) .settings.add(425, 0, getImage(“triangle”) ) …

standard.settings.right

getElement(id).settings.right() Makes the element appear horizontally aligned to the right. Note: the right means the right of the container of the element, not necessarily the right of the screen. Example: [js highlight=”5″ try=”true”] newText(“sentence”, “This is a longer sentence”) .print() , newText(“helloworld”, “Hello world”) .settings.right() .print() [/js] Prints Hello world onto the screen, horizontally aligned …

standard.settings.log

getElement(id).settings.log() Will add lines to the results file reporting element-specific events. See each Element page to see what gets recorded, and which parameter you can pass to log. For , and the results lines will report the timestamp corresponding to when print was called (if it was called). Example [js highlight=”6″] newButton(“go”, “Go!”) .print() .wait() …

standard.settings.left

getElement(id).settings.left() Makes the element appear horizontally aligned to the left (default). Note: the left means the left of the container of the element, not necessarily the left of the screen. Example: [js highlight=”10″ try=”true”]newText(“helloworld”, “Hello world”) .settings.right() .print() , newButton(“left”, “Align text to the left”) .print() .wait() , getText(“helloworld”) .settings.left() [/js] Prints Hello world onto …

standard.settings.italic

getElement(id).settings.italic() Makes any text in the element appear in italic. Example: [js highlight=”3″ try=”true”]newText(“warnning”, “NOTE: this text is a warning!”) .settings.bold() .settings.italic() .settings.color(“red”) .print() [/js] Prints a text in boldface, italic and red.

standard.settings.hidden

getElement(id).settings.hidden() (since beta 0.3) Makes the element invisible. Note that when printed, a hidden element still occupies space on the page, but its content is not visible. Example: [js highlight=”5″ 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] …

standard.settings.enable

getElement(id).settings.enable() Enables any interactive feature of the element that was previously disabled. Example: [js highlight=”8″ try=”true”] newAudio(“sentence”, “test.mp3”) .settings.once() .print() , newKey(“secret key”, “R”) .wait() , getAudio(“sentence”) .settings.enable() [/js] Prints buttons to play/pause the audio file test_sentence.ogg, and disables those buttons when the file has played through (see ).

standard.settings.disable

getElement(id).settings.disable() Disables any interactive feature of the element. Note: this does not prevent an element that is part of a from being selected. Example: [js highlight=”6″ try=”true”] newAudio(“sentence”, “test.mp3”) .print() .wait() , getAudio(“sentence”) .settings.disable() [/js] Prints buttons to play/pause the audio file test_sentence.ogg, and disables those buttons when the file has played through.