File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 55 < title > JavaScript/Python bridge demo</ title >
66 < script type ="text/javascript " src ="/src/brython.js "> </ script >
77 < script type ="text/javascript " src ="print.brython.js "> </ script >
8+ < script type ="text/javascript " src ="printJSFile.js "> </ script >
89 </ head >
910 < body >
1011
2425console . log ( "pythonscript 4: console.log" )
2526window . printJavaScriptFromScript ( "pythonscript 5: printJavaScriptFromScript" )
2627printJS . printJavaScriptFromModule ( "pythonscript 6: printJavaScriptFromModule" )
28+ window . printJavaScriptFromFile ( "pythonscript 7: printJavaScriptFromFile" )
2729
28- document <= "Look at the 16 print in the JavaScript console"
30+ document <= "Look at the 18 print in the JavaScript console"
2931 </ script >
3032
3133 < script type ="text/javascript " id ="javascriptscript ">
4547 pythonscript . print_python_from_script ( "javascriptscript 5: print_python_from_script" )
4648} )
4749print_py . print_python_from_module ( "javascriptscript 6: print_python_from_module" )
50+ printJavaScriptFromFile ( "javascriptscript 7: printJavaScriptFromFile" )
4851 </ script >
4952
5053 </ body >
Original file line number Diff line number Diff line change 1+ printJavaScriptFromFile = function ( message ) {
2+ console . log ( message )
3+ }
You can’t perform that action at this time.
0 commit comments