Skip to content

Commit

Permalink
Added: more science link
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbertram committed Jun 1, 2011
1 parent 3df8e06 commit 50c0956
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/views/press_shift/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
data.addColumn('number', 'Hours per Day');
data.addRows(3);
data.setValue(0, 0, 'Left Shift');
data.setValue(0, 1, #{REDIS.get('left_count') || 0});
data.setValue(0, 1, #{REDIS.get('left_count') || '2'});

data.setValue(1, 0, 'Both');
data.setValue(1, 1, #{REDIS.get('both_count') || 0});
data.setValue(1, 1, #{REDIS.get('both_count') || '2'});

data.setValue(2, 0, 'Right Shift');
data.setValue(2, 1, #{REDIS.get('right_count') || 0});
data.setValue(2, 1, #{REDIS.get('right_count') || '1'});

var chart = new google.visualization.PieChart(document.getElementById('science_chart'));
chart.draw(data, {width: 500, height: 425, backgroundColor: '#eeeeee', fontSize: 16, is3D: true, legend: 'bottom'});
Expand All @@ -34,6 +34,7 @@
#science_chart

%p#lols
%a#just_science{:href => 'http://justforscience.com/'} want MORE science?
Mashin' down the left shift
%br
Holdin' down the right shift
Expand Down
Binary file added public/images/more_science.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions public/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,15 @@ p#lols {
line-height: 2em;
}

a#just_science {
margin: 100px 0 0 0;
float: right;
color: red;
color: #fff;
}

a#just_science:hover {
color: #333;
}


0 comments on commit 50c0956

Please sign in to comment.