Skip to content

Commit

Permalink
clipping for images list
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenwilkin committed Aug 27, 2009
1 parent 2157e03 commit 2de7c7c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion public/js/trends.js
Expand Up @@ -10,7 +10,7 @@ function itemVisibleOut(carousel, item, i, state, evt){


$(document).ready(function(){ $(document).ready(function(){
$('#images ol').hide(); $('#images ol').hide();
$('#images').append('<ul id="carousel" class="jcarousel-skin-tango">'); $('#images-clip').append('<ul id="carousel" class="jcarousel-skin-tango">');
$('#carousel').jcarousel({ $('#carousel').jcarousel({
vertical: true, vertical: true,
scroll: 1, scroll: 1,
Expand Down
13 changes: 7 additions & 6 deletions views/index.haml
Expand Up @@ -4,13 +4,14 @@
- @trends.each do |t| - @trends.each do |t|
%li %li
&middot; &middot;
%a{:href => t['url'], :title => "search twitter for '#{t['name']}'"}= t['name'] %a{:href => t['url'], :title => "search twitter for '#{t['name']}'"}= t['name'].gsub(/%23/, '#')
last updated last updated
%span{:title => @updated_full}= @updated %span{:title => @updated_full}= @updated


#images #images
%ol #images-clip
- @trends.each do |t| %ol
%li - @trends.each do |t|
%a{:href => t['url']} %li
%img{:src => t['img'], :alt => t['name'], :title => "search twitter for '#{t['name']}'"} %a{:href => t['url']}
%img{:src => t['img'], :alt => t['name'], :title => "search twitter for '#{t['name']}'"}
4 changes: 4 additions & 0 deletions views/trends.sass
Expand Up @@ -79,3 +79,7 @@ a
width: 125px width: 125px
height: 100px height: 100px
overflow: hidden overflow: hidden

#images-clip
height: 400px
overflow: hidden

0 comments on commit 2de7c7c

Please sign in to comment.