Hello Community,
I am trying to create a simple calculation macro in the Confluence. I have never done it before, this is my first. I found the syntax and everything. Here is what I tried:
## @Param nr1:title=number1|type=int|required=true|
## @Param nr2:title=number2|type=int|required=true|
<script type="text/javascript">
AJS.toInit(function(){
var x = $paramnr1;
var y = $paramnr2;
var result = x * y;
$(result);
});
</script>
Parameters are ok, but the problem is that I am not getting any result. What am I missing here?
Thank you
Jakub