File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 23
23
position : absolute;
24
24
}
25
25
.csv .table {overflow-x : scroll;}
26
- .json pre ,
27
- .csv table {cursor : pointer;}
26
+ .json pre {cursor : pointer;}
28
27
29
28
30
29
/* show empty textarea by default */
Original file line number Diff line number Diff line change 250
250
$ ( ".json textarea" ) . blur ( function ( ) { showJSON ( true ) ; } ) ;
251
251
$ ( ".json pre" ) . click ( function ( ) { showJSON ( false ) } ) ;
252
252
$ ( ".csv textarea" ) . blur ( function ( ) { showCSV ( true ) ; } )
253
- $ ( ".csv table" ) . click ( function ( ) { showCSV ( false ) ; } )
253
+ $ ( ".csv .raw" ) . click ( function ( ) {
254
+ showCSV ( false ) ;
255
+ $ ( ".csv textarea" ) . focus ( ) . select ( ) ;
256
+ return false ;
257
+ } )
254
258
255
259
// if there's no CSV to download, don't download anything
256
260
$ ( ".csv a.download" ) . click ( function ( ) {
272
276
. keyup ( doJSON ) ; // harmless to repeat doJSON
273
277
274
278
// highlight CSV on click
275
- $ ( ".csv textarea" ) . click ( function ( ) {
276
- this . focus ( ) ; this . select ( ) ;
277
- } ) ;
279
+ $ ( ".csv textarea" ) . click ( function ( ) { this . focus ( ) . select ( ) ; } ) ;
278
280
279
281
loadPermalink ( ) ;
280
282
} ) ;
@@ -320,7 +322,7 @@ <h1>Convert JSON to CSV</h1>
320
322
< a download ="result.csv " href ="# " class ="download ">
321
323
Download the entire CSV</ a > ,
322
324
323
- or click below for the raw data.
325
+ or < a href =" # " class =" raw " > show the raw data</ a > .
324
326
</ span >
325
327
326
328
< span class ="editing ">
You can’t perform that action at this time.
0 commit comments