2026-03-05 11:17:25 +01:00
|
|
|
<!doctype html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
2026-03-24 12:40:25 +01:00
|
|
|
<title>MicroPythonOS WebREPL</title>
|
2026-03-05 11:17:25 +01:00
|
|
|
<link rel="stylesheet" href="webrepl.css">
|
|
|
|
|
<script src="term.js"></script>
|
|
|
|
|
<script src="FileSaver.js"></script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2026-03-24 12:40:25 +01:00
|
|
|
<h1>MicroPythonOS WebREPL</h1>
|
2026-03-05 11:17:25 +01:00
|
|
|
<div style="display:inline-block; vertical-align:top;">
|
|
|
|
|
<form>
|
|
|
|
|
<input type="text" name="webrepl_url" id="url" value="" />
|
|
|
|
|
<input type="submit" id="button" value="Connect" onclick="button_click(); return false;" />
|
|
|
|
|
</form>
|
2026-03-24 11:06:58 +01:00
|
|
|
<div id="term-wrapper">
|
|
|
|
|
<div id="term"></div>
|
2026-03-05 11:17:25 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="file-boxes" style="display:inline-block; vertical-align:top; width:230px;">
|
|
|
|
|
|
|
|
|
|
<div class="file-box">
|
|
|
|
|
<strong>Send a file</strong>
|
|
|
|
|
<input type="file" id="put-file-select" />
|
|
|
|
|
<div id="put-file-list"></div>
|
|
|
|
|
<input type="button" value="Send to device" id="put-file-button" onclick="put_file(); return false;" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="file-box">
|
|
|
|
|
<strong>Get a file</strong>
|
|
|
|
|
<input type="text" name="get_filename" id="get_filename" value="" size="13" />
|
|
|
|
|
<input type="button" value="Get from device" onclick="get_file(); return false;" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="file-box" id="file-status"><span style="color:#707070">(file operation status)</span></div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<br clear="both" />
|
|
|
|
|
<i>Terminal widget should be focused (text cursor visible) to accept input. Click on it if not.</i><br/>
|
|
|
|
|
<i>To paste, press Ctrl+A, then Ctrl+V</i>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
<script src="webrepl.js"></script>
|
2026-03-24 11:06:58 +01:00
|
|
|
<script src="webrepl_tweaks.js"></script>
|
2026-03-05 11:17:25 +01:00
|
|
|
|
|
|
|
|
</html>
|