1
0
mirror of https://github.com/pyscript/pyscript.git synced 2022-05-01 19:47:48 +03:00

improve some of the demos font and removes repr for when objects are outputted to a div

This commit is contained in:
Fabio Pliger
2022-04-12 15:42:44 -05:00
parent af107e8488
commit c29144d69c
4 changed files with 7 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ class PyScript:
console.log(f"DATA/IMAGE: {value}")
document.getElementById(element_id).innerHTML = f'<div><img id="plt" src="{value}"/></div>'
else:
document.getElementById(element_id).innerHTML = repr(value);
document.getElementById(element_id).innerHTML = value;
console.log(f"ELSE: {append} ==> {element_id} --> {value}")
@staticmethod