index.html 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <html>
  2. <head>
  3. <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
  4. </head>
  5. <body>
  6. <canvas id="canvas" width="640" height="480"></canvas>
  7. <script src="./myblob.js"></script>
  8. <script>
  9. window.addEventListener("load", async () => {
  10. await wasm_bindgen("./myblob_bg.wasm");
  11. });
  12. </script>
  13. <!-- Google Analytics Tag -->
  14. <script type="text/javascript">
  15. var localAddrs = ["localhost", "127.0.0.1", ""];
  16. // make sure we don't activate google analytics if the developer is
  17. // inspecting the book locally...
  18. if (localAddrs.indexOf(document.location.hostname) === -1) {
  19. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  20. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  21. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  22. })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  23. ga('create', 'UA-132191594-2', 'auto');
  24. ga('send', 'pageview');
  25. }
  26. </script>
  27. </body>
  28. </html>