jQuery(function($){
$(window).on('load', function () {
// if $('body').hasClass('home'){
$('a#ThisClicVise').on('click', function(){
if (!$(this).hasClass("OnClick")){
$(this).addClass("OnClick");
// console.log('🔵 ');
event.preventDefault();
$(".ThisClickHideIot:not('.TemporaryHide')").each(function(){
$(this).css('display','block');
});
} else {
$(this).removeClass("OnClick");
// console.log('🔴 ');
event.preventDefault();
$(".ThisClickHideIot:not('.TemporaryHide')").each(function(){
$(this).css('display','none');
});
// И плавный скролл к началу раздела
$("html, body").animate({ scrollTop: $('#FAQ_IOT').offset().top-50 }, 500);
}
});
// }
});
});