Skip to content

Commit 43a47dc

Browse files
committed
WASM REPL: put demo at index.html and change text of the 'Run Code' button
1 parent b688663 commit 43a47dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile.pre.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ $(DLLLIBRARY) libpython$(LDVERSION).dll.a: $(LIBRARY_OBJS)
10961096
# wasm32-emscripten browser web example
10971097

10981098
WEBEX_DIR=$(srcdir)/Tools/wasm/emscripten/web_example/
1099-
web_example/python.html: $(WEBEX_DIR)/python.html
1099+
web_example/index.html: $(WEBEX_DIR)/index.html
11001100
@mkdir -p web_example
11011101
@cp $< $@
11021102

@@ -1124,7 +1124,7 @@ web_example/python.mjs web_example/python.wasm: $(BUILDPYTHON)
11241124
cp python.wasm web_example/python.wasm
11251125

11261126
.PHONY: web_example
1127-
web_example: web_example/python.mjs web_example/python.worker.mjs web_example/python.html web_example/server.py $(WEB_STDLIB)
1127+
web_example: web_example/python.mjs web_example/python.worker.mjs web_example/index.html web_example/server.py $(WEB_STDLIB)
11281128

11291129
############################################################################
11301130
# Header files

Tools/wasm/emscripten/web_example/python.html renamed to Tools/wasm/emscripten/web_example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@
604604
<h1>Simple REPL for Python WASM</h1>
605605
<div id="editor">print('Welcome to WASM!')</div>
606606
<div class="button-container">
607-
<button id="run" disabled>Run</button>
607+
<button id="run" disabled>Run Code</button>
608608
<button id="repl" disabled>Start REPL</button>
609609
<button id="stop" disabled>Stop</button>
610610
<button id="clear" disabled>Clear</button>

0 commit comments

Comments
 (0)