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,10 +402,29 @@ _________________________________________________________ --> | ||
402 | <?= Html::submitButton( | 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 | </p> | 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 | <?php ActiveForm::end(); ?> | 429 | <?php ActiveForm::end(); ?> |
411 | 430 |
frontend/views/site/index.php
@@ -292,8 +292,8 @@ $this->registerJs($js, View::POS_END); | @@ -292,8 +292,8 @@ $this->registerJs($js, View::POS_END); | ||
292 | </div> | 292 | </div> |
293 | </div> | 293 | </div> |
294 | <div class="head_video_buttons"> | 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 | </div> | 297 | </div> |
298 | </div> | 298 | </div> |
299 | </div> | 299 | </div> |
@@ -345,7 +345,7 @@ $this->registerJs($js, View::POS_END); | @@ -345,7 +345,7 @@ $this->registerJs($js, View::POS_END); | ||
345 | </div> | 345 | </div> |
346 | <div class="row"> | 346 | <div class="row"> |
347 | <div class="col-md-12" style="text-align:center;"> | 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 | </div> | 349 | </div> |
350 | </div> | 350 | </div> |
351 | </div> | 351 | </div> |
@@ -385,7 +385,7 @@ $this->registerJs($js, View::POS_END); | @@ -385,7 +385,7 @@ $this->registerJs($js, View::POS_END); | ||
385 | </a> | 385 | </a> |
386 | <div class="buttons text-right row"> | 386 | <div class="buttons text-right row"> |
387 | <a href="#" class="open_gal sqre_btn blue_arrow" id="gal02"></a> | 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 | </div> | 389 | </div> |
390 | </div> | 390 | </div> |
391 | <div class="col-md-12 row project-right"> | 391 | <div class="col-md-12 row project-right"> |
@@ -395,7 +395,7 @@ $this->registerJs($js, View::POS_END); | @@ -395,7 +395,7 @@ $this->registerJs($js, View::POS_END); | ||
395 | </a> | 395 | </a> |
396 | <div class="buttons text-right row"> | 396 | <div class="buttons text-right row"> |
397 | <a href="#" class="open_gal sqre_btn blue_arrow" id="gal01"></a> | 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 | </div> | 399 | </div> |
400 | </div> | 400 | </div> |
401 | <div class="col-md-12 row project-right"> | 401 | <div class="col-md-12 row project-right"> |
@@ -406,7 +406,7 @@ $this->registerJs($js, View::POS_END); | @@ -406,7 +406,7 @@ $this->registerJs($js, View::POS_END); | ||
406 | </a> | 406 | </a> |
407 | <div class="buttons text-right row"> | 407 | <div class="buttons text-right row"> |
408 | <a href="#" class="open_gal sqre_btn blue_arrow" id="gal03"></a> | 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 | </div> | 410 | </div> |
411 | </div> | 411 | </div> |
412 | </div> | 412 | </div> |
@@ -545,7 +545,7 @@ $this->registerJs($js, View::POS_END); | @@ -545,7 +545,7 @@ $this->registerJs($js, View::POS_END); | ||
545 | <p class="text-center">Або звернутись до нас та</p> | 545 | <p class="text-center">Або звернутись до нас та</p> |
546 | </div> | 546 | </div> |
547 | <div class="col-md-12" style="text-align:center;"> | 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 | </div> | 549 | </div> |
550 | </div> | 550 | </div> |
551 | </div> | 551 | </div> |
frontend/web/css/style.css
@@ -189,4 +189,10 @@ a.sqre_btn { | @@ -189,4 +189,10 @@ a.sqre_btn { | ||
189 | } | 189 | } |
190 | .panel-heading.active a:before{ | 190 | .panel-heading.active a:before{ |
191 | content: "\f107"; | 191 | content: "\f107"; |
192 | +} | ||
193 | + | ||
194 | + | ||
195 | +/* send form buttons */ | ||
196 | +.send-form.btn{ | ||
197 | + display:none; | ||
192 | } | 198 | } |
193 | \ No newline at end of file | 199 | \ No newline at end of file |
frontend/web/js/script.js
@@ -261,8 +261,9 @@ $( | @@ -261,8 +261,9 @@ $( | ||
261 | $(this).parent().parent().toggleClass("active"); | 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 | \ No newline at end of file | 270 | \ No newline at end of file |