Skip to content
Browse files

clipping for images list

  • Loading branch information...
1 parent 2157e03 commit 2de7c7c1f188342179bf2424ea658afcfcc54bc5 @stevenwilkin committed Aug 27, 2009
Showing with 12 additions and 7 deletions.
  1. +1 −1 public/js/trends.js
  2. +7 −6 views/index.haml
  3. +4 −0 views/trends.sass
View
2 public/js/trends.js
@@ -10,7 +10,7 @@ function itemVisibleOut(carousel, item, i, state, evt){
$(document).ready(function(){
$('#images ol').hide();
- $('#images').append('<ul id="carousel" class="jcarousel-skin-tango">');
+ $('#images-clip').append('<ul id="carousel" class="jcarousel-skin-tango">');
$('#carousel').jcarousel({
vertical: true,
scroll: 1,
View
13 views/index.haml
@@ -4,13 +4,14 @@
- @trends.each do |t|
%li
&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
%span{:title => @updated_full}= @updated
#images
- %ol
- - @trends.each do |t|
- %li
- %a{:href => t['url']}
- %img{:src => t['img'], :alt => t['name'], :title => "search twitter for '#{t['name']}'"}
+ #images-clip
+ %ol
+ - @trends.each do |t|
+ %li
+ %a{:href => t['url']}
+ %img{:src => t['img'], :alt => t['name'], :title => "search twitter for '#{t['name']}'"}
View
4 views/trends.sass
@@ -79,3 +79,7 @@ a
width: 125px
height: 100px
overflow: hidden
+
+#images-clip
+ height: 400px
+ overflow: hidden

0 comments on commit 2de7c7c

Please sign in to comment.
Something went wrong with that request. Please try again.