Преглед изворни кода

Added Google Analytics tracking code

tags/last-sinatra-version
Adrian Short пре 14 година
родитељ
комит
306e017db1
2 измењених фајлова са 11 додато и 21 уклоњено
  1. +1
    -8
      public/style.css
  2. +10
    -13
      views/layout.haml

+ 1
- 8
public/style.css Прегледај датотеку

@@ -41,14 +41,7 @@ input.postcode
font-size: 100%;
background-color: #fff;
text-align: left;
margin: 40px 0 0 0;
}

.credit
{
text-align: left;
font-size: 80%;
display: none;
margin: 40px 0 40px 0;
}

a, a:visited


+ 10
- 13
views/layout.haml Прегледај датотеку

@@ -2,8 +2,7 @@
!!!
%html
%head
%title
= @page_title ? @page_title + " - Sutton Elections" : "Sutton Elections 6 May 2010"
%title= @page_title ? @page_title + " - Sutton Elections" : "Sutton Parliament and Council Elections 6 May 2010"
%link{ :rel => 'stylesheet', :type => 'text/css', :href => '/style.css' }
%link{ :rel => 'stylesheet', :type => 'text/css', :href => '/print.css', :media => 'print' }
%link{ :rel => 'stylesheet', :type => 'text/css', :href => '/grid.css' }
@@ -11,10 +10,6 @@
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
%body
.container_12
-#
#header.grid_12
%a.date{ :href => '/' } 6 May 2010
.clear
#main
= yield
.clear
@@ -26,12 +21,14 @@
%a{ :href => '/how-the-parliament-election-works' } How the parliament election works
%p
%a{ :href => '/how-the-council-election-works' } How the council election works
-#
%p
%a{ :href => '/voting' } How to vote
%p
%a{ :href => '/about' } About this website
%p.credit
Design
%a{ :href => "http://adrianshort.co.uk/" } Adrian Short
.clear
<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-3042981-17");
pageTracker._trackPageview();
} catch(err) {}</script>

Loading…
Откажи
Сачувај