1 | <html> |
2 | <head> |
3 | <title>Chat Popup Test</title> |
4 | <link href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css' rel='stylesheet'> |
5 | <style>@import url(https://fonts.googleapis.com/css?family=Oswald:400,300); |
6 | @import url(https://fonts.googleapis.com/css?family=Open+Sans); |
7 | body |
8 | { |
9 | font-family: 'Open Sans', sans-serif; |
10 | } |
11 | .popup-box { |
12 | background-color: #ffffff; |
13 | border: 1px solid #b0b0b0; |
14 | bottom: 0; |
15 | display: none; |
16 | height: 415px; |
17 | /*position: fixed; |
18 | right: 70px;*/ |
19 | width: 300px; |
20 | margin: auto; |
21 | font-family: 'Open Sans', sans-serif; |
22 | } |
23 | .round.hollow { |
24 | margin: 40px 0 0; |
25 | } |
26 | .round.hollow a { |
27 | border: 2px solid #ff6701; |
28 | border-radius: 35px; |
29 | color: red; |
30 | color: #ff6701; |
31 | font-size: 23px; |
32 | padding: 10px 21px; |
33 | text-decoration: none; |
34 | font-family: 'Open Sans', sans-serif; |
35 | } |
36 | .round.hollow a:hover { |
37 | border: 2px solid #000; |
38 | border-radius: 35px; |
39 | color: red; |
40 | color: #000; |
41 | font-size: 23px; |
42 | padding: 10px 21px; |
43 | text-decoration: none; |
44 | } |
45 | .popup-box-on { |
46 | display: block !important; |
47 | } |
48 | .popup-box .popup-head { |
49 | background-color: #fff; |
50 | clear: both; |
51 | color: #7b7b7b; |
52 | display: inline-table; |
53 | font-size: 21px; |
54 | padding: 7px 10px; |
55 | width: 100%; |
56 | font-family: Oswald; |
57 | } |
58 | .bg_none i { |
59 | border: 1px solid #ff6701; |
60 | border-radius: 25px; |
61 | color: #ff6701; |
62 | font-size: 17px; |
63 | height: 33px; |
64 | line-height: 30px; |
65 | width: 33px; |
66 | } |
67 | .bg_none:hover i { |
68 | border: 1px solid #000; |
69 | border-radius: 25px; |
70 | color: #000; |
71 | font-size: 17px; |
72 | height: 33px; |
73 | line-height: 30px; |
74 | width: 33px; |
75 | } |
76 | .bg_none { |
77 | /*background: rgba(0, 0, 0, 0) none repeat scroll 0 0;*/ |
78 | background: #FADC00 none repeat scroll 0 0; |
79 | border: medium none; |
80 | } |
81 | .popup-box .popup-head .popup-head-right { |
82 | margin: 11px 7px 0; |
83 | } |
84 | .popup-box .popup-messages { |
85 | } |
86 | .popup-head-left img { |
87 | border: 1px solid #7b7b7b; |
88 | border-radius: 50%; |
89 | width: 44px; |
90 | } |
91 | .popup-messages-footer > textarea { |
92 | border-bottom: 1px solid #b2b2b2 !important; |
93 | height: 34px !important; |
94 | margin: 7px; |
95 | padding: 5px !important; |
96 | border: medium none; |
97 | /*width: 95% !important;*/ |
98 | } |
99 | .popup-messages-footer { |
100 | background: #fff none repeat scroll 0 0; |
101 | bottom: 0; |
102 | /*position: absolute;*/ |
103 | /*width: 100%;*/ |
104 | } |
105 | .popup-messages-footer .btn-footer { |
106 | overflow: hidden; |
107 | padding: 2px 5px 10px 6px; |
108 | width: 100%; |
109 | } |
110 | .simple_round { |
111 | background: #d1d1d1 none repeat scroll 0 0; |
112 | border-radius: 50%; |
113 | color: #4b4b4b !important; |
114 | height: 21px; |
115 | padding: 0 0 0 1px; |
116 | width: 21px; |
117 | } |
118 | |
119 | .popup-box .popup-messages { |
120 | background: #FADC00 none repeat scroll 0 0; |
121 | /*background: #3f9684 none repeat scroll 0 0;*/ |
122 | /*height: 275px;*/ |
123 | overflow: auto; |
124 | } |
125 | .direct-chat-messages { |
126 | overflow: auto; |
127 | padding: 10px; |
128 | transform: translate(0px, 0px); |
129 | |
130 | } |
131 | .popup-messages .chat-box-single-line { |
132 | border-bottom: 1px solid #a4c6b5; |
133 | height: 12px; |
134 | margin: 7px 0 20px; |
135 | position: relative; |
136 | text-align: center; |
137 | } |
138 | .popup-messages abbr.timestamp { |
139 | background: #FADC00 none repeat scroll 0 0; |
140 | color: #fff; |
141 | padding: 0 11px; |
142 | } |
143 | |
144 | .popup-head-right .btn-group { |
145 | display: inline-flex; |
146 | margin: 0 8px 0 0; |
147 | vertical-align: top !important; |
148 | } |
149 | .chat-header-button { |
150 | background: transparent none repeat scroll 0 0; |
151 | border: 1px solid #636364; |
152 | border-radius: 50%; |
153 | font-size: 14px; |
154 | height: 30px; |
155 | width: 30px; |
156 | } |
157 | .popup-head-right .btn-group .dropdown-menu { |
158 | border: medium none; |
159 | min-width: 122px; |
160 | padding: 0; |
161 | } |
162 | .popup-head-right .btn-group .dropdown-menu li a { |
163 | font-size: 12px; |
164 | padding: 3px 10px; |
165 | color: #303030; |
166 | } |
167 | |
168 | .popup-messages abbr.timestamp { |
169 | background: #FADC00 none repeat scroll 0 0; |
170 | color: #fff; |
171 | padding: 0 11px; |
172 | } |
173 | .popup-messages .chat-box-single-line { |
174 | border-bottom: 1px solid #a4c6b5; |
175 | height: 12px; |
176 | margin: 7px 0 20px; |
177 | position: relative; |
178 | text-align: center; |
179 | } |
180 | .popup-messages .direct-chat-messages { |
181 | height: auto; |
182 | } |
183 | .popup-messages .direct-chat-text { |
184 | background: #dfece7 none repeat scroll 0 0; |
185 | border: 1px solid #dfece7; |
186 | border-radius: 2px; |
187 | color: #1f2121; |
188 | } |
189 | |
190 | .popup-messages .direct-chat-timestamp { |
191 | color: #fff; |
192 | opacity: 0.6; |
193 | } |
194 | |
195 | .popup-messages .direct-chat-name { |
196 | font-size: 15px; |
197 | font-weight: 600; |
198 | margin: 0 0 0 49px !important; |
199 | color: #fff; |
200 | opacity: 0.9; |
201 | } |
202 | .popup-messages .direct-chat-info { |
203 | display: block; |
204 | font-size: 12px; |
205 | margin-bottom: 0; |
206 | } |
207 | .popup-messages .big-round { |
208 | margin: -9px 0 0 !important; |
209 | } |
210 | .popup-messages .direct-chat-img { |
211 | border: 1px solid #fff; |
212 | background: #FADC00 none repeat scroll 0 0; |
213 | border-radius: 50%; |
214 | float: left; |
215 | height: 40px; |
216 | margin: -21px 0 0; |
217 | width: 40px; |
218 | } |
219 | .direct-chat-reply-name { |
220 | color: #fff; |
221 | font-size: 15px; |
222 | margin: 0 0 0 10px; |
223 | opacity: 0.9; |
224 | } |
225 | |
226 | .direct-chat-img-reply-small |
227 | { |
228 | border: 1px solid #fff; |
229 | border-radius: 50%; |
230 | float: left; |
231 | height: 20px; |
232 | margin: 0 8px; |
233 | width: 20px; |
234 | background: #FADC00; |
235 | } |
236 | |
237 | .popup-messages .direct-chat-msg { |
238 | margin-bottom: 10px; |
239 | position: relative; |
240 | } |
241 | |
242 | .popup-messages .doted-border::after { |
243 | background: transparent none repeat scroll 0 0 !important; |
244 | border-right: 2px dotted #fff !important; |
245 | bottom: 0; |
246 | content: ""; |
247 | left: 17px; |
248 | margin: 0; |
249 | position: absolute; |
250 | top: 0; |
251 | width: 2px; |
252 | display: inline; |
253 | z-index: -2; |
254 | } |
255 | |
256 | .popup-messages .direct-chat-msg::after { |
257 | background: #fff none repeat scroll 0 0; |
258 | border-right: medium none; |
259 | bottom: 0; |
260 | content: ""; |
261 | left: 17px; |
262 | margin: 0; |
263 | position: absolute; |
264 | top: 0; |
265 | width: 2px; |
266 | display: inline; |
267 | z-index: -2; |
268 | } |
269 | .direct-chat-text::after, .direct-chat-text::before { |
270 | |
271 | border-color: transparent #dfece7 transparent transparent; |
272 | |
273 | } |
274 | .direct-chat-text::after, .direct-chat-text::before { |
275 | -moz-border-bottom-colors: none; |
276 | -moz-border-left-colors: none; |
277 | -moz-border-right-colors: none; |
278 | -moz-border-top-colors: none; |
279 | border-color: transparent #d2d6de transparent transparent; |
280 | border-image: none; |
281 | border-style: solid; |
282 | border-width: medium; |
283 | content: " "; |
284 | height: 0; |
285 | pointer-events: none; |
286 | position: absolute; |
287 | right: 100%; |
288 | top: 15px; |
289 | width: 0; |
290 | } |
291 | .direct-chat-text::after { |
292 | border-width: 5px; |
293 | margin-top: -5px; |
294 | } |
295 | .popup-messages .direct-chat-text { |
296 | background: #dfece7 none repeat scroll 0 0; |
297 | border: 1px solid #dfece7; |
298 | border-radius: 2px; |
299 | color: #1f2121; |
300 | } |
301 | .direct-chat-text { |
302 | background: #d2d6de none repeat scroll 0 0; |
303 | border: 1px solid #d2d6de; |
304 | border-radius: 5px; |
305 | color: #444; |
306 | margin: 5px 0 0 50px; |
307 | padding: 5px 10px; |
308 | position: relative; |
309 | } |
310 | </style> |
311 | <script type='text/javascript' src='//code.jquery.com/jquery-1.10.2.min.js'></script> |
312 | <script type='text/javascript' src='//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js'></script> |
313 | <script type='text/javascript'> $(function(){ |
314 | $("#addClass").click(function () { |
315 | $('#qnimate').addClass('popup-box-on'); |
316 | }); |
317 | |
318 | $("#removeClass").click(function () { |
319 | $('#qnimate').removeClass('popup-box-on'); |
320 | }); |
321 | })</script> |
322 | </head> |
323 | <body> |
324 | <!-- |
325 | <div class="container text-center"> |
326 | <div class="row"> |
327 | <div class="round hollow text-center"> |
328 | <a href="#" id="addClass"><span class="glyphicon glyphicon-comment"></span> Open chat </a> |
329 | </div> |
330 | </div> |
331 | </div> |
332 | --> |
333 | |
334 | <form> |
335 | |
336 | <div class="popup-box popup-box-on chat-popup" id="qnimate"> |
337 | <div class="popup-head"> |
338 | <a href="?message=CLEAR"><div class="popup-head-left pull-left"><img src="http://eyeocr.sourceforge.net/filestore/filestore.php?cmd=serve&file=blob_1008323&contentType=image/png" alt="Bot Image"> $HEADING</div></a> |
339 | <div class="popup-head-right pull-right"> |
340 | <!-- |
341 | <div class="btn-group"> |
342 | <button class="chat-header-button" data-toggle="dropdown" type="button" aria-expanded="false"> |
343 | <i class="glyphicon glyphicon-cog"></i> </button> |
344 | <ul role="menu" class="dropdown-menu pull-right"> |
345 | <li><a href="#">Media</a></li> |
346 | <li><a href="#">Block</a></li> |
347 | <li><a href="#">Clear Chat</a></li> |
348 | <li><a href="#">Email Chat</a></li> |
349 | </ul> |
350 | </div> |
351 | |
352 | <button data-widget="remove" id="removeClass" class="chat-header-button pull-right" type="button"><i class="glyphicon glyphicon-off"></i></button> |
353 | --> |
354 | </div> |
355 | </div> |
356 | <div class="popup-messages"> |
357 | |
358 | |
359 | |
360 | |
361 | <div class="direct-chat-messages"> |
362 | <!-- MSGS HERE --> |
363 | </div> |
364 | <div class="popup-messages-footer"> |
365 | <textarea autofocus id="status_message" placeholder="Type a message..." rows="10" cols="30" name="message" onkeydown="if (event.keyCode == 13) { form.submit(); return false; }"></textarea> |
366 | <div class="btn-footer"> |
367 | <!-- |
368 | <button class="bg_none"><i class="glyphicon glyphicon-film"></i> </button> |
369 | <button class="bg_none"><i class="glyphicon glyphicon-camera"></i> </button> |
370 | <button class="bg_none"><i class="glyphicon glyphicon-paperclip"></i> </button> |
371 | --> |
372 | <!-- |
373 | <button class="bg_none pull-right"><i class="glyphicon glyphicon-thumbs-up"></i> </button> |
374 | --> |
375 | </div> |
376 | </div> |
377 | </div> |
378 | |
379 | </form> |
380 | </body></html> |
Began life as a copy of #1008312
download render html show line numbers
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008315 |
Snippet name: | Chat Popup Template |
Eternal ID of this version: | #1008315/14 |
Text MD5: | c4b77b7a073bd65d6d4a84fc4de702b9 |
Author: | stefan |
Category: | javax / web chat bots |
Type: | HTML |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-09 21:49:34 |
Source code size: | 9905 bytes / 380 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 542 / 612 |
Version history: | 13 change(s) |
Referenced in: | [show references] |