Permalink
Browse files

much cleaner stats

…updated pl, too
  • Loading branch information...
1 parent 5f59283 commit e5207322cb6eb0009b13462e42281d4dcbdf2f8d @kevmoo kevmoo committed Oct 3, 2011
Showing with 35 additions and 76 deletions.
  1. +0 −23 index.html
  2. +0 −29 index_source.html
  3. +6 −0 js/app/application.js
  4. +21 −20 js/compiled.js
  5. +7 −3 js/deps.js
  6. +1 −1 js/pl
View
@@ -22,28 +22,5 @@ <h2 class="pl">Brought to you by <a href="http://thinkpixellab.com">Pixel Lab</a
</div>
<a href="https://github.com/thinkpixellab/thinkqr"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://a248.e.akamai.net/assets.github.com/img/bec6c51521dcc8148146135149fe06a9cc737577/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub"></a>
-
- <!-- Start of StatCounter Code -->
- <script type="text/javascript">
- var sc_project=6793701;
- var sc_invisible=1;
- var sc_security='6b3ec070';
- </script>
-
- <script src="http://www.statcounter.com/counter/counter_xhtml.js" type="text/javascript"></script><noscript><div class="statcounter"><a class="statcounter" href="http://statcounter.com/free_web_stats.html" title="web statistics"><img alt="web statistics" class="statcounter" src="http://c.statcounter.com/6793701/0/6b3ec070/1/"/></a></div></noscript>
- <!-- End of StatCounter Code -->
- <script type="text/javascript">
-
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-22691951-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>
View
@@ -22,34 +22,5 @@ <h2 class="pretitle">HTML5 + &lt;canvas/&gt; + QR - sleep =</h2>
<input type='text' id='input'></input>
<h2 class='pl'>Brought to you by <a href="http://thinkpixellab.com">Pixel Lab</a>, makers of fine pixels</h2>
</div>
- <!-- Start of StatCounter Code -->
- <script type="text/javascript">
- var sc_project=6793701;
- var sc_invisible=1;
- var sc_security='6b3ec070';
- </script>
-
- <script type="text/javascript"
- src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div
- class="statcounter"><a title="web statistics"
- class="statcounter"
- href="http://statcounter.com/free_web_stats.html"><img
- class="statcounter"
- src="http://c.statcounter.com/6793701/0/6b3ec070/1/"
- alt="web statistics" /></a></div></noscript>
- <!-- End of StatCounter Code -->
- <script type="text/javascript">
-
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-22691951-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>
@@ -1,6 +1,7 @@
goog.provide('app.Application');
goog.require('app.Square');
+goog.require('pl.Stats');
goog.require('pl.ex');
goog.require('qr.Code');
goog.require('qr.ErrorCorrectLevel');
@@ -11,6 +12,11 @@ goog.require('qr.ErrorCorrectLevel');
@param {!HTMLCanvasElement} canvas
*/
app.Application = function(canvas, input) {
+ if (COMPILED) {
+ pl.Stats.addGoogleAnalytics('UA-22691951-1');
+ pl.Stats.addStatCounter(6793701, '6b3ec070');
+ }
+
this.canvas = canvas;
this.input = input;
this.typeNumber = 10;
Oops, something went wrong.

0 comments on commit e520732

Please sign in to comment.