Commit cab5c38 1 parent 5dc48db commit cab5c38 Copy full SHA for cab5c38
File tree 7 files changed +64
-5
lines changed
7 files changed +64
-5
lines changed Original file line number Diff line number Diff line change 13
13
< title > Bytes formatter</ title >
14
14
< link rel ="stylesheet " href ="style.css ">
15
15
< link rel ="stylesheet " href ="examples.css ">
16
+ < link rel ="stylesheet " href ="results.css ">
16
17
< link rel ="stylesheet " href ="notifications.css ">
17
18
< link rel ="preconnect " href ="https://fonts.googleapis.com ">
18
19
< link rel ="preconnect " href ="https://fonts.gstatic.com " crossorigin >
112
113
< div id ="share " class ="tool " onclick ="share() ">
113
114
< img src ="../img/share.png " alt ="share " />
114
115
</ div >
116
+ < div id ="saveOutData " class ="tool ">
117
+ < img src ="../img/add.png " alt ="add " />
118
+ </ div >
115
119
< div id ="asn1Tool " class ="hide labeledTool " onclick ="decodeAsAsn1() ">
116
120
< img src ="../img/linking1.png " alt ="asn1 " />
117
121
< span > asn1</ span >
118
122
</ div >
119
123
</ div >
124
+ < div class ="results-container ">
125
+ < div class ="result ">
126
+ < span > 52538a80094f7b62948fd31e68fd17a315d8dc91</ span >
127
+ < div class ="result-options ">
128
+ < div class ="tool ">
129
+ < img src ="../img/copy.png " alt ="copy " />
130
+ </ div >
131
+ < div class ="tool ">
132
+ < img src ="../img/grab.png " alt ="grab " />
133
+ </ div >
134
+ < div class ="tool ">
135
+ < img src ="../img/delete.png " alt ="delete " />
136
+ </ div >
137
+ </ div >
138
+ </ div >
139
+ </ div >
120
140
</ article >
121
141
< footer >
122
142
< span > Bytes formatter Copyright © 2022 Pavlo Myroniuk; released as < a
Original file line number Diff line number Diff line change
1
+
2
+ .results-container {
3
+ margin-top : 0.3em ;
4
+ display : flex;
5
+ flex-direction : column;
6
+ gap : 0.3em ;
7
+ }
8
+
9
+ .result {
10
+ display : inline-flex;
11
+ justify-content : space-between;
12
+ align-items : center;
13
+ width : calc (100% - 0.4em );
14
+ height : 2em ;
15
+ border-radius : 0.3em ;
16
+ padding : 0.2em ;
17
+ }
18
+
19
+ .result : hover {
20
+ background-color : # ded6cc ;
21
+ }
22
+
23
+ .result : hover .result-options {
24
+ display : inline-flex;
25
+ gap : 0.3em ;
26
+ align-items : center;
27
+ }
28
+
29
+ .result-options {
30
+ display : none;
31
+ }
Original file line number Diff line number Diff line change @@ -221,10 +221,18 @@ const swap = () => {
221
221
convert ( ) ;
222
222
}
223
223
224
- const decodeAsAsn1 = ( ) => window . open (
225
- `https://asn1.qkation.com/#${ document . getElementById ( 'outData' ) . value } ` ,
226
- '_blank'
227
- ) . focus ( ) ;
224
+ const decodeAsAsn1 = ( ) => {
225
+ const value = document . getElementById ( 'outData' ) . value ;
226
+
227
+ if ( ! value ) {
228
+ return ;
229
+ }
230
+
231
+ window . open (
232
+ `https://asn1.qkation.com/#${ value } ` ,
233
+ '_blank'
234
+ ) . focus ( ) ;
235
+ }
228
236
229
237
const toggleAsn1Button = ( ) => {
230
238
const outType = document . getElementById ( 'outType' ) . value ;
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ article {
58
58
}
59
59
60
60
.paramTool > img {
61
- height : 90 % ;
61
+ height : 1.2 em ;
62
62
}
63
63
64
64
button {
You can’t perform that action at this time.
0 commit comments