(function( $ ) {
var object = {
button: '.setting-btn',
container: '.setting'
};
$(object.button).on('click', function() {
var form = $(object.container);
if (form.hasClass('active')) {
form.fadeOut(100).removeClass('active open').addClass('closed');
} else {
form.fadeIn(100).addClass('active open').removeClass('closed');
}
});
})(jQuery);