| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
| javascript:brython [2019/08/06 23:01] – ともやん | javascript:brython [2020/04/16 04:04] (現在) – ともやん |
|---|
| <ifauth !@loggedinusers><html> | |
| <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | |
| <script> | |
| (adsbygoogle = window.adsbygoogle || []).push({ | |
| google_ad_client: "ca-pub-0791334967460971", | |
| enable_page_level_ads: true | |
| }); | |
| </script></html></ifauth> | |
| ====== Brython - クライアントサイドの Web プログラミング用 Python 3 の実装 ====== | |
| <html> | <html> |
| <style> | <style> |
| #brython_logo { | @font-face { |
| background-color: #0f1b07; | font-family: 'libra_bt'; |
| width: 135px; | src: url(/fonts/libra_bt.ttf); |
| } | } |
| </style> | #brython_logo { |
| <div id="brython_logo"> | background-color: #e0ddde; |
| </html> | color: #2a4494; |
| {{:javascript:brython_logo.png?135|Brython Logo}}\\ | text-decoration: none; |
| <html> | font-family: libra_bt; |
| </div> | font-size: 3em; |
| | width: fit-content; |
| | padding: 0 10px; |
| | } |
| | #brython_logo p { |
| | margin: 0; |
| | } |
| | </style> |
| </html> | </html> |
| | ====== Brython - クライアントサイドの Web プログラミング用 Python 3 の実装 ====== |
| | <WRAP #brython_logo> |
| | Brython |
| | </WRAP> |
| 本家: [[https://brython.info|Brython]]\\ | 本家: [[https://brython.info|Brython]]\\ |
| ソースコード: [[https://github.com/brython-dev/brython|GitHub - brython-dev/brython: Brython (Browser Python) is an implementation of Python 3 running in the browser]]\\ | ソースコード: [[https://github.com/brython-dev/brython|GitHub - brython-dev/brython: Brython (Browser Python) is an implementation of Python 3 running in the browser]]\\ |
| <textarea id="code" class="codearea" style="width: 100% !important;" rows="20"></textarea> | <textarea id="code" class="codearea" style="width: 100% !important;" rows="20"></textarea> |
| <script type="text/python3" src="/_media/javascript/brython/console.py" id="__main__"></script> | <script type="text/python3" src="/_media/javascript/brython/console.py" id="__main__"></script> |
| </html> | <script src="/_media/javascript/brython/brython.js?cache=-1" defer></script> |
| <html> | <script src="/_media/javascript/brython/brython_stdlib.js?cache=-1" defer></script> |
| <script src="/_media/javascript/brython/brython.js"></script> | |
| <script src="/_media/javascript/brython/brython_stdlib.js"></script> | |
| <script> | <script> |
| jQuery(function(){ | jQuery(function(){ |
| </script> | </script> |
| </html> | </html> |
| | \\ |
| | \\ |
| | HTML ソースコード\\ |
| | <code html> |
| | <html> |
| | <head> |
| | <style> |
| | .codearea { |
| | background-color: #000; |
| | color: #fff; |
| | font-family: 'Oxygen Mono', Consolas, 'Liberation Mono', 'DejaVu Sans Mono', monospace; |
| | font-size: 14px; |
| | overflow: auto; |
| | width: 100%; |
| | height: 100%; |
| | } |
| | </style> |
| | </head> |
| | <body> |
| | <textarea id="code" class="codearea" rows="20"></textarea> |
| | <script type="text/python3" src="/_media/javascript/brython/console.py" id="__main__"></script> |
| | <script src="/_media/javascript/brython/brython.js" defer></script> |
| | <script src="/_media/javascript/brython/brython_stdlib.js" defer></script> |
| | <script> |
| | jQuery(function(){ |
| | brython({'debug':1}); |
| | }); |
| | </script> |
| | </body> |
| | </html> |
| | </code> |
| | |