<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>I’m here to discuss adding potential JavaScript JSON APIs to X3DOM, including the use of a X3D JSON validator (for draft07 JSON schema),  an X3D JSON -> XML DOM converter (see pull request),  an  X3D JSON prototype expander (see pull request), an XML DOM -> JSON serializer (to precondition the XML for expanding and preprocessing) and VRMLScript (“X3DOM JSONScript”) preprocessor (still in alpha to pre-alpha—consider yourself lucky if your script works) to HTML JavaScript to handle X3D XML Script tag.  I need help with namespaces and scripting the X3D event model mostly (help with leaving the existing VRMLScript as intact as possible—or replacing it with other, similar JavaScript).</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I would like to see an SFRotation field type in X3DOM.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/X3DJSONLD.js">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/X3DJSONLD.js</a></p><p class=MsoNormal><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/PrototypeExpander.js">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/PrototypeExpander.js</a></p><p class=MsoNormal><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/DOM2JSONSerializer.js">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/DOM2JSONSerializer.js</a></p><p class=MsoNormal><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/Script.js">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/Script.js</a></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The code I have submitted before is a better display of what I intend for X3DOM.   2 of these files aren’t classes yet.  I have already created classes for a third (see pull request).</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I also have yet to get JSON Inlines working all the way outside of X3DOM (not sure about inside), so that’s on a wish list.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If someone could help with debugging/testing, that would most helpful.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>John</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>An example API from JavaScript might look like this:<o:p></o:p></p><p class=MsoNormal><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/html/prototypes.html">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/html/prototypes.html</a> (currently assumes ExternProtoDeclare is turned into ProtoDeclare on the JSON server).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 style='background:white;border-collapse:collapse'><tr><td valign=top style='padding:0in 7.5pt 0in 7.5pt'><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>       </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>function</span></span><span style='font-family:"Calibri",sans-serif;color:#24292E'> </span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>load_X3DOM</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>htmlselector<span style='font-family:Consolas;color:#24292E'>, </span>url<span style='font-family:Consolas;color:#24292E'>, </span>callback<span style='font-family:Consolas;color:#24292E'>) {</span><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L62></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC62><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>              </span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>$</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(htmlselector).</span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>empty</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>();</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L63></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC63><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>              </span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>$<span style='font-family:Consolas;color:#24292E'>.</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>getJSON</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(url, </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>function</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>json<span style='font-family:Consolas;color:#24292E'>) {</span><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L64></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC64><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>var</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> xml </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>=</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> [];</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L65></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC65><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     json </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>=</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> </span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>protoExpander<span style='font-family:Consolas;color:#24292E'>.</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>prototypeExpander</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(url, json, </span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>""</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>);</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L66></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC66><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     json </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>=</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> </span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>flattener</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(json);</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L67></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC67><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>if</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> (</span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>$</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>'#scripting'</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>).</span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>is</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>':checked'</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>)) {</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L68></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC68><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                            </span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>loadScripts</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(json, htmlselector, url);</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L69></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC69><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     }</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L70></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC70><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     </span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>loadX3DJS</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#005CC5'>document</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>.</span><span style='font-size:9.0pt;font-family:Consolas;color:#005CC5'>implementation</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>, json, url, xml, </span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>""</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>, loadSchema, doValidate, </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>function</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>element<span style='font-family:Consolas;color:#24292E'>, </span>xmlDoc<span style='font-family:Consolas;color:#24292E'>) {</span><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L71></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC71><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                            </span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>callback</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(element, xmlDoc, json);</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L72></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC72><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     });</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L73></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC73><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>              });</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L74></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC74><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>       }<o:p></o:p></span></p><p class=MsoNormal style='line-height:15.0pt'><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 style='background:white;border-collapse:collapse'><tr><td valign=top style='padding:0in 7.5pt 0in 7.5pt'><p class=MsoNormal style='line-height:15.0pt'><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>function</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> </span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>loadSubscene_X3DOM</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>htmlselector<span style='font-family:Consolas;color:#24292E'>, </span>xmlselector<span style='font-family:Consolas;color:#24292E'>, </span>url<span style='font-family:Consolas;color:#24292E'>, </span>element<span style='font-family:Consolas;color:#24292E'>, </span>xmlDoc<span style='font-family:Consolas;color:#24292E'>, </span>json<span style='font-family:Consolas;color:#24292E'>, </span>callback<span style='font-family:Consolas;color:#24292E'>) {</span><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L85></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC85><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>              </span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>$<span style='font-family:Consolas;color:#24292E'>.</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>getJSON</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(url, </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>function</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>subjson<span style='font-family:Consolas;color:#24292E'>) {</span><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L86></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC86><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     subjson </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>=</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> </span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>protoExpander<span style='font-family:Consolas;color:#24292E'>.</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>prototypeExpander</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(url, subjson, </span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>""</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>);</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L87></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC87><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     subjson </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>=</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> </span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>flattener</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(subjson);</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L88></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC88><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>if</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> (</span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>$</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>'#scripting'</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>).</span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>is</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>':checked'</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>)) {</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L89></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC89><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                            </span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>loadScripts</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(subjson, htmlselector, url);</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L90></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC90><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     }</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L91></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC91><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>var</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> sceneElement </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>=</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> </span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>ConvertToX3DOM</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(xmlDoc, subjson[</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>"X3D"</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>][xmlselector], xmlselector, </span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>element<span style='font-family:Consolas;color:#24292E'>.</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#005CC5'>querySelector</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(xmlselector), url);  </span><span style='font-size:9.0pt;font-family:Consolas;color:#6A737D'>// returns Scene element</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L92></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC92><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     </span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>$</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>element<span style='font-family:Consolas;color:#24292E'>.</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#005CC5'>querySelector</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(xmlselector)).</span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>children</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>().</span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>appendTo</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(htmlselector);</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L93></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC93><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     </span><span style='font-size:9.0pt;font-family:Consolas;color:#6A737D'>// join json for scripts</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L94></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC94><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>for</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> (</span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>var</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> c </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>in</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> subjson[</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>"X3D"</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>][</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>"Scene"</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>][</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>"-children"</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>]) {</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L95></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC95><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                           json[</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>"X3D"</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>][</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>"Scene"</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>][</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>"-children"</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>].</span><span style='font-size:9.0pt;font-family:Consolas;color:#005CC5'>push</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(subjson[</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>"X3D"</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>][</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>"Scene"</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>][</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>"-children"</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>][c])</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L96></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC96><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     }</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L97></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC97><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>if</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> (</span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>typeof</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> callback </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>===</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> </span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>'function'</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>) {</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L98></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC98><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                            </span><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>callback</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(subjson, htmlselector);</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L99></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC99><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     }</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L100></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC100><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>              });</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L101></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC101><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>       }<o:p></o:p></span></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 style='background:white;border-collapse:collapse'><tr><td valign=top style='padding:0in 7.5pt 0in 7.5pt'><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>       </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>$</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#005CC5'>document</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>).</span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>ready</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>function</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>() {</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L109></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC109><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>              </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>var</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> htmlselector </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>=</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> </span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>"#x3domjson"</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>;</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L110></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC110><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>              </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>var</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> xmlselector </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>=</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> </span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>"Scene"</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>;</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L111></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC111><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>              </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>var</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> flowers2 </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>=</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> </span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>'../data/flowers2.json'</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>;</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L112></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC112><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>              </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>var</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> bubbles </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>=</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> </span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>'../data/force.json'</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>;</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L113></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC113><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>              </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>var</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> force </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>=</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> </span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>'../data/bubs.json'</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>;</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L114></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC114><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>              </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>if</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> (</span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>$</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>'#scripting'</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>).</span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>is</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>':checked'</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>)) {</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L115></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC115><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>initializeScripts</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>();</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L116></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC116><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>              }</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L117></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC117><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>              </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>load_X3DOM</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(htmlselector, flowers2, </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>function</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>element<span style='font-family:Consolas;color:#24292E'>, </span>xmlDoc<span style='font-family:Consolas;color:#24292E'>, </span>json<span style='font-family:Consolas;color:#24292E'>) {</span><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L118></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC118><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>loadSubscene_X3DOM</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(htmlselector, xmlselector, bubbles, element, xmlDoc, json, </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>function</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>sub1json<span style='font-family:Consolas;color:#24292E'>, </span>htmlselector<span style='font-family:Consolas;color:#24292E'>) {</span><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L119></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC119><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                            </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>loadSubscene_X3DOM</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(htmlselector, xmlselector, force, element, xmlDoc, json, </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>function</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>sub2json<span style='font-family:Consolas;color:#24292E'>, </span>htmlselector<span style='font-family:Consolas;color:#24292E'>) {</span><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L120></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC120><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                                  </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>$</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(htmlselector</span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>+</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>" Script"</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>).</span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>empty</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>();</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L121></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC121><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                                  </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>try</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> {</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L122></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC122><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                                         </span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>x3dom<span style='font-family:Consolas;color:#24292E'>.</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#005CC5'>reload</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>();  </span><span style='font-size:9.0pt;font-family:Consolas;color:#6A737D'>// This may be necessary</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L123></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC123><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                                  } </span><span style='font-size:9.0pt;font-family:Consolas;color:#D73A49'>catch</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'> (e) {</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L124></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC124><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                                         </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>console</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>.</span><span style='font-size:9.0pt;font-family:Consolas;color:#005CC5'>error</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(e);</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L125></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC125><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                                         </span><span class=MsoHyperlinkFollowed><span style='font-size:9.0pt;font-family:Consolas;color:#6F42C1'>alert</span></span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>(</span><span style='font-size:9.0pt;font-family:Consolas;color:#032F62'>"Problem with x3dom.reload()"</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>, e);</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L126></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC126><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                                  }</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L127></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC127><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                           });</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L128></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC128><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>                     });</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr><tr style='box-sizing: border-box'><td width=50 nowrap valign=top style='width:37.3pt;padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;min-width: 50px;color:rgba(27, 31, 35, 0.3);cursor:pointer;user-select: none' id=L129></td><td valign=top style='padding:0in 7.5pt 0in 7.5pt;box-sizing: border-box;word-wrap: normal;overflow:visible' id=LC129><p class=MsoNormal style='line-height:15.0pt'><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'>              });<o:p></o:p></span></p><p class=MsoNormal style='line-height:15.0pt'><span style='font-family:"Calibri",sans-serif'>});</span><span style='font-size:9.0pt;font-family:Consolas;color:#24292E'><o:p></o:p></span></p></td></tr></table></td></tr></table></td></tr></table><p class=MsoNormal><o:p> </o:p></p></div></body></html>