File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ <h2>Datapack Toolkit Web (indev)</h2>
2929 < span class ="file-custom "> </ span >
3030 </ label >
3131 < div id ="datapack-display "> </ div >
32+ < button type ="button " id ="export-button "> Export (test)</ button >
3233 </ div >
3334
3435 < template id ="datapack-template ">
Original file line number Diff line number Diff line change @@ -94,3 +94,10 @@ function sanitizeHtml(unsafe: string): string {
9494 div . innerText = unsafe ;
9595 return div . innerHTML ;
9696}
97+
98+ const exportButtonElement = document . getElementById ( "export-button" ) ! ;
99+ exportButtonElement . addEventListener ( "click" , exportButtonClicked , { passive : true } ) ;
100+
101+ function exportButtonClicked ( ) {
102+ console . log ( "Export button clicked" )
103+ }
Original file line number Diff line number Diff line change @@ -187,3 +187,14 @@ a:visited {
187187 color : inherit;
188188 font-family : inherit;
189189}
190+
191+ button {
192+ border : 2px ;
193+ border-color : var (--background-below );
194+ border-style : solid;
195+ background-color : var (--background-above );
196+ font : inherit;
197+ color : inherit;
198+ padding-bottom : 0.5em ;
199+ padding-top : 0.5em ;
200+ }
You can’t perform that action at this time.
0 commit comments