cpython/Tools/wasm/emscripten/web_example_pyrepl_jspi/index.html
Hood Chatham ae4d27eba7
gh-124621: Emscripten: Add smoke test for using pyrepl in Chrome (#137004)
Adds a mechanism to test browser-based initialisation of the Python interpreter,
via a Playwright headless browser instance.
2025-07-24 14:44:02 +08:00

35 lines
895 B
HTML

<!doctype html>
<html>
<head>
<title>Emscripten PyRepl Example</title>
<link
rel="stylesheet"
href="https://unpkg.com/xterm@4.18.0/css/xterm.css"
/>
<style>
body {
background-color: #300a24;
}
.xterm-dom-renderer-owner-1 .xterm-fg-3 {
color: #c4a000 !important;
}
.xterm-dom-renderer-owner-1 .xterm-fg-6 {
color: #2aa1b3 !important;
}
.xterm-dom-renderer-owner-1 .xterm-fg-12 {
color: #1054a6 !important;
}
.xterm-dom-renderer-owner-1 .xterm-fg-13 {
color: #a347ba !important;
}
</style>
</head>
<body>
<div id="terminal"></div>
<script type="module" src="src.mjs"></script>
</body>
</html>