Показать сообщение отдельно
  #7 (permalink)  
Старый 30.05.2018, 23:39
Аватар для рони
Профессор
Отправить личное сообщение для рони Посмотреть профиль Найти все сообщения от рони
 
Регистрация: 27.05.2010
Сообщений: 33,080

Igorsrt,

bt_construction/js/script.js
jQuery(document).ready(function($){

    $(window).resize(function(){
    var highestBox = 0;
        $('.footerBlock_module .t3-spotlight.t3-footnav > div').each(function(){
            if ($(window).width() > 767){
                if($(this).height() > highestBox){
                    highestBox = $(this).height();
                }
                $(this).height(highestBox);
            } else {
                $(this).css('height','auto');
            }
        });
    });

    setTimeout(function(){$(window).trigger('resize')}, 300);



    $('a.nav').click(function() {
        $("html, body").animate({
            scrollTop: $($(this).attr('href')).offset().top + "px"
        }, {
            duration: 500
        });
        return false;
    });




});
Ответить с цитированием