You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 7, 2023. It is now read-only.
// Simulate pressing the run button, since this will also prevent the user from clicking it until the initial run is complete, and also help the user understand why they're waiting.
// give the user a visual cue that they have changed but not saved
226
-
// editor.on(
227
-
// "change",
228
-
// function (ev) {
229
-
// if (
230
-
// editor.acEditEvent == false ||
231
-
// editor.acEditEvent === undefined
232
-
// ) {
233
-
// // change events can come before any real changes for various reasons, some unknown
234
-
// // this avoids unneccsary log events and updates to the activity counter
235
-
// if (this.origText === editor.getValue()) {
236
-
// return;
237
-
// }
238
-
// $(editor.getWrapperElement()).css(
239
-
// "border-top",
240
-
// "2px solid #b43232"
241
-
// );
242
-
// $(editor.getWrapperElement()).css(
243
-
// "border-bottom",
244
-
// "2px solid #b43232"
245
-
// );
246
-
// this.isAnswered = true;
247
-
// this.logBookEvent({
248
-
// event: "activecode",
249
-
// act: "edit",
250
-
// div_id: this.divid,
251
-
// });
252
-
// }
253
-
// editor.acEditEvent = true;
254
-
// }.bind(this)
255
-
// ); // use bind to preserve *this* inside the on handler.
256
-
// //Solving Keyboard Trap of ActiveCode: If user use tab for navigation outside of ActiveCode, then change tab behavior in ActiveCode to enable tab user to tab out of the textarea
257
-
// $(window).keydown(function (e) {
258
-
// var code = e.keyCode ? e.keyCode : e.which;
259
-
// if (code == 9 && $("textarea:focus").length === 0) {
260
-
// editor.setOption("extraKeys", {
261
-
// Tab: function (cm) {
262
-
// $(document.activeElement)
263
-
// .closest(".tab-content")
264
-
// .nextSibling.focus();
265
-
// },
266
-
// "Shift-Tab": function (cm) {
267
-
// $(document.activeElement)
268
-
// .closest(".tab-content")
269
-
// .previousSibling.focus();
270
-
// },
271
-
// });
272
-
// }
273
-
// });
274
-
// this.editor = editor;
275
147
}
276
148
277
149
// copied from activecode
150
+
// seems pretty clear, and do not need to modify
278
151
createOutput(){
279
152
// Create a parent div with two elements: pre for standard output and a div
280
153
// to hold turtle graphics output. We use a div in case the turtle changes from
0 commit comments