Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

Github repo cloud-examples: https://github.com/sagemath/cloud-examples

Views: 7955
License: MIT
1
$(".app-button").click(function(e) {
2
3
n = parseFloat($(".app-input").val());
4
5
worksheet.execute_code({
6
code: "salvus.data['n'] * random()",
7
data: {n:n},
8
preparse: false,
9
cb : function(mesg) {
10
console.log(mesg);
11
if (mesg.stdout) {
12
$(".app-output").append(mesg.stdout);
13
}
14
}
15
})
16
})
17