Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

459
LINES

< > BotCompany Repo | #1008311 // Chat Popup Test v2

HTML

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  
    border: medium none;
79  
}
80  
.popup-box .popup-head .popup-head-right {
81  
    margin: 11px 7px 0;
82  
}
83  
.popup-box .popup-messages {
84  
}
85  
.popup-head-left img {
86  
    border: 1px solid #7b7b7b;
87  
    border-radius: 50%;
88  
    width: 44px;
89  
}
90  
.popup-messages-footer > textarea {
91  
    border-bottom: 1px solid #b2b2b2 !important;
92  
    height: 34px !important;
93  
    margin: 7px;
94  
    padding: 5px !important;
95  
     border: medium none;
96  
    /*width: 95% !important;*/
97  
}
98  
.popup-messages-footer {
99  
    background: #fff none repeat scroll 0 0;
100  
    bottom: 0;
101  
    position: absolute;
102  
    /*width: 100%;*/
103  
}
104  
.popup-messages-footer .btn-footer {
105  
    overflow: hidden;
106  
    padding: 2px 5px 10px 6px;
107  
    width: 100%;
108  
}
109  
.simple_round {
110  
    background: #d1d1d1 none repeat scroll 0 0;
111  
    border-radius: 50%;
112  
    color: #4b4b4b !important;
113  
    height: 21px;
114  
    padding: 0 0 0 1px;
115  
    width: 21px;
116  
}
117  
118  
119  
120  
121  
122  
.popup-box .popup-messages {
123  
    background: #3f9684 none repeat scroll 0 0;
124  
    /*height: 275px;*/
125  
    overflow: auto;
126  
}
127  
.direct-chat-messages {
128  
    overflow: auto;
129  
    padding: 10px;
130  
    transform: translate(0px, 0px);
131  
    
132  
}
133  
.popup-messages .chat-box-single-line {
134  
    border-bottom: 1px solid #a4c6b5;
135  
    height: 12px;
136  
    margin: 7px 0 20px;
137  
    position: relative;
138  
    text-align: center;
139  
}
140  
.popup-messages abbr.timestamp {
141  
    background: #3f9684 none repeat scroll 0 0;
142  
    color: #fff;
143  
    padding: 0 11px;
144  
}
145  
146  
.popup-head-right .btn-group {
147  
    display: inline-flex;
148  
	margin: 0 8px 0 0;
149  
	vertical-align: top !important;
150  
}
151  
.chat-header-button {
152  
    background: transparent none repeat scroll 0 0;
153  
    border: 1px solid #636364;
154  
    border-radius: 50%;
155  
    font-size: 14px;
156  
    height: 30px;
157  
    width: 30px;
158  
}
159  
.popup-head-right .btn-group .dropdown-menu {
160  
    border: medium none;
161  
    min-width: 122px;
162  
	padding: 0;
163  
}
164  
.popup-head-right .btn-group .dropdown-menu li a {
165  
    font-size: 12px;
166  
    padding: 3px 10px;
167  
	color: #303030;
168  
}
169  
170  
.popup-messages abbr.timestamp {
171  
    background: #3f9684  none repeat scroll 0 0;
172  
    color: #fff;
173  
    padding: 0 11px;
174  
}
175  
.popup-messages .chat-box-single-line {
176  
    border-bottom: 1px solid #a4c6b5;
177  
    height: 12px;
178  
    margin: 7px 0 20px;
179  
    position: relative;
180  
    text-align: center;
181  
}
182  
.popup-messages .direct-chat-messages {
183  
    height: auto;
184  
}
185  
.popup-messages .direct-chat-text {
186  
    background: #dfece7 none repeat scroll 0 0;
187  
    border: 1px solid #dfece7;
188  
    border-radius: 2px;
189  
    color: #1f2121;
190  
}
191  
192  
.popup-messages .direct-chat-timestamp {
193  
    color: #fff;
194  
    opacity: 0.6;
195  
}
196  
197  
.popup-messages .direct-chat-name {
198  
	font-size: 15px;
199  
	font-weight: 600;
200  
	margin: 0 0 0 49px !important;
201  
	color: #fff;
202  
	opacity: 0.9;
203  
}
204  
.popup-messages .direct-chat-info {
205  
    display: block;
206  
    font-size: 12px;
207  
    margin-bottom: 0;
208  
}
209  
.popup-messages  .big-round {
210  
    margin: -9px 0 0 !important;
211  
}
212  
.popup-messages  .direct-chat-img {
213  
    border: 1px solid #fff;
214  
	background: #3f9684  none repeat scroll 0 0;
215  
    border-radius: 50%;
216  
    float: left;
217  
    height: 40px;
218  
    margin: -21px 0 0;
219  
    width: 40px;
220  
}
221  
.direct-chat-reply-name {
222  
    color: #fff;
223  
    font-size: 15px;
224  
    margin: 0 0 0 10px;
225  
    opacity: 0.9;
226  
}
227  
228  
.direct-chat-img-reply-small
229  
{
230  
    border: 1px solid #fff;
231  
    border-radius: 50%;
232  
    float: left;
233  
    height: 20px;
234  
    margin: 0 8px;
235  
    width: 20px;
236  
	background:#3f9684;
237  
}
238  
239  
.popup-messages .direct-chat-msg {
240  
    margin-bottom: 10px;
241  
    position: relative;
242  
}
243  
244  
.popup-messages .doted-border::after {
245  
	background: transparent none repeat scroll 0 0 !important;
246  
    border-right: 2px dotted #fff !important;
247  
	bottom: 0;
248  
    content: "";
249  
    left: 17px;
250  
    margin: 0;
251  
    position: absolute;
252  
    top: 0;
253  
    width: 2px;
254  
	 display: inline;
255  
	  z-index: -2;
256  
}
257  
258  
.popup-messages .direct-chat-msg::after {
259  
    background: #fff none repeat scroll 0 0;
260  
    border-right: medium none;
261  
    bottom: 0;
262  
    content: "";
263  
    left: 17px;
264  
    margin: 0;
265  
    position: absolute;
266  
    top: 0;
267  
    width: 2px;
268  
	 display: inline;
269  
	  z-index: -2;
270  
}
271  
.direct-chat-text::after, .direct-chat-text::before {
272  
   
273  
    border-color: transparent #dfece7 transparent transparent;
274  
    
275  
}
276  
.direct-chat-text::after, .direct-chat-text::before {
277  
    -moz-border-bottom-colors: none;
278  
    -moz-border-left-colors: none;
279  
    -moz-border-right-colors: none;
280  
    -moz-border-top-colors: none;
281  
    border-color: transparent #d2d6de transparent transparent;
282  
    border-image: none;
283  
    border-style: solid;
284  
    border-width: medium;
285  
    content: " ";
286  
    height: 0;
287  
    pointer-events: none;
288  
    position: absolute;
289  
    right: 100%;
290  
    top: 15px;
291  
    width: 0;
292  
}
293  
.direct-chat-text::after {
294  
    border-width: 5px;
295  
    margin-top: -5px;
296  
}
297  
.popup-messages .direct-chat-text {
298  
    background: #dfece7 none repeat scroll 0 0;
299  
    border: 1px solid #dfece7;
300  
    border-radius: 2px;
301  
    color: #1f2121;
302  
}
303  
.direct-chat-text {
304  
    background: #d2d6de none repeat scroll 0 0;
305  
    border: 1px solid #d2d6de;
306  
    border-radius: 5px;
307  
    color: #444;
308  
    margin: 5px 0 0 50px;
309  
    padding: 5px 10px;
310  
    position: relative;
311  
}
312  
</style>
313  
<script type='text/javascript' src='//code.jquery.com/jquery-1.10.2.min.js'></script>
314  
                                <script type='text/javascript' src='//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js'></script>
315  
                                <script type='text/javascript'>  $(function(){
316  
$("#addClass").click(function () {
317  
          $('#qnimate').addClass('popup-box-on');
318  
            });
319  
          
320  
            $("#removeClass").click(function () {
321  
          $('#qnimate').removeClass('popup-box-on');
322  
            });
323  
  })</script>
324  
</head>
325  
<body>
326  
<!--
327  
<div class="container text-center">
328  
	<div class="row">
329  
        <div class="round hollow text-center">
330  
        <a href="#" id="addClass"><span class="glyphicon glyphicon-comment"></span> Open chat </a>
331  
        </div>
332  
	</div>
333  
</div>
334  
-->
335  
336  
<form>
337  
338  
<div class="popup-box popup-box-on chat-popup" id="qnimate">
339  
    		  <div class="popup-head">
340  
				<div class="popup-head-left pull-left"><img src="http://bootsnipp.com/img/avatars/bcf1c0d13e5500875fdd5a7e8ad9752ee16e7462.jpg" alt="iamgurdeeposahan"> Pretty Chat Bot</div>
341  
					  <div class="popup-head-right pull-right">
342  
						<div class="btn-group">
343  
    								  <button class="chat-header-button" data-toggle="dropdown" type="button" aria-expanded="false">
344  
									   <i class="glyphicon glyphicon-cog"></i> </button>
345  
									  <ul role="menu" class="dropdown-menu pull-right">
346  
										<li><a href="#">Media</a></li>
347  
										<li><a href="#">Block</a></li>
348  
										<li><a href="#">Clear Chat</a></li>
349  
										<li><a href="#">Email Chat</a></li>
350  
									  </ul>
351  
						</div>
352  
						
353  
						<button data-widget="remove" id="removeClass" class="chat-header-button pull-right" type="button"><i class="glyphicon glyphicon-off"></i></button>
354  
                      </div>
355  
			  </div>
356  
			<div class="popup-messages">
357  
    		
358  
			
359  
			
360  
			
361  
			<div class="direct-chat-messages">
362  
                    
363  
					
364  
					<div class="chat-box-single-line">
365  
								<abbr class="timestamp">October 8th, 2015</abbr>
366  
					</div>
367  
					
368  
					
369  
					<!-- Message. Default to the left -->
370  
                    <div class="direct-chat-msg doted-border">
371  
                      <div class="direct-chat-info clearfix">
372  
                        <span class="direct-chat-name pull-left">Osahan</span>
373  
                      </div>
374  
                      <!-- /.direct-chat-info -->
375  
                      <img alt="message user image" src="http://bootsnipp.com/img/avatars/bcf1c0d13e5500875fdd5a7e8ad9752ee16e7462.jpg" class="direct-chat-img"><!-- /.direct-chat-img -->
376  
                      <div class="direct-chat-text">
377  
                        Line 1?
378  
                      </div>
379  
					  <div class="direct-chat-info clearfix">
380  
                        <span class="direct-chat-timestamp pull-right">3.36 PM</span>
381  
                      </div>
382  
						<div class="direct-chat-info clearfix">
383  
						<span class="direct-chat-img-reply-small pull-left">
384  
							
385  
						</span>
386  
						<span class="direct-chat-reply-name">Singh</span>
387  
						</div>
388  
						<!-- XXX -->
389  
                      <div class="direct-chat-text">
390  
                        Yo yo
391  
                      </div>
392  
						<!-- XXX -->
393  
                      <!-- /.direct-chat-text -->
394  
                    </div>
395  
                    <!-- /.direct-chat-msg -->
396  
					
397  
					
398  
					<div class="chat-box-single-line">
399  
						<abbr class="timestamp">October 9th, 2015</abbr>
400  
					</div>
401  
			
402  
					
403  
					
404  
					<!-- Message. Default to the left -->
405  
                    <div class="direct-chat-msg doted-border">
406  
                      <div class="direct-chat-info clearfix">
407  
                        <span class="direct-chat-name pull-left">Osahan</span>
408  
                      </div>
409  
                      <!-- /.direct-chat-info -->
410  
                      <img alt="iamgurdeeposahan" src="http://bootsnipp.com/img/avatars/bcf1c0d13e5500875fdd5a7e8ad9752ee16e7462.jpg" class="direct-chat-img"><!-- /.direct-chat-img -->
411  
                      <div class="direct-chat-text">
412  
                        Line 2!
413  
                      </div>
414  
					  <div class="direct-chat-info clearfix">
415  
                        <span class="direct-chat-timestamp pull-right">3.36 PM</span>
416  
                      </div>
417  
						<div class="direct-chat-info clearfix">
418  
						  <img alt="iamgurdeeposahan" src="http://bootsnipp.com/img/avatars/bcf1c0d13e5500875fdd5a7e8ad9752ee16e7462.jpg" class="direct-chat-img big-round">
419  
						<span class="direct-chat-reply-name">Singh</span>
420  
						<!-- XXX -->
421  
                      <div class="direct-chat-text">
422  
                        Yo
423  
                      </div>
424  
						<!-- XXX -->
425  
						</div>
426  
                    </div>
427  
                    <!-- /.direct-chat-msg -->
428  
					
429  
					
430  
                    
431  
432  
                    
433  
434  
                  </div>
435  
			
436  
			
437  
			
438  
			
439  
			
440  
			
441  
			
442  
			
443  
			
444  
			</div>
445  
			<div class="popup-messages-footer">
446  
			<textarea autofocus id="status_message" placeholder="Type a message..." rows="10" cols="40" name="message" onkeydown="if (event.keyCode == 13) form.submit();"></textarea>
447  
			<div class="btn-footer">
448  
			<button class="bg_none"><i class="glyphicon glyphicon-film"></i> </button>
449  
			<button class="bg_none"><i class="glyphicon glyphicon-camera"></i> </button>
450  
            <button class="bg_none"><i class="glyphicon glyphicon-paperclip"></i> </button>
451  
      <!--
452  
			<button class="bg_none pull-right"><i class="glyphicon glyphicon-thumbs-up"></i> </button>
453  
		  -->
454  
			</div>
455  
			</div>
456  
	  </div>
457  
	  
458  
</form>
459  
</body></html>

Author comment

Began life as a copy of #1008310

download  render html  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008311
Snippet name: Chat Popup Test v2
Eternal ID of this version: #1008311/20
Text MD5: 22158430cf7308d221aaa0ed92e01500
Author: stefan
Category: javax / web chat bots
Type: HTML
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-07 04:04:44
Source code size: 12695 bytes / 459 lines
Pitched / IR pitched: No / No
Views / Downloads: 534 / 283
Version history: 19 change(s)
Referenced in: [show references]