Commit 36d39dfa415a1714f85a6c6171625c7ccc2d64c8
1 parent
c5faa6ec
аналитика
Showing
4 changed files
with
37 additions
and
11 deletions
Show diff stats
frontend/views/layouts/main.php
... | ... | @@ -402,10 +402,29 @@ _________________________________________________________ --> |
402 | 402 | <?= Html::submitButton( |
403 | 403 | 'Надіслати', |
404 | 404 | [ |
405 | - 'class' => 'send-form btn btn-lg btn-template-primary', | |
405 | + 'class' => 'send-form btn btn-lg btn-template-primary button-consultation', | |
406 | + 'onclick' => "ga('send', 'event', 'button-consultation.cec', 'send')", | |
406 | 407 | ] |
407 | 408 | ) ?> |
408 | 409 | </p> |
410 | + <p class="text-center"> | |
411 | + <?= Html::submitButton( | |
412 | + 'Надіслати', | |
413 | + [ | |
414 | + 'class' => 'send-form btn btn-lg btn-template-primary button-сalculate', | |
415 | + 'onclick' => "ga('send', 'event', 'button-сalculate the cost.cec', 'send')", | |
416 | + ] | |
417 | + ) ?> | |
418 | + </p> | |
419 | + <p class="text-center"> | |
420 | + <?= Html::submitButton( | |
421 | + 'Надіслати', | |
422 | + [ | |
423 | + 'class' => 'send-form btn btn-lg btn-template-primary button-order', | |
424 | + 'onclick' => "ga('send', 'event', 'button-order station.cec', 'send')", | |
425 | + ] | |
426 | + ) ?> | |
427 | + </p> | |
409 | 428 | |
410 | 429 | <?php ActiveForm::end(); ?> |
411 | 430 | ... | ... |
frontend/views/site/index.php
... | ... | @@ -292,8 +292,8 @@ $this->registerJs($js, View::POS_END); |
292 | 292 | </div> |
293 | 293 | </div> |
294 | 294 | <div class="head_video_buttons"> |
295 | - <a href="#" class="btn button1 icon_phone modaled" data-title="Замовити консультацію" data-toggle="modal" data-target="#feedback-modal" style="width: 225px;">Замовити <span>консультацію</span></a> | |
296 | - <a href="#" class="btn button2 right modaled" data-title="Розрахувати вартість проекту" data-toggle="modal" data-target="#feedback-modal" style="width: 225px;">Розрахувати <span>вартість проекту</span></a> | |
295 | + <a href="#" class="btn button1 icon_phone modaled init-button-consultation" data-title="Замовити консультацію" data-toggle="modal" data-target="#feedback-modal" style="width: 225px;">Замовити <span>консультацію</span></a> | |
296 | + <a href="#" class="btn button2 right modaled init-button-сalculate" data-title="Розрахувати вартість проекту" data-toggle="modal" data-target="#feedback-modal" style="width: 225px;">Розрахувати <span>вартість проекту</span></a> | |
297 | 297 | </div> |
298 | 298 | </div> |
299 | 299 | </div> |
... | ... | @@ -345,7 +345,7 @@ $this->registerJs($js, View::POS_END); |
345 | 345 | </div> |
346 | 346 | <div class="row"> |
347 | 347 | <div class="col-md-12" style="text-align:center;"> |
348 | - <a href="#" class="btn button1 icon_phone modaled" data-title="Замовити консультацію" data-toggle="modal" data-target="#feedback-modal">Замовити <span>консультацію</span></a> | |
348 | + <a href="#" class="btn button1 icon_phone modaled init-button-consultation" data-title="Замовити консультацію" data-toggle="modal" data-target="#feedback-modal">Замовити <span>консультацію</span></a> | |
349 | 349 | </div> |
350 | 350 | </div> |
351 | 351 | </div> |
... | ... | @@ -385,7 +385,7 @@ $this->registerJs($js, View::POS_END); |
385 | 385 | </a> |
386 | 386 | <div class="buttons text-right row"> |
387 | 387 | <a href="#" class="open_gal sqre_btn blue_arrow" id="gal02"></a> |
388 | - <a href="#" class="btn sqre_btn yellow_calc modaled" data-title="Металоконструкція. Розрахувати вартість проекту" data-toggle="modal" data-target="#feedback-modal"></a> | |
388 | + <a href="#" class="btn sqre_btn yellow_calc modaled init-button-сalculate" data-title="Металоконструкція. Розрахувати вартість проекту" data-toggle="modal" data-target="#feedback-modal"></a> | |
389 | 389 | </div> |
390 | 390 | </div> |
391 | 391 | <div class="col-md-12 row project-right"> |
... | ... | @@ -395,7 +395,7 @@ $this->registerJs($js, View::POS_END); |
395 | 395 | </a> |
396 | 396 | <div class="buttons text-right row"> |
397 | 397 | <a href="#" class="open_gal sqre_btn blue_arrow" id="gal01"></a> |
398 | - <a href="#" class="btn sqre_btn yellow_calc modaled" data-title="Освітлення Харківського шосе. Розрахувати вартість проекту" data-toggle="modal" data-target="#feedback-modal"></a> | |
398 | + <a href="#" class="btn sqre_btn yellow_calc modaled init-button-сalculate" data-title="Освітлення Харківського шосе. Розрахувати вартість проекту" data-toggle="modal" data-target="#feedback-modal"></a> | |
399 | 399 | </div> |
400 | 400 | </div> |
401 | 401 | <div class="col-md-12 row project-right"> |
... | ... | @@ -406,7 +406,7 @@ $this->registerJs($js, View::POS_END); |
406 | 406 | </a> |
407 | 407 | <div class="buttons text-right row"> |
408 | 408 | <a href="#" class="open_gal sqre_btn blue_arrow" id="gal03"></a> |
409 | - <a href="#" class="btn sqre_btn yellow_calc modaled" data-title="Укртрансгаз. Розрахувати вартість проекту" data-toggle="modal" data-target="#feedback-modal"></a> | |
409 | + <a href="#" class="btn sqre_btn yellow_calc modaled init-button-сalculate" data-title="Укртрансгаз. Розрахувати вартість проекту" data-toggle="modal" data-target="#feedback-modal"></a> | |
410 | 410 | </div> |
411 | 411 | </div> |
412 | 412 | </div> |
... | ... | @@ -545,7 +545,7 @@ $this->registerJs($js, View::POS_END); |
545 | 545 | <p class="text-center">Або звернутись до нас та</p> |
546 | 546 | </div> |
547 | 547 | <div class="col-md-12" style="text-align:center;"> |
548 | - <a href="#" class="btn button1 icon_stat modaled" data-title="Замовити електростанцію" data-toggle="modal" data-target="#feedback-modal">Замовити <span>електростанцію</span></a> | |
548 | + <a href="#" class="btn button1 icon_stat modaled init-button-order" data-title="Замовити електростанцію" data-toggle="modal" data-target="#feedback-modal">Замовити <span>електростанцію</span></a> | |
549 | 549 | </div> |
550 | 550 | </div> |
551 | 551 | </div> | ... | ... |
frontend/web/css/style.css
frontend/web/js/script.js
... | ... | @@ -261,8 +261,9 @@ $( |
261 | 261 | $(this).parent().parent().toggleClass("active"); |
262 | 262 | }); |
263 | 263 | |
264 | - $(".panel-heading:before").on('click',function(){ | |
265 | - alert('1'); | |
266 | - }); | |
264 | + | |
265 | + $(".init-button-consultation").on('click', function(){$(".button-consultation").show();$(".button-сalculate").hide();$(".button-order").hide();}); | |
266 | + $(".init-button-сalculate").on('click', function(){$(".button-consultation").hide();$(".button-сalculate").show();$(".button-order").hide();}); | |
267 | + $(".init-button-order").on('click', function(){$(".button-consultation").hide();$(".button-сalculate").hide();$(".button-order").show();}); | |
267 | 268 | } |
268 | 269 | ); |
269 | 270 | \ No newline at end of file | ... | ... |