Skip to content

Commit 5e04e46

Browse files
committed
Resize textareas
1 parent b824dbb commit 5e04e46

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/pyscript-labyrinth.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@
2121
<table>
2222
<tr>
2323
<td><div id="question_number"></div></td>
24-
<td><td><div id="markdown"></div></td>
24+
<td><td><div id="markdown">Loading...</div></td>
2525
</tr>
2626
</table>
2727
<hr>
28-
<textarea id="answer_box" cols="80", rows="1" placeholder="input answer here"></textarea>
28+
<textarea id="answer_box" cols="160", rows="1" placeholder="input answer here"></textarea>
29+
<br>
2930
<button id="check_button">Check</button>
3031
<hr>
3132
<button id="run_button">▶Run</button>
3233
<button id="clear_button">Clear Output</button>
3334
<button id="clear_errors_button">Clear Errors</button>
3435
<hr>
35-
<textarea id="code_box" cols="80" rows="6"></textarea>
36+
<textarea id="code_box" cols="160" rows="6"></textarea>
3637
<div id="output"></div>
3738

38-
<!-- <script type="py" config="./pyscript.toml" target="output"> -->
3939
<script type="py" target="output">
4040
from pyscript import when, window, document, display
4141

@@ -66,14 +66,12 @@
6666
#display('world')
6767
#display('finished loading', append=False) # overwrite
6868

69-
7069
# set text
7170
questionNumberDiv = document.getElementById('question_number')
7271
questionNumberDiv.innerText = 1
7372
markdownDiv = document.getElementById('markdown')
74-
markdownDiv.innerText = window.location.hostname
73+
markdownDiv.innerText = 'Is this the first question?'
7574
</script>
76-
7775
<!-- <button py-click="click_handler" id="bad-practice" class="py-button">Don't do buttons this way</button> -->
7876
</body>
7977
</html>

0 commit comments

Comments
 (0)