|
31 | 31 | <!-- InstanceBeginEditable name="content" -->
|
32 | 32 | <div>
|
33 | 33 | <h1 class="Heading-1"> <font color="#0000A0">Writing programs using JavaScript</font></h1>
|
34 |
| - <p class="Normal"> To write programs using JavaScript instead of VPython, change the first line of the program to the form "GlowScript X.Y JavaScript", where "X.Y" is the current version. </p> |
| 34 | + <p class="Normal"> To write programs using JavaScript instead of VPython, change the first line of the program to "JavaScript X.Y", where "X.Y" is the current version. Equivalent headings are "GlowScript X.Y" and "GlowScript X.Y JavaScript".</p> |
35 | 35 | <p class="Normal">The documentation describes the syntax to use when writing VPython code. Here is the relationship between the VPython documentation and what you would write in JavaScript:</p>
|
36 | 36 | </div>
|
37 | 37 | <div>
|
@@ -89,11 +89,11 @@ <h1 class="Heading-1"><font color="#0000A0">A runnable html file</font></h1>
|
89 | 89 | <p class="Normal">If you store the following program in an .html file and then double-click the file to invoke a browser, you should see a rotating cube (adjust the version number for the glow library appropriately):</p>
|
90 | 90 | <p class="program"><div id="glowscript" class="glowscript"><br>
|
91 | 91 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><br>
|
92 |
| - <link type="text/css" href="https://s3.amazonaws.com/glowscript/css/redmond/2.1/jquery-ui.custom.css" rel="stylesheet" /><br> |
93 |
| - <link type="text/css" href="https://s3.amazonaws.com/glowscript/css/ide.css" rel="stylesheet" /><br> |
94 |
| - <script type="text/javascript" src="https://s3.amazonaws.com/glowscript/lib/jquery/2.1/jquery.min.js"></script><br> |
95 |
| - <script type="text/javascript" src="https://s3.amazonaws.com/glowscript/lib/jquery/2.1/jquery-ui.custom.min.js"></script><br> |
96 |
| - <script type="text/javascript" src="https://s3.amazonaws.com/glowscript/package/glow.3.0.min.js"></script><br> |
| 92 | + <link type="text/css" href="https://www.glowscript.org/css/redmond/2.1/jquery-ui.custom.css" rel="stylesheet" /><br> |
| 93 | + <link type="text/css" href="https://www.glowscript.org/css/ide.css" rel="stylesheet" /><br> |
| 94 | + <script type="text/javascript" src="https://www.glowscript.org/lib/jquery/2.1/jquery.min.js"></script><br> |
| 95 | + <script type="text/javascript" src="https://www.glowscript.org/lib/jquery/2.1/jquery-ui.custom.min.js"></script><br> |
| 96 | + <script type="text/javascript" src="https://www.glowscript.org/package/glow.3.2.min.js"></script><br> |
97 | 97 | <script type="text/javascript"><br>
|
98 | 98 | window.__context = { glowscript_container: $("#glowscript").removeAttr("id") }<br>
|
99 | 99 | <br>
|
|
0 commit comments