File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 10
10
< link rel ="stylesheet " href ="build/pyscript.css " />
11
11
</ head >
12
12
13
- < body class ="container ">
13
+ < body class ="container font-mono ">
14
14
15
15
< h1 class ="text-3xl font-bold "> PyScript demos</ h1 >
16
16
< hr />
Original file line number Diff line number Diff line change 13
13
</ head >
14
14
15
15
< body >
16
- < div id ="outputDiv " style ="background-color:yellow "> </ div >
16
+ < div id ="outputDiv " class =" font-mono " style ="background-color:yellow "> </ div >
17
17
< py-script target ="outputDiv ">
18
18
from datetime import datetime
19
19
now = datetime.now()
Original file line number Diff line number Diff line change 7
7
< title > Svelte app</ title >
8
8
9
9
< link rel ="icon " type ="image/png " href ="favicon.png " />
10
- < link rel ="stylesheet " href ="../build/bundle .css " />
10
+ < link rel ="stylesheet " href ="../build/pyscript .css " />
11
11
12
12
< script defer src ="../build/pyscript.js "> </ script >
13
13
</ head >
14
14
15
15
< body >
16
- < div id ="outputDiv "> </ div >
17
- < div id ="outputDiv2 " style =" background-color: blueviolet "> </ div >
18
- < div id ="outputDiv3 " style =" background-color: yellow "> </ div >
16
+ < div class =" font-mono " > start time: < label id ="outputDiv "> </ label > </ div >
17
+ < div id ="outputDiv2 " class =" font-mono "> </ div >
18
+ < div id ="outputDiv3 " class =" font-mono "> </ div >
19
19
< py-script target ="outputDiv ">
20
20
from datetime import datetime
21
21
now = datetime.now()
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class PyScript:
35
35
console.log(f"DATA/IMAGE: {value}")
36
36
document.getElementById(element_id).innerHTML = f'<div><img id="plt" src="{value}"/></div>'
37
37
else:
38
- document.getElementById(element_id).innerHTML = repr( value) ;
38
+ document.getElementById(element_id).innerHTML = value;
39
39
console.log(f"ELSE: {append} ==> {element_id} --> {value}")
40
40
41
41
@staticmethod
You can’t perform that action at this time.
0 commit comments