diff --git a/src/blocks/custom.js b/src/blocks/custom.js index 573b1af..9d15d25 100644 --- a/src/blocks/custom.js +++ b/src/blocks/custom.js @@ -37,6 +37,7 @@ module.exports = { }, output: true, execute: function(inputs, block){ + var customFunc; eval("customFunc = function(inp1, inp2, inp3, inp4, inp5){" + block.properties.code + "}"); return customFunc(inputs.inp1, inputs.inp2, inputs.inp3, inputs.inp4, inputs.inp5); }, diff --git a/src/blocks/numbersToElements.js b/src/blocks/numbersToElements.js index bd901ae..3be62e7 100644 --- a/src/blocks/numbersToElements.js +++ b/src/blocks/numbersToElements.js @@ -19,7 +19,7 @@ module.exports = { .join(","); }, pageBlock: { - html: "", + html: "
The numbers should be comma separated (eg 1,2,3)
", js: function(){} } } diff --git a/src/styles.scss b/src/styles.scss index 7cb7400..b3f107a 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -82,8 +82,8 @@ body{ .line{ border-top: 2px solid black; position: absolute; - z-index: 1; pointer-events: none; + z-index: 1; } } @@ -149,6 +149,7 @@ body{ } #help{ + z-index: 2; position: fixed; top: 0; left: 0;