0 Votes

Wiki source code of BlocklyViewSheet

Last modified by Ryan C on 2025/04/24 05:08

Show last authors
1 {{velocity}}
2 #set($discard = $xwiki.jsx.use('Blockly.Code.BlocklyViewSheet'))
3
4 #if ($doc.getObject('Blockly.Code.BlocklyClass'))
5
6 {{html clean="false" }}
7 <div style="display:none;" id="contentInp">$doc.getObject('Blockly.Code.BlocklyClass').getProperty('CodeJS').value</div>
8 {{/html}}
9
10 #if ("$!request.evaluate" == "true")
11 {{include reference="Blockly.Code.BlocklyExecuteCodeSheet" /}}
12 {{html clean="false" }}
13 <input type="button" id="view" class="button" value="View Code"></input>
14 {{/html}}
15 #else
16 {{include reference="Blockly.Code.BlocklyViewCodeSheet" /}}
17 {{html clean="false" }}
18 <input type="button" id="run" class="button" value="Run Code"></input>
19 {{/html}}
20 #end
21 #end
22
23 {{/velocity}}