first commit

This commit is contained in:
dev-chiefworks
2022-05-31 16:21:53 -04:00
commit f76abffdcd
5978 changed files with 1078901 additions and 0 deletions
@@ -0,0 +1,50 @@
/* ------------------------------------------------------------------------------
*
* # Chat layouts
*
* Demo JS code for chat_layouts.html page
*
* ---------------------------------------------------------------------------- */
// Setup module
// ------------------------------
var ChatLayouts = function() {
//
// Setup module components
//
// Scroll to bottom of the chat on page load. Mainly for demo
var _layoutChat = function() {
$('.media-chat-scrollable').scrollTop($(this).height());
};
var _layoutChatHidden = function() {
$('.nav-link[data-toggle="tab"]').on('shown.bs.tab', function (e) {
_layoutChat();
});
};
//
// Return objects assigned to module
//
return {
init: function() {
_layoutChat();
_layoutChatHidden();
}
}
}();
// Initialize module
// ------------------------------
document.addEventListener('DOMContentLoaded', function() {
ChatLayouts.init();
});