Browse Source

update contributors.

Herbert Wolverson 4 years ago
parent
commit
28df2a40fa
2 changed files with 20 additions and 0 deletions
  1. 1 0
      book/src/contributors.md
  2. 19 0
      index.html

+ 1 - 0
book/src/contributors.md

@@ -15,6 +15,7 @@ The following people have contributed to this project:
 * Herbert Wolverson, the primary author.
 * [Marius Gedminas](https://github.com/mgedmin) provided some fixes to the visibility system, and chapter 5. Corrected a typo in chapter 7, fixed a Markdown error in chapter 7, fixed indentation in chapter 13, and a typo in chapter 18. He also fixed some code in my hunger clock to let monsters get hungry too, if we so desire.
 * [Ben Morrison](https://github.com/gbmor) fixed an issue in chapter 4, correctly matching room passing-by-reference with the accompanying source code.
+* [Tommi Jalkanen](https://github.com/Koura) helped me remove some Dispatcher code that I'd accidentally left in place.
 
 ---
 

+ 19 - 0
index.html

@@ -10,5 +10,24 @@
         await wasm_bindgen("./myblob_bg.wasm");
       });
     </script>
+
+<!-- Google Analytics Tag -->
+<script type="text/javascript">
+  var localAddrs = ["localhost", "127.0.0.1", ""];
+
+  // make sure we don't activate google analytics if the developer is
+  // inspecting the book locally...
+  if (localAddrs.indexOf(document.location.hostname) === -1) {
+      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+
+      ga('create', 'UA-132191594-2', 'auto');
+      ga('send', 'pageview');
+  }
+</script>
+
+
   </body>
 </html>