Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simplificando analytics

  • Loading branch information...
commit cca78588008841402aaa4b4ca90f5971daecf900 1 parent 111f27b
@sergiolopes authored
View
8 analytics.js
@@ -0,0 +1,8 @@
+$.getScript('http://www.google-analytics.com/ga.js', function(){
+ try {
+ var pageTracker = _gat._getTracker("UA-61051-4");
+ pageTracker._trackPageview();
+ } catch(err) {
+ // ...
+ }
+});
View
14 botoes-css3/index.html
@@ -5,6 +5,8 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Experimentos com botões no CSS3</title>
<link rel="stylesheet" type="text/css" media="screen" href="../layout.css" />
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
+ <script type="text/javascript" src="../analytics.js"></script>
<!-- Estilo dos botões - com comentários -->
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
@@ -31,7 +33,6 @@
<h2>Com reflexo: <small>(Safari, Chrome e Firefox 3.6)</small></h2>
<a href="#" class="nicebutton magenta big reflective">Meu link magenta refletido</a><br>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
/* JavaScript opcional que habilita um gradiente "fake" nos browsers antigos
* (Opera, Firefox 3.5 e anteriores).
@@ -51,16 +52,5 @@
http://www.zurb.com/article/266/super-awesome-buttons-with-css3-and-rgba
http://code.google.com/p/sexybuttons/
-->
-
- <!-- Analytics -->
- <script type="text/javascript">
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
- </script>
- <script type="text/javascript">
- try {
- var pageTracker = _gat._getTracker("UA-61051-4");
- pageTracker._trackPageview();
- } catch(err) {}</script>
</body>
</html>
View
1  botoes-css3/style.css
@@ -143,7 +143,6 @@
height: 0.9em;
}
-
/* Cores diferentes */
.nicebutton.blue { background-color: #2daebf; }
.nicebutton.red { background-color: #e33100; }
View
16 index.html
@@ -6,6 +6,8 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Meus experimentos</title>
<link rel="stylesheet" type="text/css" media="screen" href="layout.css" />
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
+ <script type="text/javascript" src="analytics.js"></script>
</head>
<body>
@@ -15,18 +17,6 @@
<li><a href="logo-caelum-css3/caelum-css3.html">Logo da Caelum em CSS3</a></li>
<li><a href="botoes-css3/index.html">Botões em CSS3 com graceful degradation</a></li>
</ul>
-
-
- <!-- Analytics -->
- <script type="text/javascript">
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
- </script>
- <script type="text/javascript">
- try {
- var pageTracker = _gat._getTracker("UA-61051-4");
- pageTracker._trackPageview();
- } catch(err) {}</script>
-
+
</body>
</html>
View
16 logo-caelum-css3/caelum-css3-tamanhos.html
@@ -6,6 +6,10 @@
<title>Caelum | Ensino e Inova&ccedil;&atilde;o</title>
<link rel="stylesheet" type="text/css" media="screen" href="../layout.css" />
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
+ <script type="text/javascript" src="../analytics.js"></script>
+
+ <!-- Estilo do logo com CSS3 -->
<link rel="stylesheet" type="text/css" media="screen" href="estilo.css" />
</head>
<body>
@@ -22,17 +26,5 @@
<strong>Caelum</strong>
<em>Ensino e Inovação</em>
</div>
-
- <!-- Analytics -->
- <script type="text/javascript">
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
- </script>
- <script type="text/javascript">
- try {
- var pageTracker = _gat._getTracker("UA-61051-4");
- pageTracker._trackPageview();
- } catch(err) {}</script>
-
</body>
</html>
View
16 logo-caelum-css3/caelum-css3.html
@@ -6,6 +6,10 @@
<title>Caelum | Ensino e Inova&ccedil;&atilde;o</title>
<link rel="stylesheet" type="text/css" media="screen" href="../layout.css" />
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
+ <script type="text/javascript" src="../analytics.js"></script>
+
+ <!-- Estilo do logo com CSS3 -->
<link rel="stylesheet" type="text/css" media="screen" href="estilo.css" />
</head>
<body>
@@ -25,17 +29,5 @@
<h2>Imagem PNG</h2>
<img src="caelum-logo.png" />
-
- <!-- Analytics -->
- <script type="text/javascript">
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
- </script>
- <script type="text/javascript">
- try {
- var pageTracker = _gat._getTracker("UA-61051-4");
- pageTracker._trackPageview();
- } catch(err) {}</script>
-
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.