patashala/style/js/chat.js
Vivek a53135a78d Added based code
Added base code to the repo
2024-02-07 20:19:28 +05:30

38 lines
1005 B
JavaScript
Executable File

$('.chat-left-inner > .chatonline').slimScroll({
height: '100%',
position: 'right',
size: "0px",
color: '#dcdcdc',
});
$(function(){
$(window).load(function(){ // On load
$('.chat-list').css({'height':(($(window).height())-470)+'px'});
});
$(window).resize(function(){ // On resize
$('.chat-list').css({'height':(($(window).height())-470)+'px'});
});
});
// this is for the left-aside-fix in content area with scroll
$(function() {
$(window).load(function() { // On load
$('.chat-left-inner').css({
'height': (($(window).height()) - 240) + 'px'
});
});
$(window).resize(function() { // On resize
$('.chat-left-inner').css({
'height': (($(window).height()) - 240) + 'px'
});
});
});
$(".open-panel").click(function() {
$(".chat-left-aside").toggleClass("open-pnl");
$(".open-panel i").toggleClass("ti-angle-left");
});