api code global jain
This commit is contained in:
35
public/js/pages/custom/profile/profile.js
vendored
Normal file
35
public/js/pages/custom/profile/profile.js
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
"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();
|
||||
});
|
||||
1
public/js/pages/custom/profile/profile.min.js
vendored
Normal file
1
public/js/pages/custom/profile/profile.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var KTProfile={init:function(){new KTOffcanvas("kt_profile_aside",{overlay:!0,baseClass:"offcanvas-mobile",toggleBy:"kt_subheader_mobile_toggle"}),new KTImageInput("kt_profile_avatar")}};jQuery(document).ready(function(){KTProfile.init()});
|
||||
Reference in New Issue
Block a user