Skip to content

Commit 7fbf852

Browse files
committed
minor tweaks
1 parent 1e16f38 commit 7fbf852

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎v3/js/opt-frontend-common.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ function updateAppDisplay(newAppMode) {
384384
function executeCodeFromScratch() {
385385
// don't execute empty string:
386386
if ($.trim(pyInputCodeMirror.getValue()) == '') {
387-
setFronendError(["Type in some code to visualize."]);
387+
setFronendError(["Type in some Python code to visualize."]);
388388
return;
389389
}
390390

‎v3/js/opt-frontend.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ function initTogetherJS() {
286286
$("#codeInputWarnings").html('<span style="color: #e93f34; font-weight: bold">\
287287
Hold on, someone else is typing ...</span>');
288288
codeMirrorWarningTimeoutId = setTimeout(function() {
289-
$("#codeInputWarnings").html('Write your Python code here:');
289+
$("#codeInputWarnings").html('Write Python code here:');
290290
}, 1000);
291291
});
292292

@@ -636,7 +636,7 @@ $(document).ready(function() {
636636
return false;
637637
});
638638

639-
$("#aliasExampleLink").click(function() {
639+
$("#aliasExampleLink,#firstExampleDupLink").click(function() {
640640
$.get("example-code/aliasing.txt", setCodeMirrorVal);
641641
return false;
642642
});

‎v3/visualize.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
</div>
119119

120120
</td>
121-
<td valign="top" style="padding-left: 25px;">
121+
<td valign="top" style="padding-left: 20px;">
122122

123123
<div style="display: none;" id="togetherjsStatus"></div>
124124

@@ -142,7 +142,7 @@
142142
</div>
143143
<div style="font-size: 10pt; margin-bottom: 5pt; padding: 1pt;">
144144
I just learned that
145-
<input style="font-size: 10pt; padding: 1pt;" type="text" id="iJustLearnedInput" size="70" maxlength=300/>
145+
<input style="font-size: 10pt; padding: 1pt;" type="text" id="iJustLearnedInput" size="60" maxlength=300/>
146146

147147
<button id="iJustLearnedSubmission" type="button" style="font-size: 10pt;">Submit</button>
148148

@@ -160,7 +160,7 @@
160160

161161
<div id="pyInputPane">
162162

163-
<div id="codeInputWarnings">Write your Python code here:</div>
163+
<div id="codeInputWarnings">Write Python code here or <a href="#" id="firstExampleDupLink">load an example</a>:</div>
164164
<div id="codeInputPane"></div> <!-- populate with a CodeMirror instance -->
165165
<div id="frontendErrorOutput"></div>
166166
<div id="surveyPane"></div>
@@ -201,7 +201,7 @@
201201
</p>
202202

203203

204-
<p style="margin-top: 25px;">Here are some example Python code snippets to visualize:</p>
204+
<p style="margin-top: 25px; font-weight: bold;">Examples to visualize</p>
205205

206206
<p style="margin-top: 10px;">Basic:
207207

0 commit comments

Comments
 (0)