|
27 | 27 |
|
28 | 28 | You've found the source! :-) |
29 | 29 |
|
30 | | -If you want to see how the editor works you should check out the python-main.js file - it has all sorts of |
31 | | -helpful comments for you so you'll be able to work it all out. |
| 30 | +If you want to see how the editor works you should check out the js/python-main.js file - it has all |
| 31 | +sorts of helpful comments for you so you'll be able to work it all out. |
32 | 32 |
|
33 | | -If you're wondering what the long string of random looking characters is at the end of this file, well, it's |
34 | | -a copy of the MicroPython runtime that we copy onto the micro:bit. When you click download, the code you've |
35 | | -written in the editor is similarly encoded and then inserted at the end where you see a line of :::::::::::: |
36 | | -characters. |
| 33 | +If you want to know more about this Python Editor visit: |
| 34 | +https://github.com/bbcmicrobit/PythonEditor |
37 | 35 |
|
38 | 36 | If you want to know more about Python visit: |
39 | | -
|
40 | 37 | http://python.org/ |
41 | 38 |
|
42 | 39 | If you want to know more about MicroPython (the version of Python we're using here), then visit: |
43 | | -
|
44 | 40 | http://micropython.org/ |
45 | 41 |
|
46 | 42 | Finally, remember the Zen of MicroPython: |
|
72 | 68 | <script type="application/javascript"> |
73 | 69 | if (navigator.appVersion.indexOf("MSIE 9") !== -1 || navigator.appVersion.indexOf("MSIE 8") !== -1 || navigator.appVersion.indexOf("MSIE 7") !== -1) |
74 | 70 | { |
75 | | - document.write('<a href="https://www.microsoft.com/en-gb/download/internet-explorer.aspx">Please upgrade to IE 10 or greater.</a>'); |
| 71 | + document.write('<a href="https://www.microsoft.com/en-gb/download/internet-explorer.aspx">Please upgrade to IE 11 or a Chrome based browser</a>'); |
76 | 72 | document.execCommand('Stop'); |
77 | 73 | } |
78 | | - </script> |
79 | | - <script type="application/javascript"> |
80 | 74 | // VERSION INFORMATION |
81 | 75 | EDITOR_VERSION = "2.1.0-beta.7"; |
82 | 76 | UPY_1_VERSION = "1.0.1"; |
@@ -441,7 +435,7 @@ <h2 id="modal-msg-title"></h2> |
441 | 435 | <script src="js/micropythonapi.js"></script> |
442 | 436 | <script src="js/urlparser.js"></script> |
443 | 437 | <script src="js/fs.js"></script> |
444 | | - <script src="python-main.js"></script> |
| 438 | + <script src="js/python-main.js"></script> |
445 | 439 | <script>vex.defaultOptions.className = 'vex-theme-wireframe';</script> |
446 | 440 | <script> |
447 | 441 | // Call the web_editor function to start the editor running. |
|
0 commit comments