Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Файл - pads.js (Старый размер - 47161 | Новый - 44686):
- 39. - decr: function(id, toZero) {
- 40. + decr: function(id) {
- 43. - handlePageCount(id, toZero ? 0 : (vk.counts[id] - 1), mp[id], 1);
- 44. + handlePageCount(id, (vk.counts[id] - 1), mp[id], 1);
- 65. - var d = Pads.coords[id], c = _pads.cache[id], el = Pads.getEl(id), xy = getXY(el, true),
- 66. - barHeight = getXY('page_layout')[1], topOffset = 33 + barHeight;
- 67. + var d = Pads.coords[id], c = _pads.cache[id], el = Pads.getEl(id), xy = getXY(el, true);
- 71. - fixed = (posStyle == 'fixed' || posStyle != 'fixed' && y >= topOffset && isVisible(gp) || reverse || !ge('head_play_btn')), l, r, t, b;
- 72. + fixed = (posStyle == 'fixed' || posStyle != 'fixed' && y >= 33 && isVisible(gp) || reverse || !ge('head_play_btn')), l, r, t, b;
- 81. - t = reverse ? 'auto' : ((y >= topOffset && isVisible(gp) || !playBtn) ? 12 : 46) + barHeight;
- 82. + t = reverse ? 'auto' : ((y >= 33 && isVisible(gp) || !playBtn) ? 12 : 46);
- 88. - toggleClass(_pads.arrow, 'head', (y < topOffset || !isVisible(gp)) && playBtn && !_pads.gpClicked);
- 89. - toggleClass(gp, 'head', (y < topOffset || !isVisible(gp)) && playBtn && !_pads.gpClicked);
- 90. - toggleClass(_pads.arrow, 'right', (y >= topOffset && isVisible(gp) || !playBtn) && !hasClass(gp, 'reverse'));
- 91. - toggleClass(_pads.arrow, 'left', (y >= topOffset && isVisible(gp) || !playBtn) && hasClass(gp, 'reverse'));
- 92. - var toup = (y < topOffset || !isVisible(gp)) && playBtn && !_pads.gpClicked;
- 93. + toggleClass(_pads.arrow, 'head', (y < 33 || !isVisible(gp)) && playBtn && !_pads.gpClicked);
- 94. + toggleClass(gp, 'head', (y < 33 || !isVisible(gp)) && playBtn && !_pads.gpClicked);
- 95. + toggleClass(_pads.arrow, 'right', (y >= 33 && isVisible(gp) || !playBtn) && !hasClass(gp, 'reverse'));
- 96. + toggleClass(_pads.arrow, 'left', (y >= 33 && isVisible(gp) || !playBtn) && hasClass(gp, 'reverse'));
- 97. + var toup = (y < 33 || !isVisible(gp)) && playBtn && !_pads.gpClicked;
- 137. - cntr -= 46 + barHeight;
- 138. + cntr -= 46;
- 141. - _pads.wrap.style.top = (46 + barHeight) + 'px';
- 142. + _pads.wrap.style.top = 46 + 'px';
- 159. - var y = scrollGetY(), barHeight = getXY('page_layout')[1], topOffset = 33 + barHeight;
- 160. + var y = scrollGetY();
- 171. - setStyle(_pads.wrap, {bottom: fixed ? '15px' : 'auto', top: fixed ? 'auto' : 46 + barHeight});
- 172. + setStyle(_pads.wrap, {bottom: fixed ? '15px' : 'auto', top: fixed ? 'auto' : '46px'});
- 175. - } else if (y >= topOffset && isVisible(gp) && !fixed || !playBtn) {
- 176. + } else if (y >= 33 && isVisible(gp) && !fixed || !playBtn) {
- 196. - setStyle(_pads.wrap, {top: 46 + barHeight, bottom: 'auto'});
- 197. + setStyle(_pads.wrap, {top: '46px', bottom: 'auto'});
- 314. - var topOffset = 33 + getXY('page_layout')[1];
- 315. - toggleClass(ge('gp'), 'head', id == 'mus' && scrollGetY() < topOffset && !hasClass(ge('gp'), 'reverse') && !_pads.gpClicked);
- 316. + toggleClass(ge('gp'), 'head', id == 'mus' && scrollGetY() < 33 && !hasClass(ge('gp'), 'reverse') && !_pads.gpClicked);
- 446. - if (_pads.shown == 'mus') {
- 447. - if (ge('gp')) {
- 448. - removeClass(ge('gp').firstChild, 'active');
- 449. - _pads.gpClicked = false;
- 450. - }
- 451. - if (window.audioPlayer && audioPlayer.controls && audioPlayer.controls.pd && audioPlayer.controls.pd.status && audioPlayer.controls.pd.status.tt) {
- 452. - hide(audioPlayer.controls.pd.status.tt.container);
- 453. - }
- 454. + if (_pads.shown == 'mus' && ge('gp')) {
- 455. + removeClass(ge('gp').firstChild, 'active');
- 456. + _pads.gpClicked = false;
- 523. - ajax.post('pads.php', {act: 'pad', offset: _pads.cur.offset, pad_id: _pads.shown, pad_section: _pads.cur.sect || 0}, {
- 524. + ajax.post('pads.php', {act: 'pad', offset: _pads.cur.offset, pad_id: _pads.shown}, {
- 723. - var barHeight = getXY('page_layout')[1];
- 724. - if (lh) wh = Math.max(Math.min(wh, lh - 104 - (hasClass(_pads.arrow, 'right') ? 12 : 46) + barHeight), 200);
- 725. + if (lh) wh = Math.max(Math.min(wh, lh - 104 - (hasClass(_pads.arrow, 'right') ? 12 : 46)), 200);
- 989. - grDone: function(gid, fail, res, block, text) {
- 990. + grDone: function(gid, fail, text) {
- 995. - }
- 996. - } else {
- 997. - if (_pads.cur.processed[gid] > 0 && vk.counts.gr >= _pads.cur.savedcnts[gid]) {
- 998. - Pads.decr('gr');
- 999. - for (var i in _pads.cur.savedcnts) {
- 1000. - --_pads.cur.savedcnts[i];
- 1001. - }
- 1003. - if (block > 0) {
- 1004. - text = '<div class="pads_gr_clubinv_block">' + text.replace('{club}', '<b>' + val(domPS(ge('pads_clubinv' + gid))) + '</b>') + '</div>';
- 1005. - text += '<div class="pads_gr_clubinv_block"><a onclick="Pads.grProcess(this, ' + gid + ', -2, -1)">' + getLang('global_cancel') + '</a></div>';
- 1006. - } else if (!block && res < 0 && ge('pads_clubinv' + gid)) {
- 1007. - text += '<div class="pads_gr_clubinv_block"><a onclick="Pads.grProcess(this, ' + gid + ', -2, 1)">' + val('groups_block_clubinv').replace('{club}', '<b>' + val(domPS(ge('pads_clubinv' + gid))) + '</b>') + '</a></div>';
- 1008. + } else if (_pads.cur.processed[gid] > 0 && vk.counts.gr >= _pads.cur.savedcnts[gid]) {
- 1009. + Pads.decr('gr');
- 1010. + for (var i in _pads.cur.savedcnts) {
- 1011. + --_pads.cur.savedcnts[i];
- 1017. - if (!fail && block < 0) {
- 1018. - text = btns.oldtext;
- 1019. - }
- 1022. - className: 'pad_gr_result',
- 1023. - oldtext: val(btns)
- 1024. + className: 'pad_gr_result'
- 1028. - grProcess: function(el, gid, res, block) {
- 1029. + grProcess: function(el, gid, res) {
- 1040. - ajax.post('al_groups.php', {act: act, gid: gid, from: 'pad', context: context, hash: _pads.hash, block: block}, {
- 1041. - onDone: Pads.grDone.pbind(gid, false, res, block),
- 1042. - onFail: Pads.grDone.pbind(gid, true, res, block),
- 1043. + ajax.post('al_groups.php', {act: act, gid: gid, from: 'pad', context: context, hash: _pads.hash}, {
- 1044. + onDone: Pads.grDone.pbind(gid, false),
- 1045. + onFail: Pads.grDone.pbind(gid, true),
- 1060. - }
- 1061. - if (trim((
- 1062. - window.getSelection && window.getSelection() ||
- 1063. - document.getSelection && document.getSelection() ||
- 1064. - document.selection && document.selection.createRange().text || ''
- 1065. - ).toString()).length) {
- 1066. - return;
- 1192. - var op = _pads.editing[nws], t = ge('pad_nws_field' + nws), d = val('pad_nwsd' + nws).split('/'), el = ge('pad_nws' + nws);
- 1193. + var t = ge('pad_nws_field' + nws), d = val('pad_nwsd' + nws).split('/'), el = ge('pad_nws' + nws);
- 1195. - if (!op) return;
- 1196. + if (!t) return;
- 1201. - }
- 1202. - if (trim((
- 1203. - window.getSelection && window.getSelection() ||
- 1204. - document.getSelection && document.getSelection() ||
- 1205. - document.selection && document.selection.createRange().text || ''
- 1206. - ).toString()).length) {
- 1207. - return;
- 1210. - if (op) {
- 1211. + if (t) {
- 1213. - var v = t ? val(t) : '';
- 1214. - if (trim(v) && op.greet.indexOf(v) !== 0) return (ev === true) ? true : elfocus(t);
- 1215. + var v = val(t);
- 1216. + if (trim(v) && _pads.editing[nws].greet.indexOf(v) !== 0) return (ev === true) ? true : elfocus(t);
- 1218. - if (t) cleanElems(t);
- 1219. + cleanElems(t);
- 1234. - addClass(el, 'pad_nws_reply');
- 1235. - _pads.editing[nws] = opts;
- 1236. - if (opts.disabled) {
- 1237. - var c = geByClass1('pad_nws_cont', el).appendChild(ce('div', {
- 1238. - className: 'pad_nwsa pad_nwsr',
- 1239. - innerHTML: val('pad_nws_dis_tpl').replace('{text}', opts.disabled)
- 1240. - }));
- 1241. - } else {
- 1242. - var c = geByClass1('pad_nws_cont', el).appendChild(ce('div', {
- 1243. - className: 'pad_nwsa pad_nwsr',
- 1244. - innerHTML: val('pad_nws_reply_tpl').replace('{field}', '\
- 1245. + var c = geByClass1('pad_nws_cont', el).appendChild(ce('div', {
- 1246. + className: 'pad_nwsa pad_nwsr',
- 1247. + innerHTML: val('pad_nws_reply_tpl').replace('{field}', '\
- 1254. - }));
- 1255. - t = ge('pad_nws_field' + nws);
- 1256. - placeholderSetup(t, {back: true});
- 1257. - autosizeSetup(t, {minHeight: 31, onResize: Pads.update});
- 1258. - }
- 1259. + }));
- 1260. + t = ge('pad_nws_field' + nws);
- 1261. + addClass(el, 'pad_nws_reply');
- 1262. + placeholderSetup(t, {back: true});
- 1263. + autosizeSetup(t, {minHeight: 31, onResize: Pads.update});
- 1264. + _pads.editing[nws] = opts;
- 1265. +
- 1281. - if (t) elfocus(t);
- 1282. + elfocus(t);
- 1360. - if (!post.indexOf('topic_comment')) {
- 1361. + if (!post.indexOf('topic_post')) {
- 1363. - post = post.replace('topic_comment', '');
- 1364. + post = post.replace('topic_post', '');
- 1427. - },
- 1428. - apRemoveAll: function(hash) {
- 1429. - ajax.post('apps', {act: 'a_remove_all_notifies', hash: hash, requests: 1}, {
- 1430. - onDone: function() {
- 1431. - Pads.decr('ap', true);
- 1432. - }
- 1433. - });
- ------
- Файл - pads.css (Старый размер - 31495 | Новый - 0):
- 0. - #pads_css {
- 1. - display: none;
- 2. - }
- 3. -
- 4. - #pad_rows {
- 5. - overflow: hidden;
- 6. - }
- 7. - .pad_no_fixed {
- 8. - position: absolute;
- 9. - }
- 10. - #pad_wrap {
- 11. - z-index: 400;
- 12. - -webkit-box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.35);
- 13. - -moz-box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.35);
- 14. - box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.35);
- 15. - }
- 16. - #pad_cont {
- 17. - background: #FFF;
- 18. - overflow: hidden;
- 19. - position: relative;
- 20. - }
- 21. - #pad_cont.pad_loading {
- 22. - background: #FFF url(/images/upload.gif) no-repeat center center;
- 23. - height: 100px;
- 24. - border: 1px solid #ADBAC7;
- 25. - }
- 26. - #pad_title_wrap {
- 27. - background-color: #597DA3;
- 28. - border: 1px solid;
- 29. - border-color: #45688E #43658A;
- 30. - padding: 0px;
- 31. - color: #FFF;
- 32. - font-size: 1.18em;
- 33. - font-weight: bold;
- 34. - }
- 35. - #pad_title {
- 36. - border-top: 1px solid #648CB7;
- 37. - padding: 6px 10px 8px 10px;
- 38. - }
- 39. - #pad_title_right {
- 40. - font-size: 0.847em;
- 41. - color: #FFF;
- 42. - font-weight: normal;
- 43. - line-height: 13px;
- 44. - padding: 9px 10px;
- 45. - color: #C7D7E9;
- 46. - -webkit-transition: color 100ms linear;
- 47. - -moz-transition: color 100ms linear;
- 48. - -o-transition: color 100ms linear;
- 49. - transition: color 100ms linear;
- 50. - }
- 51. - #pad_title_right:hover {
- 52. - color: #FFF;
- 53. - text-decoration: none;
- 54. - }
- 55. - #pad_content {
- 56. - position: relative;
- 57. - overflow: hidden;
- 58. - border: 1px solid #ADBAC7;
- 59. - border-width: 0px 1px;
- 60. - }
- 61. - #pad_controls {
- 62. - border: 1px solid #ADBAC7;
- 63. - border-width: 1px 1px 0px;
- 64. - }
- 65. - #pad_footer_wrap {
- 66. - border: 1px solid #999;
- 67. - border-top: 0px;
- 68. - }
- 69. - #pad_footer_wrap.music {
- 70. - border-color: #ADBAC7;
- 71. - }
- 72. - #pad_footer {
- 73. - padding: 8px 5px 7px;
- 74. - height: 30px;
- 75. - background-color: #F2F2F2;
- 76. - border-top: 1px solid #DAE1E8;
- 77. - }
- 78. - #pad_footer_text {
- 79. - padding: 8px 8px 0px;
- 80. - }
- 81. - .pad_close_btn {
- 82. - margin: 2px 5px;
- 83. - }
- 84. - .pad_none {
- 85. - color: #777;
- 86. - font-size: 12px;
- 87. - text-align: center;
- 88. - line-height: 160%;
- 89. - padding: 30px 0px;
- 90. - border: 1px solid #ADBAC7;
- 91. - }
- 92. - div.pad_btn_prg {
- 93. - background: url(/images/upload.gif) no-repeat center center;
- 94. - cursor: default;
- 95. - }
- 96. - div.pad_btn_prg .button {
- 97. - visibility: hidden;
- 98. - }
- 99. -
- 100. - #pad_layer_bg {
- 101. - top: 0;
- 102. - left: 0;
- 103. - width: 100%;
- 104. - height: 100%;
- 105. - overflow: hidden;
- 106. - background: #000;
- 107. - opacity: 0.2;
- 108. - filter: alpha(opacity=20);
- 109. - z-index: 350;
- 110. - }
- 111. - @-moz-document url-prefix() {
- 112. - #pad_layer_bg {
- 113. - background: url(/images/layer_bg_lite.png);
- 114. - opacity: 1 !important;
- 115. - }
- 116. - }
- 117. -
- 118. - #pad_arrow {
- 119. - position: absolute;
- 120. - left: -10px;
- 121. - top: 43px;
- 122. - z-index: 410;
- 123. - width: 12px;
- 124. - height: 17px;
- 125. - background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAARCAYAAADpPU2iAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAEBSURBVHjaYvj//z8DNgwETEDMDKVZ1+46/h8EAAIIxCEEmJE5AAHEgk0FIyMjzHQ2IAZZxwiTAwggdGeAFLECMTsQcwCxIBALrdt75j8MAAQQupthirlBCoFYAlkxCAAEELIGdMVS6IpBACCAkBWzElIMAgABhKyBC4gFgFgSl2IQAAggZA0g04XxKQYBgABCDhmwBiCWw6cJIIAwbABiWSBWwaUJIICQbYD7AYgVgFgdmyaAAEKOMA6kUJIGYkVsNgEEEAMWW5A1yaH7CSCAcCULLlhMA7E4EIvAUitAALEgpam/QOovMOGBNP1DS49wPkAAYUutMMmfKKkUCgACDAApwDnZIBTuSQAAAABJRU5ErkJggg==) no-repeat;
- 126. - }
- 127. - #pad_arrow.head {
- 128. - width: 17px;
- 129. - height: 12px;
- 130. - left: auto;
- 131. - right: 124px;
- 132. - top: -10px;
- 133. - background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAMCAYAAACEJVa/AAAAsUlEQVR42pWRUQrCMAyGy8rY6F5mFeYURUHw8HoAwee9eJreoEskKSG0uhU+ysqfjywxJn+sulcdS9QFFgkw2AIO6AROiKpfkloU98BW0NN7Qzlb6qChoAdG4AScn+9PpG+vRFmJo+ARuAA3FIQQIokOSlRpiRRcgTsLGCVqxXy+Mv6FPbYvO9CQCHMbquNtJsnAM8gJlMiLjaVOcPq7fwIl6tLaH68pMksEjKwzawpLzG2yBJvr9mIGAAAAAElFTkSuQmCC) no-repeat;
- 134. - }
- 135. - #pad_arrow.head.no_data {
- 136. - width: 17px;
- 137. - height: 12px;
- 138. - left: auto;
- 139. - right: 124px;
- 140. - top: -10px;
- 141. - background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAMCAYAAACEJVa/AAAAsElEQVR42pWR0QrCMAxFy8rY6F5mFeYURUHw4/UDBJ/34j+VLpGkhNDqVjiUlZtDlhiTP1bdq44l6gKLBBhsAQd0AidE1S9JLYp7YCvo6b2hnC110FDQAyNwAs7P9yfSt1eirMRR8AhcgBsKQgiRRAclqrRECq7AnQWMErViPl8Z/8Ie25cdaEiEuQ3V8TaTZOAZ5ARK5MXGUic4/d0/gRJ1ae2P1xSZJQJG1pk1hSVmRScMrgyoQyAAAAAASUVORK5CYII%3D) no-repeat;
- 142. - }
- 143. - #pad_arrow.right {
- 144. - width: 12px;
- 145. - height: 17px;
- 146. - left: auto;
- 147. - right: -10px;
- 148. - top: 17px;
- 149. - background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAARCAYAAADpPU2iAAAArUlEQVR42pWSTQrCQAyFQ4eh4mz8A6uiKAgeXg8guHbjaeYGbQYivkkTxcK3e9880oRyzv31/uyJKAEBqD8QZsxCmDJRcIUVs2Y6kFqRQiUUbo9XkQ7CTqQEbaESQDozJyVNTAGkC3NkNjLbp0ULqmnPLKUlmg3GTCgEVwDprwY9A32bYQt/KbqCEW6rjRvhzgg33qZLcC6LGp+FuqX3GaTRq44Q4UU7bAjNL2EAU9kEmwVnt3EAAAAASUVORK5CYII%3D) no-repeat;
- 150. - }
- 151. - #pad_arrow.left {
- 152. - width: 12px;
- 153. - height: 17px;
- 154. - left: -10px;
- 155. - right: auto;
- 156. - top: auto;
- 157. - bottom: 15px;
- 158. - background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAARCAYAAADpPU2iAAAAr0lEQVR42pWSTQoCMQxGS0NROpuxCv7hoCB4eD2A4NqNp+kNZr5KAyHYMA48uvleMmnqXPvzgOoZ7s/3mHMe3QwhzBF8DXYglrMlcMUFWIIVSI/X5xvWghfhUjmBnQxrQYcPOiyFIP65GdZCGa4H+1ZYC6X62gqzQFIAw18dwAlcrRlIzwDO4GbdEtVF8S0dweVXJ73hqKRBz9R6FpE3DbZgYz2+ILqlSm8JJOgYFiaDlASbG44/fAAAAABJRU5ErkJggg%3D%3D) no-repeat;
- 159. - }
- 160. - #pad_arrow.blue {
- 161. - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAARCAYAAADpPU2iAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAM1JREFUeNqMksEJwkAQAC/nqecVIAr+BC3EAqwiFdiFYAVWYTkKPnwZfPg8TxKNu7ILS8hqAvO6mWyySWb0qwcMCbPKt/fxZGqcImcU9Cmo+cApsqUzlAfASwtYxjt7wq03+0sI/itYRQ6EB/nMsgza5ADyUcocdJblBF7hCNFkOYHXiC940mQOagJXVx12+SLG9DMwJD+BBwLRUot4whsogchoEU/oHMkP1xYliOYyso2JMkoELmJ2K67qz8dRRYuw//5WI9ZcNp/iI8AAlvJWguL+p+oAAAAASUVORK5CYII=);
- 162. - }
- 163. -
- 164. - /* scrollbars */
- 165. - .pad_scrollbar_cont {
- 166. - width: 9px;
- 167. - height: 100%;
- 168. - margin-top: 0px;
- 169. - position: absolute;
- 170. - background: rgba(200, 200, 200, 0);
- 171. - -webkit-transition: all 150ms linear;
- 172. - -moz-transition: all 150ms linear;
- 173. - -o-transition: all 150ms linear;
- 174. - transition: all 150ms linear;
- 175. - z-index: 500;
- 176. - cursor: pointer;
- 177. - }
- 178. - .pad_scrollbar_cont.scrollbar_c_overed {
- 179. - background: rgba(235, 235, 245, 0.4);
- 180. - width: 11px;
- 181. - }
- 182. - .pad_scrollbar_inner {
- 183. - background: #DAE1E8;
- 184. - width: 6px;
- 185. - height: 26px;
- 186. - margin-left: 1px;
- 187. - -webkit-border-radius: 3px;
- 188. - -moz-border-radius: 3px;
- 189. - border-radius: 3px;
- 190. - cursor: pointer;
- 191. - -webkit-transition: width 150ms linear, background-color 200ms linear;
- 192. - -moz-transition: width 150ms linear, background-color 200ms linear;
- 193. - -o-transition: width 150ms linear, background-color 200ms linear;
- 194. - transition: width 150ms linear, background-color 200ms linear;
- 195. - }
- 196. - .scrollbar_c_overed .pad_scrollbar_inner {
- 197. - width: 8px;
- 198. - -webkit-border-radius: 4px;
- 199. - -moz-border-radius: 4px;
- 200. - border-radius: 4px;
- 201. - }
- 202. - .pad_scrollbar_inner:hover,
- 203. - .pad_scrollbar_hovered {
- 204. - background: #BEC8D3;
- 205. - }
- 206. - .pad_scrollbar_top {
- 207. - position: absolute;
- 208. - height: 3px;
- 209. - margin-top: -1px;
- 210. - background: #555555;
- 211. - opacity: 0.12;
- 212. - filter: alpha(opacity=12);
- 213. - display: none;
- 214. - z-index: 20;
- 215. - }
- 216. - .pad_scrollbar_bottom {
- 217. - position: absolute;
- 218. - height: 3px;
- 219. - margin-top: -2px;
- 220. - background: #555555;
- 221. - opacity: 0.12;
- 222. - filter: alpha(opacity=12);
- 223. - z-index: 20;
- 224. - }
- 225. - #pad_more {
- 226. - background: #EFF1F3;
- 227. - display: block;
- 228. - text-align: center;
- 229. - color: #738392;
- 230. - padding: 8px;
- 231. - margin: 0 10px 10px;
- 232. - }
- 233. - #pad_more:hover {
- 234. - text-decoration: none;
- 235. - background: #E9EDF1;
- 236. - }
- 237. - .pad_more_arrow {
- 238. - width: 10px;
- 239. - height: 10px;
- 240. - padding: 2px 0px 0px 4px;
- 241. - background: url('/images/icons/wall_fixed_more_arrows.gif') 1px 2px no-repeat;
- 242. - }
- 243. - .pad_error {
- 244. - color: #800;
- 245. - }
- 246. - .pad_decl {
- 247. - margin-left: 10px;
- 248. - }
- 249. - .pad_mini_friend {
- 250. - width: 32px;
- 251. - }
- 252. -
- 253. - .pad_fr_rows,
- 254. - .pad_ph_rows,
- 255. - .pad_vid_rows {
- 256. - width: 376px;
- 257. - }
- 258. - .pad_fr_addinfo,
- 259. - .pad_gr_addinfo,
- 260. - .pad_ap_addinfo {
- 261. - padding-top: 7px;
- 262. - color: #777;
- 263. - }
- 264. - .pad_fr_done {
- 265. - padding-top: 9px;
- 266. - }
- 267. - .add_fr_one,
- 268. - .add_ap_one {
- 269. - padding-bottom: 5px;
- 270. - }
- 271. - .pad_fr_img,
- 272. - .pad_ap_img {
- 273. - width: 75px;
- 274. - }
- 275. - .pad_ap_list_img {
- 276. - width: 50px;
- 277. - -webkit-border-radius: 5px;
- 278. - -moz-border-radius: 5px;
- 279. - border-radius: 5px;
- 280. - }
- 281. - .pad_fr_msg,
- 282. - .pad_ap_msg {
- 283. - padding-top: 5px;
- 284. - overflow: hidden;
- 285. - -o-text-overflow: ellipsis;
- 286. - text-overflow: ellipsis;
- 287. - }
- 288. - .pad_ap_msg {
- 289. - padding: 7px 0px 5px;
- 290. - }
- 291. - .pad_fr_common,
- 292. - .pad_gr_friends,
- 293. - .pad_ap_friends {
- 294. - padding-top: 8px;
- 295. - height: 32px;
- 296. - overflow: hidden;
- 297. - }
- 298. - .pad_fr,
- 299. - .pad_gr,
- 300. - .pad_ap {
- 301. - padding: 10px 0px;
- 302. - margin: 0px 12px;
- 303. - border-bottom: 1px solid #E4E8ED;
- 304. - }
- 305. - .pad_fr:last-child,
- 306. - .pad_gr:last-child,
- 307. - .pad_ap:last-child {
- 308. - border-bottom: 0px;
- 309. - }
- 310. - .pad_fr_phwrap,
- 311. - .pad_gr_phwrap,
- 312. - .pad_ap_phwrap {
- 313. - height: 75px;
- 314. - overflow: hidden;
- 315. - position: relative;
- 316. - }
- 317. - .pad_ap_list_phwrap {
- 318. - height: 50px;
- 319. - overflow: hidden;
- 320. - -webkit-border-radius: 5px;
- 321. - -moz-border-radius: 5px;
- 322. - border-radius: 5px;
- 323. - }
- 324. - .pad_gr_phwrap {
- 325. - height: 100px;
- 326. - }
- 327. - .pad_fr_info,
- 328. - .pad_ap_info {
- 329. - margin-left: 85px;
- 330. - width: 265px;
- 331. - }
- 332. - .pad_ap_list_info {
- 333. - margin-left: 60px;
- 334. - width: 265px;
- 335. - color: #777777;
- 336. - }
- 337. - .pad_gr_info {
- 338. - margin-left: 110px;
- 339. - width: 335px;
- 340. - }
- 341. - .pad_fr_name,
- 342. - .pad_ap_name {
- 343. - padding-top: 2px;
- 344. - }
- 345. - .pad_ap_list_name {
- 346. - padding: 2px 0px 4px;
- 347. - }
- 348. - .pad_fr_lnk,
- 349. - .pad_gr_lnk,
- 350. - .pad_ap_lnk {
- 351. - font-weight: bold;
- 352. - color: #45688E;
- 353. - }
- 354. - .pad_fr_phbig {
- 355. - position: absolute;
- 356. - color: #FFF;
- 357. - margin-top: 75px;
- 358. - background: #333;
- 359. - background: rgba(0, 0, 0, 0.5);
- 360. - width: 75px;
- 361. - height: 15px;
- 362. - line-height: 15px;
- 363. - padding: 4px 0px 6px 0px;
- 364. - text-align: center;
- 365. - filter: alpha(opacity=75);
- 366. - }
- 367. - @media all and (min-width:0) { /* IE9-10 */
- 368. - .pad_fr_phbig { filter: none; }
- 369. - }
- 370. - .pad_fr_phbig:hover {
- 371. - text-decoration: none;
- 372. - }
- 373. - .pad_fr_phlabel {
- 374. - opacity: 0.75;
- 375. - -webkit-transition: opacity 100ms linear;
- 376. - -moz-transition: opacity 100ms linear;
- 377. - -o-transition: opacity 100ms linear;
- 378. - transition: opacity 100ms linear;
- 379. - padding: 0px 0px 1px;
- 380. - }
- 381. - .pad_fr_phbig:hover .pad_fr_phlabel {
- 382. - opacity: 1;
- 383. - }
- 384. - .pad_fr_tip {
- 385. - line-height: 160%;
- 386. - width: 200px;
- 387. - }
- 388. - .pad_fr_btns,
- 389. - .pad_gr_btns,
- 390. - .pad_ap_btns {
- 391. - padding-top: 10px;
- 392. - }
- 393. - .pad_fr_result,
- 394. - .pad_gr_result,
- 395. - .pad_ap_result {
- 396. - width: 230px;
- 397. - color: #777;
- 398. - height: 30px;
- 399. - padding-top: 5px;
- 400. - line-height: 160%;
- 401. - }
- 402. - .pad_ap_result {
- 403. - width: 260px;
- 404. - }
- 405. - .pad_fr_online {
- 406. - color: #BBB;
- 407. - padding: 0px 10px;
- 408. - padding-top: 5px;
- 409. - }
- 410. - b.pad_fr_mob_onl {
- 411. - background-position: -1px 0px;
- 412. - *background-position: -1px -1px;
- 413. - }
- 414. -
- 415. - .pad_ph,
- 416. - .pad_vid {
- 417. - padding: 10px 0px;
- 418. - margin: 0px 12px;
- 419. - border-bottom: 1px solid #E4E8ED;
- 420. - }
- 421. - .pad_ph:last-child,
- 422. - .pad_vid:last-child {
- 423. - border-bottom: 0px;
- 424. - }
- 425. - .pad_ph_info,
- 426. - .pad_vid_info {
- 427. - margin-left: 60px;
- 428. - height: 50px;
- 429. - }
- 430. - .pad_ph_about,
- 431. - .pad_vid_about {
- 432. - width: 290px;
- 433. - padding-top: 2px;
- 434. - white-space: nowrap;
- 435. - overflow: hidden;
- 436. - -o-text-overflow: ellipsis;
- 437. - text-overflow: ellipsis;
- 438. - color: #777;
- 439. - }
- 440. - .pad_ph_lnk,
- 441. - .pad_vid_wrap {
- 442. - display: block;
- 443. - overflow: hidden;
- 444. - padding-top: 10px;
- 445. - text-align: center;
- 446. - }
- 447. - .pad_ph_tagger,
- 448. - .pad_vid_tagger {
- 449. - font-weight: bold;
- 450. - }
- 451. - .pad_ph_img {
- 452. - max-width: 320px;
- 453. - *width: 320px;
- 454. - vertical-align: top;
- 455. - }
- 456. - .pad_ph_btns,
- 457. - .pad_vid_btns {
- 458. - padding-top: 10px;
- 459. - }
- 460. - .pad_ph_result,
- 461. - .pad_vid_result {
- 462. - color: #777;
- 463. - height: 21px;
- 464. - padding-top: 14px;
- 465. - line-height: 160%;
- 466. - width: 320px;
- 467. - margin: 0px auto;
- 468. - }
- 469. -
- 470. - .pad_vid_img {
- 471. - width: 320px;
- 472. - height: 240px;
- 473. - }
- 474. - .pad_vid_desc {
- 475. - padding-top: 10px;
- 476. - font-weight: bold;
- 477. - width: 320px;
- 478. - margin: 0px auto;
- 479. - }
- 480. - .pad_vid_name {
- 481. - color: #45688E;
- 482. - }
- 483. - .pad_vid_name:hover {
- 484. - text-decoration: none;
- 485. - }
- 486. - .pad_vid_title:hover {
- 487. - text-decoration: underline;
- 488. - }
- 489. - .pad_vid_icon {
- 490. - width: 15px;
- 491. - height: 11px;
- 492. - margin-top: 3px;
- 493. - background: url(/images/icons/mono_iconset.gif?8) no-repeat 0px -75px;
- 494. - }
- 495. - .pad_vid_dur {
- 496. - color: #000;
- 497. - }
- 498. - .pad_vid_wrap {
- 499. - width: 320px;
- 500. - margin: 0px auto;
- 501. - max-height: 240px;
- 502. - }
- 503. - .pad_vid_lnk {
- 504. - position: relative;
- 505. - display: block;
- 506. - }
- 507. - .pad_vid_play {
- 508. - left: 137px;
- 509. - top: 97px;
- 510. - position: absolute;
- 511. - z-index: 410;
- 512. - background: url(/images/inline_video_play.png) no-repeat;
- 513. - width: 46px;
- 514. - height: 46px;
- 515. - }
- 516. -
- 517. - .pad_gr_result {
- 518. - width: 275px;
- 519. - padding-top: 14px;
- 520. - height: 21px;
- 521. - }
- 522. -
- 523. - .pad_msg_rows,
- 524. - .pad_nws_rows,
- 525. - .pad_gr_rows {
- 526. - width: 468px;
- 527. - }
- 528. - .pad_msg_name,
- 529. - .pad_nws_name {
- 530. - width: 320px;
- 531. - overflow: hidden;
- 532. - -o-text-overflow: ellipsis;
- 533. - text-overflow: ellipsis;
- 534. - color: #777;
- 535. - }
- 536. - .pad_msg,
- 537. - .pad_nws {
- 538. - padding: 0px 12px;
- 539. - cursor: pointer;
- 540. - }
- 541. - .pad_msg_wrap,
- 542. - .pad_nws_wrap {
- 543. - border-bottom: 1px solid #E4E8ED;
- 544. - padding: 10px 0px;
- 545. - }
- 546. -
- 547. - .pad_msg:last-child .pad_msg_wrap,
- 548. - .pad_nws:last-child .pad_nws_wrap {
- 549. - border-bottom: 0px;
- 550. - }
- 551. - .pad_msg_data {
- 552. - margin-left: 60px;
- 553. - }
- 554. - .pad_msg_photo,
- 555. - .pad_nws_photo {
- 556. - width: 50px;
- 557. - height: 50px;
- 558. - overflow: hidden;
- 559. - }
- 560. - .pad_msg_img {
- 561. - width: 50px;
- 562. - }
- 563. - .pad_msg_text,
- 564. - .pad_nws_text {
- 565. - padding: 2px 0 4px 4px;
- 566. - margin-left: -4px;
- 567. - line-height: 160%;
- 568. - overflow: hidden;
- 569. - width: 320px;
- 570. - min-height: 17px;
- 571. - }
- 572. - .pad_nws_text.wall_module .post_media {
- 573. - width: 320px;
- 574. - }
- 575. - .is_rtl1 .pad_msg_text,
- 576. - .is_rtl1 .pad_nws_text {
- 577. - padding: 2px 4px 4px 0;
- 578. - margin-left: 0px;
- 579. - margin-right: -4px;
- 580. - }
- 581. - .pad_msg_name,
- 582. - .pad_msg_text,
- 583. - .pad_msg_text .wall_module .post_media {
- 584. - width: 380px;
- 585. - }
- 586. -
- 587. - .pad_msg_text .wall_reply_text,
- 588. - .pad_nws_text .wall_reply_text,
- 589. - .pad_msg_text .wall_post_text,
- 590. - .pad_nws_text .wall_post_text {
- 591. - line-height: 160%;
- 592. - }
- 593. - .pad_msg_date,
- 594. - .pad_nws_date {
- 595. - color: #777;
- 596. - }
- 597. - .pad_msga,
- 598. - .pad_nwsa {
- 599. - border: 1px solid #D5DEE7;
- 600. - background: #EDF1F5;
- 601. - margin: 10px 0 0;
- 602. - width: 440px;
- 603. - }
- 604. - .pad_msga_wrap,
- 605. - .pad_nwsa_wrap {
- 606. - padding: 8px 10px 6px;
- 607. - }
- 608. - .pad_msga_arrow_wrap,
- 609. - .pad_nwsa_arrow_wrap {
- 610. - position: relative;
- 611. - }
- 612. - .pad_msga_arrow,
- 613. - .pad_nwsa_arrow {
- 614. - background: url(/images/icons/feedback_iconset.gif?4) no-repeat 0 -127px;
- 615. - width: 15px;
- 616. - height: 9px;
- 617. - position: absolute;
- 618. - left: 20px;
- 619. - top: -7px;
- 620. - }
- 621. - .pad_msga_data,
- 622. - .pad_nwsa_data {
- 623. - margin-left: 49px;
- 624. - }
- 625. - .pad_msga_photo,
- 626. - .pad_nwsa_photo {
- 627. - width: 39px;
- 628. - height: 39px;
- 629. - overflow: hidden;
- 630. - }
- 631. - .pad_msga_img,
- 632. - .pad_nwsa_img {
- 633. - width: 39px;
- 634. - }
- 635. - .pad_msga_date,
- 636. - .pad_nwsa_date {
- 637. - color: #879BB0;
- 638. - }
- 639. - .pad_msg_subj {
- 640. - margin: 2px 0px 4px;
- 641. - font-weight: bold;
- 642. - }
- 643. - div.pad_msg_text div.im_fwd_log_wrap {
- 644. - min-width: 100px;
- 645. - }
- 646. - #pad_msg_reply_tpl,
- 647. - #pad_nws_reply_tpl,
- 648. - #pad_nws_dis_tpl {
- 649. - display: none;
- 650. - }
- 651. - .pad_nwsa_dld {
- 652. - color: #879BB0;
- 653. - padding: 1px 49px 3px;
- 654. - line-height: 140%;
- 655. - }
- 656. - .pads_nwsa_dlda {
- 657. - color: #45688E;
- 658. - }
- 659. - .pad_msg_field,
- 660. - .pad_nws_field {
- 661. - vertical-align: top;
- 662. - width: 363px;
- 663. - }
- 664. - .pad_msg_reply .pad_msgr,
- 665. - .pad_nws_reply .pad_nwsr {
- 666. - cursor: default;
- 667. - margin-top: 15px;
- 668. - }
- 669. - .pad_msg_btns,
- 670. - .pad_nws_btns {
- 671. - margin-top: 8px;
- 672. - }
- 673. - .pad_msg_rcpts {
- 674. - padding: 6px 10px;
- 675. - }
- 676. - .pad_msg_error,
- 677. - .pad_nws_error {
- 678. - margin-bottom: 8px;
- 679. - line-height: 160%;
- 680. - }
- 681. -
- 682. - .pad_nws_data {
- 683. - margin: 0px 60px;
- 684. - width: 320px;
- 685. - }
- 686. - .pad_nws_img {
- 687. - max-width: 50px;
- 688. - }
- 689. - .pad_nws_cont {
- 690. - width: 440px;
- 691. - }
- 692. -
- 693. - .pad_submit_hint_title {
- 694. - color: #45688E;
- 695. - font-weight: bold;
- 696. - padding-bottom: 2px;
- 697. - }
- 698. - .pad_submit_hint_wrap {
- 699. - width: 210px;
- 700. - height: 110px;
- 701. - padding: 8px 5px 8px;
- 702. - }
- 703. - #pad_submit_hint_opts .pad_submit_hint_rb {
- 704. - color: black;
- 705. - padding-top: 10px;
- 706. - padding-bottom: 5px;
- 707. - line-height: 160%;
- 708. - }
- 709. - #pad_submit_hint_opts .pad_submit_hint_rb .rb {
- 710. - margin: 2px 5px 6px 0;
- 711. - }
- 712. - .pad_submit_hint_el {
- 713. - position: absolute;
- 714. - width: 1px;
- 715. - height: 1px;
- 716. - margin-top: 13px;
- 717. - }
- 718. -
- 719. - .pad_ap_rows {
- 720. - width: 376px;
- 721. - }
- 722. - .pad_ap_right {
- 723. - width: 50px;
- 724. - height: 50px;
- 725. - overflow: hidden;
- 726. - margin: 0px 0px 10px 10px;
- 727. - }
- 728. - .pad_ap_right_img {
- 729. - width: 50px;
- 730. - vertical-align: top;
- 731. - }
- 732. - .pad_mus_rows {
- 733. - padding: 15px;
- 734. - }
- 735. -
- 736. - #pad_more_audio {
- 737. - background: #EFF1F3;
- 738. - display: block;
- 739. - text-align: center;
- 740. - color: #738392;
- 741. - padding: 8px;
- 742. - margin: 0 15px 15px;
- 743. - }
- 744. - #pad_more_audio:hover {
- 745. - text-decoration: none;
- 746. - background: #E9EDF1;
- 747. - }
- 748. - .pad_audio_status,
- 749. - .pad_no_audios {
- 750. - color: #777;
- 751. - font-size: 12px;
- 752. - text-align: center;
- 753. - line-height: 160%;
- 754. - padding: 30px 0px;
- 755. - }
- 756. -
- 757. - #pad_audio_search {
- 758. - margin-bottom: 9px;
- 759. - margin-right: -1px;
- 760. - }
- 761. - #pad_audio_search input.pad_search {
- 762. - height: 13px;
- 763. - padding: 5px 20px;
- 764. - width: 325px;
- 765. - background: #FFF url(/images/magglass.png) no-repeat 5px 6px;
- 766. - outline: none;
- 767. - }
- 768. - #pad_audio_search input.pad_search:active {
- 769. - pointer-events: none;
- 770. - }
- 771. - .font_medium #pad_audio_search input.pad_search {
- 772. - width: 310px;
- 773. - }
- 774. - #pad_audio_search div.abutton_wrap {
- 775. - position: relative;
- 776. - left: -1px;
- 777. - }
- 778. - #pad_audio_search div.abutton_wrap button {
- 779. - width: 120px;
- 780. - height: 23px;
- 781. - line-height: 6px;
- 782. - }
- 783. - .font_medium #pad_audio_search div.abutton_wrap button {
- 784. - width: 135px;
- 785. - }
- 786. - #pad_audio_search div.abutton_wrap img {
- 787. - position: relative;
- 788. - top: -1px;
- 789. - left: 4px;
- 790. - }
- 791. - #pad_audio_search .pad_reset {
- 792. - cursor: pointer;
- 793. - display: none;
- 794. - background: transparent url(/images/icons/input_clear.gif) 6px 6px no-repeat;
- 795. - padding: 2px;
- 796. - width: 19px;
- 797. - height: 19px;
- 798. - margin-left: -24px;
- 799. - margin-top: 1px;
- 800. - opacity: 0.6;
- 801. - filter: alpha(opacity=60);
- 802. - position: relative;
- 803. - z-index: 100;
- 804. - }
- 805. - #pad_audio_search .pad_progress {
- 806. - background: url("/images/upload.gif") no-repeat scroll center center transparent;
- 807. - display: none;
- 808. - height: 23px;
- 809. - margin-left: -41px;
- 810. - margin-top: 1px;
- 811. - position: relative;
- 812. - width: 32px;
- 813. - z-index: 95;
- 814. - }
- 815. - #pad_audio_search.loading .pad_progress,
- 816. - #pad_audio_search .pad_reset.shown {
- 817. - display: block;
- 818. - }
- 819. - #pad_audio_search.loading .pad_reset.shown {
- 820. - display: none;
- 821. - }
- 822. - #pad_audio_search div.abutton_wrap .button_blue {
- 823. - -webkit-border-radius: 0 2px 2px 0;
- 824. - -khtml-border-radius: 0 2px 2px 0;
- 825. - -moz-border-radius: 0 2px 2px 0;
- 826. - border-radius: 0 2px 2px 0;
- 827. - }
- 828. -
- 829. - #pad_playlist .audio .area {
- 830. - cursor: pointer;
- 831. - position: relative;
- 832. - width: 488px;
- 833. - margin: 0px;
- 834. - }
- 835. - #pad_playlist .audio.over .area {
- 836. - background-color: #EDF1F5;
- 837. - }
- 838. - #pad_playlist .audio.tab_current .area,
- 839. - #pad_playlist .audio.tab_current.tt_shown .area,
- 840. - #pad_playlist .audio.tab_current.over .area,
- 841. - #pad_playlist .audio.rec_source .area,
- 842. - #pad_playlist .audio.rec_source.tt_shown .area,
- 843. - #pad_playlist .audio.rec_source.over .area {
- 844. - background-color: #E3E8EC;
- 845. - }
- 846. - #pad_playlist .audio.tab_current .area .duration,
- 847. - #pad_playlist .audio.rec_source .area .duration {
- 848. - color: #738191;
- 849. - }
- 850. - #pad_playlist .audio.current .area,
- 851. - #pad_playlist .audio.current.tt_shown .area,
- 852. - #pad_playlist .audio.current.over .area {
- 853. - background-color: #5f7fa2 !important;
- 854. - }
- 855. - #pad_playlist .audio.current .title_wrap,
- 856. - #pad_playlist .audio.current .title_wrap a {
- 857. - color: #fff !important;
- 858. - }
- 859. - #pad_playlist .audio .area .actions {
- 860. - right: -2px;
- 861. - }
- 862. - #pad_playlist .audio_add_wrap {
- 863. - margin: 7px 7px 7px 0;
- 864. - padding: 4px;
- 865. - opacity: 0.4;
- 866. - filter: alpha(opacity=40);
- 867. - }
- 868. - #pad_playlist .audio_add {
- 869. - background: url(/images/icons/audio_icons.png?4) -79px -51px no-repeat;
- 870. - position: relative;
- 871. - width: 13px;
- 872. - height: 12px;
- 873. - margin: 0px;
- 874. - cursor: pointer;
- 875. - overflow: hidden;
- 876. - }
- 877. - #pad_playlist .audio_rec_wrap {
- 878. - margin: 7px 7px 7px 0;
- 879. - padding: 4px;
- 880. - opacity: 0.4;
- 881. - filter: alpha(opacity=40);
- 882. - }
- 883. - #pad_playlist .rec_source .audio_rec_wrap {
- 884. - opacity: 1;
- 885. - filter: alpha(opacity=100);
- 886. - }
- 887. - #pad_playlist .audio.current .audio_add {
- 888. - background-position: -93px -51px;
- 889. - }
- 890. - #pad_playlist .audio_rec {
- 891. - background: url(/images/icons/audio_icons.png?4) -202px -51px no-repeat;
- 892. - position: relative;
- 893. - width: 12px;
- 894. - height: 12px;
- 895. - margin: 0px;
- 896. - cursor: pointer;
- 897. - overflow: hidden;
- 898. - visibility: hidden;
- 899. - }
- 900. - #pad_playlist .audio.rec_source .audio_rec,
- 901. - #pad_playlist .audio.over .audio_rec {
- 902. - visibility: visible;
- 903. - }
- 904. - #pad_playlist .audio.current .audio_rec {
- 905. - background-position: -218px -51px;
- 906. - }
- 907. - #pad_playlist .audio_add_wrap.added {
- 908. - opacity: 1;
- 909. - filter: alpha(opacity=100);
- 910. - }
- 911. - #pad_playlist .audio_add_wrap.anim {
- 912. - opacity: 1;
- 913. - filter: alpha(opacity=100);
- 914. - display: none;
- 915. - }
- 916. - #pad_playlist .audio.rec_source .audio_add_wrap.anim,
- 917. - #pad_playlist .audio.over .audio_add_wrap.anim,
- 918. - #pad_playlist .audio.tt_shown .audio_add_wrap.anim {
- 919. - display: block;
- 920. - }
- 921. - #pad_playlist .audio_add_anim_wrap {
- 922. - width: 13px;
- 923. - height: 12px;
- 924. - margin: 0px;
- 925. - padding: 0px;
- 926. - position: relative;
- 927. - }
- 928. - #pad_playlist .audio_add_anim {
- 929. - width: 28px;
- 930. - height: 12px;
- 931. - position: absolute;
- 932. - top: 0px;
- 933. - left: 0px;
- 934. - }
- 935. - #audio.new .audio_add_anim .audio_add.done {
- 936. - opacity: 0;
- 937. - filter: alpha(opacity=0);
- 938. - }
- 939. - #pad_playlist .audio_add_wrap.added .audio_add,
- 940. - #pad_playlist .audio_add_wrap .audio_add.done {
- 941. - background-position: -166px -51px;
- 942. - width: 15px;
- 943. - }
- 944. - #pad_playlist .audio.current .audio_add_wrap.added .audio_add,
- 945. - #pad_playlist .audio.current .audio_add_wrap .audio_add.done {
- 946. - background-position: -184px -51px;
- 947. - }
- 948. - #pad_playlist .duration {
- 949. - padding: 10px 9px 9px;
- 950. - cursor: pointer;
- 951. - max-width: 35px;
- 952. - overflow: hidden;
- 953. - -o-text-overflow: ellipsis;
- 954. - text-overflow: ellipsis;
- 955. - }
- 956. - .font_medium #pad_playlist .duration {
- 957. - max-width: 40px;
- 958. - }
- 959. - #pad_playlist .audio.over .duration {
- 960. - color: #8795A5;
- 961. - }
- 962. - #pad_playlist .audio.over.current .duration,
- 963. - #pad_playlist .audio.current .duration {
- 964. - color: #b1bfcf !important;
- 965. - }
- 966. - #pad_playlist .audio.over .duration,
- 967. - #pad_playlist .audio.rec_source .duration,
- 968. - #pad_playlist .audio.tt_shown .duration {
- 969. - display: none;
- 970. - }
- 971. - #pad_playlist .audio.rec_source.no_actions .duration,
- 972. - #pad_playlist .audio.tt_shown.no_actions .duration,
- 973. - #pad_playlist .audio.over.no_actions .duration {
- 974. - display: block;
- 975. - }
- 976. - #pad_playlist .audio .play_btn_wrap {
- 977. - padding: 9px;
- 978. - }
- 979. - #pad_playlist .audio .play_new {
- 980. - width: 16px;
- 981. - margin: 0px;
- 982. - }
- 983. - #pad_playlist .audio.current .play_new {
- 984. - background:url(/images/icons/audio_icons.png?4) -147px -28px no-repeat;
- 985. - }
- 986. - #pad_playlist .audio.current .play_new.playing {
- 987. - background-position: -165px -28px;
- 988. - }
- 989. - #pad_playlist .audio .info {
- 990. - width: 452px;
- 991. - }
- 992. - #pad_playlist .audio .title_wrap {
- 993. - width: 398px;
- 994. - padding: 10px 0 9px;
- 995. - white-space: nowrap;
- 996. - -o-text-overflow: ellipsis;
- 997. - text-overflow: ellipsis;
- 998. - overflow: hidden;
- 999. - }
- 1000. - #pad_playlist .audio .title_wrap b {
- 1001. - max-width: 210px;
- 1002. - }
- 1003. - .font_medium #pad_playlist .audio .title_wrap {
- 1004. - width: 393px;
- 1005. - }
- 1006. - #pad_playlist .audio .lyrics {
- 1007. - display: none;
- 1008. - }
- 1009. - .dd_menu_stype_act.pad {
- 1010. - margin-left: 1px;
- 1011. - }
- 1012. - .dd_menu_stype_act.pad .dd_menu_header div {
- 1013. - width: 90px;
- 1014. - }
- 1015. - .font_medium .dd_menu_stype_act.pad .dd_menu_header div {
- 1016. - width: 105px;
- 1017. - }
- 1018. - #pd {
- 1019. - background: #F0F1F2;
- 1020. - }
- 1021. - #pd_controls {
- 1022. - padding: 12px 0px;
- 1023. - }
- 1024. - #pd_play {
- 1025. - background: url(/images/icons/audio_icons.png?4) no-repeat scroll 0 -25px transparent;
- 1026. - margin: 0px 4px 0px 2px;
- 1027. - padding: 0px;
- 1028. - width: 22px;
- 1029. - height: 22px;
- 1030. - cursor: pointer;
- 1031. - }
- 1032. - #pd_play.playing {
- 1033. - background-position: -72px -25px;
- 1034. - }
- 1035. - #pd_play.over {
- 1036. - background-position: -24px -25px;
- 1037. - }
- 1038. - #pd_play.over.playing {
- 1039. - background-position: -96px -25px;
- 1040. - }
- 1041. - #pd_play.down,
- 1042. - #pd_play.over.down {
- 1043. - background-position: -48px -25px;
- 1044. - }
- 1045. - #pd_play.down.playing,
- 1046. - #pd_play.over.down.playing {
- 1047. - background-position: -120px -25px;
- 1048. - }
- 1049. - #pd .ctrl_wrap {
- 1050. - cursor: pointer;
- 1051. - padding: 4px 3px;
- 1052. - -webkit-border-radius: 2px;
- 1053. - -khtml-border-radius: 2px;
- 1054. - -moz-border-radius: 2px;
- 1055. - border-radius: 2px;
- 1056. - margin: 2px 1px 1px;
- 1057. - opacity: 0.70;
- 1058. - filter: alpha(opacity=70);
- 1059. - -webkit-transition: background-color 100ms ease-out;
- 1060. - -moz-transition: background-color 100ms ease-out;
- 1061. - -o-transition: background-color 100ms ease-out;
- 1062. - transition: background-color 100ms ease-out;
- 1063. - -webkit-transition: opacity 100ms ease-out;
- 1064. - -moz-transition: opacity 100ms ease-out;
- 1065. - -o-transition: opacity 100ms ease-out;
- 1066. - transition: opacity 100ms ease-out;
- 1067. - }
- 1068. - #pd #pd_repeat.ctrl_wrap {
- 1069. - padding: 2px 3px 3px 4px;
- 1070. - }
- 1071. - #pd #pd_prev.ctrl_wrap,
- 1072. - #pd #pd_next.ctrl_wrap {
- 1073. - opacity: 0.83;
- 1074. - filter: alpha(opacity=83);
- 1075. - }
- 1076. - #pd .ctrl_wrap.on {
- 1077. - opacity: 1 !important;
- 1078. - filter: alpha(opacity=100) !important;
- 1079. - }
- 1080. - #pd #pd_prev.ctrl_wrap.over,
- 1081. - #pd #pd_next.ctrl_wrap.over {
- 1082. - opacity: 1;
- 1083. - filter: alpha(opacity=100);
- 1084. - background: none;
- 1085. - }
- 1086. - #pd .ctrl_wrap.added.over {
- 1087. - opacity: 0.70 !important;
- 1088. - filter: alpha(opacity=70) !important;
- 1089. - cursor: auto;
- 1090. - }
- 1091. - #pd .ctrl {
- 1092. - background: url(/images/icons/audio_icons.png?4) no-repeat scroll 0 0 transparent;
- 1093. - height: 11px;
- 1094. - width: 13px;
- 1095. - margin: 0;
- 1096. - float: left;
- 1097. - }
- 1098. - #pd.no_rec #pd_rec {
- 1099. - display: none;
- 1100. - }
- 1101. - #pd #pd_shuffle.ctrl_wrap,
- 1102. - #pd #pd_rec.ctrl_wrap {
- 1103. - padding: 3px 4px 4px 3px;
- 1104. - }
- 1105. - #pd #pd_status.ctrl_wrap {
- 1106. - padding-top: 3px;
- 1107. - padding-bottom: 5px;
- 1108. - }
- 1109. - #pd .ctrl.shuffle {
- 1110. - height: 12px;
- 1111. - }
- 1112. - #pd .next_prev div.ctrl_wrap {
- 1113. - float: left;
- 1114. - }
- 1115. - #pd .ctrl.prev {
- 1116. - background-position: -3px -52px;
- 1117. - }
- 1118. - #pd .ctrl.next {
- 1119. - background-position: -18px -52px;
- 1120. - }
- 1121. - #pd .extra_ctrls {
- 1122. - padding: 12px 0px;
- 1123. - }
- 1124. - #pd .ctrl.repeat {
- 1125. - background-position: -32px -49px;
- 1126. - height: 14px;
- 1127. - }
- 1128. - #pd .ctrl.repeat.on {
- 1129. - opacity: 1;
- 1130. - filter: alpha(opacity=100);
- 1131. - }
- 1132. - #pd .ctrl.shuffle {
- 1133. - background-position: -50px -51px;
- 1134. - }
- 1135. - #pd .ctrl.status {
- 1136. - background-position: -66px -51px;
- 1137. - }
- 1138. - #pd .ctrl.rec {
- 1139. - background-position: -202px -51px;
- 1140. - height: 12px;
- 1141. - width: 12px;
- 1142. - }
- 1143. - #pd_add {
- 1144. - display: none;
- 1145. - }
- 1146. - #pd .ctrl.add {
- 1147. - background-position: -80px -52px;
- 1148. - }
- 1149. - #pd .ctrl_wrap.added {
- 1150. - padding: 3px 2px 4px;
- 1151. - }
- 1152. - #pd .ctrl_wrap.added .ctrl.add {
- 1153. - background-position: -166px -51px;
- 1154. - width: 15px;
- 1155. - height: 12px;
- 1156. - }
- 1157. - #pd .info {
- 1158. - width: 326px;
- 1159. - margin-left: 10px;
- 1160. - }
- 1161. - #pd.no_rec .info {
- 1162. - width: 345px;
- 1163. - }
- 1164. - #pd.add .info {
- 1165. - width: 307px;
- 1166. - }
- 1167. - #pd.no_rec.add .info {
- 1168. - width: 326px;
- 1169. - }
- 1170. - #pd.add #pd_add {
- 1171. - display: block;
- 1172. - }
- 1173. - #pd_vol {
- 1174. - margin-left: 11px;
- 1175. - }
- 1176. - #pd_vol .audio_volume_line {
- 1177. - top: -8px;
- 1178. - }
- 1179. - #pd .title_wrap {
- 1180. - padding-top: 11px;
- 1181. - line-height: 13px;
- 1182. - }
- 1183. - #pd .ac_name {
- 1184. - white-space: nowrap;
- 1185. - overflow: hidden;
- 1186. - -o-text-overflow: ellipsis;
- 1187. - text-overflow: ellipsis;
- 1188. - max-width: 221px;
- 1189. - }
- 1190. - #pd.no_rec .ac_name {
- 1191. - max-width: 240px;
- 1192. - }
- 1193. - .font_medium #pd.add .ac_name {
- 1194. - max-width: 196px;
- 1195. - }
- 1196. - .font_medium #pd.no_rec.add .ac_name {
- 1197. - max-width: 215px;
- 1198. - }
- 1199. - #pd.add .ac_name {
- 1200. - max-width: 201px;
- 1201. - }
- 1202. - #pd.no_rec.add .ac_name {
- 1203. - max-width: 220px;
- 1204. - }
- 1205. - #pd .performer {
- 1206. - font-weight: bold;
- 1207. - color: #2B587A;
- 1208. - }
- 1209. - #pd .title {
- 1210. - color: #627A94;
- 1211. - }
- 1212. - #pd .duration {
- 1213. - display: inline-block;
- 1214. - margin: 0px 66px 0 0;
- 1215. - padding: 0px !important;
- 1216. - color: #627a94;
- 1217. - font-size: 0.9em;
- 1218. - margin-top: 1px;
- 1219. - cursor: pointer;
- 1220. - max-width: 40px;
- 1221. - overflow: hidden;
- 1222. - -o-text-overflow: ellipsis;
- 1223. - text-overflow: ellipsis;
- 1224. - }
- 1225. - #pd .shadow div {
- 1226. - background: #000;
- 1227. - height: 1px;
- 1228. - opacity: 0.15;
- 1229. - filter: alpha(opacity=15);
- 1230. - position: absolute;
- 1231. - z-index: 1050;
- 1232. - overflow: hidden;
- 1233. - width: 627px;
- 1234. - }
- 1235. - #pd .shadow .sh0 {
- 1236. - background: #FFFFFF;
- 1237. - }
- 1238. - #pd .shadow .sh1 {
- 1239. - opacity: 0.15;
- 1240. - filter: alpha(opacity=15);
- 1241. - margin-top: 0px;
- 1242. - /* background: #ADBAC7;*/
- 1243. - }
- 1244. - #pd .shadow .sh2 {
- 1245. - opacity: 0.09;
- 1246. - filter: alpha(opacity=9);
- 1247. - margin-top: 1px;
- 1248. - }
- 1249. - #pd .shadow .sh3 {
- 1250. - opacity: 0.04;
- 1251. - filter: alpha(opacity=4);
- 1252. - margin-top: 2px;
- 1253. - }
- 1254. - #pd .shadow .sh4 {
- 1255. - opacity: 0.01;
- 1256. - filter: alpha(opacity=1);
- 1257. - margin-top: 3px;
- 1258. - }
- 1259. - #pd_vol.over .ac_slider,
- 1260. - #pd_vol.down .ac_slider,
- 1261. - #pd_pr.down .ac_slider {
- 1262. - display: block;
- 1263. - }
- 1264. - #pd_vol_back_line.ac_load_line {
- 1265. - width: 100%;
- 1266. - top: -15px;
- 1267. - }
- 1268. - #pd_vol_line.ac_progress_line {
- 1269. - top: -7px;
- 1270. - width: 50%;
- 1271. - }
- 1272. - .pd_apps_recent {
- 1273. - height: 65px;
- 1274. - padding: 10px 0px 10px 12px;
- 1275. - position: relative;
- 1276. - }
- 1277. - .pd_apps_wrap {
- 1278. - height: 65px;
- 1279. - padding: 4px 0px 0px 12px;
- 1280. - position: relative;
- 1281. - }
- 1282. - .pd_apps_row {
- 1283. - width: 50px;
- 1284. - vertical-align: top;
- 1285. - -webkit-border-radius: 5px;
- 1286. - -moz-border-radius: 5px;
- 1287. - border-radius: 5px;
- 1288. - }
- 1289. - .pd_apps_row_cont {
- 1290. - overflow: hidden;
- 1291. - padding: 6px 0px 6px 0px;
- 1292. - margin-right: 12px;
- 1293. - position: absolute;
- 1294. - height: 50px;
- 1295. - }
- 1296. - .pd_apps_row_img {
- 1297. - -webkit-border-radius: 5px;
- 1298. - -moz-border-radius: 5px;
- 1299. - border-radius: 5px;
- 1300. - width: 50px;
- 1301. - height: 50px;
- 1302. - overflow: hidden;
- 1303. - }
- 1304. - .pd_apps_cont #pad_content {
- 1305. - border: none;
- 1306. - padding: 0px;
- 1307. - max-height: 400px;
- 1308. - }
- 1309. - .pd_apps_cont {
- 1310. - border: 1px solid #ADBAC7;
- 1311. - }
- 1312. - .pd_apps_footer {
- 1313. - background: #F0F1F2;
- 1314. - padding: 8px 5px 7px;
- 1315. - height: 30px;
- 1316. - }
- 1317. - .pd_apps_name {
- 1318. - font-weight: bold;
- 1319. - color: #47688D;
- 1320. - padding-bottom: 3px;
- 1321. - white-space: nowrap;
- 1322. - -o-text-overflow: ellipsis;
- 1323. - text-overflow: ellipsis;
- 1324. - overflow: hidden;
- 1325. - }
- 1326. - .pd_apps_info {
- 1327. - position: absolute;
- 1328. - padding: 0px 5px 0px 60px;
- 1329. - color: #777777;
- 1330. - width: 114px;
- 1331. - }
- 1332. - #pd_apps_search {
- 1333. - height: 13px;
- 1334. - padding: 5px 40px 5px 20px;
- 1335. - background: #FFFFFF url(/images/magglass.png) no-repeat 5px 6px;
- 1336. - outline: none;
- 1337. - width: 140px;
- 1338. - border: 1px solid #CFDAE5;
- 1339. - }
- 1340. - .pd_apps_row_href {
- 1341. - display: block;
- 1342. - overflow: hidden;
- 1343. - width: 100%;
- 1344. - }
- 1345. - .pd_apps_row_href:active {
- 1346. - padding-top: 1px;
- 1347. - display: block;
- 1348. - height: 49px;
- 1349. - }
- 1350. - .pd_apps_animation1 {
- 1351. - -o-transition:all 400ms cubic-bezier(0.2,0.2,0.2,0.95);
- 1352. - -moz-transition:all 400ms cubic-bezier(0.2,0.2,0.2,0.95);
- 1353. - -webkit-transition:all 400ms cubic-bezier(0.2,0.2,0.2,0.95);
- 1354. - transition:all 400ms cubic-bezier(0.2,0.2,0.2,0.95);
- 1355. - }
- 1356. - .pd_apps_recent_vis {
- 1357. - margin-left: 420px;
- 1358. - opacity: 1;
- 1359. - }
- 1360. - .pd_apps_recent_right {
- 1361. - position: absolute;
- 1362. - border-right: 1px solid #ADBAC7;
- 1363. - right: -1px;
- 1364. - padding: 10px 0px;
- 1365. - top: 6px;
- 1366. - z-index: 10;
- 1367. - cursor: pointer;
- 1368. - }
- 1369. - .pd_apps_recent_bg_right {
- 1370. - background: url('/images/pd_apps_sh.png') 0px 0px no-repeat;
- 1371. - width: 19px;
- 1372. - height: 50px;
- 1373. - }
- 1374. - .pd_apps_recent_left {
- 1375. - position: absolute;
- 1376. - border-left: 1px solid #ADBAC7;
- 1377. - left: -1px;
- 1378. - padding: 10px 0px;
- 1379. - top: 6px;
- 1380. - z-index: 10;
- 1381. - cursor: pointer;
- 1382. - }
- 1383. - .pd_apps_recent_bg_left {
- 1384. - background: url('/images/pd_apps_sh.png') 0px -50px no-repeat;
- 1385. - width: 19px;
- 1386. - height: 50px;
- 1387. - }
- 1388. - .pd_apps_cont_right {
- 1389. - position: absolute;
- 1390. - border-right: 1px solid #ADBAC7;
- 1391. - padding: 10px 0px;
- 1392. - right: -1px;
- 1393. - top: 0px;
- 1394. - z-index: 10;
- 1395. - cursor: pointer;
- 1396. - }
- 1397. - .pd_apps_cont_bg_right {
- 1398. - background: url('/images/pd_apps_sh.png?2') 0px -100px no-repeat;
- 1399. - width: 19px;
- 1400. - height: 50px;
- 1401. - }
- 1402. - .pd_apps_cont_left {
- 1403. - position: absolute;
- 1404. - border-left: 1px solid #ADBAC7;
- 1405. - left: -1px;
- 1406. - padding: 10px 0px;
- 1407. - top: 0px;
- 1408. - z-index: 10;
- 1409. - cursor: pointer;
- 1410. - }
- 1411. - .pd_apps_cont_bg_left {
- 1412. - background: url('/images/pd_apps_sh.png?2') 0px -150px no-repeat;
- 1413. - width: 19px;
- 1414. - height: 50px;
- 1415. - }
- 1416. - .pd_apps_ca_more {
- 1417. - position: absolute;
- 1418. - margin-left: 450px;
- 1419. - width: 500px;
- 1420. - }
- 1421. - .pd_apps_ca_slice {
- 1422. - position: absolute;
- 1423. - width: 500px;
- 1424. - }
- 1425. - .pd_apps_ca_prev {
- 1426. - position: absolute;
- 1427. - width: 500px;
- 1428. - }
- 1429. - .pd_apps_summary {
- 1430. - display: block;
- 1431. - background: #F0F1F2;
- 1432. - color: #505050;
- 1433. - font-weight: bold;
- 1434. - padding: 8px 0px 8px 10px;
- 1435. - margin-top: 1px;
- 1436. - }
- 1437. - .pd_apps_summary:hover {
- 1438. - text-decoration: none;
- 1439. - }
- 1440. - .pd_apps_header {
- 1441. - background: #F0F1F2;
- 1442. - color: #505050;
- 1443. - padding: 4px 0px 6px 0px;
- 1444. - height: 29px;
- 1445. - }
- 1446. - .pd_apps_search_wrap {
- 1447. - margin: 3px 7px 0px 0px;
- 1448. - }
- 1449. - #pd_apps_search_cont {
- 1450. - display: none;
- 1451. - padding: 10px 0px;
- 1452. - }
- 1453. - .pd_game_search_img {
- 1454. - width: 40px;
- 1455. - height: 40px;
- 1456. - -webkit-border-radius: 3px;
- 1457. - -moz-border-radius: 3px;
- 1458. - border-radius: 3px;
- 1459. - }
- 1460. - .pd_game_search_photo {
- 1461. - position: absolute;
- 1462. - }
- 1463. - .pd_game_search_row {
- 1464. - display: block;
- 1465. - padding: 5px 10px;
- 1466. - }
- 1467. - .pd_game_search_row:hover {
- 1468. - text-decoration: none;
- 1469. - background: #EDF1F5;
- 1470. - }
- 1471. - .pd_game_search_row:active {
- 1472. - padding: 6px 10px 4px;
- 1473. - }
- 1474. - .pd_game_search_info {
- 1475. - padding-left: 50px;
- 1476. - height: 38px;
- 1477. - padding-top: 2px;
- 1478. - }
- 1479. - .pd_game_search_info_str {
- 1480. - color: #777;
- 1481. - padding: 5px 0px 0px 0px;
- 1482. - }
- 1483. - #pd_apps_search_progress {
- 1484. - background: url("/images/upload.gif") no-repeat;
- 1485. - display: none;
- 1486. - height: 23px;
- 1487. - margin-left: 411px;
- 1488. - margin-top: 12px;
- 1489. - position: absolute;
- 1490. - width: 32px;
- 1491. - z-index: 95;
- 1492. - }
- 1493. - #pd_apps_search_close {
- 1494. - cursor: pointer;
- 1495. - display: none;
- 1496. - background: transparent url(/images/icons/input_clear.gif) 6px 6px no-repeat;
- 1497. - padding: 2px;
- 1498. - width: 19px;
- 1499. - height: 19px;
- 1500. - margin-left: 424px;
- 1501. - margin-top: 4px;
- 1502. - opacity: 0.6;
- 1503. - filter: alpha(opacity=60);
- 1504. - position: absolute;
- 1505. - z-index: 100;
- 1506. - }
- 1507. - .pd_apps_empty {
- 1508. - color: #777;
- 1509. - font-size: 1.09em;
- 1510. - line-height: 200%;
- 1511. - margin: 20px 20px 15px;
- 1512. - padding: 50px 0;
- 1513. - text-align: center;
- 1514. - word-wrap: break-word;
- 1515. - }
- 1516. - .pd_game_search_name {
- 1517. - color: #2B587A;
- 1518. - }
- 1519. - #pd_apps_top_summary {
- 1520. - position: absolute;
- 1521. - width: 180px;
- 1522. - background: none;
- 1523. - }
- 1524. - #pd_apps_search_summary {
- 1525. - position: absolute;
- 1526. - width: 180px;
- 1527. - opacity: 0;
- 1528. - filter: alpha(opacity=60);
- 1529. - margin-top: -15px;
- 1530. - background: none;
- 1531. - }
- 1532. - .pads_apps_recent_empty {
- 1533. - text-align: center;
- 1534. - color: #777;
- 1535. - font-size: 1.09em;
- 1536. - line-height: 200%;
- 1537. - padding: 22px 0px;
- 1538. - }
- 1539. - .pads_gr_clubinv_block {
- 1540. - white-space: nowrap;
- 1541. - overflow: hidden;
- 1542. - -o-text-overflow: ellipsis;
- 1543. - text-overflow: ellipsis;
- 1544. - }
- ------
- Файл - groups.css (Старый размер - 14064 | Новый - 0):
- 0. - #groups_css {
- 1. - display: none;
- 2. - }
- 3. -
- 4. - #group .narrow_column .module_body {
- 5. - border-left: 1px solid #F1F1F1;
- 6. - }
- 7. - #group .narrow_column .audios_module .module_body {
- 8. - padding: 8px 0px 8px 8px;
- 9. - }
- 10. - #group {
- 11. - padding: 10px 10px 0px;
- 12. - }
- 13. - #group h4.simple .top_header {
- 14. - width: 395px;
- 15. - height: 1.23em;
- 16. - white-space: nowrap;
- 17. - overflow: hidden;
- 18. - -o-text-overflow: ellipsis;
- 19. - text-overflow: ellipsis;
- 20. - text-overflow: ellipsis-word;
- 21. - }
- 22. -
- 23. - .group_info {
- 24. - padding: 7px 6px 10px;
- 25. - line-height: 150%;
- 26. - }
- 27. - .group_info_private {
- 28. - padding-top: 5px;
- 29. - color: #777;
- 30. - }
- 31. - .group_info .label {
- 32. - width: 120px;
- 33. - color: #777;
- 34. - padding: 3px 0px 0px;
- 35. - }
- 36. - .group_info .labeled {
- 37. - width: 265px;
- 38. - overflow: hidden;
- 39. - padding: 3px 0px 0px;
- 40. - }
- 41. - .group_row_labeled {
- 42. - padding: 0px 0px 2px;
- 43. - }
- 44. - #page_avatar.group_no_avatar {
- 45. - padding: 175px 10px 15px;
- 46. - text-align: center;
- 47. - background: #EEF2F6 url(/images/no_photo.png) no-repeat 45px 55px;
- 48. - }
- 49. -
- 50. - #group_photos .module_body {
- 51. - padding: 0px 0px 10px;
- 52. - }
- 53. - #group_photos.module.empty .module_body {
- 54. - border-bottom: none;
- 55. - padding: 0px;
- 56. - }
- 57. - #group_photos.module.empty .module_body .empty_wrap {
- 58. - padding: 20px 0px;
- 59. - }
- 60. - .group_photos_wrap {
- 61. - margin: 5px -1px 0px;
- 62. - }
- 63. - #group_photos .profile_sized_photos {
- 64. - margin: 0;
- 65. - }
- 66. - .group_photos_wrap .profile_wide_sized_photos,
- 67. - .page_wide_no_narrow .profile_sized_photos {
- 68. - display: none;
- 69. - }
- 70. - .page_wide_no_narrow .group_photos_wrap .profile_wide_sized_photos {
- 71. - display: block;
- 72. - }
- 73. - .group_photos_table, .group_photos_table a img {
- 74. - margin: 0px auto;
- 75. - }
- 76. - .profile_wide_sized_photos a.page_post_thumb_wrap {
- 77. - margin-right: 6px;
- 78. - }
- 79. - .group_photos_table a {
- 80. - display: block;
- 81. - width: 75px;
- 82. - height: 57px;
- 83. - background: #F1F1F1;
- 84. - text-align: center;
- 85. - overflow: hidden;
- 86. - margin: 0px 3px 0px 2px;
- 87. - }
- 88. - #group_photos_upload {
- 89. - background: #eff1f3;
- 90. - padding: 17px;
- 91. - text-align: center;
- 92. - color: #738392;
- 93. - line-height: 16px;
- 94. - display: block;
- 95. - }
- 96. - a#group_photos_upload:hover,
- 97. - #group_photos_upload.hover {
- 98. - background: #e9edf1;
- 99. - text-decoration: none;
- 100. - }
- 101. - .group_photos_upload_label {
- 102. - background: url('/images/camera.gif') left 1px no-repeat;
- 103. - padding: 4px 0px 4px 35px;
- 104. - }
- 105. -
- 106. - .group_wiki_wrap {
- 107. - padding-bottom: 10px;
- 108. - overflow: hidden;
- 109. - }
- 110. - .group_wiki_hider {
- 111. - padding: 8px 0 8px 125px;
- 112. - border-top: 1px solid #FFF;
- 113. - display: block;
- 114. - }
- 115. - .group_wiki_hider span {
- 116. - padding: 0px 8px;
- 117. - color: #2B587A;
- 118. - visibility: hidden;
- 119. - }
- 120. - .group_wiki_hider span:hover {
- 121. - text-decoration: underline;
- 122. - }
- 123. - .group_wiki_hider:hover {
- 124. - text-decoration: none;
- 125. - background: #E9EDF1;
- 126. - }
- 127. - .group_wiki_hider:hover span {
- 128. - visibility: visible;
- 129. - }
- 130. - #group .group_wiki_wrap .wk_text {
- 131. - display: none;
- 132. - padding: 10px 8px;
- 133. - width: 370px;
- 134. - word-wrap: break-word;
- 135. - line-height:150%;
- 136. - }
- 137. - .groups_edit_board_row {
- 138. - padding: 5px 0px;
- 139. - }
- 140. - .groups_edit_board_label {
- 141. - padding: 5px 10px 0px;
- 142. - width: 200px;
- 143. - color: #777;
- 144. - }
- 145. - .groups_edit_board_labeled {
- 146. - width: 160px;
- 147. - }
- 148. -
- 149. - #group_voting .module_body {
- 150. - padding-bottom: 11px;
- 151. - }
- 152. - #group_voting .header_bottom {
- 153. - padding: 3px 9px;
- 154. - }
- 155. - .group_voting_title {
- 156. - font-weight: bold;
- 157. - color: #45688E;
- 158. - padding: 0px 6px 3px;
- 159. - margin: 13px 8px 4px;
- 160. - border-bottom: 1px solid #E7EAED;
- 161. - }
- 162. - .group_voting_row_wrap {
- 163. - width: 100%;
- 164. - padding: 0px 5px;
- 165. - }
- 166. - .group_voting_row {
- 167. - background: #F1F1F1;
- 168. - width: 100%;
- 169. - }
- 170. - .group_voting_row_desc {
- 171. - padding: 1px 7px 3px;
- 172. - }
- 173. - .group_voting_text {
- 174. - padding: 6px 7px 4px;
- 175. - }
- 176. - .group_voting_percent {
- 177. - background: #E1E7ED;
- 178. - border: solid #D8DFE5;
- 179. - border-width: 1px 1px 0px 0px;
- 180. - height: 13px;
- 181. - }
- 182. - .group_voting_table {
- 183. - padding: 0px 8px;
- 184. - }
- 185. - .group_voting_table .radiobtn {
- 186. - padding: 12px 6px;
- 187. - border-top: 1px solid #E7EAED;
- 188. - }
- 189. - .group_voting_table .radiobtn.first {
- 190. - padding-top: 8px;
- 191. - border-top: 0px;
- 192. - }
- 193. - #group_voting_msg {
- 194. - margin: 10px 14px 0px;
- 195. - }
- 196. - .group_voting_actions {
- 197. - font-weight: normal;
- 198. - }
- 199. -
- 200. - #group_like_module, .group_block_module {
- 201. - margin: 0px 0px 10px;
- 202. - padding: 11px 10px 10px;
- 203. - background: #F1F1F1;
- 204. - line-height: 160%;
- 205. - }
- 206. - .group_block_module {
- 207. - margin: 10px 0px 0px;
- 208. - }
- 209. - .group_like_desc {
- 210. - padding-bottom: 10px;
- 211. - }
- 212. - .group_like_enter_desc {
- 213. - padding-top: 10px;
- 214. - text-align: center;
- 215. - color: #777;
- 216. - }
- 217. - .group_share_wrap {
- 218. - padding-top: 1px;
- 219. - }
- 220. - .group_button_wrap {
- 221. - padding-bottom: 10px;
- 222. - }
- 223. - .group_button_action {
- 224. - text-align: center;
- 225. - }
- 226. - .group_button_action .progress {
- 227. - margin: 0px auto;
- 228. - }
- 229. -
- 230. - #group_block_comment_wrap {
- 231. - padding-top: 10px;
- 232. - }
- 233. - #group_block_comment {
- 234. - width: 200px;
- 235. - height: 50px;
- 236. - margin-top: 10px;
- 237. - }
- 238. - .group_block_reason_wrap {
- 239. - padding: 10px 0px;
- 240. - }
- 241. - .page_actions a.group_block_mem {
- 242. - display: inline;
- 243. - padding: 0px;
- 244. - background: none;
- 245. - }
- 246. - .page_actions a.group_block_mem:hover {
- 247. - text-decoration: underline;
- 248. - background: none;
- 249. - }
- 250. -
- 251. - .group_abuse_made {
- 252. - padding: 4px 6px;
- 253. - color: #777;
- 254. - }
- 255. -
- 256. - .groups_donate {
- 257. - margin: 5px 0px;
- 258. - background: #F7F7F7;
- 259. - border: solid #DAE1E8;
- 260. - border-width: 1px 0px;
- 261. - padding: 7px;
- 262. - }
- 263. - #groups_donate_options {
- 264. - display: none;
- 265. - padding-bottom: 5px;
- 266. - }
- 267. - #groups_donate_options .radiobtn {
- 268. - padding: 3px 5px;
- 269. - }
- 270. - #groups_donate_button {
- 271. - display: none;
- 272. - }
- 273. - #groups_donate_other {
- 274. - display: none;
- 275. - padding: 0px 5px 7px;
- 276. - }
- 277. - #groups_donate_other_val {
- 278. - width: 70px;
- 279. - }
- 280. - #groups_donate_other_add {
- 281. - padding: 0px 5px;
- 282. - }
- 283. - .groups_no_donations {
- 284. - padding: 30px 10px;
- 285. - text-align: center;
- 286. - color: #777;
- 287. - }
- 288. - .summary_wrap.groups_donators_summary {
- 289. - padding: 0px;
- 290. - margin: 0px 5px 10px;
- 291. - }
- 292. - #groups_donators_wrap {
- 293. - padding: 7px 5px 0px;
- 294. - overflow: hidden;
- 295. - height: 360px;
- 296. - }
- 297. -
- 298. - div.gl_message {
- 299. - margin: 10px 10px 0px;
- 300. - }
- 301. - .groups_list_search {
- 302. - background: #F7F7F7;
- 303. - border-bottom: 1px solid #DAE1E8;
- 304. - padding: 10px;
- 305. - }
- 306. - #groups_list_search {
- 307. - padding: 5px 40px 5px 20px;
- 308. - background: url(/images/magglass.png) no-repeat scroll 5px 6px white;
- 309. - height: 13px;
- 310. - outline: none;
- 311. - width: 547px;
- 312. - }
- 313. - #groups_list_search::-ms-clear {
- 314. - display: none;
- 315. - }
- 316. -
- 317. - .groups_list {
- 318. - padding: 0px 10px;
- 319. - }
- 320. - .group_list_row {
- 321. - border-bottom: 1px solid #EDEDED;
- 322. - padding: 10px 0;
- 323. - background: #FFFFFF;
- 324. - }
- 325. - .group_list_row:last-child {
- 326. - border-bottom: 0px;
- 327. - }
- 328. - .group_row_blockinv {
- 329. - white-space: nowrap;
- 330. - overflow: hidden;
- 331. - -o-text-overflow: ellipsis;
- 332. - text-overflow: ellipsis;
- 333. - padding-top: 10px;
- 334. - }
- 335. - .group_row_photo {
- 336. - height: 100px;
- 337. - overflow: hidden;
- 338. - width: 100px;
- 339. - }
- 340. - .group_row_info {
- 341. - padding-left: 10px;
- 342. - width: 485px;
- 343. - overflow: hidden;
- 344. - color: #777777;
- 345. - }
- 346. - .group_inv_info {
- 347. - padding: 0px 0px 0px 15px;
- 348. - width: 480px;
- 349. - overflow: hidden;
- 350. - }
- 351. - .group_row_label {
- 352. - color: #777;
- 353. - width: 70px;
- 354. - padding: 0 10px;
- 355. - }
- 356. - .group_row_labeled, .group_row_status_wrap {
- 357. - margin-bottom: 3px;
- 358. - width: 405px;
- 359. - }
- 360. - .group_row_status_wrap {
- 361. - color: #777;
- 362. - padding: 5px 0;
- 363. - }
- 364. - .group_row_actions {
- 365. - padding: 0 5px;
- 366. - }
- 367. - .group_row_actions {
- 368. - padding: 0px;
- 369. - }
- 370. - .groups_no_list {
- 371. - border: 0;
- 372. - background: #FFF;
- 373. - color: #777;
- 374. - font-size: 1.18em;
- 375. - margin: 0 0 3px;
- 376. - padding: 80px 0;
- 377. - text-align: center;
- 378. - overflow: hidden;
- 379. - text-overflow: ellipsis;
- 380. - }
- 381. - .groups_more_link {
- 382. - display: block;
- 383. - padding: 10px 0px;
- 384. - margin: 0px 10px 10px;
- 385. - border-top: 1px solid #DAE1E8;
- 386. - text-align: center;
- 387. - }
- 388. - .groups_more_link:hover {
- 389. - background: #E1E7ED;
- 390. - text-decoration: none;
- 391. - }
- 392. - .group_friends_in_gr {
- 393. - padding-top: 6px;
- 394. - margin: 0px -2px;
- 395. - }
- 396. - .group_friend_in_gr {
- 397. - height: 32px;
- 398. - overflow: hidden;
- 399. - padding: 0px 2px;
- 400. - }
- 401. - .group_row_buttons {
- 402. - margin: 8px -3px 0px -2px;
- 403. - }
- 404. - .group_row_button {
- 405. - margin: 0px 3px 0px 2px;
- 406. - }
- 407. -
- 408. - .group_friend_in_img {
- 409. - width: 32px;
- 410. - }
- 411. - .groups_create_box {
- 412. - padding: 3px 0px 1px;
- 413. - width: 370px;
- 414. - }
- 415. - .groups_create_header {
- 416. - color: #36638E;
- 417. - font-size: 1.09em;
- 418. - font-weight: bold;
- 419. - margin: 11px 0px 5px;
- 420. - }
- 421. - .groups_create_section {
- 422. - padding: 9px 1px 2px;
- 423. - }
- 424. - .groups_create_section .radiobtn div {
- 425. - width: 18px;
- 426. - }
- 427. - .groups_create_about {
- 428. - color: #777;
- 429. - padding: 2px 23px 0px;
- 430. - }
- 431. - #group_create_title, #group_create_desc {
- 432. - width: 360px;
- 433. - }
- 434. - .groups_about_public {
- 435. - font-size: 0.9em;
- 436. - color: #777;
- 437. - padding-top: 10px;
- 438. - }
- 439. - .groups_search_focused .group_row_highlight {
- 440. - background: #E1E7ED;
- 441. - border-bottom: 1px solid #DAE1E8;
- 442. - padding: 0px 1px 0px;
- 443. - margin: 0px -1px;
- 444. - *padding: 0px;
- 445. - *margin: 0px;
- 446. - }
- 447. - .group_full_private {
- 448. - font-size: 1.09em;
- 449. - padding: 140px 20px 200px;
- 450. - text-align: center;
- 451. - width: 567px;
- 452. - }
- 453. -
- 454. - .public_contacts_list {
- 455. - padding: 7px 5px 5px;
- 456. - overflow-y: scroll;
- 457. - overflow-x: hidden;
- 458. - height: 298px;
- 459. - width: 455px;
- 460. - }
- 461. - .public_contacts_list_header {
- 462. - border-bottom: 1px solid rgb(218, 225, 232);
- 463. - margin: 0pt 5px 4px;
- 464. - padding: 5px 0pt 2px;
- 465. - width: 430px;
- 466. - }
- 467. - .public_contacts_list .row {
- 468. - padding: 6px;
- 469. - width: 50px;
- 470. - }
- 471. - .public_contacts_list .info {
- 472. - padding: 6px 5px;
- 473. - width: 240px;
- 474. - }
- 475. - .public_contacts_list .info_wide {
- 476. - padding: 6px 5px;
- 477. - width: 350px;
- 478. - }
- 479. - .public_contacts_list .actions {
- 480. - width: 120px;
- 481. - padding: 8px 0;
- 482. - }
- 483. - .public_contacts_list .edit_actions {
- 484. - width: 120px;
- 485. - }
- 486. - .public_contacts_list .name a {
- 487. - font-size: 1.09em;
- 488. - color: #2B587A;
- 489. - font-weight: bold;
- 490. - padding-bottom: 5px;
- 491. - }
- 492. - .public_contacts_list .name span {
- 493. - font-weight: bold;
- 494. - font-size: 1.09em;
- 495. - padding-bottom: 5px;
- 496. - color: #777777;
- 497. - }
- 498. - .public_contacts_list .image {
- 499. - height: 50px;
- 500. - width: 50px;
- 501. - overflow: hidden;
- 502. - }
- 503. - .public_contacts_list h2 {
- 504. - border: 0;
- 505. - }
- 506. - .public_contacts_list .cell {
- 507. - width: 435px;
- 508. - border-bottom: 1px solid #E6EAED;
- 509. - }
- 510. - .public_contacts_list .desc {
- 511. - padding: 4px 2px 0;
- 512. - }
- 513. - .public_contacts_list .extra_info {
- 514. - padding: 4px 2px 0;
- 515. - color: #777777;
- 516. - line-height: 150%;
- 517. - }
- 518. - .public_contacts_list .extra_info a {
- 519. - color: #777777;
- 520. - }
- 521. - .public_contacts_list .extra_info span {
- 522. - background: url(/images/icons/info_icons.gif) no-repeat 0 0;
- 523. - padding: 0 8px 0 13px;
- 524. - }
- 525. - .public_contacts_list .extra_info .info_phone {
- 526. - background-position: 0 -18px;
- 527. - padding-left: 9px;
- 528. - }
- 529. - .public_no_contacts {
- 530. - padding: 145px 5px 5px;
- 531. - height: 140px;
- 532. - text-align: center;
- 533. - font-size: 1.09em;
- 534. - color:gray;
- 535. - }
- 536. -
- 537. -
- 538. - #group_like_module .like_link_state {
- 539. - width: 180px;
- 540. - }
- 541. - #group_like_module #group_subscribe.like_link_state {
- 542. - padding: 6px 0px 8px;
- 543. - }
- 544. - #group_like_module .like_link_state .subscribe_button_wrap {
- 545. - padding: 3px 30px 14px;
- 546. - }
- 547. - #group_like_module .like_link_state .desc {
- 548. - padding-bottom: 13px;
- 549. - }
- 550. - #group_like_module .like_link_state .desc .share_event_link {
- 551. - padding-top: 1px;
- 552. - }
- 553. - #group_like_module .group_friends_count {
- 554. - text-align: center;
- 555. - }
- 556. - #group_decline_past_event, #group_restore_past_event {
- 557. - padding-top: 8px;
- 558. - }
- 559. - .group_event_took_place {
- 560. - padding-bottom: 5px;
- 561. - }
- 562. - .group_user_invited {
- 563. - padding: 2px 0 11px;
- 564. - text-align: center;
- 565. - }
- 566. -
- 567. -
- 568. - #public_contact_memlink_tip {
- 569. - color: #777;
- 570. - padding: 3px 0;
- 571. - font-size: 0.9em;
- 572. - }
- 573. - .public_edit_contact_info h2 {
- 574. - margin: 0 0 10px 10px;
- 575. - }
- 576. - .public_edit_contact_info .label {
- 577. - padding: 3px 10px 2px;
- 578. - width: 70px;
- 579. - clear: both;
- 580. - color: #777;
- 581. - }
- 582. - .public_edit_contact_info .labeled_text {
- 583. - padding: 3px 0px 10px;
- 584. - width: 190px;
- 585. - }
- 586. - .public_edit_contact_info .labeled {
- 587. - padding: 0px 0px 5px;
- 588. - width: 190px;
- 589. - overflow: hidden;
- 590. - }
- 591. - .public_edit_contact_info .labeled .text {
- 592. - width: 182px;
- 593. - }
- 594. -
- 595. - .gle_block {
- 596. - width: 190px;
- 597. - overflow: hidden;
- 598. - padding: 10px 0px;
- 599. - }
- 600. - .gle_table {
- 601. - width: 190px;
- 602. - }
- 603. - .gle_td {
- 604. - vertical-align: top;
- 605. - }
- 606. - .gle_thumb {
- 607. - display: block;
- 608. - width: 50px;
- 609. - height: 50px;
- 610. - overflow: hidden;
- 611. - }
- 612. - .gle_img {
- 613. - width: 50px;
- 614. - vertical-align: top;
- 615. - }
- 616. - .gle_row {
- 617. - padding: 1px 0px 2px;
- 618. - margin: 0px 8px;
- 619. - width: 124px;
- 620. - white-space: nowrap;
- 621. - height: 13px;
- 622. - overflow: hidden;
- 623. - -o-text-overflow: ellipsis;
- 624. - text-overflow: ellipsis;
- 625. - }
- 626. - .gle_date, .gle_place {
- 627. - color: #777;
- 628. - }
- 629. - .gl_events_msg_hide {
- 630. - padding: 15px 0px 3px;
- 631. - }
- 632. - div.gl_summary_short {
- 633. - padding: 13px 0px 0px;
- 634. - margin: 0px 10px;
- 635. - }
- 636. - .gle_list {
- 637. - padding: 0px 10px;
- 638. - }
- 639. - #gle_list_more_lnk {
- 640. - display: block;
- 641. - background: #EFF1F3;
- 642. - margin: 0px 10px 10px;
- 643. - padding: 10px;
- 644. - text-align: center;
- 645. - color: #738392;
- 646. - }
- 647. - #gle_list_more_lnk:hover {
- 648. - background: #E9EDF1;
- 649. - text-decoration: none;
- 650. - }
- 651. - #gle_list_more {
- 652. - display: none;
- 653. - }
- 654. -
- 655. - .group_share_club {
- 656. - text-decoration: none;
- 657. - width: 11px;
- 658. - height: 13px;
- 659. - background: url(/images/icons/mono_iconset.gif?8) no-repeat 0px -192px;
- 660. - cursor: pointer;
- 661. - margin: 3px 5px 0px;
- 662. - }
- 663. - #group_share_progress, #group_unshare_progress {
- 664. - height: 17px;
- 665. - }
- 666. - .groups_list_search_summary {
- 667. - padding: 8px 0px 0px;
- 668. - }
- 669. - .groups_list_last_row {
- 670. - border-bottom: none;
- 671. - }
- 672. - #groups_loading {
- 673. - background: url('/images/upload.gif') center center no-repeat;
- 674. - width: 32px;
- 675. - height: 9px;
- 676. - margin: 7px 0px 0px 572px;
- 677. - z-index: 95;
- 678. - position: absolute;
- 679. - display: none;
- 680. - }
- 681. - #groups_reset_search {
- 682. - margin: 1px 0px 0px 586px;
- 683. - display: none;
- 684. - cursor: pointer;
- 685. - background: transparent url(/images/icons/input_clear.gif) 6px 6px no-repeat;
- 686. - padding: 2px;
- 687. - width: 19px;
- 688. - height: 19px;
- 689. - opacity: 0.6;
- 690. - filter: alpha(opacity=60);
- 691. - position: absolute;
- 692. - z-index: 95;
- 693. - }
- 694. - #groups_list_search_cont {
- 695. - display: none;
- 696. - }
- 697. - .groups_row_type {
- 698. - color: #777;
- 699. - /*margin-left: 8px;*/
- 700. - display: block;
- 701. - padding-top: 4px;
- 702. - }
- 703. - .groups_inv_more {
- 704. - display: none;
- 705. - }
- 706. - .groups_inv_showmore {
- 707. - display: block;
- 708. - padding: 10px 0px;
- 709. - margin: 0px;
- 710. - border-top: 1px solid #DAE1E8;
- 711. - text-align: center;
- 712. - }
- 713. - .groups_inv_showmore:hover {
- 714. - background: #E1E7ED;
- 715. - text-decoration: none;
- 716. - }
- 717. - .gle_invites_list {
- 718. - padding: 0px 10px;
- 719. - }
- 720. - .groups_inv_last_row {
- 721. - border-bottom: none;
- 722. - padding-bottom: 0px;
- 723. - }
- 724. - .groups_inv_info {
- 725. - width: 540px;
- 726. - padding-left: 10px;
- 727. - }
- 728. - .groups_inv_info_l {
- 729. - color: #777777;
- 730. - margin-left: 8px;
- 731. - }
- 732. - .groups_inv_cont {
- 733. - background: #F7F7F7;
- 734. - padding: 10px;
- 735. - margin: 8px 0px 0px 0px;
- 736. - }
- 737. - .groups_row_inv_info {
- 738. - padding-left: 10px;
- 739. - width: 410px;
- 740. - }
- 741. - .group_inv_status {
- 742. - margin-top: 2px;
- 743. - color: #777777;
- 744. - }
- 745. - .groups_acted_text {
- 746. - padding: 0px 0px 4px;
- 747. - }
- 748. - .gle_summary_progress {
- 749. - display: none;
- 750. - }
- 751. - #gle_invites_more {
- 752. - display: none;
- 753. - }
- 754. - .group_inv_event_time {
- 755. - padding: 2px 0px 4px;
- 756. - }
- 757. - .groups_row_img {
- 758. - width: 100px;
- 759. - }
- 760. - .gle_invites_actions {
- 761. - margin: 0px 0px 14px;
- 762. - text-align: center;
- 763. - background: #F7F7F7;
- 764. - padding: 8px;
- 765. - }
- 766. -
- 767. - div.gtop_message {
- 768. - margin: 0 0 10px 0;
- 769. - padding: 8px 13px;
- 770. - border: none;
- 771. - background-color: #F0F2F5;
- 772. - }
- 773. - .gtop_mesage_buttons {
- 774. - padding: 10px 0px 3px;
- 775. - }
- 776. - .gtop_mesage_buttons a {
- 777. - margin: 6px 0 0 20px;
- 778. - }
- ------
- Файл - groups_list.js (Старый размер - 35500 | Новый - 0):
- 0. - var GroupsList = {
- 1. - rand: function() {
- 2. - return Math.floor(Math.random() * 10000);
- 3. - },
- 4. - enter: function(el, gid, hash, act, past) {
- 5. - if (cur.invSwitching) {
- 6. - setTimeout(GroupsList.enter.pbind(el, gid, hash, act, past), 100);
- 7. - return false;
- 8. - }
- 9. - var sp, hp, tab = cur.scrollList.tab;
- 10. -
- 11. - if (el.tagName.toLowerCase() != 'button') {
- 12. - if (!el.backhtml) {
- 13. - el.backhtml = el.innerHTML;
- 14. - }
- 15. - sp = function() {
- 16. - var w = getSize(el)[0];
- 17. - el.innerHTML = '<span class="progress_inline"></span>';
- 18. - setStyle(el, {width: w - 30});
- 19. - }
- 20. - hp = function() {
- 21. - el.innerHTML = el.backhtml;
- 22. - }
- 23. - } else {
- 24. - sp = lockButton.pbind(el);
- 25. - hp = unlockButton.pbind(el);
- 26. - }
- 27. -
- 28. - var key = GroupsList.rand(), value = GroupsList.rand();
- 29. - cur.scrollList[key] = value;
- 30. -
- 31. - var context = (cur.scrollList.tab == 'groups') ? '2' : '1';
- 32. -
- 33. - var shown = false;
- 34. - cur.invSwitching = true;
- 35. - if (GroupsList.switchInvite(gid, (act == 'decline' && !past))) {
- 36. - shown = true;
- 37. - sp = false;
- 38. - hp = false;
- 39. - }
- 40. -
- 41. - ajax.post('al_groups.php', {
- 42. - act: 'enter',
- 43. - gid: gid,
- 44. - hash: hash,
- 45. - context: context + (act ? '_' + act : ''),
- 46. - inv_shown: cur.scrollList.invShown
- 47. - }, {
- 48. - onDone: function(newRow, added) {
- 49. - cur.invSwitching = false;
- 50. - if (!cur.scrollList || cur.scrollList[key] != value) return;
- 51. -
- 52. - var list = cur.scrollList.lists[tab], newStatus = past ? 5 : 1;
- 53. - if (act == 'unsure') {
- 54. - newStatus = past ? 5 : 3;
- 55. - } else if (act == 'decline') {
- 56. - newStatus = past ? -3 : -1;
- 57. - } else if (act == 'undecided') {
- 58. - newStatus = 4;
- 59. - }
- 60. - if (!list || list == 'loading' || list == 'update') {
- 61. - cur.scrollList.processed[tab][gid] = newStatus;
- 62. - } else {
- 63. - for (var i = 0, count = list.length; i < count; ++i) {
- 64. - if (list[i][2] == gid) {
- 65. - list[i][1] = newStatus;
- 66. - }
- 67. - }
- 68. - }
- 69. -
- 70. - var row = ge('gl_' + tab + gid);
- 71. -
- 72. - GroupsList.addInvite(newRow, added, act);
- 73. -
- 74. - var rowEl = geByClass1('group_list_row', ge('groups_list_content'));
- 75. - if (rowEl && rowEl.id == 'gl_' + tab + gid) {
- 76. - setStyle(rowEl, {backgroundColor: '#FEFAE4'});
- 77. - animate(rowEl, {backgroundColor: '#FFF'}, 2000);
- 78. - }
- 79. -
- 80. - if (shown) {
- 81. - if (cur.switchedInvite && act == 'decline' && !past) {
- 82. - var switchedHtml = getLang('groups_event_left') + ' <a onclick="GroupsList.spam(this.parentNode, ' + gid + ', \'' + hash + '\', cur.switchedInvite)">' + getLang('its_spam') + '</a>';
- 83. - if (ge('clubinv' + gid)) switchedHtml += '<div class="group_row_blockinv"><a onclick="GroupsList.spam(domPN(domPN(this)), ' + gid + ', \'' + hash + '\', cur.switchedInvite, 1)">' + getLang('groups_block_clubinv').replace('{club}', '<b>' + val(domPS(ge('clubinv' + gid))) + '</b>') + '</a></div>';
- 84. - cur.switchedInvite.innerHTML = switchedHtml;
- 85. - }
- 86. - return;
- 87. - }
- 88. -
- 89. - if (!row) return;
- 90. -
- 91. - var status = geByClass1('group_row_status', row), actions = geByClass1('group_row_actions', row), old = status.basehtml;
- 92. - var actOld = actions.basehtml;
- 93. - status.basehtml = status.innerHTML;
- 94. - actions.basehtml = actions.innerHTML;
- 95. - if (act == 'undecided') {
- 96. - actions.innerHTML = actOld || '';
- 97. - status.innerHTML = old || '\
- 98. - <div class="group_row_buttons">\
- 99. - <div class="group_row_button button_blue fl_l">\
- 100. - <button onclick="GroupsList.enter(this, ' + gid + ', \'' + hash + '\', \'join\')">' + getLang('groups_event_go_btn') + '</button>\
- 101. - </div>\
- 102. - <div class="group_row_button button_blue fl_l">\
- 103. - <button onclick="GroupsList.enter(this, ' + gid + ', \'' + hash + '\', \'unsure\')">' + getLang('groups_event_maybe_btn') + '</button>\
- 104. - </div>\
- 105. - <div class="group_row_button button_cancel fl_l">\
- 106. - <div class="button" onclick="GroupsList.enter(this, ' + gid + ', \'' + hash + '\', \'decline\')">' + getLang('groups_event_cant_btn') + '</div>\
- 107. - </div>\
- 108. - </div>';
- 109. - } else if (act) {
- 110. - if (past) {
- 111. - var statHTML = getLang('groups_was_on_event');
- 112. - if (act == 'decline') {
- 113. - actions.innerHTML = '<a onclick="GroupsList.enter(this.parentNode, ' + gid + ', \'' + hash + '\', \'join\', true)">' + getLang('groups_return_event') + '</a>';
- 114. - } else {
- 115. - actions.innerHTML = '<a onclick="GroupsList.enter(this.parentNode, ' + gid + ', \'' + hash + '\', \'decline\', true)">' + getLang('groups_remove_event') + '</a>';
- 116. - }
- 117. - } else {
- 118. - var acts = '<a onclick="GroupsList.enter(this.parentNode, ' + gid + ', \'' + hash + '\', \'undecided\')">' + getLang('groups_event_change') + '</a>';
- 119. - if (act == 'unsure') {
- 120. - var statHTML = getLang('groups_unsure_event');
- 121. - } else if (act == 'decline') {
- 122. - var statHTML = getLang('groups_event_left');
- 123. - acts += '<span class="divider">|</span><a onclick="GroupsList.spam(this.parentNode, ' + gid + ', \'' + hash + '\')">' + getLang('its_spam') + '</a>';
- 124. - if (ge('clubinv' + gid)) acts += '<div class="group_row_blockinv"><a onclick="GroupsList.spam(domPN(domPN(this)), ' + gid + ', \'' + hash + '\', false, 1)">' + getLang('groups_block_clubinv').replace('{club}', '<b>' + val(domPS(ge('clubinv' + gid))) + '</b>') + '</a></div>';
- 125. - } else {
- 126. - var statHTML = getLang('groups_you_in_event');
- 127. - }
- 128. - actions.innerHTML = acts;
- 129. - }
- 130. - status.innerHTML = '<div class="groups_acted_text">'+statHTML+'</div>';
- 131. - cur.lst = status;
- 132. - } else {
- 133. - status.innerHTML = '<div class="groups_acted_text">'+getLang('groups_group_enter_message')+'</div>';
- 134. - actions.innerHTML = '<a onclick="GroupsList.cancel(this.parentNode, ' + gid + ', \'' + hash + '\')">' + getLang('global_cancel') + '</a>';
- 135. - }
- 136. -
- 137. - if (tab == 'inv') {
- 138. - var row = ge('gl_groups'+ gid);
- 139. - if (row) {
- 140. - var statusOne = geByClass1('group_row_status', row), actionsOne = geByClass1('group_row_actions', row);
- 141. - statusOne.innerHTML = status.innerHTML;
- 142. - actionsOne.innerHTML = actions.innerHTML;
- 143. - }
- 144. - }
- 145. - if (act == 'join' || act == 'unsure') {
- 146. - GroupsList.updateEventsList(gid);
- 147. - } else if (act == 'undecided') {
- 148. - GroupsList.updateEventsList(false);
- 149. - }
- 150. - /*var list = cur.scrollList.lists[tab];
- 151. - if (act == 'join' || act == 'unsure' || act == 'decline') {
- 152. - GroupsList.updateEventsList();
- 153. - for(var i in list) {
- 154. - if (list[i][2] == gid) {
- 155. - cur['gid_restore_el'+gid] = [list.splice(i, 1), i];
- 156. - }
- 157. - }
- 158. - } else if (act == 'undecided' && cur['gid_restore_el'+gid]) {
- 159. - list.splice(cur['gid_restore_el'+gid][1], 0, cur['gid_restore_el'+gid][0][0]);
- 160. - }*/
- 161. - },
- 162. - onFail: function(text) {
- 163. - if (text) {
- 164. - setTimeout(showFastBox(getLang('global_error'), text).hide, 3000);
- 165. - return true;
- 166. - }
- 167. - },
- 168. - showProgress: sp, hideProgress: hp
- 169. - });
- 170. - },
- 171. -
- 172. - addInvite: function(newRow, added, act) {
- 173. - if (newRow) {
- 174. - var moreCont = ge('gle_invites_more');
- 175. - moreCont.appendChild(se(newRow));
- 176. - cur.scrollList.invShown += 1;
- 177. - if (cur.scrollList.invSwitchGid) {
- 178. - GroupsList.switchInvite(cur.scrollList.invSwitchGid);
- 179. - cur.scrollList.invSwitchGid = false;
- 180. - }
- 181. - }
- 182. -
- 183. - if (added && cur.scrollList.lists.groups) {
- 184. - var l = cur.scrollList.lists.groups;
- 185. - if (act == 'join' || act == 'unsure') {;
- 186. - l.push(added);
- 187. - } else if (!act) {
- 188. - l.unshift(added); // add to the start
- 189. - } else if (act == 'undecided') {
- 190. - for (var i in l) {
- 191. - if (l[i][2] == added[2]) {
- 192. - l.splice(i, 1)
- 193. - }
- 194. - }
- 195. - }
- 196. - cur.scrollList.cache['groups'] = {all: []};
- 197. - var c = cur.scrollList.cache['groups'];
- 198. - for (var i in l) {
- 199. - c.all.push(i);
- 200. - }
- 201. - cur.scrollList.index['groups'] = new vkIndexer(c.all, function(obj) {
- 202. - return l[obj][0];
- 203. - });
- 204. - GroupsList.showMore(true);
- 205. - }
- 206. - },
- 207. -
- 208. - switchInvite: function(gid, prepareActs) {
- 209. - var tab = cur.scrollList.tab;
- 210. - if (tab != 'groups') {
- 211. - return false;
- 212. - }
- 213. -
- 214. - var row = ge('gl_' + tab + gid);
- 215. -
- 216. - var moreCont = ge('gle_invites_more');
- 217. - var newRows = moreCont.childNodes;
- 218. - if (!newRows.length) {
- 219. - if (cur.scrollList.invShown < cur.scrollList.invCount) {
- 220. - cur.scrollList.invSwitchGid = gid;
- 221. - return true;
- 222. - }
- 223. - return false;
- 224. - }
- 225. - var newRow = newRows[0];
- 226. -
- 227. - if (!newRow) {
- 228. - return false;
- 229. - }
- 230. -
- 231. - if (cur.switchedInvite) {
- 232. - slideUp(cur.switchedInvite);
- 233. - }
- 234. - if (prepareActs) {
- 235. - cur.switchedInvite = ce('div', {className: 'gle_invites_actions', innerHTML: '<div class="progress_inline"></div>'});
- 236. - newRow.insertBefore(cur.switchedInvite, newRow.firstChild)
- 237. - }
- 238. -
- 239. - cur.scrollList.invShown -= 1;
- 240. - cur.scrollList.invCount -= 1;
- 241. -
- 242. - var cont = row.parentNode;
- 243. - var size = getSize(cont);
- 244. - setStyle(newRow, {opacity: 0, overflow: 'hidden', height: 1, position: 'absolute'});
- 245. - cont.appendChild(newRow);
- 246. - animate(newRow, {marginTop: -size[1], opacity: 1, height: size[1]}, 200, function() {
- 247. - hide(row);
- 248. - setStyle(newRow, {marginTop: 0, position: 'static', height: 'auto'});
- 249. - });
- 250. -
- 251. - if (cur.scrollList.invCount) {
- 252. - ge('gle_inv_summary').innerHTML = langNumeric(cur.scrollList.invCount, cur.scrollList.summaries.inv);
- 253. - } else {
- 254. - ge('gle_inv_summary').innerHTML = cur.scrollList.summaries.invEmpty;
- 255. - }
- 256. - return true;
- 257. - },
- 258. -
- 259. - leave: function(el, gid, hash, pp) {
- 260. - if (cur.invSwitching) {
- 261. - setTimeout(GroupsList.leave.pbind(el, gid, hash, pp), 100);
- 262. - return false;
- 263. - }
- 264. - var sp, hp, tab = cur.scrollList.tab;
- 265. -
- 266. - if (el.firstChild && el.firstChild.className == 'progress_inline') return;
- 267. - sp = function() {
- 268. - var w = getSize(el)[0];
- 269. - el.oldhtml = el.innerHTML;
- 270. - el.innerHTML = '<span class="progress_inline"></span>';
- 271. - setStyle(el, {width: w - 30});
- 272. - }
- 273. - hp = function() {
- 274. - el.innerHTML = el.oldhtml;
- 275. - }
- 276. -
- 277. - var key = GroupsList.rand(), value = GroupsList.rand();
- 278. - cur.scrollList[key] = value;
- 279. -
- 280. - var shown = false;
- 281. - cur.invSwitching = true;
- 282. - if (GroupsList.switchInvite(gid, true)) {
- 283. - shown = true;
- 284. - sp = false;
- 285. - hp = false;
- 286. - }
- 287. -
- 288. - var context = (cur.scrollList.tab == 'groups') ? '2' : '1';
- 289. -
- 290. - ajax.post('al_groups.php', {
- 291. - act: 'leave',
- 292. - gid: gid,
- 293. - hash: hash,
- 294. - context: context,
- 295. - inv_shown: cur.scrollList.invShown
- 296. - }, {
- 297. - onDone: function(newRow) {
- 298. - cur.invSwitching = false;
- 299. - if (!cur.scrollList || cur.scrollList[key] != value) return;
- 300. -
- 301. - var list = cur.scrollList.lists[tab];
- 302. - if (!list || list == 'loading' || list == 'update') {
- 303. - cur.scrollList.processed[tab][gid] = -1;
- 304. - } else {
- 305. - for (var i = 0, count = list.length; i < count; ++i) {
- 306. - if (list[i][2] == gid) {
- 307. - list[i][1] = -1;
- 308. - }
- 309. - }
- 310. - }
- 311. -
- 312. - var row = ge('gl_' + tab + gid);
- 313. - if (!row) return;
- 314. -
- 315. - var acts = '<a onclick="GroupsList.cancel(this.parentNode, ' + gid + ', \'' + hash + '\')">' + getLang('global_cancel') + '</a><span class="divider">|</span><a onclick="GroupsList.spam(this.parentNode, ' + gid + ', \'' + hash + '\')">' + getLang('its_spam') + '</a>';
- 316. -
- 317. - var text = '';
- 318. - if (tab == 'groups') {
- 319. - text = getLang(pp ? 'public_you_unsubscribed' : 'groups_group_left');
- 320. - } else {
- 321. - text = getLang('groups_group_deny_message');
- 322. - }
- 323. -
- 324. - GroupsList.addInvite(newRow, false, false);
- 325. -
- 326. - if (shown) {
- 327. - if (cur.switchedInvite) {
- 328. - cur.switchedInvite.innerHTML = text+' <a onclick="GroupsList.spam(this.parentNode, ' + gid + ', \'' + hash + '\', cur.switchedInvite)">' + getLang('its_spam') + '</a>';
- 329. - }
- 330. - return;
- 331. - }
- 332. -
- 333. - var status = geByClass1('group_row_status', row), actions = geByClass1('group_row_actions', row);
- 334. - status.basehtml = status.innerHTML;
- 335. - actions.basehtml = actions.innerHTML;
- 336. - status.innerHTML = text;
- 337. - actions.innerHTML = acts;
- 338. - },
- 339. - showProgress: sp, hideProgress: hp
- 340. - });
- 341. - },
- 342. - rejectAll: function(el, hash) {
- 343. - var box = showFastBox(getLang('global_warning'), getLang('groups_sure_reject_all'), getLang('groups_members_application_decline'), function() {
- 344. - ajax.post('al_groups.php', {act: 'reject_all', hash: hash}, {progress: box.progress});
- 345. - }, getLang('global_cancel'));
- 346. - },
- 347. - spam: function(el, gid, hash, applyCont, block) {
- 348. - var sp, hp, tab = cur.scrollList.tab;
- 349. -
- 350. - if (el.firstChild && el.firstChild.className == 'progress_inline') return;
- 351. - sp = function() {
- 352. - el.oldhtml = el.innerHTML;
- 353. - el.innerHTML = '<span class="progress_inline"></span>';
- 354. - }
- 355. - hp = function() {
- 356. - el.innerHTML = el.oldhtml;
- 357. - }
- 358. -
- 359. - var key = GroupsList.rand(), value = GroupsList.rand();
- 360. - cur.scrollList[key] = value;
- 361. -
- 362. - ajax.post('al_groups.php', {act: 'spam', gid: gid, hash: hash, context: 1, block: block}, {
- 363. - onDone: function(respText) {
- 364. - if (!cur.scrollList || cur.scrollList[key] != value) return;
- 365. - if (block > 0) {
- 366. - respText = respText.replace('{club}', '<b>' + val(domPS(ge('clubinv' + gid))) + '</b>');
- 367. - }
- 368. - if (applyCont) {
- 369. - if (block < 0) {
- 370. - applyCont.innerHTML = applyCont.basehtml;
- 371. - } else {
- 372. - applyCont.basehtml = applyCont.innerHTML;
- 373. - var applyContText = respText;
- 374. - if (block > 0) {
- 375. - respText += '<div class="group_row_blockinv"><a onclick="GroupsList.spam(domPN(domPN(this)), ' + gid + ', \'' + hash + '\', cur.switchedInvite, -1)">' + getLang('global_cancel') + '</div>';
- 376. - } else if (ge('clubinv' + gid)) {
- 377. - respText += '<div class="group_row_blockinv"><a onclick="GroupsList.spam(domPN(domPN(this)), ' + gid + ', \'' + hash + '\', cur.switchedInvite, 1)">' + getLang('groups_block_clubinv').replace('{club}', '<b>' + val(domPS(ge('clubinv' + gid))) + '</b>') + '</a></div>'
- 378. - }
- 379. - applyCont.innerHTML = respText;
- 380. - }
- 381. - }
- 382. -
- 383. - if (!block) {
- 384. - var list = cur.scrollList.lists[tab];
- 385. - if (!list || list == 'loading' || list == 'update') {
- 386. - cur.scrollList.processed[tab][gid] = -2;
- 387. - } else {
- 388. - for (var i = 0, count = list.length; i < count; ++i) {
- 389. - if (list[i][2] == gid) {
- 390. - list[i][1] = -2;
- 391. - }
- 392. - }
- 393. - }
- 394. - }
- 395. -
- 396. - var row = ge('gl_' + tab + gid);
- 397. - if (!row) return;
- 398. -
- 399. - var status = geByClass1('group_row_status', row), actions = geByClass1('group_row_actions', row);
- 400. - if (block < 0) {
- 401. - status.innerHTML = status.blockhtml;
- 402. - actions.innerHTML = actions.blockhtml;
- 403. - } else {
- 404. - if (block) {
- 405. - status.blockhtml = status.innerHTML;
- 406. - actions.blockhtml = actions.innerHTML;
- 407. - status.innerHTML = '<div class="group_row_blockinv">' + respText + '</div>';
- 408. - actions.innerHTML = '<div class="group_row_blockinv"><a onclick="GroupsList.spam(domPN(domPN(this)), ' + gid + ', \'' + hash + '\', false, -1)">' + getLang('global_cancel') + '</a></div>';
- 409. - } else {
- 410. - status.basehtml = status.innerHTML;
- 411. - actions.basehtml = actions.innerHTML;
- 412. - status.innerHTML = getLang('groups_ajax_inv_declined_spam');
- 413. - actions.innerHTML = '';
- 414. - }
- 415. - }
- 416. - },
- 417. - showProgress: sp, hideProgress: hp
- 418. - });
- 419. - },
- 420. - cancel: function(el, gid, hash) {
- 421. - var sp, hp, tab = cur.scrollList.tab;
- 422. -
- 423. - if (el.firstChild && el.firstChild.className == 'progress_inline') return;
- 424. - sp = function() {
- 425. - el.oldhtml = el.innerHTML;
- 426. - el.innerHTML = '<span class="progress_inline"></span>';
- 427. - }
- 428. - hp = function() {
- 429. - el.innerHTML = el.oldhtml;
- 430. - }
- 431. -
- 432. - var key = GroupsList.rand(), value = GroupsList.rand();
- 433. - cur.scrollList[key] = value;
- 434. -
- 435. - ajax.post('al_groups.php', {act: 'cancel', gid: gid, hash: hash, context: 1}, {
- 436. - onDone: function() {
- 437. - if (!cur.scrollList || cur.scrollList[key] != value) return;
- 438. -
- 439. - var list = cur.scrollList.lists[tab], elem = false;
- 440. - if (!list || list == 'loading' || list == 'update') {
- 441. - cur.scrollList.processed[tab][gid] = 0;
- 442. - } else {
- 443. - for (var i in list) {
- 444. - if (list[i][2] == gid) {
- 445. - list.splice(i, 1)
- 446. - }
- 447. - }
- 448. - cur.scrollList.cache['groups'] = {all: []};
- 449. - var c = cur.scrollList.cache['groups'];
- 450. - for (var i in list) {
- 451. - c.all.push(i);
- 452. - }
- 453. - cur.scrollList.index[tab] = new vkIndexer(c.all, function(obj) {
- 454. - return list[obj][0];
- 455. - });
- 456. - }
- 457. - /*} else {
- 458. - for (var i = 0, count = list.length; i < count; ++i) {
- 459. - if (list[i][2] == gid) {
- 460. - list[i][1] = 0;
- 461. - elem = list[i];
- 462. - break;
- 463. - }
- 464. - }
- 465. - }*/
- 466. -
- 467. - var row = ge('gl_' + tab + gid);
- 468. - if (!row) return;
- 469. -
- 470. - if (elem) {
- 471. - var name = elem[0], q = trim(cur.scrollList.query.value);
- 472. - if (q) {
- 473. - var highlight = GroupsList.getHighlight(q);
- 474. - name = name.replace(highlight.re, highlight.val);
- 475. - }
- 476. - var newRow = (cur.scrollList.genRow(elem, name)) ? cur.scrollList.genInvRow(elem, name) : cur.scrollList.genRow(elem, name);
- 477. - row.parentNode.replaceChild(ce('div', {innerHTML: newRow}).firstChild, row);
- 478. - } else {
- 479. - var status = geByClass1('group_row_status', row), actions = geByClass1('group_row_actions', row);
- 480. - status.innerHTML = status.basehtml;
- 481. - actions.innerHTML = actions.basehtml;
- 482. - }
- 483. - },
- 484. - showProgress: sp, hideProgress: hp
- 485. - });
- 486. - },
- 487. -
- 488. - scrollCheck: function() {
- 489. - if (browser.mobile) return;
- 490. - var lnk = ge(cur.scrollList.prefix + cur.scrollList.tab + '_more');
- 491. - if (!isVisible(lnk)) {
- 492. - return;
- 493. - }
- 494. -
- 495. - var docEl = document.documentElement;
- 496. - var ch = window.innerHeight || docEl.clientHeight || bodyNode.clientHeight;
- 497. - var st = scrollGetY();
- 498. -
- 499. - if (st + ch > lnk.offsetTop || (cur.searchOffset && st + 2*ch > lnk.offsetTop)) {
- 500. - GroupsList.showMore();
- 501. - }
- 502. - },
- 503. - initScroll: function() {
- 504. - addEvent((browser.msie6 ? pageNode : window), 'scroll', GroupsList.scrollCheck);
- 505. - addEvent(window, 'resize', GroupsList.scrollCheck);
- 506. - },
- 507. -
- 508. - locNav: function(changed, oldLoc, newLoc) {
- 509. - var changedTab = changed.tab, tab = changedTab || 'groups';
- 510. - delete(changed.tab);
- 511. - if (!isEmpty(changed) || changedTab === undefined) return;
- 512. -
- 513. - ge('groups_tab_' + cur.scrollList.tab).className = '';
- 514. - hide('groups_list_tab_' + cur.scrollList.tab);
- 515. - cur.scrollList.tab = tab;
- 516. - show('groups_list_tab_' + tab);
- 517. - var tabEl = ge('groups_tab_' + tab);
- 518. - tabEl.className = 'active_link';
- 519. - show(tabEl);
- 520. -
- 521. - if (cur.scrollList.events) {
- 522. - toggle(cur.scrollList.events, tab == 'groups' && ge('gle_list_cont').innerHTML);
- 523. - cur.scrollList.eventsShow = false;
- 524. - if (isVisible(cur.scrollList.eventsMore)) {
- 525. - hide(cur.scrollList.eventsMore);
- 526. - show(cur.scrollList.eventsMoreLnk);
- 527. - }
- 528. - }
- 529. - if (cur.scrollList.invites) {
- 530. - toggle(cur.scrollList.invites, tab == 'groups');
- 531. - }
- 532. - if (cur.scrollList.invites || cur.scrollList.events) {
- 533. - ((tab == 'groups') ? addClass : removeClass)(cur.scrollList.summary.parentNode, 'gl_summary_short');
- 534. - }
- 535. -
- 536. - toggle('gl_about_events', (tab == 'groups' || tab == 'inv'));
- 537. -
- 538. - nav.setLoc(newLoc);
- 539. - ge('groups_list_search').setValue('');
- 540. - setTimeout(elfocus.pbind('groups_list_search'), 0);
- 541. -
- 542. - cur.scrollList.summary.innerHTML = cur.scrollList.summaries[tab];
- 543. - cur.scrollList.offset = ge('groups_list_' + tab).childNodes.length;
- 544. -
- 545. - GroupsList.showMore(true);
- 546. -
- 547. - return false;
- 548. - },
- 549. -
- 550. - init: function(opts) {
- 551. - placeholderSetup('groups_list_search', {back: true});
- 552. - setTimeout(elfocus.pbind('groups_list_search'), 0);
- 553. - extend(cur, {
- 554. - module: 'groups_list',
- 555. - _back: {
- 556. - text: getLang('groups_back_to_list'),
- 557. - show: [GroupsList.initScroll],
- 558. - hide: [function() {
- 559. - removeEvent((browser.msie6 ? pageNode : window), 'scroll', GroupsList.scrollCheck);
- 560. - removeEvent(window, 'resize', GroupsList.scrollCheck);
- 561. - }]
- 562. - },
- 563. -
- 564. - scrollList: {
- 565. - tab: opts.tab,
- 566. -
- 567. - url: 'al_groups.php',
- 568. - params: {act: 'get_list', mid: opts.mid},
- 569. - prefix: 'groups_list_',
- 570. - query: ge('groups_list_search'),
- 571. - summary: ge('groups_list_summary'),
- 572. - events: ge('gle_list_wrap'),
- 573. - eventsMore: ge('gle_list_more'),
- 574. - eventsMoreLnk: ge('gle_list_more_lnk'),
- 575. - invites: ge('gle_invites_wrap'),
- 576. - searchCont: ge('groups_list_search_cont'),
- 577. -
- 578. - perpage: 20,
- 579. - offset: ge('groups_list_' + opts.tab).childNodes.length,
- 580. -
- 581. - lists: {},
- 582. - cache: {},
- 583. - index: {},
- 584. - processed: {'groups': {}, 'admin': {}, 'inv': {}},
- 585. - filtered: {},
- 586. - queries: {},
- 587. - summaries: opts.summaries,
- 588. -
- 589. - genEmpty: opts.genEmpty,
- 590. - genRow: opts.genRow,
- 591. - genEvent: opts.genEvent,
- 592. - genInvRow: opts.genInvRow,
- 593. - genSummary: opts.genSummary,
- 594. - genGroupsSummary: opts.genGroupsSummary,
- 595. - invShown: opts.invShown,
- 596. - invCount: opts.invCount
- 597. - },
- 598. - filter: opts.filter
- 599. - });
- 600. -
- 601. - cur.nav.push(GroupsList.locNav);
- 602. -
- 603. - setTimeout(GroupsList.load, 0);
- 604. - if (vk.version) {
- 605. - addEvent(window, 'load', GroupsList.initScroll);
- 606. - } else {
- 607. - GroupsList.initScroll();
- 608. - }
- 609. - },
- 610. - load: function(force, forceTab) {
- 611. - var tab = forceTab || cur.scrollList.tab;
- 612. - if (cur.scrollList.lists[tab]) return;
- 613. -
- 614. - var key = GroupsList.rand(), value = GroupsList.rand();
- 615. - cur.scrollList[key] = value;
- 616. -
- 617. - cur.scrollList.lists[tab] = 'loading';
- 618. - ajax.post(cur.scrollList.url, extend(cur.scrollList.params, {tab: tab}), {onDone: function(result) {
- 619. - if (!cur.scrollList || cur.scrollList[key] != value) return;
- 620. -
- 621. - var upd = (cur.scrollList.lists[tab] == 'update');
- 622. - if (!upd && cur.scrollList.lists[tab] != 'loading') return;
- 623. -
- 624. - cur.scrollList.cache[tab] = {all: []};
- 625. - var processed = cur.scrollList.processed[tab], gid;
- 626. - for (var i = 0, count = result.length; i < count; ++i) {
- 627. - res = processed[result[i][2]];
- 628. - if (res) {
- 629. - result[i][1] = res;
- 630. - }
- 631. - cur.scrollList.cache[tab].all.push(i);
- 632. - }
- 633. - cur.scrollList.lists[tab] = result;
- 634. -
- 635. - var callback = upd ? function() {
- 636. - if (cur.scrollList && cur.scrollList[key] == value && cur.scrollList.tab == tab) {
- 637. - GroupsList.showMore(force);
- 638. - }
- 639. - } : function() {};
- 640. -
- 641. - cur.scrollList.index[tab] = new vkIndexer(cur.scrollList.cache[tab].all, function(obj) {
- 642. - return cur.scrollList.lists[tab][obj][0];
- 643. - }, callback);
- 644. -
- 645. - if (cur.scrollList.eventsShow) {
- 646. - GroupsList.eventsMore();
- 647. - }
- 648. - }});
- 649. - },
- 650. -
- 651. - htmlencode: function(str) {
- 652. - var res = [];
- 653. - for (var i = 0, l = str.length; i < l; ++i) {
- 654. - var c = str.charCodeAt(i);
- 655. - if (c == 33 || c == 39 || (c > 127 && c < 1040) || c > 1103) {
- 656. - res.push('&#' + c + ';');
- 657. - } else if (c == 36) {
- 658. - res.push('�' + c + ';');
- 659. - } else {
- 660. - c = str.charAt(i);
- 661. - switch (c) {
- 662. - case '>': res.push('>'); break;
- 663. - case '<': res.push('<'); break;
- 664. - case '"': res.push('"'); break;
- 665. - case '&': res.push('&'); break;
- 666. - default: res.push(c); break;
- 667. - }
- 668. - }
- 669. - }
- 670. - return res.join('');
- 671. - },
- 672. - getHighlight: function(q) {
- 673. - var indxr = cur.scrollList.index[cur.scrollList.tab], delimiter = indxr.delimiter, trimmer = indxr.trimmer;
- 674. -
- 675. - q += ' ' + (parseLatin(q) || '');
- 676. - q = escapeRE(q).replace(/&/g, '&');
- 677. - q = q.replace(trimmer, '').replace(delimiter, '|');
- 678. - return {
- 679. - re: new RegExp('(' + q + ')', 'gi'),
- 680. - val: '<span class="group_row_highlight">$1</span>'
- 681. - }
- 682. - },
- 683. - updateEvents: function() {
- 684. - if (!cur.scrollList.events || cur.scrollList.tab != 'groups') return;
- 685. - toggle(cur.scrollList.events, !cur.scrollList.query.value && ge('gle_list_cont').innerHTML);
- 686. - cur.scrollList.eventsShow = false;
- 687. - if (isVisible(cur.scrollList.eventsMore)) {
- 688. - hide(cur.scrollList.eventsMore);
- 689. - show(cur.scrollList.eventsMoreLnk);
- 690. - }
- 691. - if (cur.scrollList.invites) {
- 692. - toggle(cur.scrollList.invites, !cur.scrollList.query.value);
- 693. - }
- 694. - (!cur.scrollList.query.value ? addClass : removeClass)(cur.scrollList.summary.parentNode, 'gl_summary_short');
- 695. - },
- 696. - updateEventsList: function(addedGid) {
- 697. - ajax.post('groups', {act: 'update_events'}, {
- 698. - onDone: function(html, more) {
- 699. - var gleCont = ge('gle_list_cont');
- 700. - val(gleCont, html);
- 701. - toggle(cur.scrollList.events, !!html);
- 702. - hide(cur.scrollList.eventsMore);
- 703. - val(cur.scrollList.eventsMore, '');
- 704. - val(cur.scrollList.eventsMoreLnk, more || '');
- 705. - toggle(cur.scrollList.eventsMoreLnk, !!more);
- 706. - cur.scrollList.eventsShow = false;
- 707. - if (addedGid) {
- 708. - var addedRow = ge('gle_block_'+addedGid);
- 709. - if (addedRow) {
- 710. - setStyle(addedRow, {backgroundColor: '#FEFAE4'});
- 711. - animate(addedRow, {backgroundColor: '#FFF'}, 2000);
- 712. - }
- 713. - }
- 714. - }
- 715. - })
- 716. - },
- 717. - eventsMore: function() {
- 718. - var list = cur.scrollList.lists['groups'];
- 719. - if (!list || list == 'loading' || list == 'update') {
- 720. - cur.scrollList.eventsShow = true;
- 721. - return;
- 722. - }
- 723. -
- 724. - hide(cur.scrollList.eventsMoreLnk);
- 725. - if (val(cur.scrollList.eventsMore)) {
- 726. - show(cur.scrollList.eventsMore);
- 727. - } else {
- 728. - var res = {}, shown = {}, dates = {}, list = [], html = [];
- 729. - each(ge('gle_list_cont').childNodes, function(k, v) {
- 730. - var id = intval(((v || {}).id || '').replace(/^gle_block_/, ''));
- 731. - if (id) shown[id] = true;
- 732. - });
- 733. - each(cur.scrollList.lists['groups'], function(k, v) {
- 734. - var gid = intval(v[2]);
- 735. - if (!v[11] || shown[gid]) return;
- 736. - list.push(gid);
- 737. - res[gid] = cur.scrollList.genEvent(v);
- 738. - dates[gid] = intval(v[11].split('<*>')[0]);
- 739. - });
- 740. - list.sort(function(gid1, gid2) {
- 741. - return (dates[gid1] < dates[gid2]) ? -1 : ((dates[gid2] < dates[gid1]) ? 1 : 0);
- 742. - });
- 743. - each(list, function(k, v) {
- 744. - html.push(res[v]);
- 745. - });
- 746. - if (html.length) {
- 747. - val(cur.scrollList.eventsMore, html.join(''));
- 748. - show(cur.scrollList.eventsMore);
- 749. - }
- 750. - }
- 751. - },
- 752. - showMore: function(force) {
- 753. - var tab = cur.scrollList.tab, list = cur.scrollList.lists[tab];
- 754. - if (!list || list == 'loading' || list == 'update') {
- 755. - if (!list) GroupsList.load(force);
- 756. - cur.scrollList.lists[tab] = 'update';
- 757. - return;
- 758. - }
- 759. -
- 760. - var tab = cur.scrollList.tab, list = cur.scrollList.cache[tab].all;
- 761. -
- 762. - var q = trim(cur.scrollList.query.value);
- 763. - cur.searchStr = q;
- 764. - if (!cur.loadingShown) {
- 765. - if (q) {
- 766. - show('groups_reset_search');
- 767. - } else {
- 768. - hide('groups_reset_search');
- 769. - }
- 770. - }
- 771. -
- 772. - if (cur.scrollList.queries[tab] === undefined) {
- 773. - cur.scrollList.queries[tab] = '';
- 774. - }
- 775. - var refresh = (force || q != cur.scrollList.queries[tab]);
- 776. - if (!refresh && force === false) return;
- 777. -
- 778. - cur.scrollList.queries[tab] = q;
- 779. -
- 780. - var highlight = false;
- 781. - if (q) {
- 782. - list = cur.scrollList.cache[tab]['_' + q];
- 783. - if (list === undefined) {
- 784. - var tmp = cur.scrollList.index[tab].search(q), mp = {};
- 785. - list = [];
- 786. - for (var i = 0, l = tmp.length; i < l; ++i) {
- 787. - if (!mp[tmp[i]]) {
- 788. - mp[tmp[i]] = true;
- 789. - list.push(tmp[i]);
- 790. - }
- 791. - }
- 792. - list.sort(function(a,b){return a-b;});
- 793. - cur.scrollList.cache[tab]['_' + q] = list;
- 794. - }
- 795. - highlight = GroupsList.getHighlight(q);
- 796. - }
- 797. -
- 798. - var len = list.length;
- 799. -
- 800. - var cont = ge(cur.scrollList.prefix + tab), more = ge(cur.scrollList.prefix + tab + '_more');
- 801. - if (!len) {
- 802. - if (q && tab == 'groups') {
- 803. - if (refresh) {
- 804. - GroupsList.serverSearch(cont, q, true);
- 805. - hide(more);
- 806. - } else if (cur.searchOffset) {
- 807. - GroupsList.serverSearchMore(cont, q);
- 808. - }
- 809. - } else {
- 810. - q = cur.scrollList.query.value;
- 811. - cont.innerHTML = cur.scrollList.genEmpty(q);
- 812. - cur.scrollList.summary.innerHTML = q ? cur.scrollList.genSummary(len) : cur.scrollList.summaries[tab];
- 813. - hide(more);
- 814. - hide(cur.scrollList.searchCont);
- 815. - cur.searchOffset = 0;
- 816. - }
- 817. - return;
- 818. - } else if (tab == 'groups' && cur.scrollList.params.mid == vk.id) {
- 819. - cur.scrollList.summary.innerHTML = cur.scrollList.genGroupsSummary(len);
- 820. - } else {
- 821. - cur.scrollList.summary.innerHTML = q ? cur.scrollList.genSummary(len) : cur.scrollList.summaries[tab];
- 822. - }
- 823. -
- 824. - var start = refresh ? 0 : cur.scrollList.offset, end = Math.min(len, start + cur.scrollList.perpage);
- 825. - var html = [];
- 826. -
- 827. - for (var i = start; i < end; ++i) {
- 828. - var row = cur.scrollList.lists[tab][list[i]];
- 829. - if (!row) continue;
- 830. - var name = row[0];
- 831. - if (highlight) {
- 832. - name = name.replace(highlight.re, highlight.val);
- 833. - }
- 834. - if (cur.scrollList.tab == 'inv') {
- 835. - html.push(cur.scrollList.genInvRow(row, name));
- 836. - } else {
- 837. - html.push(cur.scrollList.genRow(row, name));
- 838. - }
- 839. - }
- 840. -
- 841. - if (!q && (!start || refresh)) {
- 842. - hide(cur.scrollList.searchCont);
- 843. - cur.searchOffset = 0;
- 844. - }
- 845. -
- 846. - if (refresh) {
- 847. - cont.innerHTML = html.join('');
- 848. - cur.searchOffset = false;
- 849. - if (list.length < 10 && q && tab == 'groups') {
- 850. - var exclude = [];
- 851. - for (var i in list) {
- 852. - var el = cur.scrollList.lists[tab][list[i]];
- 853. - exclude.push(el[2]);
- 854. - }
- 855. - GroupsList.serverSearch(cont, q, false, exclude);
- 856. - } else {
- 857. - hide(cur.scrollList.searchCont);
- 858. - cur.searchOffset = 0;
- 859. - }
- 860. - } else {
- 861. - cont.innerHTML += html.join('');
- 862. - if (cur.searchOffset) {
- 863. - GroupsList.serverSearchMore(cont, q);
- 864. - }
- 865. - }
- 866. - cur.scrollList.offset = end;
- 867. -
- 868. - if (!cur.searchOffset) {
- 869. - (end < len ? show : hide)(more);
- 870. - }
- 871. - },
- 872. -
- 873. - serverSearchMore: function(cont, q) {
- 874. - if (cur.searchLoadingMore) return;
- 875. - cur.searchLoadingMore = 1;
- 876. - var more = ge(cur.scrollList.prefix + cur.scrollList.tab + '_more');
- 877. - var back = more.innerHTML;
- 878. - ajax.post('al_groups.php', {
- 879. - act: 'server_search',
- 880. - q: q,
- 881. - offset: cur.searchOffset,
- 882. - exclude: cur.searchExclude.join(',')
- 883. - }, {
- 884. - onDone: function(count, rows, finish) {
- 885. - cur.searchLoadingMore = 0;
- 886. - if (count) {
- 887. - cur.searchOffset += count;
- 888. - cur.scrollList.searchCont.appendChild(cf(rows));
- 889. - } else {
- 890. - cur.searchOffset = 0;
- 891. - }
- 892. - (finish ? hide : show)(cur.scrollList.prefix + cur.scrollList.tab + '_more');
- 893. - debugLog((finish ? 'hide' : 'show'));
- 894. - },
- 895. - onFail: function() {
- 896. - cur.searchLoadingMore = 0;
- 897. - },
- 898. - showProgress: function() {
- 899. - more.innerHTML = '<img src="/images/upload.gif" />';
- 900. - },
- 901. - hideProgress: function() {
- 902. - more.innerHTML = back;
- 903. - }
- 904. - })
- 905. - },
- 906. -
- 907. - serverSearch: function(cont, q, emptyLocal, exclude) {
- 908. - if (cur.scrollList.tab != 'groups') {
- 909. - return false;
- 910. - }
- 911. - clearTimeout(cur.searchTimeout);
- 912. - cur.searchTimeout = setTimeout(function() {
- 913. - if (cur.searchStr != q) return;
- 914. - cur.searchExclude = exclude || [];
- 915. - ajax.post('al_groups.php', {
- 916. - act: 'server_search',
- 917. - q: q,
- 918. - empty: emptyLocal ? 1 : 0,
- 919. - exclude: cur.searchExclude.join(',')
- 920. - }, {
- 921. - onDone: function(count, rows, summary, finish) {
- 922. - if (cur.searchStr != q) return;
- 923. - if (count) {
- 924. - var last = geByClass('group_list_row', cont).pop();
- 925. - if (last) {
- 926. - addClass(last, 'groups_list_last_row');
- 927. - }
- 928. - cur.scrollList.searchCont.innerHTML = rows;
- 929. - show(cur.scrollList.searchCont);
- 930. - if (emptyLocal) {
- 931. - cur.scrollList.summary.innerHTML = summary;
- 932. - cont.innerHTML = '';
- 933. - }
- 934. - if (!finish) {
- 935. - show(cur.scrollList.prefix + cur.scrollList.tab + '_more');
- 936. - }
- 937. - } else {
- 938. - cur.scrollList.searchCont.innerHTML = '';
- 939. - hide(cur.scrollList.searchCont);
- 940. - if (emptyLocal) {
- 941. - cont.innerHTML = cur.scrollList.genEmpty(q);
- 942. - cur.scrollList.summary.innerHTML = cur.scrollList.genSummary(0);
- 943. - }
- 944. - }
- 945. - cur.searchOffset = count;
- 946. - },
- 947. - showProgress: GroupsList.showLoading,
- 948. - hideProgress: GroupsList.hideLoading
- 949. - })
- 950. - }, 300);
- 951. - },
- 952. -
- 953. - resetSearch: function() {
- 954. - val(cur.scrollList.query, '');
- 955. - GroupsList.showMore(true);
- 956. - GroupsList.updateEvents();
- 957. - },
- 958. -
- 959. - showLoading: function() {
- 960. - cur.loadingShown = 1;
- 961. - show('groups_loading');
- 962. - hide('groups_reset_search');
- 963. - },
- 964. -
- 965. - hideLoading: function() {
- 966. - cur.loadingShown = 0;
- 967. - hide('groups_loading');
- 968. - if (cur.scrollList.query.value) {
- 969. - show('groups_reset_search');
- 970. - }
- 971. - },
- 972. -
- 973. - goToSearch: function() {
- 974. - var q = trim(cur.scrollList.query.value);
- 975. - nav.go('search?c%5Bq%5D='+encodeURIComponent(q)+'&c%5Bsection%5D=communities');
- 976. - },
- 977. -
- 978. - showInvites: function(obj) {
- 979. - removeClass(obj.previousSibling, 'groups_list_last_row');
- 980. - hide(obj);
- 981. - show(obj.nextSibling);
- 982. - },
- 983. -
- 984. - ttShow: function(obj, text) {
- 985. - var showsp = 200;
- 986. - if (cur.groupMemTT && cur.groupMemTT != obj && window.tooltips) {
- 987. - tooltips.hideAll();
- 988. - cur.groupMemTT = false;
- 989. - showsp = 0;
- 990. - }
- 991. - cur.groupMemTT = obj;
- 992. - return showTooltip(obj, {
- 993. - center: 1,
- 994. - black: 1,
- 995. - showsp: showsp,
- 996. - shift: [0, 2, 10],
- 997. - text: text
- 998. - });
- 999. - },
- 1000. -
- 1001. - showMapBox: function(place, zoom, link) {
- 1002. - if (window.showZeroZoneBox && showZeroZoneBox('places', function() {
- 1003. - GroupsList.showMapBox(place, zoom, link);
- 1004. - })) { return; }
- 1005. -
- 1006. - showTabbedBox('places.php', {act: 'a_get_place_box', id: place}, {stat: ['places.css', 'map.css', 'maps.js', 'ui_controls.css', 'ui_controls.js']});
- 1007. - },
- 1008. -
- 1009. - feedbanGroup: function(el, gid, hash) {
- 1010. - var oid = -gid;
- 1011. - ajax.post('al_fans.php', {act: 'feedtgl', oid: oid, hash: hash}, {
- 1012. - onDone: function(val, str) {
- 1013. - el.innerHTML = str;
- 1014. - if (!cur.scrollList.lists || !cur.scrollList.lists.groups) {
- 1015. - return;
- 1016. - }
- 1017. - var lst = cur.scrollList.lists.groups;
- 1018. - if (lst && lst.length) {
- 1019. - for (var i = 0, l = lst.length; i < l; ++i) {
- 1020. - if (lst[i][2] == gid) {
- 1021. - cur.scrollList.lists.groups[i][12] = val;
- 1022. - break;
- 1023. - }
- 1024. - }
- 1025. - }
- 1026. - },
- 1027. - showProgress: function() {
- 1028. - el.innerHTML = '<span class="progress_inline"></span>';
- 1029. - }
- 1030. - });
- 1031. - }
- 1032. - }
- 1033. -
- 1034. - try{stManager.done('groups_list.js');}catch(e){}
- ------
Advertisement
Add Comment
Please, Sign In to add comment