|
4 | 4 |
|
5 | 5 | // use Webpack to automatically package up these dependencies |
6 | 6 | require('./diff_match_patch.js'); |
7 | | -//require('./jquery-1.8.2.min.js'); |
8 | 7 | require('./jquery-3.0.0.min.js'); |
9 | 8 | require('./jquery.ba-bbq.js'); // contains slight pgbovine modifications |
| 9 | +require('./jquery.ba-dotimeout.min.js'); |
10 | 10 |
|
11 | 11 | var pytutor = require('./pytutor.js'); |
12 | 12 | var assert = pytutor.assert; |
13 | 13 |
|
14 | | -// TODO: abstract this better |
15 | | -// only export methods and NOT objects, since they're copied by value |
16 | | -module.exports = { |
17 | | - setSurveyHTML: setSurveyHTML, |
18 | | - genericOptFrontendReady: genericOptFrontendReady, |
19 | | - supports_html5_storage: supports_html5_storage, |
20 | | - setAceMode: setAceMode, |
21 | | - pyInputSetValue: pyInputSetValue, |
22 | | - pyInputGetValue: pyInputGetValue, |
23 | | - pyInputSetScrollTop: pyInputSetScrollTop, |
24 | | - pyInputGetScrollTop: pyInputGetScrollTop, |
25 | | - langToBackendScript: langToBackendScript, |
26 | | - getSurveyObject: getSurveyObject, |
27 | | - executeCodeWithRawInput: executeCodeWithRawInput, |
28 | | - executeCodeAndCreateViz: executeCodeAndCreateViz, |
29 | | - optFinishSuccessfulExecution: optFinishSuccessfulExecution, |
30 | | - handleUncaughtExceptionFunc: handleUncaughtExceptionFunc, |
31 | | - populateTogetherJsShareUrl: populateTogetherJsShareUrl, |
32 | | - getAppState: getAppState, |
33 | | - getAppMode: getAppMode, |
34 | | - getBaseBackendOptionsObj: getBaseBackendOptionsObj, |
35 | | - getBaseFrontendOptionsObj: getBaseFrontendOptionsObj, |
36 | | - getVisualizer: getVisualizer, |
37 | | - setVisualizer: setVisualizer, |
38 | | - getRawInputLst: getRawInputLst, |
39 | | - setRawInputLst: setRawInputLst, |
40 | | - executeCodeFromScratch: executeCodeFromScratch, |
41 | | - setFronendError: setFronendError, |
42 | | - clearFrontendError: clearFrontendError, |
43 | | - startExecutingCode: startExecutingCode, |
44 | | - doneExecutingCode: doneExecutingCode, |
45 | | - getSessionUUID: getSessionUUID, |
46 | | - getAceEditor: getAceEditor, |
47 | | - setAceEditor: setAceEditor, |
48 | | - compressUpdateHistoryList: compressUpdateHistoryList, |
49 | | - getQueryStringOptions: getQueryStringOptions, |
50 | | - initializeFrontendParams: initializeFrontendParams, |
51 | | -} |
52 | | - |
53 | 14 | var originFrontendJsFile = undefined; |
54 | 15 |
|
55 | 16 | // backend scripts to execute (Python 2 and 3 variants, if available) |
@@ -2308,3 +2269,46 @@ display a brief "Thanks!" note] |
2308 | 2269 | // empty stub so that our code doesn't crash. |
2309 | 2270 | // override this with a version in codeopticon-learner.js if needed |
2310 | 2271 | function logEventCodeopticon(obj) {} |
| 2272 | + |
| 2273 | + |
| 2274 | +// TODO: abstract this better |
| 2275 | +// only export methods and NOT objects, since they're copied by value |
| 2276 | +// (unless they're constants, in which case they can be exported at the |
| 2277 | +// end after they've been initialized) |
| 2278 | +module.exports = { |
| 2279 | + setSurveyHTML: setSurveyHTML, |
| 2280 | + genericOptFrontendReady: genericOptFrontendReady, |
| 2281 | + supports_html5_storage: supports_html5_storage, |
| 2282 | + setAceMode: setAceMode, |
| 2283 | + pyInputSetValue: pyInputSetValue, |
| 2284 | + pyInputGetValue: pyInputGetValue, |
| 2285 | + pyInputSetScrollTop: pyInputSetScrollTop, |
| 2286 | + pyInputGetScrollTop: pyInputGetScrollTop, |
| 2287 | + langToBackendScript: langToBackendScript, |
| 2288 | + getSurveyObject: getSurveyObject, |
| 2289 | + executeCodeWithRawInput: executeCodeWithRawInput, |
| 2290 | + executeCodeAndCreateViz: executeCodeAndCreateViz, |
| 2291 | + optFinishSuccessfulExecution: optFinishSuccessfulExecution, |
| 2292 | + handleUncaughtExceptionFunc: handleUncaughtExceptionFunc, |
| 2293 | + populateTogetherJsShareUrl: populateTogetherJsShareUrl, |
| 2294 | + getAppState: getAppState, |
| 2295 | + getAppMode: getAppMode, |
| 2296 | + getBaseBackendOptionsObj: getBaseBackendOptionsObj, |
| 2297 | + getBaseFrontendOptionsObj: getBaseFrontendOptionsObj, |
| 2298 | + getVisualizer: getVisualizer, |
| 2299 | + setVisualizer: setVisualizer, |
| 2300 | + getRawInputLst: getRawInputLst, |
| 2301 | + setRawInputLst: setRawInputLst, |
| 2302 | + executeCodeFromScratch: executeCodeFromScratch, |
| 2303 | + setFronendError: setFronendError, |
| 2304 | + clearFrontendError: clearFrontendError, |
| 2305 | + startExecutingCode: startExecutingCode, |
| 2306 | + doneExecutingCode: doneExecutingCode, |
| 2307 | + getSessionUUID: getSessionUUID, |
| 2308 | + getAceEditor: getAceEditor, |
| 2309 | + setAceEditor: setAceEditor, |
| 2310 | + compressUpdateHistoryList: compressUpdateHistoryList, |
| 2311 | + getQueryStringOptions: getQueryStringOptions, |
| 2312 | + initializeFrontendParams: initializeFrontendParams, |
| 2313 | + JS_JSONP_ENDPOINT: JS_JSONP_ENDPOINT, |
| 2314 | +} |
0 commit comments