GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A simple chord viewing interface layered upon pngs of mandolin chords I found somewhere a while ago.
Clone URL: git://github.com/kjell/chords.git
cosmetics, scale images in all browsers, give a back link on chord page
kjell (author)
Sat Aug 09 20:22:51 -0700 2008
commit  5d143f755c87dd92f5de6ea2beb34d6d478e66b6
tree    cdd1f68e105f8b7bcb0c3e644d2cff2a18b6175f
parent  f7d2a6561c6d637ce00527466214ab99a3839e8d
...
29
30
31
32
33
 
 
 
 
 
34
35
...
29
30
31
 
 
32
33
34
35
36
37
38
0
@@ -29,6 +29,9 @@
0
     max-width: 357px;
0
     -webkit-transition-property: -webkit-transform;
0
   }
0
-
0
- .fat #chord {-webkit-transform: rotate(90deg);}
0
+}
0
+
0
+#chord img {
0
+ max-height: 357px;
0
+ max-width: 357px;
0
 }
0
\ No newline at end of file
...
1
2
 
 
 
3
4
5
6
7
8
9
 
 
 
10
...
 
 
1
2
3
4
5
6
7
8
 
9
10
11
12
13
0
@@ -1,8 +1,11 @@
0
-- @title = @chord.respond_to?(:chord) ? @chord.chord : @chord.map(&:chord).join(', ') + " — mandolin"
0
-- if @chord.size == 1
0
+- single = @chord.respond_to?(:chord)
0
+- @title = single ? @chord.chord : @chord.map(&:chord).join(', ') + " — mandolin"
0
+- if single
0
   #chord
0
     %img{:src => @chord.path, :id => 'chord-img'}
0
 - else
0
   #chord
0
     - @chord.each do |chord|
0
- %img{:src => chord.path}
0
\ No newline at end of file
0
+ %img{:src => chord.path}
0
+
0
+%a{:href => '/'} back
0
\ No newline at end of file

Comments

    No one has commented yet.