Browse files

Adding stats.

  • Loading branch information...
1 parent 39d6d84 commit 654bde2ae3076a51665c87c10babd5ad1a710c35 @addyosmani committed Aug 24, 2012
Showing with 27 additions and 1 deletion.
  1. BIN backbone-fundamentals.epub
  2. +1 −1 build/build.sh
  3. +13 −0 build/stats.html
  4. +13 −0 index.html
View
BIN backbone-fundamentals.epub
Binary file not shown.
View
2 build/build.sh
@@ -7,7 +7,7 @@
#e.g /Users/apple/Desktop/usr/local/bin/pandoc
#html
-pandoc -s ../index.md -o ../index.html -c style.css --include-before-body=author.html --include-before-body=share.html --title-prefix='Developing Backbone.js Applications'
+pandoc -s ../index.md -o ../index.html -c style.css --include-before-body=author.html --include-before-body=share.html --include-after-body=stats.html --title-prefix='Developing Backbone.js Applications'
#epub
pandoc -s ../index.md -t epub --epub-metadata=metadata.xml -o ../backbone-fundamentals.epub -c style.css --title-prefix='Developing Backbone.js Applications' --epub-cover-image=../img/cover.jpg
View
13 build/stats.html
@@ -0,0 +1,13 @@
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-34317097-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script>
View
13 index.html
@@ -5489,5 +5489,18 @@ <h2 id="notes">Notes</h2>
<p>I would like to thank the Backbone.js, Stack Overflow, DailyJS (Alex Young) and JavaScript communities for their help, references and contributions to this book. This project would not be possible without you so thank you! :)</p>
<hr />
<p>Where relevant, copyright Addy Osmani, 2012.</p>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-34317097-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script>
</body>
</html>

0 comments on commit 654bde2

Please sign in to comment.