From 36d39dfa415a1714f85a6c6171625c7ccc2d64c8 Mon Sep 17 00:00:00 2001 From: Eugeny Galkovskiy Date: Wed, 6 Sep 2017 12:57:11 +0300 Subject: [PATCH] аналитика --- frontend/views/layouts/main.php | 21 ++++++++++++++++++++- frontend/views/site/index.php | 14 +++++++------- frontend/web/css/style.css | 6 ++++++ frontend/web/js/script.js | 7 ++++--- 4 files changed, 37 insertions(+), 11 deletions(-) diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index b910886..71cccd3 100644 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -402,10 +402,29 @@ _________________________________________________________ --> 'send-form btn btn-lg btn-template-primary', + 'class' => 'send-form btn btn-lg btn-template-primary button-consultation', + 'onclick' => "ga('send', 'event', 'button-consultation.cec', 'send')", ] ) ?>

+

+ 'send-form btn btn-lg btn-template-primary button-сalculate', + 'onclick' => "ga('send', 'event', 'button-сalculate the cost.cec', 'send')", + ] + ) ?> +

+

+ 'send-form btn btn-lg btn-template-primary button-order', + 'onclick' => "ga('send', 'event', 'button-order station.cec', 'send')", + ] + ) ?> +

diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php index c88395c..f1d3e73 100644 --- a/frontend/views/site/index.php +++ b/frontend/views/site/index.php @@ -292,8 +292,8 @@ $this->registerJs($js, View::POS_END);
- Замовити консультацію - Розрахувати вартість проекту + Замовити консультацію + Розрахувати вартість проекту
@@ -345,7 +345,7 @@ $this->registerJs($js, View::POS_END);
@@ -385,7 +385,7 @@ $this->registerJs($js, View::POS_END);
- +
@@ -395,7 +395,7 @@ $this->registerJs($js, View::POS_END);
- +
@@ -406,7 +406,7 @@ $this->registerJs($js, View::POS_END);
- +
@@ -545,7 +545,7 @@ $this->registerJs($js, View::POS_END);

Або звернутись до нас та

- Замовити електростанцію + Замовити електростанцію
diff --git a/frontend/web/css/style.css b/frontend/web/css/style.css index 373d0ad..479ed80 100644 --- a/frontend/web/css/style.css +++ b/frontend/web/css/style.css @@ -189,4 +189,10 @@ a.sqre_btn { } .panel-heading.active a:before{ content: "\f107"; +} + + +/* send form buttons */ +.send-form.btn{ + display:none; } \ No newline at end of file diff --git a/frontend/web/js/script.js b/frontend/web/js/script.js index db2d837..c734bce 100644 --- a/frontend/web/js/script.js +++ b/frontend/web/js/script.js @@ -261,8 +261,9 @@ $( $(this).parent().parent().toggleClass("active"); }); - $(".panel-heading:before").on('click',function(){ - alert('1'); - }); + + $(".init-button-consultation").on('click', function(){$(".button-consultation").show();$(".button-сalculate").hide();$(".button-order").hide();}); + $(".init-button-сalculate").on('click', function(){$(".button-consultation").hide();$(".button-сalculate").show();$(".button-order").hide();}); + $(".init-button-order").on('click', function(){$(".button-consultation").hide();$(".button-сalculate").hide();$(".button-order").show();}); } ); \ No newline at end of file -- libgit2 0.21.4