File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,13 @@ body {
98
98
border-left : solid 1px # fff ;
99
99
border-right : solid 1px # fff ;
100
100
}
101
+ # view_mode a {
102
+ display : block;
103
+ color : white;
104
+ }
105
+ # view_mode a : visited {
106
+ color : white;
107
+ }
101
108
102
109
# view_mode input [type = "radio" ]: checked + label , # backend input [type = "radio" ]: checked + label {
103
110
color : # c4953a ;
Original file line number Diff line number Diff line change 44
44
< input type ="radio " name ="view_mode " value ="output " id ="view_output ">
45
45
< label for ="view_output " title ="Show only the output "> Output</ label >
46
46
</ li >
47
+ < li id ="view_gist_li ">
48
+ < a id ="view_gist " target ="trypurs_gist ">
49
+ < label title ="Open the original gist in a new window "> Gist</ label >
50
+ </ a >
51
+ </ li >
47
52
</ ul >
48
53
49
54
< label id ="backend_label " title ="Select a Backend "> Backend</ label >
Original file line number Diff line number Diff line change @@ -121,6 +121,12 @@ $(function() {
121
121
$ ( 'input:checkbox[name=auto_compile]' ) . prop ( 'checked' , auto_compile === "true" ) ;
122
122
}
123
123
124
+ var gist = $ . QueryString [ "gist" ] ;
125
+ if ( gist ) {
126
+ $ ( '#view_gist' ) . attr ( 'href' , 'https://gist.github.com/' + gist ) ;
127
+ } else {
128
+ $ ( '#view_gist_li' ) . hide ( ) ;
129
+ }
124
130
125
131
$ ( 'input[name=backend_inputs]' ) . change ( function ( e ) {
126
132
var backend = getBackend ( $ ( this ) . filter ( ':checked' ) . val ( ) ) ;
You can’t perform that action at this time.
0 commit comments