-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
159 lines (137 loc) · 3.08 KB
/
popup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Text Converter</title>
<style>
html {
background: rgb(16, 29, 67);
min-width: 300px;
box-shadow: inset 0px 0px 25px #000;
border-left: 5px solid rgb(0, 234, 255);
}
body {
font-family: Arial, sans-serif;
}
#result {
border-radius: 8px;
padding: 8px;
color: rgb(0, 234, 255);
/* font-weight: bolder; */
margin: 10px 0;
width: 270px;
min-height: 13px;
}
.result-box {
display: flex;
flex-direction: column;
align-items: center;
border-radius: 8px;
padding: 8px;
background: #000000;
color: #fff;
/* font-weight: bolder; */
margin: 10px 0;
width: 270px;
min-height: 80px;
}
.copy-box {
display: flex;
width: 100%;
justify-content: flex-end;
align-items: flex-end;
}
.copy-btn {
margin-top: 10px;
background: #2f2f2f;
color: #fff;
border-radius: 10px;
}
.main-box {
display: flex;
align-items: center;
justify-content: space-between;
}
.main-box input {
width: 64%;
border-radius: 15px;
height: 20px;
padding: 5px;
}
.main-box button {
border-radius: 15px;
padding: 8px;
background: #2ea043;
color: #fff;
font-weight: bolder;
margin-left: 10px;
cursor: pointer;
}
span {
color: #fff;
}
span a {
color: rgb(0, 234, 255);
font-weight: bold;
text-decoration: none;
}
.notification {
visibility: hidden;
min-width: 250px;
background-color: rgb(0, 234, 255);
color: #fff;
text-align: center;
border-radius: 8px;
padding: 10px;
position: fixed;
z-index: 1;
right: 17px;
bottom: 73px;
font-size: 17px;
}
.notification.show {
visibility: visible;
animation: fadein linear 0.5s, fadeout linear 0.5s 2.5s;
}
@keyframes fadein {
from {
bottom: 0;
opacity: 0;
}
to {
bottom: 73px;
opacity: 1;
}
}
@keyframes fadeout {
from {
bottom: 73px;
opacity: 1;
}
to {
bottom: 0;
opacity: 0;
}
}
</style>
</head>
<body>
<h1 style="color: rgb(0, 234, 255)">Text Converter</h1>
<div class="main-box">
<input id="input" placeholder="Enter text here..."></input>
<button id="convert">Convert</button>
</div>
<div class="result-box">
<p id="result" style="font-weight: bolder; font-size: 17px;">
the result will appear here
</p>
<div class="copy-box">
<button id="copy" class="copy-btn">Copy</button>
</div>
</div>
<!-- Custom popup notification -->
<div id="notification" class="notification" style="color: #000; font-weight: bolder;">Text copied to clipboard</div>
<span> Developed by : <a target="_blank" href="https://github.com/ahmedMbassiouny"> Ahmed Bassiounuy</a></span>
<script src="script.js"></script>
</body>
</html>