chore: add wasm console demo
This commit is contained in:
		
							
								
								
									
										17
									
								
								wasm_console_demo/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								wasm_console_demo/index.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| <!DOCTYPE html> | ||||
| <html> | ||||
| <head> | ||||
|   <meta charset="utf-8"> | ||||
|   <title>WASM App Demo</title> | ||||
| </head> | ||||
| <body> | ||||
|   <h1>WASM App Demo</h1> | ||||
|   <script type="module"> | ||||
|     import init, * as wasm from './wasm_app.js'; | ||||
|     window.wasm = wasm; | ||||
|     init().then(() => { | ||||
|       console.log("WASM module loaded! Try window.wasm in the console."); | ||||
|     }); | ||||
|   </script> | ||||
| </body> | ||||
| </html> | ||||
		Reference in New Issue
	
	Block a user