Skip to content

Commit a76657b

Browse files
committed
updated survey to composingprograms and csc108h
1 parent 329d4bc commit a76657b

4 files changed

Lines changed: 41 additions & 3 deletions

File tree

‎v3/composingprograms.html‎

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@
8282

8383
<div id="signinButton" style="font-size: 8pt;">
8484
<div style="width: 200px; margin-bottom: 8px;">
85-
[Optional] Sign in with either a Berkeley email or Google account to
86-
set your chat username.
85+
[Optional] Sign in with either a Berkeley email or Google account
8786
</div>
8887

8988
<span
@@ -125,6 +124,25 @@
125124

126125
<td valign="top" style="padding-left: 20px;">
127126
<div id="togetherjsStatus"></div>
127+
128+
<!-- copied from visualize.html -->
129+
<div id="surveyHeader" style="display: none;">
130+
<div id="vizSurveyLabel" style="font-size: 8pt; color: #666; margin-bottom: 5pt;">
131+
Support our research and help future learners by describing what you are learning.
132+
</div>
133+
<div style="font-size: 10pt; margin-bottom: 5pt; padding: 1pt;">
134+
What did you just learn?
135+
<input style="font-size: 10pt; padding: 1pt;" type="text" id="iJustLearnedInput" size="60" maxlength=300/>
136+
137+
<button id="iJustLearnedSubmission" type="button" style="font-size: 10pt;">Submit</button>
138+
139+
<span id="iJustLearnedThanks"
140+
style="color: #e93f34; font-weight: bold; font-size: 11pt; display: none;">
141+
Thanks!
142+
</span>
143+
</div>
144+
</div>
145+
128146
</td>
129147
</tr>
130148
</table>

‎v3/csc108h.html‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,25 @@
102102

103103
<td valign="top" style="padding-left: 20px;">
104104
<div id="togetherjsStatus"></div>
105+
106+
<!-- copied from visualize.html -->
107+
<div id="surveyHeader" style="display: none;">
108+
<div id="vizSurveyLabel" style="font-size: 8pt; color: #666; margin-bottom: 5pt;">
109+
Support our research and help future learners by describing what you are learning.
110+
</div>
111+
<div style="font-size: 10pt; margin-bottom: 5pt; padding: 1pt;">
112+
What did you just learn?
113+
<input style="font-size: 10pt; padding: 1pt;" type="text" id="iJustLearnedInput" size="60" maxlength=300/>
114+
115+
<button id="iJustLearnedSubmission" type="button" style="font-size: 10pt;">Submit</button>
116+
117+
<span id="iJustLearnedThanks"
118+
style="color: #e93f34; font-weight: bold; font-size: 11pt; display: none;">
119+
Thanks!
120+
</span>
121+
</div>
122+
</div>
123+
105124
</td>
106125
</tr>
107126
</table>

‎v3/js/composingprograms.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ function executeCode(forceStartingInstr, forceRawInputLst) {
8282
}
8383

8484
$(document).ready(function() {
85+
setSurveyHTML();
8586
$('#signoutButton').click(signout);
8687

8788
genericOptFrontendReady(); // initialize at the very end

‎v3/js/csc108h.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ function executeCode(forceStartingInstr, forceRawInputLst) {
8282
}
8383

8484
$(document).ready(function() {
85-
85+
setSurveyHTML();
8686
genericOptFrontendReady(); // initialize at the very end
8787
});

0 commit comments

Comments
 (0)