2017-09-25 09:37:41 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Sumorobot</title>
|
|
|
|
<link rel="stylesheet" href="styles.css">
|
|
|
|
<link rel="stylesheet" href="bootstrap.min.css">
|
2017-10-11 09:03:23 +00:00
|
|
|
<link rel="shortcut icon" type="image/png" href="logo.png"/>
|
2018-01-17 19:41:55 +00:00
|
|
|
<link href="https://fonts.googleapis.com/css?family=Orbitron" rel="stylesheet">
|
2018-01-17 11:16:26 +00:00
|
|
|
<script src="jquery.min.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<script src="bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<script src="blockly_compressed.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<script src="blocks_compressed.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<script src="python_compressed.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<script src="msg/js/en.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<script src="sumorobot.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.9/ace.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.9/ext-language_tools.js" type="text/javascript" charset="utf-8"></script>
|
2017-09-25 09:37:41 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2018-01-04 23:09:08 +00:00
|
|
|
<div id="battery">Disconnected</div>
|
2017-12-20 00:35:50 +00:00
|
|
|
|
2017-09-25 09:37:41 +00:00
|
|
|
<div id="panel">
|
2018-01-04 23:09:08 +00:00
|
|
|
<object class="logo" type="image/svg+xml" data="logo.svg">
|
2017-10-13 12:15:58 +00:00
|
|
|
RoboKoding logo
|
|
|
|
</object>
|
2017-09-25 09:37:41 +00:00
|
|
|
<div class="input-group">
|
2018-01-17 19:41:55 +00:00
|
|
|
<span class="input-group-addon" id="robot-label">robot name</span>
|
|
|
|
<input type="text" class="form-control" id="robot-id" placeholder="sumo-ID" />
|
2017-09-25 09:37:41 +00:00
|
|
|
</div>
|
2018-01-17 19:41:55 +00:00
|
|
|
<div class="btn-group btn-group-robot" role="group" aria-label="robots">
|
|
|
|
<a href="#" class="btn btn-lg btn-robot-go">GO!</a>
|
2017-09-25 09:37:41 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-01-04 23:09:08 +00:00
|
|
|
<table class="blockly-table">
|
2017-09-25 09:37:41 +00:00
|
|
|
<tr>
|
|
|
|
<td id="blocklyArea"></td>
|
2017-12-20 00:35:50 +00:00
|
|
|
<td id="blocklyCodeArea">
|
|
|
|
<div id="stream"></div>
|
2018-01-17 11:16:26 +00:00
|
|
|
<div id="blocklyCode"></div>
|
2017-12-20 00:35:50 +00:00
|
|
|
</td>
|
2017-09-25 09:37:41 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div id="blocklyDiv" style="position: absolute"></div>
|
|
|
|
|
|
|
|
<xml id="toolbox" style="display: none">
|
|
|
|
<block type="controls_if"></block>
|
|
|
|
<block type="sumorobot_move"></block>
|
|
|
|
<block type="sumorobot_delay"></block>
|
2018-01-16 21:13:23 +00:00
|
|
|
<block type="sumorobot_opponent"></block>
|
2017-09-25 09:37:41 +00:00
|
|
|
<block type="sumorobot_line"></block>
|
|
|
|
</xml>
|
|
|
|
|
2018-01-15 09:53:51 +00:00
|
|
|
<xml id="toolbox_no_if" style="display: none">
|
2018-01-15 14:09:54 +00:00
|
|
|
<block type="controls_if" disabled="true"></block>
|
2018-01-15 09:53:51 +00:00
|
|
|
<block type="sumorobot_move"></block>
|
|
|
|
<block type="sumorobot_delay"></block>
|
2018-01-16 21:13:23 +00:00
|
|
|
<block type="sumorobot_opponent"></block>
|
2018-01-15 09:53:51 +00:00
|
|
|
<block type="sumorobot_line"></block>
|
|
|
|
</xml>
|
|
|
|
|
2018-01-17 19:41:55 +00:00
|
|
|
<div class="btn-group d-flex btn-group-control" role="group">
|
|
|
|
<a href="#" class="btn btn-lg btn-success btn-start w-100">Start</a>
|
|
|
|
<a href="#" class="btn btn-lg btn-danger btn-stop w-100">Stop</a>
|
2017-09-25 09:37:41 +00:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|