'); }, slide: function (event, ui) { let spent = ui.value + '$'; let amount = ui.value; if (ui.value > 90) { spent = "∞"; amount = 90; } handle.html( '

Потрачено

' + spent + '

' + amount + '$

Сумма по промокоду

'); } }); }); $(function () { var handle = $("#custom-handle2"); $("#slider-range-min2").slider({ range: "min", min: 1, max: 44, value: 30, create: function () { handle.html( '

Расходы

' + $(this).slider("value") + '$

' + 60 + '$

компенсация

'); }, slide: function (event, ui) { let costs = ui.value + '$'; let cashback = 60; if (ui.value < 20) { cashback = 0; } if (ui.value > 40) { costs = "∞"; } handle.html( '

Расходы

' + costs + '

' + cashback + '$

компенсация

'); } }); }); $(function () { var handle = $("#custom-handle3"); $("#slider-range-min3").slider({ range: "min", min: 0, max: 49500, value: 32000, step: 1000, create: function () { handle.html( '

Расходы

' + Math.round($(this).slider("value")).toString().replace(/\B(?=(\d{3})+(?!\d))/g, '\u00a0') + ' тг

' + '30 000' + ' тг

компенсация

'); }, slide: function (event, ui) { let costs = Math.round(ui.value).toString().replace(/\B(?=(\d{3})+(?!\d))/g, '\u00a0') + ' тг'; if (ui.value == 0) { costs = "1 тг"; } if (ui.value > 45000) { costs = "∞"; } switch (true) { case (ui.value < 15000): cashback = '0'; break; case ui.value < 30000: cashback = '15 000'; break; case ui.value < 45000: cashback = '30 000'; break; default: cashback = '45 000'; } handle.html( '

Расходы

' + costs + '

' + cashback + ' тг

компенсация

'); } }); }); $('.js-tabs > *').on('click', function (e) { var elem = $(this); e.preventDefault(); elem.siblings().removeClass('is-active').end().addClass('is-active'); $(elem.attr('href')).siblings().removeClass('is-visible').end().addClass('is-visible'); }); $('.page-gooya__problem-cell').on('mouseenter', function () { var self = $(this); var parent = self.closest('.page-gooya__problem-row'); self.addClass('is-hover'); $('.page-gooya__problem-table').find('.page-gooya__problem-row').each(function () { $(this).find('.page-gooya__problem-cell').each(function (item, index) { if (self.index() === index) { $(this).addClass('is-hover') } }); }); }); $('.page-gooya__problem-cell').on('mouseleave', function () { var self = $(this); var parent = self.closest('.page-gooya__problem-row'); self.removeClass('is-hover'); $('.page-gooya__problem-table').find('.page-gooya__problem-row').each(function () { $(this).find('.page-gooya__problem-cell').each(function (item, index) { if (self.index() === index) { $(this).removeClass('is-hover') } }); }); }); $('.faq-collapse__label').each(function () { var $this = $(this); $this.on('click', function () { $this.parent().toggleClass("faq-collapse--active"); }); }); if ($(window).width() > 768) { $('.page-gooya__problem--solves').find('.page-gooya__problem-cell').each(function () { let mh = $(this).data('mh'); $(`[data-mh="${mh}"]`).equalHeight(); }); } $('#sendRequestPhone').inputmask("+7 (999) 999 99 99"); //new AutoNumeric('#sendRequestBudget', { digitGroupSeparator: " " }); $('#AdCampaignSetupRequestForm').on('submit', function (e) { e.preventDefault(); let $this = $(this); let $submitBtns = $(this).find('[type="submit"]'); let action = $(this).attr('action'); let requestData = $(this).serialize(); $submitBtns.prop('disabled', true); $.post(action, requestData, function (data) { if (data.status === 'success') { $('#sendRequest').modal('hide'); $('#sentRequest').modal('show'); } else if (data.status === 'fail') { $submitBtns.prop('disabled', false); $.notify({ "message": Object.values(data.data).join("
\n") }, { "type": "warning", "z_index": 2000 }); } else if (data.status === 'error') { $submitBtns.prop('disabled', false); $.notify({ "message": data.message }, { "type": "warning", "z_index": 2000 }); } }, 'json'); }); });

 

嘉妮掰阴,男生吃女生的小鸡下载安装丝瓜污,黄片大集