Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add Like button and Google Analytics.

  • Loading branch information...
commit e95c7231b31e0f53994bed9f61389e6be3dce913 1 parent c79e987
@mbleigh mbleigh authored
Showing with 17 additions and 4 deletions.
  1. +17 −4 views/layout.erb
View
21 views/layout.erb
@@ -12,7 +12,9 @@
<title>og:it - the Open Graph explorer</title>
<style type="text/css" media="screen">
body { font-family: "Courier New", "Monaca", monospace; background: #eee;}
+ header { text-align: center; }
header h1 { text-align: center; font-size: 120px; margin: 80px 0 30px; letter-spacing: -0.05em; color: #555;}
+ header h1 a { text-decoration: none; }
header h1 img { vertical-align: middle; margin-right: 10px; }
#content { font-size: 18px; width: 800px; margin: 0 auto; }
a { color: #333; font-weight: bold; }
@@ -25,9 +27,9 @@
form input, form button { vertical-align: middle; }
input { font-size: 24px; width: 550px; padding: 14px 12px; border: 3px solid #aaa; background: white; font-family: "Courier New", monospace;}
button { font-size: 28px; color: white; background: #666; padding: 10px 15px; border: 3px solid #666; }
- dl { background: white; padding: 20px; line-height: 200%; overflow: auto; }
- dt { float: left; clear: left; font-weight: bold; width: 200px; margin-right: 15px; text-align: right; }
- dd { margin-left: 115px; }
+ dl { background: white; padding: 20px; overflow: auto; }
+ dt { font-size: 16px; float: left; clear: left; padding-top: 15px; font-weight: bold; width: 200px; margin-right: 15px; text-align: right; }
+ dd { margin-left: 215px; padding-top: 15px; }
</style>
<script type="text/javascript" charset="utf-8">
$(function() { $('input').click(function(e) { this.focus(); this.select(); return false; }) });
@@ -35,7 +37,8 @@
</head>
<body>
<header>
- <h1><img src='/images/logo.png'/>og:it</h1>
+ <h1><a href='/'><img src='/images/logo.png'/>og:it</a></h1>
+ <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fogit.heroku.com%2F&amp;layout=button_count&amp;show_faces=true&amp;width=80&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:80px; height:20px"></iframe>
</header>
<section id='content'>
<%= yield %>
@@ -47,5 +50,15 @@
<footer>
<a href='http://www.intridea.com/' target='_blank'><img src='/images/built_by_intridea.png'/></a>
</footer>
+
+ <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-2083560-29");
+ pageTracker._trackPageview();
+ } catch(err) {}</script>
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.