first initial
This commit is contained in:
35
public/assets/js/demo1/pages/custom/user/profile.js
Normal file
35
public/assets/js/demo1/pages/custom/user/profile.js
Normal file
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
|
||||
// Class definition
|
||||
var KTUserProfile = function () {
|
||||
// Base elements
|
||||
var avatar;
|
||||
var offcanvas;
|
||||
|
||||
// Private functions
|
||||
var initAside = function () {
|
||||
// Mobile offcanvas for mobile mode
|
||||
offcanvas = new KTOffcanvas('kt_user_profile_aside', {
|
||||
overlay: true,
|
||||
baseClass: 'kt-app__aside',
|
||||
closeBy: 'kt_user_profile_aside_close',
|
||||
toggleBy: 'kt_subheader_mobile_toggle'
|
||||
});
|
||||
}
|
||||
|
||||
var initUserForm = function() {
|
||||
avatar = new KTAvatar('kt_user_avatar');
|
||||
}
|
||||
|
||||
return {
|
||||
// public functions
|
||||
init: function() {
|
||||
initAside();
|
||||
initUserForm();
|
||||
}
|
||||
};
|
||||
}();
|
||||
|
||||
KTUtil.ready(function() {
|
||||
KTUserProfile.init();
|
||||
});
|
||||
Reference in New Issue
Block a user