docs/bevy/examples/wasm/index.html 537 B · 27 lines · raw · history
| 1 | <html lang="en"> |
| 2 | <head> |
| 3 | <meta charset="UTF-8" /> |
| 4 | <style> |
| 5 | body { |
| 6 | background: linear-gradient( |
| 7 | 135deg, |
| 8 | white 0%, |
| 9 | white 49%, |
| 10 | black 49%, |
| 11 | black 51%, |
| 12 | white 51%, |
| 13 | white 100% |
| 14 | ) repeat; |
| 15 | background-size: 20px 20px; |
| 16 | } |
| 17 | canvas { |
| 18 | background-color: white; |
| 19 | } |
| 20 | </style> |
| 21 | <title>Wasm Example</title> |
| 22 | </head> |
| 23 | <script type="module"> |
| 24 | import init from './target/wasm_example.js' |
| 25 | init() |
| 26 | </script> |
| 27 | </html> |