forked from meemoo/meemoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
42 lines (38 loc) · 990 Bytes
/
README.txt
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
30
31
32
33
34
35
36
37
38
39
40
41
42
_____ _
| |___ ___ _____ ___ ___ |_|___
| | | | -_| -_| | . | . |_ | |_ -|
|_|_|_|___|___|_|_|_|___|___|_|_| |___|
http://meemoo.org/ |___|
Use it something like this:
<script type="text/javascript" src="http://meemoo.org/meemoo/v1/meemoo-min.js"></script>
<script type="text/javascript">
Meemoo
.setInfo({
title: "example",
author: "forresto",
description: "example to show how to turn html into a Meemoo module"
})
.addInputs({
square: {
action: function (n) {
Meemoo.send("squared", n*n);
},
type: "number"
},
reverse: {
action: function (s) {
var reversed = s.split("").reverse().join("");
Meemoo.send("reversed", reversed);
},
type: "string"
}
})
.addOutputs({
squared: {
type: "number"
},
reversed: {
type: "string"
}
});
</script>