Skip to content

Commit

Permalink
remove tabs and add disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
james committed Sep 6, 2011
1 parent 00035f1 commit c2d6892
Showing 1 changed file with 34 additions and 25 deletions.
59 changes: 34 additions & 25 deletions templates/stop.erb
Original file line number Diff line number Diff line change
@@ -1,33 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Bus stop | <%= @stop["name"] if @stop %></title>
<style type="text/css" media="screen">
body {
background-color:#000;
color:#F00;
font-family: "Courier New", monospace;
font-size:50px;
font-weight:bold;
margin:0 auto;
}
table {
width:100%;
}
tr {
width:50%;
}
td.number {
text-align:right;
padding-right:1em;
}
</style>
<script src="/jquery.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
function poll() {
<style type="text/css" media="screen">
body {
background-color:#000;
color:#F00;
font-family: "Courier New", monospace;
font-size:50px;
font-weight:bold;
margin:0 auto;
}
table {
width:100%;
}
tr {
width:50%;
}
td.number {
text-align:right;
padding-right:1em;
}
p.disclaimer {
font-size:10px;
text-align:center;
color:#333;
}
p.disclaimer a{
color:#333;
}
</style>
<script src="/jquery.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
function poll() {
$.ajax({
url: window.location.href+"/partial",
error: function(xhr_data) {
Expand All @@ -42,10 +50,11 @@
$(document).ready(function() {
poll()
});
</script>
</script>
</head>

<body>
<%= erb :indicator_table %>
<p class="disclaimer">Data sucked from <a href="http://countdown.tfl.gov.uk/">TFL</a> without permission.</p>
</body>
</html>

0 comments on commit c2d6892

Please sign in to comment.