1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
|
3 | <X3D profile='Immersive' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'> |
4 | <head> |
5 | <!-- local, master and online versions of script template --> |
6 | <meta name='title' content='newECMAscriptTest.x3d'/> |
7 | <meta name='description' content='Example scene providing a unit test for newECMAscript template javascript source code, first load this scene and then see console for test output.'/> |
8 | <meta name='creator' content='Don Brutzman'/> |
9 | <meta name='created' content='3 November 2013'/> |
10 | <meta name='modified' content='20 October 2019'/> |
11 | <meta name='reference' content='newECMAscriptTestConsole.txt'/> |
12 | <meta name='reference' content='newECMAscript.js'/> |
13 | <meta name='reference' content='../newECMAscript.js'/> |
14 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/newECMAscript.js'/> |
15 | <meta name='reference' content='../../build.xml#commonSetup'/> |
16 | <meta name='subject' content='X3D javascript ECMAscript'/> |
17 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/newECMAscriptTest.x3d'/> |
18 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
19 | <meta name='license' content='../license.html'/> |
20 | </head> |
21 | <Scene> |
22 | <WorldInfo title='newECMAscriptTest.x3d'/> |
23 | <Background skyColor='1 0.5 0'/> |
24 | <Viewpoint description='Check X3D console to see output' position='0 0 8'/> |
25 | <Transform scale='0.4 0.4 0.4'> |
26 | <Shape> |
27 | <Text string='"newECMAscriptTest.x3d" "" "to check newECMAscript.js" "" "(see browser console for output)"'> |
28 | <FontStyle family='"SANS"' justify='"MIDDLE" "MIDDLE"' style='BOLD'/> |
29 | </Text> |
30 | <Appearance> |
31 | <Material diffuseColor='1 1 1'/> |
32 | </Appearance> |
33 | </Shape> |
34 | </Transform> |
35 | <Script DEF='TestScript' url=' "newECMAscript.js" "../newECMAscript.js" "https://www.web3d.org/x3d/content/examples/newECMAscript.js" '> |
36 | <!-- initialize() method includes unit test with output on browser console --> |
37 | <!-- authors adding field definitions put them here --> |
38 | </Script> |
39 | </Scene> |
40 | </X3D> |
<!--
Color-coding legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->