File tree 3 files changed +24
-1
lines changed
3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -484,6 +484,22 @@ p.note {
484
484
background-image : url(../ images/note.png);
485
485
}
486
486
487
+ div .plotpng a {
488
+ background-color : # F1F1F1 ;
489
+ background-repeat : no-repeat;
490
+ background-position : 3px ;
491
+ -moz-border-radius : 10px ;
492
+ -webkit-border-radius : 10px ;
493
+ border-radius : 10px ;
494
+ -moz-box-shadow : 3px 3px 3px # 888 ;
495
+ -webkit-box-shadow : 3px 3px 3px # 888 ;
496
+ box-shadow : 3px 3px 3px # 888 ;
497
+ float : right;
498
+ margin-top : 20px ;
499
+ padding : 1em ;
500
+ text-decoration : underline;
501
+ }
502
+
487
503
div .footer {
488
504
color : white;
489
505
font-size : small;
Original file line number Diff line number Diff line change 1
1
select # baseline {
2
2
width : 100% ;
3
3
}
4
+ div # plotdescription {
5
+ margin-right : 55px ;
6
+ }
Original file line number Diff line number Diff line change @@ -165,7 +165,11 @@ function renderPlot(data) {
165
165
digits ++ ;
166
166
}
167
167
}
168
- $ ( "#plotgrid" ) . html ( '<div id="plot"></div><div id="plotdescription"></div>' ) ;
168
+ $ ( "#plotgrid" ) . html ( '<div id="plot"></div><div class="plotpng"><a id="pnglink" href="#">PNG</a></div><div id="plotdescription"></div>' ) ;
169
+
170
+ $ ( "#pnglink" ) . click ( function ( ) {
171
+ window . location = $ ( "#plot" ) . jqplotToImageStr ( ) ;
172
+ } ) ;
169
173
170
174
if ( data . benchmark_description ) {
171
175
$ ( "#plotdescription" ) . html ( '<p class="note"><i>' + data . benchmark + '</i>: ' + data . benchmark_description + '</p>' ) ;
You can’t perform that action at this time.
0 commit comments