Skip to content

Commit 96d08ba

Browse files
committed
Update header documentation
1 parent 6fa62fe commit 96d08ba

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/VPythonDocs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@
101101
<blockquote>
102102
<p class="Normal">* You will see the sentence &quot;You are signed in as &lt;your user name&gt; and your programs are <strong>here</strong>.&quot; Click on <strong>here</strong>.</p>
103103
<p class="Normal">* Click<strong> Create New Program</strong>, which will create a new program in your <strong>MyPrograms</strong> folder. (Programs in your <strong>Private</strong> folder are not accessible to others.) Choose a name for the program, which should not include spaces or underscores.</p>
104-
<p class="Normal">* Below the line <strong>GlowScript 3.2 VPython</strong>, type <strong>box()</strong>. Click <strong>Run this program</strong> to run your program. You will see a white box on a black background.</p>
104+
<p class="Normal">* Below the line <strong>Web VPython 3.2</strong>, type <strong>box()</strong>. Click <strong>Run this program</strong> to run your program. You will see a white box on a black background. (An equivalent header is &quot;GlowScript 3.2 VPython&quot;.)</p>
105105
<p class="Normal">* Use the right button (or CTRL-drag left button) of the mouse to rotate the camera to view the scene from different angles.</p>
106106
<p class="Normal">* To zoom in and out use two buttons, or ALT/OPTION-drag, or the mouse scrollwheel. Touch screen: swipe or two-finger rotate; pinch/extend to zoom.</p>
107107
<p class="Normal">* To pan left/right or up/down, drag the mouse with the SHIFT key held down.</p>
108108
</blockquote>
109109
<p class="Normal"><strong><font color="#0000A0">Using the text editor</font></strong></p>
110-
<p class="Normal"> Here is a list of <a href="https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts" target="_blank"><strong>keyboard shortcuts</strong></a> for find, replace, etc. While editing, press <strong>Ctrl-1</strong> (Cmd-1 on Mac) to run your program in the same window. Press <strong>Ctrl-2</strong> (Cmd-2 on Mac) to run your program in a separate window, which lets you view your program and its execution side by side. If you change your program, press <strong>Ctrl-2</strong> again in the editor display to re-run the program with the new changes. Web VPython uses the ACE text editor. Because ACE doesn't work on mobile devices, a simpler editor is used there.</p>
110+
<p class="Normal"> Here is a list of <a href="https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts" target="_blank"><strong>keyboard shortcuts</strong></a> for find, replace, etc. While editing, press <strong>Ctrl-1</strong> (Cmd-1 on Mac) to run your program in the same window. Press <strong>Ctrl-2</strong> (Cmd-2 on Mac) to run your program in a separate window, which lets you view your program and its execution side by side. If you change your program, press <strong>Ctrl-2</strong> again in the editor display to re-run the program with the new changes. Web VPython uses the ACE text editor. A simpler editor is used on mobile devices.</p>
111111
<p class="Normal">A particularly useful shortcut is <strong>Ctrl-/</strong> (Cmd-/ on Mac). Select one or more lines in your program and use this keypress to toggle whether those lines are commented in or out. Also, select one or more lines and press Tab to indent or Shift-Tab to unindent.</p>
112112
<p class="Normal"><strong><font color="#0000A0">Letting others run your programs</font></strong></p>
113113
<p class="Normal">While viewing the text of your program, click <strong>Share this program</strong> to see how to let other people run your program. For people to run your program by linking to it, the program must be in a public folder or be exported to your own web site. In fact, the code available on the share page can simply be pasted into a file and saved with the extension &quot;.html&quot;, and then you can run the program simply by doubleclicking the html file.</p>

docs/VPythonDocs/using_javascript.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<!-- InstanceBeginEditable name="content" -->
3232
<div>
3333
<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 &quot;GlowScript X.Y JavaScript&quot;, where &quot;X.Y&quot; 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 &quot;JavaScript X.Y&quot;, where &quot;X.Y&quot; is the current version. Equivalent headings are &quot;GlowScript X.Y&quot; and &quot;GlowScript X.Y JavaScript&quot;.</p>
3535
<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>
3636
</div>
3737
<div>
@@ -89,11 +89,11 @@ <h1 class="Heading-1"><font color="#0000A0">A runnable html file</font></h1>
8989
<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>
9090
<p class="program">&lt;div id=&quot;glowscript&quot; class=&quot;glowscript&quot;&gt;<br>
9191
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;<br>
92-
&lt;link type=&quot;text/css&quot; href=&quot;https://s3.amazonaws.com/glowscript/css/redmond/2.1/jquery-ui.custom.css&quot; rel=&quot;stylesheet&quot; /&gt;<br>
93-
&lt;link type=&quot;text/css&quot; href=&quot;https://s3.amazonaws.com/glowscript/css/ide.css&quot; rel=&quot;stylesheet&quot; /&gt;<br>
94-
&lt;script type=&quot;text/javascript&quot; src=&quot;https://s3.amazonaws.com/glowscript/lib/jquery/2.1/jquery.min.js&quot;&gt;&lt;/script&gt;<br>
95-
&lt;script type=&quot;text/javascript&quot; src=&quot;https://s3.amazonaws.com/glowscript/lib/jquery/2.1/jquery-ui.custom.min.js&quot;&gt;&lt;/script&gt;<br>
96-
&lt;script type=&quot;text/javascript&quot; src=&quot;https://s3.amazonaws.com/glowscript/package/glow.3.0.min.js&quot;&gt;&lt;/script&gt;<br>
92+
&lt;link type=&quot;text/css&quot; href=&quot;https://www.glowscript.org/css/redmond/2.1/jquery-ui.custom.css&quot; rel=&quot;stylesheet&quot; /&gt;<br>
93+
&lt;link type=&quot;text/css&quot; href=&quot;https://www.glowscript.org/css/ide.css&quot; rel=&quot;stylesheet&quot; /&gt;<br>
94+
&lt;script type=&quot;text/javascript&quot; src=&quot;https://www.glowscript.org/lib/jquery/2.1/jquery.min.js&quot;&gt;&lt;/script&gt;<br>
95+
&lt;script type=&quot;text/javascript&quot; src=&quot;https://www.glowscript.org/lib/jquery/2.1/jquery-ui.custom.min.js&quot;&gt;&lt;/script&gt;<br>
96+
&lt;script type=&quot;text/javascript&quot; src=&quot;https://www.glowscript.org/package/glow.3.2.min.js&quot;&gt;&lt;/script&gt;<br>
9797
&lt;script type=&quot;text/javascript&quot;&gt;<br>
9898
window.__context = { glowscript_container: $(&quot;#glowscript&quot;).removeAttr(&quot;id&quot;) }<br>
9999
<br>

0 commit comments

Comments
 (0)