Browse files

Disable google analitics code in try-clojure.html

Sometimes it crashes on Mac OS X
  • Loading branch information...
1 parent b569c88 commit f7761a824b7190e1f5d5d800424a5dc5d517c55a @sergey-miryanov committed Jun 4, 2010
Showing with 12 additions and 8 deletions.
  1. +12 −8 try-clojure.html
View
20 try-clojure.html
@@ -87,21 +87,25 @@
});
});
+ if (logLevel () <= DEBUG)
+ {
+ console.debug ("[DEBUG] Try to get selection from web page...");
+ }
chrome.tabs.executeScript (null, { file : "get-selection.js"});
return selection;
}
</script>
</head>
<body><script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-552543-3']);
- _gaq.push(['_trackPageview']);
+ //var _gaq = _gaq || [];
+ //_gaq.push(['_setAccount', 'UA-552543-3']);
+ //_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);
- })();
+ //(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><div style="text-align: center;"><h1>Try Clojure</h1></div><div id="container"><div class="console" id="console"></div><!--<table border="0" class="bottom"><tr /><td class="bholder"><div class="buttons"><a class="buttons" id="tutorial">tutorial</a><a class="buttons" id="links">links</a><a class="lbutton" id="about">about</a></div></td><tr /><td><div id="changer"><p class="bottom">Welcome to TryClojure. Above, you have a Clojure REPL. You can type expressions and see their results right here in your browser. We also have a brief tutorial to give you a taste of Clojure. Try it out!</p></div></td></table>--><div id="copyleft">&copy; <a href="http://www.try-clojure.org">try-clojure.org</a></div></div></body>

0 comments on commit f7761a8

Please sign in to comment.