Commit 88cac309535c5551f4596dd223ec24043ea2ab75
1 parent
0a5f7527
first
Showing
1 changed file
with
79 additions
and
1 deletions
Show diff stats
frontend/views/layouts/main.php
... | ... | @@ -24,7 +24,85 @@ AppAsset::register($this); |
24 | 24 | <title><?= Html::encode($this->title) ?></title> |
25 | 25 | <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"></script> |
26 | 26 | <?php $this->head() ?> |
27 | - | |
27 | + <script type="text/javascript"> | |
28 | + $(document).ready(function(){ | |
29 | + | |
30 | + $('.fb').css('background-color','#354f89'); | |
31 | + $('.gp, .vk , .tw, .ok ').css('background-color','#bcbcbc'); | |
32 | + $('#ok_group_widget').stop(false, true).fadeOut(0); | |
33 | + $('#vk_2').stop(false, true).fadeOut(0); | |
34 | + $('#twitter').stop(false, true).fadeOut(0); | |
35 | + $('#google_plus').stop(false, true).fadeOut(0); | |
36 | + $('.fb-page').stop(false, true).height(320).fadeIn(0); | |
37 | + $('.fb_iframe_widget ').height(320); | |
38 | + }); | |
39 | + | |
40 | + $('.gp').click(function(e) { | |
41 | + e.preventDefault(); | |
42 | + $('.gp').css('background-color','#c72f21'); | |
43 | + $('.tw, .vk, .fb, .ok').css('background-color','#bcbcbc'); | |
44 | + | |
45 | + $('#google_plus').stop(false, true).fadeIn(0); | |
46 | + $('#twitter').stop(false, true).fadeOut(0); | |
47 | + $('.fb-page').stop(false, true).fadeOut(0); | |
48 | + $('#ok_group_widget').stop(false, true).fadeOut(0); | |
49 | + $('#vk_2').stop(false, true).fadeOut(0); | |
50 | + }); | |
51 | + | |
52 | + | |
53 | + | |
54 | + $('.tw').click(function(e) { | |
55 | + e.preventDefault(); | |
56 | + | |
57 | + $('.tw').css('background-color','#6398c9'); | |
58 | + $('.gp, .vk , .fb, .ok ').css('background-color','#bcbcbc'); | |
59 | + $('#google_plus').stop(false, true).fadeOut(0); | |
60 | + $('#twitter').stop(false, true).fadeIn(0); | |
61 | + $('.fb-page').stop(false, true).fadeOut(0); | |
62 | + $('#ok_group_widget').stop(false, true).fadeOut(0); | |
63 | + $('#vk_2').stop(false, true).fadeOut(0); | |
64 | + }); | |
65 | + | |
66 | + | |
67 | + | |
68 | + $('.vk').click(function(e) { | |
69 | + e.preventDefault(); | |
70 | + $('.vk').css('background-color','#065baa'); | |
71 | + $('.gp, .tw , .fb, .ok ').css('background-color','#bcbcbc'); | |
72 | + $('#google_plus').stop(false, true).fadeOut(0); | |
73 | + | |
74 | + $('#vk_2').stop(false, true).fadeIn(0); | |
75 | + $('#vkwidget1 , #vk_2 ').height(278); | |
76 | + // $('#vk_2').height(278); | |
77 | + $('.fb-page').stop(false, true).fadeOut(0); | |
78 | + $('#twitter').stop(false, true).fadeOut(0); | |
79 | + $('#ok_group_widget').stop(false, true).fadeOut(0); | |
80 | + }); | |
81 | + | |
82 | + | |
83 | + $('.ok').click(function(e) { | |
84 | + e.preventDefault(); | |
85 | + $('.ok').css('background-color','#f88f15'); | |
86 | + $('.gp, .vk , .tw, .fb ').css('background-color','#bcbcbc'); | |
87 | + $('#google_plus').stop(false, true).fadeOut(0); | |
88 | + $('#vk_2').stop(false, true).fadeOut(0); | |
89 | + $('.fb-page').stop(false, true).fadeOut(0); | |
90 | + $('#ok_group_widget').stop(false, true).fadeIn(0); | |
91 | + $('#twitter').stop(false, true).fadeOut(0); | |
92 | + }); | |
93 | + | |
94 | + $('.fb').click(function(e) { | |
95 | + e.preventDefault(); | |
96 | + $('.fb').css('background-color','#354f89'); | |
97 | + $('.gp, .vk , .tw, .ok ').css('background-color','#bcbcbc'); | |
98 | + $('#google_plus').stop(false, true).fadeOut(0); | |
99 | + $('#vk_2').stop(false, true).fadeOut(0); | |
100 | + $('#twitter').stop(false, true).fadeOut(0); | |
101 | + $('#ok_group_widget').stop(false, true).fadeOut(0); | |
102 | + $('.fb-page').stop(false, true).fadeIn(0); | |
103 | + }); | |
104 | + | |
105 | + </script> | |
28 | 106 | </head> |
29 | 107 | <body> |
30 | 108 | <?php $this->beginBody() ?> | ... | ... |