| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta charset="utf-8" /> |
| 5 | <title>babel-standalone example - Script tag</title> |
| 6 | </head> |
| 7 | <body> |
| 8 | <pre id="output">This line should not be overwritten!</pre> |
| 9 | |
| 10 | <script src="../babel.js"></script> |
| 11 | <script>Babel.disableScriptTags()</script> |
| 12 | <script type="text/babel"> |
| 13 | const doStuff = () => { |
| 14 | document.getElementById('output').innerHTML = `I did an evil operation!`; |
| 15 | }; |
| 16 | doStuff(); |
| 17 | </script> |
| 18 | </body> |
| 19 | </html> |