public
Description: the source code for whygitisbetterthanx.com
Homepage: http://whygitisbetterthanx.com
Clone URL: git://github.com/schacon/whygitisbetter.git
Added the expand/collapse links as requested by github user 'ap'.
sermoa (author)
Tue Dec 02 12:22:57 -0800 2008
commit  c7f4c392afe3375778d319cb525d3d6535d775e6
tree    0f4cb6bbad86f342e0142828f7ade7993b83d014
parent  ee13a33c4d689bdc6b0658a18666b20e59037151
...
71
72
73
 
 
 
 
 
74
75
76
...
763
764
765
 
 
 
 
 
 
 
 
 
766
767
768
...
778
779
780
 
 
 
 
 
 
 
781
782
783
...
71
72
73
74
75
76
77
78
79
80
81
...
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
...
792
793
794
795
796
797
798
799
800
801
802
803
804
0
@@ -71,6 +71,11 @@
0
             and koolaid-thirst.  So, here is why people are switching to Git from
0
             X, and why you should too.  Just click on a reason to view it.
0
           </div>
0
+          
0
+          <div class="expand_collapse_links" style="display: none;">
0
+            <a href="#" class="expand_all">Expand all</a> |
0
+            <a href="#" class="collapse_all">Collapse all</a>
0
+          </div>
0
       </div>
0
 
0
       <br/>
0
@@ -763,6 +768,15 @@ show       Show various types of objects
0
     -->
0
 
0
     <br/>
0
+
0
+    <div class="span-24">          
0
+        <div class="expand_collapse_links" style="display: none;">
0
+          <a href="#" class="expand_all">Expand all</a> |
0
+          <a href="#" class="collapse_all">Collapse all</a>
0
+        </div>
0
+    </div>
0
+    
0
+    <br />
0
     
0
     <div class="span-24 footer">
0
       This site is built and maintained by <a href="http://github.com/schacon">Scott Chacon</a>, a <a href="http://github.com">GitHubber</a>.<br/>
0
@@ -778,6 +792,13 @@ show       Show various types of objects
0
   $(function() {
0
     $('.section > .contents').hide();
0
     $('.contents > .tweets').hide();
0
+    $('.expand_collapse_links').show();
0
+    $('.expand_collapse_links > .expand_all').click(function() {
0
+      $('.section > .contents').show();
0
+    });
0
+    $('.expand_collapse_links > .collapse_all').click(function() {
0
+      $('.section > .contents').hide();
0
+    });
0
     $('.section > h2').click(function() {
0
       $(this).next().slideToggle();
0
     })

Comments