chess/public/assets/js/pages/custom/profile/profile.js

36 lines
686 B
JavaScript
Raw Normal View History

2024-08-29 03:56:32 +00:00
"use strict";
// Class definition
var KTProfile = function () {
// Elements
var avatar;
var offcanvas;
// Private functions
var _initAside = function () {
// Mobile offcanvas for mobile mode
offcanvas = new KTOffcanvas('kt_profile_aside', {
overlay: true,
baseClass: 'offcanvas-mobile',
//closeBy: 'kt_user_profile_aside_close',
toggleBy: 'kt_subheader_mobile_toggle'
});
}
var _initForm = function() {
avatar = new KTImageInput('kt_profile_avatar');
}
return {
// public functions
init: function() {
_initAside();
_initForm();
}
};
}();
jQuery(document).ready(function() {
KTProfile.init();
});