We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5be45f commit d0758e2Copy full SHA for d0758e2
static/js/javascript.js
@@ -147,6 +147,13 @@ $(document).ready(function(){
147
$("#output").append("<pre>"+data+"</pre>");
148
}
149
});
150
+ var exampleCode = function (id, text) {
151
+ $(id).click(function (e) {
152
+ //console.log("sdf");
153
+ editor.setValue(text);
154
+ editor.focus(); // so that F5 works, hmm
155
+ });
156
+ };
157
158
exampleCode('#codeexample1', "methods = []\nfor i in range(10):\n methodds.append(lambda x: x + i)\nprint methods[0](10)");
159
exampleCode('#codeexample2', "for i in range(5):\n print i\n");
0 commit comments