-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
186 lines (164 loc) · 4.64 KB
/
popup.html
File metadata and controls
186 lines (164 loc) · 4.64 KB
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Shorten with JoliURL.com</title>
<link rel="stylesheet" href="css/pure-min.css">
<link rel="stylesheet" href="css/grids-responsive-min.css">
<link rel="stylesheet" href="css/all.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body { background-color: #332d2d; font-family:'Open Sans',sans-serif; width: 400px; padding: 10px; height: auto; }
button { width: 100%; }
.content {
padding:0;
margin:3% 3%;
}
.logo {
margin-top: 10px;
}
.logo img {
height: 60px;
}
.logo_url {
margin-left: 10px;
line-height: 60px;
color: #fff;
}
.alert {
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 4px;
}
.alert h4 {
margin-top: 0;
color: inherit;
}
.alert .alert-link {
font-weight: bold;
}
.alert>p,.alert>ul {
margin-bottom: 0;
}
.alert>p+p {
margin-top: 5px;
}
.alert-success {
background-color: #dcf1e4;
border-color: #a1dbb8;
color: #0c622e;
}
.alert-success .alert-link {
color: #2b542c;
}
.alert-warning {
background-color: #fcf8e3;
border-color: #faebcc;
color: #8a6d3b;
}
.alert-warning hr {
border-top-color: #f7e1b5;
}
.alert-warning .alert-link {
color: #66512c;
}
.alert {
border-radius: 0;
-webkit-border-radius: 0;
box-shadow: 0 1px 2px rgba(0,0,0,0.11);
}
.alert-success {
background-color: #dbf6d3;
border-color: #aed4a5;
color: #569745;
}
.alert-warning {
background-color: #fcf8e3;
border-color: #f1daab;
color: #c09853;
}
.rounded {
border-radius: 3px;
-webkit-border-radius: 3px;
}
.rounded .icon {
border-radius: 3px 0 0 3px;
-webkit-border-radius: 3px 0 0 3px;
}
.icon {
display: inline-flex;
margin: 0 5px;
}
#shtUrl {
margin-top: 5px;
display: inline-block;
}
.copyBtn {
display: inline-block;
margin-left: -5px;
height: 36px;
border-color: #ccc;
}
.tooltiptext {
visibility: hidden;
background-color: #000023;
color: #fff;
text-align: center;
padding: 5px 0;
border-radius: 6px;
position: relative;
z-index: 1;
width: 120px;
}
.tooltiptext {
bottom: 100%;
left: 50%;
}
.tooltiptext::after {
content: " ";
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: transparent transparent black transparent;
}
#sMessage {
margin: 0;
}
</style>
</head>
<body>
<div class='content'>
<div id="respOk" class="alert alert-success rounded pure-form " style="display: none;">
<p id="sMessage"><i class="fa fa-check"></i> <strong>Success!</strong> Your URL has been successfully shortened!</p>
<input id="shtUrl" name="shturl" type="url" class="pure-u-18-24" placeholder="" readonly="" />
<div id="copyBtn" class="pure-button copyBtn ">
<i class="fa-regular fa-copy"></i>
</div>
<span id="tooltipTxt" class="tooltiptext">Copied</span>
</div>
<div id="respKo" class="alert alert-warning rounded" style="display: none;">
<div class="icon"><i class="fa fa-times-circle"></i></div>
<strong>Error!</strong> The server is not responding, try again later.
</div>
<form id="formJoliUrl" class="pure-form" onsubmit="return false;">
<fieldset class="pure-group">
<textarea id="longUrlInput" name="url" class="pure-input-1" placeholder="Long Url"></textarea>
</fieldset>
<fieldset class="pure-group">
<input id="emailInput" name="email" type="email" class="pure-input-1" placeholder="Email" />
</fieldset>
<a id="shortenBtn" class="pure-button pure-input-1 pure-button-primary"><i class="fa-solid fa-down-left-and-up-right-to-center"></i> Shorten Url</a>
</form>
<div class="pure-g logo">
<div class="pure-g-2-5"><img class="pure-img" src="icons/logo.svg" /></div>
<div class="pure-g-3-5"><a class="logo_url" href="https://joliurl.com" target="_blank">https://joliurl.com</a></div>
</div>
</div>
<script src="popup.js"></script>
<script src="js/all.min.js"></script>
</body>
</html>