Commit 42003a5 1 parent 9565ced commit 42003a5 Copy full SHA for 42003a5
File tree 4 files changed +35
-4
lines changed
4 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 37
37
</ div >
38
38
< textarea id ="inData " placeholder ="Input data... " rows ="7 "> </ textarea >
39
39
< button onclick ="decode() "> convert</ button >
40
- < textarea id ="outData " placeholder ="Outout data... " readonly rows ="7 "> fref</ textarea >
40
+ < textarea id ="outData " placeholder ="Outout data... " readonly rows ="7 "> The output data will be here</ textarea >
41
+ < div class ="tools ">
42
+ < div class ="tool " onclick ="copyOutputData() ">
43
+ < img src ="../img/copy.png " alt ="copy " />
44
+ </ div >
45
+ </ div >
41
46
</ article >
42
47
< footer >
43
48
< span > Bytes formatter Copyright © 2022 Pavlo Myroniuk; released as < a
Original file line number Diff line number Diff line change @@ -90,3 +90,5 @@ const decode = () => {
90
90
91
91
outData . value = value ;
92
92
} ;
93
+
94
+ const copyOutputData = ( ) => navigator . clipboard . writeText ( document . getElementById ( 'outData' ) . value ) ;
Original file line number Diff line number Diff line change 1
-
2
1
body {
3
2
font-family : 'Source Code Pro' , monospace;
4
3
padding : 0 ;
@@ -49,6 +48,31 @@ textarea {
49
48
font-family : 'Source Code Pro' , monospace;
50
49
}
51
50
51
+ .tools {
52
+ width : 100% ;
53
+ display : inline-flex;
54
+ margin-top : 0.7em ;
55
+ }
56
+
57
+ .tool {
58
+ display : inline-flex;
59
+ cursor : pointer;
60
+ height : 2em ;
61
+ width : fit-content;
62
+ padding : 0.1em ;
63
+ border-radius : 0.2em ;
64
+ justify-content : center;
65
+ align-items : center;
66
+ }
67
+
68
+ .tool : hover {
69
+ background-color : aliceblue;
70
+ }
71
+
72
+ .tool > img {
73
+ height : 90% ;
74
+ }
75
+
52
76
footer {
53
77
width : 70% ;
54
78
display : flex;
@@ -58,7 +82,7 @@ footer {
58
82
margin-top : 2em ;
59
83
}
60
84
61
- footer > span {
85
+ footer > span {
62
86
margin : 1em ;
63
87
text-align : center;
64
- }
88
+ }
You can’t perform that action at this time.
0 commit comments