File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 4545 </ div >
4646 </ li >
4747 < % IF module.sloc > 0 %>
48- < li > < div > < button class ="btn-link " onclick ="togglePod() "> < i class ="fa fa-exchange fa-fw black "> </ i > Toggle pod</ button > </ div > </ li >
48+ < li > < div > < button class ="btn-link pod-toggle " onclick ="togglePod() "> < i class ="fa fa-exchange fa-fw black "> </ i > < span class =" hide- pod" > Hide </ span > < span class =" show-pod " > Show </ span > Pod </ button > </ div > </ li >
4949 < % END %>
5050 < li class ="nav-header "> Info</ li >
5151 < li > < % module.sloc %> lines of code</ li >
Original file line number Diff line number Diff line change @@ -159,4 +159,5 @@ $(function () {
159159
160160function togglePod ( ) {
161161 $ ( '.syntaxhighlighter' ) . toggleClass ( 'pod-hidden' ) ;
162+ $ ( '.pod-toggle' ) . toggleClass ( 'pod-hidden' ) ;
162163}
Original file line number Diff line number Diff line change @@ -25,6 +25,18 @@ pre code {
2525 content : none !important ;
2626}
2727
28- .pod-hidden .pod-line {
28+ .pod-hidden {
29+ .pod-line {
30+ display : none ;
31+ }
32+ .hide-pod {
33+ display : none ;
34+ }
35+ .show-pod {
36+ display : inline ;
37+ }
38+ }
39+
40+ .show-pod {
2941 display : none ;
3042}
You can’t perform that action at this time.
0 commit comments