@@ -1237,8 +1237,7 @@ Paste a website link to a course that uses Python: <input type="text" id="course
12371237<input type="hidden" id="Q-version" value="v2"/> <!-- for versioning -->\n\
12381238</p>'
12391239
1240- v3: (deployed on 2014-06-28) [it's a simplified version of v1]
1241- */
1240+ v3: (deployed on 2014-06-28, revoked on 2014-07-13) [it's a simplified version of v1]
12421241var survey_v3 = '\n\
12431242<p style="margin-top: 10px; line-height: 175%;">\n\
12441243[Optional] Please answer these questions to support our research and to help improve this tool.<br/>\n\
@@ -1247,8 +1246,17 @@ What do you hope to learn by visualizing it? <input type="text" id="what-learn-Q
12471246<input type="hidden" id="Q-version" value="v3"/> <!-- for versioning -->\n\
12481247</p>'
12491248
1249+ v4: (deployed on 2014-07-13)
1250+ [an even more simplified version of v1 just to focus on ONE important question]
1251+ */
1252+ var survey_v4 = '\n\
1253+ <p style="margin-top: 10px; line-height: 175%;">\n\
1254+ [Optional] What do you hope to learn by visualizing this code?<br/>\n\
1255+ <input type="text" id="what-learn-Q" class="surveyQ" size=80 maxlength=300/><br/>\n\
1256+ <input type="hidden" id="Q-version" value="v4"/> <!-- for versioning -->\n\
1257+ </p>'
12501258
1251- var survey_html = survey_v3 ;
1259+ var survey_html = survey_v4 ;
12521260
12531261function setSurveyHTML ( ) {
12541262 $ ( '#surveyPane' ) . html ( survey_html ) ;
@@ -1287,7 +1295,7 @@ function getSurveyObject() {
12871295 }
12881296 */
12891297
1290- /* v3 */
1298+ /* v3
12911299 var code_origin_Q_val = $('#code-origin-Q').val();
12921300 var what_learn_Q_val = $('#what-learn-Q').val();
12931301
@@ -1300,6 +1308,19 @@ function getSurveyObject() {
13001308 what_learn_Q: what_learn_Q_val,
13011309 }
13021310 }
1311+ */
1312+
1313+ /* v4 */
1314+ var what_learn_Q_val = $ ( '#what-learn-Q' ) . val ( ) ;
1315+
1316+ var ret = null ;
1317+
1318+ if ( what_learn_Q_val ) {
1319+ ret = {
1320+ ver : $ ( '#Q-version' ) . val ( ) ,
1321+ what_learn_Q : what_learn_Q_val ,
1322+ }
1323+ }
13031324
13041325 return ret ;
13051326}
0 commit comments