-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.js
More file actions
29 lines (26 loc) · 694 Bytes
/
index.js
File metadata and controls
29 lines (26 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
var container = $('<div class="console">');
$('#repl').console({
promptLabel: 'cljs.user=> ',
commandValidate:function(line){
if (line == "") return false;
else return true;
},
commandHandle:planck.core.read_eval_print,
autofocus:true,
animateScroll:true,
notifyPush: planck.core.notify_push,
history: planck.core.get_history()
});
function do_something(msg) {
document.getElementById('cb').checked = Boolean(msg)
}
$('#cb').click(function() {
// respond('click');
respond(document.getElementById('cb').checked)
})
let cljsSrc;
const loadSrc = async () => {
const response = await fetch("/out/self_compile.js");
cljsSrc = await response.text();
}
loadSrc();