mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
116 lines
3.4 KiB
Plaintext
116 lines
3.4 KiB
Plaintext
{namespace graphpage}
|
|
|
|
/**
|
|
* This is a Closure Template.
|
|
*
|
|
* To regenerate just en.js, run this command:
|
|
* java -jar ../_soy/SoyToJsSrcCompiler.jar --outputPathFormat generated/en.js --srcs ../common.soy,template.soy
|
|
*
|
|
* To regenerate all files, see: trunk/apps/common.soy
|
|
*/
|
|
|
|
/**
|
|
* Translated messages for use in JavaScript.
|
|
*/
|
|
{template .messages}
|
|
{call apps.messages /}
|
|
{/template}
|
|
|
|
/**
|
|
* Web page structure.
|
|
*/
|
|
{template .start}
|
|
{call .messages /}
|
|
<table width="100%">
|
|
<tr>
|
|
<td>
|
|
<h1>
|
|
<span id="title">
|
|
<a href="../index.html?lang={$ij.lang}">{msg meaning="Apps.blocklyMessage" desc="IBID"}Blockly{/msg}</a>
|
|
{sp}:{sp}
|
|
{msg meaning="Graph.title" desc="title - Brief title for this graphic calculator application."}
|
|
Graphing Calculator
|
|
{/msg}
|
|
</span>
|
|
</h1>
|
|
</td>
|
|
<td class="farSide">
|
|
<select id="languageMenu"></select>
|
|
|
|
<button id="linkButton" class="notext" title="{msg meaning="Apps.linkTooltip" desc="TODO"}Save and link to blocks.{/msg}">
|
|
<img src='link.png' height=21 width=21>
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div id="visualization"></div>
|
|
<div id="funcText">
|
|
<img id="y1" src="../../media/1x1.gif">
|
|
...
|
|
</div>
|
|
|
|
<script type="text/javascript" src="../../blockly_compressed.js"></script>
|
|
<script type="text/javascript" src="../../blocks_compressed.js"></script>
|
|
<script type="text/javascript" src="../../javascript_compressed.js"></script>
|
|
<script type="text/javascript" src="../../{$ij.langSrc}"></script>
|
|
<script type="text/javascript" src="blocks.js"></script>
|
|
{call .toolbox /}
|
|
<div id="blockly"></div>
|
|
{call apps.dialog /}
|
|
{call apps.storageDialog /}
|
|
{/template}
|
|
|
|
/**
|
|
* Toolbox.
|
|
*/
|
|
{template .toolbox}
|
|
<xml id="toolbox" style="display: none">
|
|
<category name="{msg meaning="Apps.catMath" desc="IBID"}Math{/msg}">
|
|
<block type="math_number"></block>
|
|
<block type="math_arithmetic"></block>
|
|
<block type="math_single"></block>
|
|
<block type="math_trig"></block>
|
|
<block type="math_constant"></block>
|
|
<block type="math_number_property"></block>
|
|
<block type="math_round"></block>
|
|
<block type="math_modulo"></block>
|
|
<block type="math_constrain">
|
|
<value name="LOW">
|
|
<block type="math_number">
|
|
<title name="NUM">1</title>
|
|
</block>
|
|
</value>
|
|
<value name="HIGH">
|
|
<block type="math_number">
|
|
<title name="NUM">100</title>
|
|
</block>
|
|
</value>
|
|
</block>
|
|
<block type="math_random_int">
|
|
<value name="FROM">
|
|
<block type="math_number">
|
|
<title name="NUM">1</title>
|
|
</block>
|
|
</value>
|
|
<value name="TO">
|
|
<block type="math_number">
|
|
<title name="NUM">100</title>
|
|
</block>
|
|
</value>
|
|
</block>
|
|
<block type="math_random_float"></block>
|
|
</category>
|
|
<category name="{msg meaning="Apps.catVariables" desc="IBID"}Variables{/msg}">
|
|
<block type="graph_get_x"></block>
|
|
</category>
|
|
<category name="{msg meaning="Apps.catLogic" desc="IBID"}Logic{/msg}">
|
|
<block type="logic_compare"></block>
|
|
<block type="logic_operation"></block>
|
|
<block type="logic_negate"></block>
|
|
<block type="logic_boolean"></block>
|
|
<block type="logic_ternary"></block>
|
|
</category>
|
|
</xml>
|
|
{/template}
|