File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 21
21
< table >
22
22
< tr >
23
23
< td > < div id ="question_number "> </ div > </ td >
24
- < td > < td > < div id ="markdown "> </ div > </ td >
24
+ < td > < td > < div id ="markdown "> Loading... </ div > </ td >
25
25
</ tr >
26
26
</ table >
27
27
< 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 >
29
30
< button id ="check_button "> Check</ button >
30
31
< hr >
31
32
< button id ="run_button "> ▶Run</ button >
32
33
< button id ="clear_button "> Clear Output</ button >
33
34
< button id ="clear_errors_button "> Clear Errors</ button >
34
35
< hr >
35
- < textarea id ="code_box " cols ="80 " rows ="6 "> </ textarea >
36
+ < textarea id ="code_box " cols ="160 " rows ="6 "> </ textarea >
36
37
< div id ="output "> </ div >
37
38
38
- <!-- <script type="py" config="./pyscript.toml" target="output"> -->
39
39
< script type ="py " target ="output ">
40
40
from pyscript import when , window , document , display
41
41
66
66
#display( 'world' )
67
67
#display( 'finished loading' , append = False ) # overwrite
68
68
69
-
70
69
# set text
71
70
questionNumberDiv = document . getElementById ( 'question_number' )
72
71
questionNumberDiv . innerText = 1
73
72
markdownDiv = document . getElementById ( 'markdown' )
74
- markdownDiv . innerText = window . location . hostname
73
+ markdownDiv . innerText = 'Is this the first question?'
75
74
</ script >
76
-
77
75
<!-- <button py-click="click_handler" id="bad-practice" class="py-button">Don't do buttons this way</button> -->
78
76
</ body >
79
77
</ html >
You can’t perform that action at this time.
0 commit comments