<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specifications/x3d-3.0.dtd">
<![CDATA[
ecmascript:
function rotationOn(value, timeStamp) {
if (value == true)
{
clockEnabled = true;
switchChoice = 1;
}
else
{
clockEnabled = false;
switchChoice = 0;
}
}
]]>
<![CDATA[
ecmascript:
function toggleEnabled(value, ts) {
if (armed == -1)
{
toggleEnabled = false;
armed = 0;
}
if (armed == 0)
{
armed = 1;
if (toggleEnabled == false)
{
status = true;
statusColor = new SFColor(0, 0.8, 0);
toggleEnabled = true;
}
else
{
status = false;
statusColor = new SFColor(0.8, 0.8, 0);
toggleEnabled = false;
}
}
else
{
armed = 0;
return;
}
}
]]>
<!--
Color key:
<X3dNode
DEF='idName' field='value'/>
matches
<XmlElement
DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D extensibility)
<Prototype
name='ProtoName'>
<field
name='fieldName'/> </Prototype>
-->
<!-- Additional help information about X3D scenes: X3D Resources, X3D Scene Authoring Hints and X3D Tooltips -->