Answer the question
In order to leave comments, you need to log in
How to make the calculator immediately open?
How to make the calculator immediately open https://jsfiddle.net/x8m390c6/
Answer the question
In order to leave comments, you need to log in
In the version that you uploaded to jsfiddle.net, in my chrome, the button does not work at all. I'll tell you how to do it for the version that was on the Yandex disk.
1. In index.html we replace
on the
2. In style.css we replace
.box-price {
background: #DDDDDD;
color: #333;
padding: 0 15px;
overflow: hidden;
height: 0px;
}
.box-price {
background: #DDDDDD;
color: #333;
padding: 0 15px;
overflow: hidden;
height: 390px;
}
$('.price-button').click(function() {
var boxPrice = $(this).closest('.col-md-4');
function hideButton () {
$(boxPrice).find('.price-button').hide();
$(boxPrice).find('.footer-price').append('<h4>Итог: <span class="cur"></span> <span class="rub">р. / м.кв.</span></h4>');
};
//анимация раскрытия блока с параметрами
$(boxPrice).find('.box-price').animate({height: '390px'}, {'duration': 500}, {'easing': 'linear'}, hideButton());
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question