Files
2026-03-24 12:40:25 +01:00

49 lines
1.4 KiB
HTML

<!doctype html>
<html>
<head>
<title>MicroPythonOS WebREPL</title>
<link rel="stylesheet" href="webrepl.css">
<script src="term.js"></script>
<script src="FileSaver.js"></script>
</head>
<body>
<h1>MicroPythonOS WebREPL</h1>
<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>
<div id="term-wrapper">
<div id="term"></div>
</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>
<script src="webrepl_tweaks.js"></script>
</html>