|
25 | 25 | h1 {page-break-before: always;}
|
26 | 26 | h1:first-of-type {page-break-before: avoid;}
|
27 | 27 |
|
28 |
| - #navigation, #source { /* and (min-width: 500px) */ |
| 28 | + button { /* and (min-width: 500px) */ |
29 | 29 | display: none;
|
30 | 30 | }
|
31 | 31 | table {page-break-inside:auto;}
|
|
108 | 108 | h('div',{}, version ? [
|
109 | 109 | // render diff
|
110 | 110 | h('pre',{class: 'diff'}, renderDiff(data.diffs[language][version])),
|
111 |
| - h('button',{action: 'toggle_full'},'toggle full'), |
112 | 111 | h('button',{action: 'copy_full'},'copy full'),
|
| 112 | + h('button',{action: 'download', 'data-filename':"TODO"},'download'), |
| 113 | + h('button',{action: 'toggle_full'},'toggle full'), |
113 | 114 | h('pre',{class: 'full hidden'}, renderCodeFull(data.languages[language][version])),
|
114 | 115 | ]:[
|
115 | 116 | // base version renders full starting point without diff
|
116 | 117 | h('pre',{class: 'full'}, renderCodeFull(data.languages[language][version])),
|
| 118 | + h('button',{action: 'copy_full'},'copy full'), |
| 119 | + h('button',{action: 'download', 'data-filename':"TODO"},'download'), |
117 | 120 | ])
|
118 | 121 | ]).flat()
|
119 | 122 | ]).flat())
|
|
0 commit comments