Commit 179271646b4f04de8c52b876d9b4c9241afc5478
1 parent
20205ccf
first
Showing
1 changed file
with
1 additions
and
15 deletions
Show diff stats
frontend/views/layouts/main.php
| @@ -26,7 +26,6 @@ AppAsset::register($this); | @@ -26,7 +26,6 @@ AppAsset::register($this); | ||
| 26 | <?php $this->head() ?> | 26 | <?php $this->head() ?> |
| 27 | <script type="text/javascript"> | 27 | <script type="text/javascript"> |
| 28 | $(document).ready(function(){ | 28 | $(document).ready(function(){ |
| 29 | - | ||
| 30 | $('.fb').css('background-color','#354f89'); | 29 | $('.fb').css('background-color','#354f89'); |
| 31 | $('.gp, .vk , .tw, .ok ').css('background-color','#bcbcbc'); | 30 | $('.gp, .vk , .tw, .ok ').css('background-color','#bcbcbc'); |
| 32 | $('#ok_group_widget').stop(false, true).fadeOut(0); | 31 | $('#ok_group_widget').stop(false, true).fadeOut(0); |
| @@ -35,25 +34,18 @@ AppAsset::register($this); | @@ -35,25 +34,18 @@ AppAsset::register($this); | ||
| 35 | $('#google_plus').stop(false, true).fadeOut(0); | 34 | $('#google_plus').stop(false, true).fadeOut(0); |
| 36 | $('.fb-page').stop(false, true).height(320).fadeIn(0); | 35 | $('.fb-page').stop(false, true).height(320).fadeIn(0); |
| 37 | $('.fb_iframe_widget ').height(320); | 36 | $('.fb_iframe_widget ').height(320); |
| 38 | - | ||
| 39 | - | ||
| 40 | $('.gp').click(function(e) { | 37 | $('.gp').click(function(e) { |
| 41 | e.preventDefault(); | 38 | e.preventDefault(); |
| 42 | $('.gp').css('background-color','#c72f21'); | 39 | $('.gp').css('background-color','#c72f21'); |
| 43 | $('.tw, .vk, .fb, .ok').css('background-color','#bcbcbc'); | 40 | $('.tw, .vk, .fb, .ok').css('background-color','#bcbcbc'); |
| 44 | - | ||
| 45 | $('#google_plus').stop(false, true).fadeIn(0); | 41 | $('#google_plus').stop(false, true).fadeIn(0); |
| 46 | $('#twitter').stop(false, true).fadeOut(0); | 42 | $('#twitter').stop(false, true).fadeOut(0); |
| 47 | $('.fb-page').stop(false, true).fadeOut(0); | 43 | $('.fb-page').stop(false, true).fadeOut(0); |
| 48 | $('#ok_group_widget').stop(false, true).fadeOut(0); | 44 | $('#ok_group_widget').stop(false, true).fadeOut(0); |
| 49 | $('#vk_2').stop(false, true).fadeOut(0); | 45 | $('#vk_2').stop(false, true).fadeOut(0); |
| 50 | }); | 46 | }); |
| 51 | - | ||
| 52 | - | ||
| 53 | - | ||
| 54 | $('.tw').click(function(e) { | 47 | $('.tw').click(function(e) { |
| 55 | e.preventDefault(); | 48 | e.preventDefault(); |
| 56 | - | ||
| 57 | $('.tw').css('background-color','#6398c9'); | 49 | $('.tw').css('background-color','#6398c9'); |
| 58 | $('.gp, .vk , .fb, .ok ').css('background-color','#bcbcbc'); | 50 | $('.gp, .vk , .fb, .ok ').css('background-color','#bcbcbc'); |
| 59 | $('#google_plus').stop(false, true).fadeOut(0); | 51 | $('#google_plus').stop(false, true).fadeOut(0); |
| @@ -62,9 +54,6 @@ AppAsset::register($this); | @@ -62,9 +54,6 @@ AppAsset::register($this); | ||
| 62 | $('#ok_group_widget').stop(false, true).fadeOut(0); | 54 | $('#ok_group_widget').stop(false, true).fadeOut(0); |
| 63 | $('#vk_2').stop(false, true).fadeOut(0); | 55 | $('#vk_2').stop(false, true).fadeOut(0); |
| 64 | }); | 56 | }); |
| 65 | - | ||
| 66 | - | ||
| 67 | - | ||
| 68 | $('.vk').click(function(e) { | 57 | $('.vk').click(function(e) { |
| 69 | e.preventDefault(); | 58 | e.preventDefault(); |
| 70 | $('.vk').css('background-color','#065baa'); | 59 | $('.vk').css('background-color','#065baa'); |
| @@ -78,8 +67,6 @@ AppAsset::register($this); | @@ -78,8 +67,6 @@ AppAsset::register($this); | ||
| 78 | $('#twitter').stop(false, true).fadeOut(0); | 67 | $('#twitter').stop(false, true).fadeOut(0); |
| 79 | $('#ok_group_widget').stop(false, true).fadeOut(0); | 68 | $('#ok_group_widget').stop(false, true).fadeOut(0); |
| 80 | }); | 69 | }); |
| 81 | - | ||
| 82 | - | ||
| 83 | $('.ok').click(function(e) { | 70 | $('.ok').click(function(e) { |
| 84 | e.preventDefault(); | 71 | e.preventDefault(); |
| 85 | $('.ok').css('background-color','#f88f15'); | 72 | $('.ok').css('background-color','#f88f15'); |
| @@ -90,7 +77,6 @@ AppAsset::register($this); | @@ -90,7 +77,6 @@ AppAsset::register($this); | ||
| 90 | $('#ok_group_widget').stop(false, true).fadeIn(0); | 77 | $('#ok_group_widget').stop(false, true).fadeIn(0); |
| 91 | $('#twitter').stop(false, true).fadeOut(0); | 78 | $('#twitter').stop(false, true).fadeOut(0); |
| 92 | }); | 79 | }); |
| 93 | - | ||
| 94 | $('.fb').click(function(e) { | 80 | $('.fb').click(function(e) { |
| 95 | e.preventDefault(); | 81 | e.preventDefault(); |
| 96 | $('.fb').css('background-color','#354f89'); | 82 | $('.fb').css('background-color','#354f89'); |
| @@ -101,7 +87,7 @@ AppAsset::register($this); | @@ -101,7 +87,7 @@ AppAsset::register($this); | ||
| 101 | $('#ok_group_widget').stop(false, true).fadeOut(0); | 87 | $('#ok_group_widget').stop(false, true).fadeOut(0); |
| 102 | $('.fb-page').stop(false, true).fadeIn(0); | 88 | $('.fb-page').stop(false, true).fadeIn(0); |
| 103 | }); | 89 | }); |
| 104 | - }); | 90 | + }); |
| 105 | </script> | 91 | </script> |
| 106 | <script src="https://apis.google.com/js/platform.js" async defer> | 92 | <script src="https://apis.google.com/js/platform.js" async defer> |
| 107 | {lang: 'ru'} | 93 | {lang: 'ru'} |