Skip to content

Commit

Permalink
Fixed analytics code, again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Licenser committed May 20, 2010
1 parent 0e3a548 commit 1f72985
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/tryclojure/core.clj
Expand Up @@ -79,6 +79,18 @@
"/resources/public/javascript/tryclojure.js")
[:title "TryClojure"]]
[:body
[:script {:type "text/javascript"}
"
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);
})();
"]
[:div {:style "text-align: center;"} [:h1 "Try Clojure"]]
[:div#container [:div#console.console]
[:table.bottom {:border "0"}
Expand All @@ -91,19 +103,7 @@
[:td [:div#changer [:p.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!"]]]]]]
[:script {:type "text/javascript"}
"
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);
})();
"]))
"taste of Clojure. Try it out!"]]]]]]))

(defn handler [{session :session}]
{:status 200
Expand Down

0 comments on commit 1f72985

Please sign in to comment.