Skip to content

Commit 4ac8dac

Browse files
committed
adjusted
1 parent 55f3346 commit 4ac8dac

File tree

4 files changed

+26
-16
lines changed

4 files changed

+26
-16
lines changed

v3/js/opt-office-mix.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ $(document).ready(function() {
255255
initAceEditor(350);
256256
}
257257

258+
// no frills footer
259+
$("#footer").css("margin-top", "0px")
260+
.css("padding-top", "0px")
261+
.css("border-top", "0px");
262+
258263
$(window).resize(redrawConnectors);
259264

260265
// register a generic AJAX error handler

v3/js/pytutor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ ExecutionVisualizer.prototype.render = function() {
471471

472472
// add an extra label to link back to the main site, so that viewers
473473
// on the embedded page know that they're seeing an OPT visualization
474-
this.domRoot.find('#codeDisplayDiv').append('<div style="font-size: 8pt; margin-bottom: 20px;">Code visualized with <a href="http://pythontutor.com" target="_blank" style="color: #3D58A2;">Online Python Tutor</a></div>');
474+
this.domRoot.find('#codeDisplayDiv').append('<div style="font-size: 8pt; margin-bottom: 20px;">Visualized using <a href="http://pythontutor.com" target="_blank" style="color: #3D58A2;">Online Python Tutor</a> by <a href="http://www.pgbovine.net/" target="_blank">Philip Guo</a></div>');
475475
}
476476

477477
myViz.editAnnotationMode = false;

v3/opt-office-mix.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
<div id="codeInputPane"></div> <!-- populate with a CodeMirror instance -->
9494
<div id="frontendErrorOutput"></div>
9595

96+
<!--
9697
<p style="margin-top: 10px; line-height: 200%;">
9798
Options:
9899
<select id="cumulativeModeSelector">
@@ -108,6 +109,7 @@
108109
<option value="true">use text labels for references</option>
109110
</select>
110111
</p>
112+
-->
111113

112114
</div>
113115

v3/visualize.html

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,15 @@
176176

177177
<div id="pyInputPane">
178178

179-
<div id="codeInputWarnings">Write Python code here or <a href="#" id="firstExampleDupLink">load an example</a>:</div>
179+
<div id="codeInputWarnings">Write
180+
181+
<select id="pythonVersionSelector">
182+
<option value="2">Python 2.7</option>
183+
<option value="3">Python 3.3</option>
184+
<option value="2crazy">Py 2.crazy</option>
185+
</select>
186+
187+
code here or <a href="#" id="firstExampleDupLink">load an example</a>:</div>
180188
<div id="codeInputPane"></div> <!-- populate with a CodeMirror or Ace code editor instance -->
181189
<div id="frontendErrorOutput"></div>
182190
<div id="surveyPane"></div>
@@ -186,33 +194,28 @@
186194
</p>
187195

188196
<p style="margin-top: 20px; line-height: 200%;">
189-
Execute code using
190-
<select id="pythonVersionSelector">
191-
<option value="2">Python 2.7</option>
192-
<option value="3">Python 3.3</option>
193-
<option value="2crazy">Py 2.crazy</option>
194-
</select>,
197+
Options:
195198
<select id="cumulativeModeSelector">
196199
<option value="false">hide exited function frames (default)</option>
197200
<option value="true">show exited function frames</option>
198201
<option value="holistic">holistic mode (experimental)</option>
199-
</select>,<br/>
202+
</select>
200203
<select id="heapPrimitivesSelector">
201204
<option value="false">inline primitives and nested objects (default)</option>
202205
<option value="true">render all objects on the heap</option>
203-
</select>,
206+
</select>
204207
<select id="drawParentPointerSelector">
205208
<option value="false">hide environment parent pointers (default)</option>
206209
<option value="true">show environment parent pointers</option>
207-
</select>,<br/>
210+
</select>
208211
<select id="textualMemoryLabelsSelector">
209212
<option value="false">draw references using arrows (default)</option>
210213
<option value="true">use text labels for references</option>
211-
</select>, and
214+
</select>
212215
<select id="showOnlyOutputsSelector">
213216
<option value="false">show everything (default)</option>
214217
<option value="true">show only outputs</option>
215-
</select>.
218+
</select>
216219
</p>
217220

218221

@@ -341,9 +344,9 @@
341344
</div>
342345

343346
<p>
344-
<a href="http://pythontutor.com/">Online Python Tutor</a> supports <a
345-
href="http://www.python.org/doc/2.7/">Python 2.7</a> and <a
346-
href="http://www.python.org/doc/3.3.0/">Python 3.3</a> with limited module
347+
<a href="http://pythontutor.com/">Online Python Tutor</a> supports
348+
Python <a href="http://www.python.org/doc/2.7/">2.7</a> and <a
349+
href="http://www.python.org/doc/3.3.0/">3.3</a> with limited module
347350
imports and no file I/O.
348351
The following modules may be imported:
349352
bisect,

0 commit comments

Comments
 (0)