17 lines
512 B
JavaScript
17 lines
512 B
JavaScript
(function ($) {
|
|
|
|
$(document).ready(function () {
|
|
|
|
/////////////////////////////////////////////////// Activate, deactivate feature
|
|
$('.sq-switch.redgreen input[type=checkbox]').change(function () {
|
|
if ($(this).is(':checked')) {
|
|
$('#sq_onboarding.sq_deactivated').removeClass('sq_deactivated');
|
|
} else {
|
|
$('#sq_onboarding:not(.sq_deactivated)').addClass('sq_deactivated');
|
|
}
|
|
});
|
|
|
|
|
|
});
|
|
|
|
})(jQuery); |