Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Файл - rtl.css (Старый размер - 36091 | Новый - 0):
- 0. - #rtl_css {
- 1. - display: none;
- 2. - }
- 3. -
- 4. - body.is_rtl1 {
- 5. - direction: rtl;
- 6. - unicode-bidi: embed;
- 7. - }
- 8. - .is_rtl1 .scroll_fix,
- 9. - .is_rtl1 #layer,
- 10. - .is_rtl1 #box_layer,
- 11. - .is_rtl1 #wk_layer {
- 12. - direction: rtl;
- 13. - text-align: right;
- 14. - }
- 15. - .is_rtl1 .box_controls .button_wrap,
- 16. - .is_rtl1 .box_x_button {
- 17. - float: left;
- 18. - }
- 19. - .is_rtl1 .flat_tab_on, .flat_tab, .is_rtl1 .flat_tab_on a, .flat_tab a {
- 20. - float: right;
- 21. - }
- 22. - .is_rtl1 .fl_l { float: right; }
- 23. - .is_rtl1 .fl_r { float: left; }
- 24. - .is_rtl1 .ta_l { text-align: right; }
- 25. - .is_rtl1 .ta_r { text-align: left; }
- 26. - .is_rtl1 .homelink, .is_rtl1 .shah, .is_rtl1 .unl {
- 27. - left: auto;
- 28. - right: 0px;
- 29. - padding: 8px 14px 0px 0px;
- 30. - }
- 31. - .is_rtl1 .vklink {
- 32. - padding: 11px 17px 10px;
- 33. - }
- 34. - .is_rtl1 .shah.vklink {
- 35. - padding-top: 12px;
- 36. - }
- 37. - .is_rtl1 .unl { padding-top: 0px; }
- 38. - .is_rtl1 .checkbox div, .is_rtl1 .radiobtn div {
- 39. - float: right;
- 40. - margin-right: 0px;
- 41. - margin-left: 5px;
- 42. - }
- 43. -
- 44. - .is_rtl1 #side_bar { padding: 5px 4px 10px 0px; }
- 45. - .is_rtl1 #page_body { padding: 0px 0px 0px 15px; }
- 46. - .is_rtl1 #fmenu {
- 47. - right: auto;
- 48. - left: 0px;
- 49. - }
- 50. -
- 51. - .is_rtl1 #gsearch {
- 52. - right: auto;
- 53. - left: 14px;
- 54. - }
- 55. -
- 56. - .is_rtl1 #search_ext_cont {
- 57. - right: auto;
- 58. - left: 14px;
- 59. - }
- 60. -
- 61. - .is_rtl1 .top_feed {
- 62. - right: 50px;
- 63. - }
- 64. -
- 65. - .is_rtl1 #search_menu a {
- 66. - text-align: left;
- 67. - }
- 68. -
- 69. - .is_rtl1 #search_menu_header {
- 70. - text-align: left;
- 71. - padding: 2px 0px 4px 4px;
- 72. - }
- 73. -
- 74. - .is_rtl1 #search_darr {
- 75. - background: #fff url("/images/darrRTL.gif") no-repeat right 4px;
- 76. - }
- 77. -
- 78. - .is_rtl1 #search_a_menu:hover #search_darr,
- 79. - .is_rtl1 #search_a_menu.hover #search_darr {
- 80. - background: #fff url("/images/darrRTL.gif") no-repeat right -22px;
- 81. - }
- 82. -
- 83. - .is_rtl1 #quick_search div.s_photo {
- 84. - margin: 1px 0px 0px 10px;
- 85. - }
- 86. -
- 87. - .is_rtl1 #search_sub_menu .p_item {
- 88. - padding: 6px 7px 0px 0px;
- 89. - border-right: none;
- 90. - }
- 91. - .is_rtl1 #search_sub_menu .p_item.p_right {
- 92. - padding: 6px 7px 0px 0px;
- 93. - border-right: 1px solid #CCD3DA;
- 94. - }
- 95. - .is_rtl1 div.search_shadow_right1 {
- 96. - top: auto;
- 97. - }
- 98. - .is_rtl1 #quick_search .s_down_text {
- 99. - float: right;
- 100. - }
- 101. - .is_rtl1 div.search_shadow_right2 {
- 102. - top: auto;
- 103. - }
- 104. - .is_rtl1 .profile_info_link, .is_rtl1 #profile_groups_link {
- 105. - padding: 8px 127px 8px 0px;
- 106. - }
- 107. - .is_rtl1 #profile_view_as .info {
- 108. - margin-left: 0px;
- 109. - margin-right: 145px;
- 110. - }
- 111. -
- 112. - .is_rtl1 .wall_module .like_wrap div.no_likes {
- 113. - margin-right: 3px;
- 114. - margin-left: 0px;
- 115. - }
- 116. - .is_rtl1 .wall_module .like_count {
- 117. - margin-right: 0px;
- 118. - margin-left: 3px;
- 119. - }
- 120. - .is_rtl1 .wall_module .published_by {
- 121. - padding-right: 12px;
- 122. - }
- 123. - .is_rtl1 .wall_tt div.thumb {
- 124. - margin-right: 0px;
- 125. - margin-left: 10px;
- 126. - }
- 127. - .is_rtl1 .share_tt table.toup .top_pointer {
- 128. - margin-left: 0px;
- 129. - margin-right: 15px;
- 130. - }
- 131. - .is_rtl1 .wall_tt table.toup .top_pointer,
- 132. - .is_rtl1 .wall_tt table.toup1 .bottom_pointer {
- 133. - margin-left: 0px;
- 134. - margin-right: 64px;
- 135. - }
- 136. - .is_rtl1 .mobile_tt table.toup .top_pointer,
- 137. - .is_rtl1 .mobile_tt table.toup1 .bottom_pointer {
- 138. - margin-left: 0px;
- 139. - margin-right: 32px;
- 140. - }
- 141. - .is_rtl1 .mobile_tt_right table.toup .top_pointer,
- 142. - .is_rtl1 .mobile_tt_right table.toup1 .bottom_pointer {
- 143. - margin-left: 0px;
- 144. - margin-right: 275px;
- 145. - }
- 146. - .is_rtl1 .fwd_reply_tt table.toup .top_pointer,
- 147. - .is_rtl1 .fwd_reply_tt table.toup1 .bottom_pointer {
- 148. - margin-left: 0px;
- 149. - margin-right: 309px;
- 150. - }
- 151. - .is_rtl1 .gifts_tt .toup .top_pointer,
- 152. - .is_rtl1 .gifts_tt .toup1 .bottom_pointer {
- 153. - margin-left: 0px;
- 154. - margin-right: 91px;
- 155. - }
- 156. - .is_rtl1 .module_inverted_loading #gifts_module_header,
- 157. - .is_rtl1 .gifts_inverted_loading .profile_gifts_send {
- 158. - background-position: left 5px;
- 159. - padding-right: 2px;
- 160. - padding-left: 23px;
- 161. - }
- 162. -
- 163. - .is_rtl1 .wall_module .media_preview .share b,
- 164. - .is_rtl1 .wall_module .media_preview .poll b,
- 165. - .is_rtl1 .wall_module .media_desc b {
- 166. - background-position: right -237px;
- 167. - }
- 168. - .is_rtl1 .wall_module .media_preview b.postpone {
- 169. - background-position: right -334px;
- 170. - }
- 171. - .is_rtl1 .wall_module .media_desc b.topic {
- 172. - background-position: right -192px;
- 173. - }
- 174. - .is_rtl1 .wall_module .media_desc b.group {
- 175. - background-position: right -45px;
- 176. - }
- 177. - .is_rtl1 .wall_module .media_preview .poll b {
- 178. - background-position: right -208px;
- 179. - }
- 180. - .is_rtl1 .wall_module .media_desc .video {
- 181. - background-position: right -75px;
- 182. - }
- 183. - .is_rtl1 .wall_module .media_desc b.doc {
- 184. - background-position: right -280px;
- 185. - }
- 186. - .is_rtl1 .wall_module .media_desc b.note,
- 187. - .is_rtl1 .wall_module .media_preview .note b {
- 188. - background-position: right -134px;
- 189. - }
- 190. - .is_rtl1 .wall_module .page_media_video .video div.video_play_inline,
- 191. - .is_rtl1 .wall_module .page_media_full_video .video div.video_play_inline {
- 192. - right: 150px;
- 193. - left: auto;
- 194. - }
- 195. - .is_rtl1 .wide_wall_module .page_media_video .video div.video_play_inline,
- 196. - .is_rtl1 .wall_module .page_media_full_video .video div.video_play_inline {
- 197. - right: 225px;
- 198. - left: auto;
- 199. - }
- 200. -
- 201. - .is_rtl1 .wall_module .post_thumbs_num1 .page_media_thumb1,
- 202. - .is_rtl1 .wall_module .post_thumbs_num3 .page_media_thumb1,
- 203. - .is_rtl1 .wall_module .post_thumbs_num4 .page_media_thumb1,
- 204. - .is_rtl1 .wall_module .post_thumbs_num2 .page_media_thumb1,
- 205. - .is_rtl1 .wall_module .post_thumbs_num2 .page_media_thumb2 {
- 206. - float: right;
- 207. - }
- 208. -
- 209. - .wall_module .dld {
- 210. - padding-left: 4px;
- 211. - padding-right: 60px;
- 212. - }
- 213. - .is_rtl1 .wall_module .reply .dld {
- 214. - padding-left: 4px;
- 215. - padding-right: 41px;
- 216. - }
- 217. - .is_rtl1 .pv_comment .dld {
- 218. - padding-left: 4px;
- 219. - padding-right: 41px;
- 220. - }
- 221. -
- 222. - .is_rtl1 .other_acts .header span.other {
- 223. - padding-right: 0px;
- 224. - padding-left: 12px;
- 225. - }
- 226. - .is_rtl1 .head_nav #qsearch_border {
- 227. - background: none;
- 228. - }
- 229. - .is_rtl1 .head_nav {
- 230. - padding: 0px 0px 0px 8px;
- 231. - }
- 232. - .is_rtl1 #page_header .left,
- 233. - .is_rtl1 #page_header.p_head1 .left {
- 234. - width: 10px;
- 235. - }
- 236. - .is_rtl1 #page_header .right {
- 237. - width: 134px;
- 238. - }
- 239. - .is_rtl1 #page_header.p_head1 .right {
- 240. - width: 48px;
- 241. - background: #4E729A url(/images/hat_vk_rtl.gif) 100% -1px;
- 242. - }
- 243. - .is_rtl1 .wall_module .author {
- 244. - padding-right: 0px;
- 245. - padding-left: 4px;
- 246. - }
- 247. - .is_rtl1 .wall_module .published_by {
- 248. - margin-right: 0px;
- 249. - margin-left: 2px;
- 250. - padding-left: 0px;
- 251. - padding-right: 12px;
- 252. - background: url(/images/icons/published_rtl.gif) no-repeat right 3px;
- 253. - }
- 254. - .is_rtl1 #profile_actions a span.other {
- 255. - padding-right: 0px;
- 256. - padding-left: 12px;
- 257. - background-position: left 6px;
- 258. - }
- 259. - .is_rtl1 .other_acts .header span {
- 260. - padding-right: 0px;
- 261. - padding-left: 12px;
- 262. - background-position: left 6px;
- 263. - }
- 264. - .is_rtl1 .pv_cont .narrow_column {
- 265. - margin-left: 0px;
- 266. - border-left: 0px;
- 267. - padding-left: 0px;
- 268. - margin-right: 20px;
- 269. - border-right: 1px solid #CCC;
- 270. - padding-right: 20px;
- 271. - }
- 272. - .is_rtl1 #stl_text {
- 273. - background-position: right 3px;
- 274. - margin: 0 15px 0 31px;
- 275. - }
- 276. -
- 277. - .is_rtl1 #stl_left .down {
- 278. - background-position: right -7px;
- 279. - }
- 280. - .is_rtl1 #stl_left .back {
- 281. - background-position: right -40px;
- 282. - }
- 283. -
- 284. - .is_rtl1 #privacy_dropdown .header div {
- 285. - padding-right: 4px;
- 286. - padding-left: 21px;
- 287. - background-position: 0px 2px;
- 288. - }
- 289. - .is_rtl1 #privacy_dropdown .to_up .header div {
- 290. - background-position: 0px -75px;
- 291. - }
- 292. - .is_rtl1 #privacy_dropdown .to_up .l_header div {
- 293. - background-position: 0px -58px;
- 294. - }
- 295. - .is_rtl1 #privacy_dropdown .item, .is_rtl1 #privacy_dropdown .item_sel, .is_rtl1 #privacy_dropdown .item_sel_plus {
- 296. - padding-right: 5px;
- 297. - padding-left: 21px;
- 298. - }
- 299. - .is_rtl1 #privacy_dropdown .item_sel, .is_rtl1 #privacy_dropdown .item_sel_plus {
- 300. - padding-right: 5px;
- 301. - padding-left: 21px;
- 302. - }
- 303. - .is_rtl1 #privacy_dropdown .item_sel_plus {
- 304. - background-position: 5px -32px;
- 305. - }
- 306. - .is_rtl1 #privacy_dropdown .l_header div {
- 307. - padding-right: 4px;
- 308. - padding-left: 16px;
- 309. - background-position: 0px -16px;
- 310. - }
- 311. - .is_rtl1 #privacy_dropdown .l_item, .is_rtl1 #privacy_dropdown .l_item_sel {
- 312. - padding-right: 22px;
- 313. - padding-left: 3px;
- 314. - }
- 315. - .is_rtl1 #privacy_dropdown .l_item_sel {
- 316. - background-image: url(/images/dropdead_checkRTL.gif);
- 317. - background-position: 100% 2px;
- 318. - }
- 319. - .is_rtl1 #privacy_custom_box .plus_friends, .is_rtl1 #privacy_custom_box .minus_friends {
- 320. - padding-right: 20px;
- 321. - padding-left: 0px;
- 322. - }
- 323. - .is_rtl1 #privacy_custom_box .plus_friends {
- 324. - background-position: 100% -3px;
- 325. - }
- 326. - .is_rtl1 #privacy_custom_box .minus_friends {
- 327. - background-position: 100% -1px;
- 328. - }
- 329. -
- 330. - .is_rtl1 .left_hide_button {
- 331. - margin: 4px 117px 0px 0px;
- 332. - }
- 333. -
- 334. - .is_rtl1 .places_module .place_row {
- 335. - padding: 5px 10px 6px 0px;
- 336. - }
- 337. - .is_rtl1 .places_module .icon {
- 338. - background-position: right -165px;
- 339. - }
- 340. - .is_rtl1 .places_module .place_title small {
- 341. - margin-left: 0px;
- 342. - margin-right: 3px;
- 343. - }
- 344. - .is_rtl1 .public_places_list .title span.type {
- 345. - margin-left: 0px;
- 346. - margin-right: 5px;
- 347. - }
- 348. - .is_rtl1 .page_add_place_box .label {
- 349. - padding-right: 0px;
- 350. - padding-left: 10px;
- 351. - }
- 352. -
- 353. - .is_rtl1 #friends .main_panel {
- 354. - border-right: none;
- 355. - border-left: 1px solid #D9E1E7;
- 356. - }
- 357. - .is_rtl1 #friends .common .common_friends_label,
- 358. - .is_rtl1 #friends .common .common_friends,
- 359. - .is_rtl1 #friends .common .controls {
- 360. - padding-left: 0px;
- 361. - padding-right: 60px;
- 362. - }
- 363. - .is_rtl1 #friends .create_list {
- 364. - margin-left: 0px;
- 365. - margin-right: 550px;
- 366. - }
- 367. - .is_rtl1 #friends .user_block .info {
- 368. - padding-left: 0px;
- 369. - padding-right: 10px;
- 370. - }
- 371. -
- 372. - .is_rtl1 #friends .sections_block .side_filter {
- 373. - background-position: 8px center;
- 374. - }
- 375. -
- 376. - /* Tabs */
- 377. - .is_rtl1 ul.t0 li {
- 378. - float: right;
- 379. - }
- 380. - .is_rtl1 ul.t0 a {
- 381. - margin-right: 0px;
- 382. - margin-left: 5px;
- 383. - float: right;
- 384. - }
- 385. - .is_rtl1 ul.t0 .t_r {
- 386. - float: left;
- 387. - }
- 388. -
- 389. - .is_rtl1 #profile_class_hint .pointer {
- 390. - background-position: right top;
- 391. - }
- 392. - .is_rtl1 #profile_class_hint .content {
- 393. - border-width: 1px 0px 1px 1px;
- 394. - }
- 395. - .is_rtl1 .photo_edit_result {
- 396. - padding: 15px 160px 15px 25px;
- 397. - }
- 398. -
- 399. - .is_rtl1 #top_back_link {
- 400. - padding-left: 9px;
- 401. - padding-right: 25px;
- 402. - background-position: right -115px;
- 403. - }
- 404. - .is_rtl1 #invite_hint_close {
- 405. - right: auto;
- 406. - left: 3px;
- 407. - }
- 408. -
- 409. - .is_rtl1 #wk_content {
- 410. - clear: right;
- 411. - }
- 412. - .is_rtl1 .wk_right {
- 413. - padding-right: 0px;
- 414. - padding-left: 1px;
- 415. - }
- 416. - .is_rtl1 .wall_module #submit_post .checkbox {
- 417. - margin-left: 0px;
- 418. - margin-right: 10px;
- 419. - }
- 420. -
- 421. - .is_rtl1 .page_actions a span.other {
- 422. - background-position: left 6px;
- 423. - padding-right: 0px;
- 424. - padding-left: 12px;
- 425. - }
- 426. - .is_rtl1 .group_wiki_hider {
- 427. - padding-right: 125px;
- 428. - padding-left: 0px;
- 429. - }
- 430. - .is_rtl1 .priv_h_arrow_img {
- 431. - margin-left: -8px;
- 432. - }
- 433. - .is_rtl1 .priv_h_arrow {
- 434. - left: auto;
- 435. - right: 3px;
- 436. - }
- 437. - .is_rtl1 .group_edit_addr_label {
- 438. - padding-left: 0px;
- 439. - padding-right: 6px;
- 440. - }
- 441. - .is_rtl1 #group_edit_about_addr {
- 442. - padding-left: 0px;
- 443. - padding-right: 10px;
- 444. - }
- 445. -
- 446. - .is_rtl1 #groups_list_search {
- 447. - padding-left: 40px;
- 448. - padding-right: 20px;
- 449. - background-position: 590px 6px;
- 450. - }
- 451. - .is_rtl1 #groups_loading {
- 452. - left: 0px;
- 453. - margin-left: 30px;
- 454. - }
- 455. - .is_rtl1 #groups_reset_search {
- 456. - left: 0px;
- 457. - margin-left: 27px;
- 458. - }
- 459. - .is_rtl1 .audio_list {
- 460. - padding: 10px 10px 10px 0px;
- 461. - }
- 462. - .is_rtl1 .audio_wrap .main_panel {
- 463. - border-right: none;
- 464. - border-left: 1px solid #DAE2E8;
- 465. - }
- 466. - .is_rtl1 .audio_add_new {
- 467. - padding: 5px 10px 0 0;
- 468. - }
- 469. - .is_rtl1 .audio_add_new span {
- 470. - background: url(/images/icons/audio_iconset.gif) 8px -15px no-repeat;
- 471. - }
- 472. - .is_rtl1 .audio_search .search_progress {
- 473. - margin-left: 0px;
- 474. - margin-right: -41px;
- 475. - }
- 476. - .is_rtl1 .audio_search .search_reset {
- 477. - margin-left: 0px;
- 478. - margin-right: -23px;
- 479. - }
- 480. - .is_rtl1 .audio_search .s_search {
- 481. - background: #FFF url(/images/magglassRTL.png) no-repeat 286px 6px;
- 482. - }
- 483. - .is_rtl1 .audio_filter.loading,
- 484. - .is_rtl1 .audio_filter_selected.loading {
- 485. - background-position: 8px center;
- 486. - }
- 487. - .is_rtl1 .olist.audio_album {
- 488. - padding-right: 0px;
- 489. - padding-left: 5px;
- 490. - }
- 491. - .is_rtl1 #invite_hint_img {
- 492. - background-position: right top;
- 493. - }
- 494. -
- 495. - .is_rtl1 .file_button .file_input {
- 496. - right: auto;
- 497. - left: 0px;
- 498. - }
- 499. - .is_rtl1 .photo_file_cancel {
- 500. - right: auto;
- 501. - left: 0px;
- 502. - }
- 503. - .is_rtl1 .group_voting_percent {
- 504. - border: solid #D8DFE5;
- 505. - border-width: 1px 0px 0px 1px;
- 506. - }
- 507. -
- 508. - .is_rtl1 #fw_one_replies_wrap {
- 509. - padding: 8px 80px 0px 27px;
- 510. - }
- 511. - .is_rtl1 #fw_one_replies_wrap.fwn_replies {
- 512. - padding: 8px 20px 0px;
- 513. - }
- 514. - .is_rtl1 #fwr_form {
- 515. - padding-left: 27px;
- 516. - padding-right: 80px;
- 517. - }
- 518. - .is_rtl1 .fwr_note #fwr_form {
- 519. - padding-left: 20px;
- 520. - padding-right: 20px;
- 521. - }
- 522. -
- 523. - /* apps */
- 524. - .is_rtl1 .app_info, .app_search_info {
- 525. - padding-left: 0px;
- 526. - padding-right: 5px;
- 527. - }
- 528. - .is_rtl1 .app_hide {
- 529. - padding: 0px 6px 0px 3px;
- 530. - }
- 531. -
- 532. - /* audioPlayer */
- 533. - .is_rtl1 #gp_info {
- 534. - padding: 3px 0px 5px 8px;
- 535. - }
- 536. -
- 537. - .is_rtl1 .board_tt table.toup .top_pointer {
- 538. - margin-right: 84px;
- 539. - margin-left: 0px;
- 540. - }
- 541. - .is_rtl1 .board_tt table.toup1 .bottom_pointer {
- 542. - margin-right: 84px;
- 543. - margin-left: 0px;
- 544. - }
- 545. -
- 546. - /* profile_edit.css */
- 547. - .is_rtl1 .pedit_general_label {
- 548. - padding: 4px 0 0 10px;
- 549. - }
- 550. -
- 551. - .is_rtl1 .pedit_bday, .is_rtl1 .pedit_bmonth {
- 552. - padding: 0 0 0 5px;
- 553. - }
- 554. -
- 555. - .is_rtl1 .selector_container .result_list,
- 556. - .is_rtl1 .selector_container .result_list_shadow {
- 557. - left: auto;
- 558. - right: 0;
- 559. - }
- 560. -
- 561. - .is_rtl1 .pedit_controls {
- 562. - padding: 15px 205px 0 0;
- 563. - }
- 564. -
- 565. - .is_rtl1 #pedit_interests .pedit_controls {
- 566. - padding: 15px 170px 0 0;
- 567. - }
- 568. -
- 569. - .is_rtl1 .pedit_label {
- 570. - padding: 4px 0 0 10px;
- 571. - }
- 572. -
- 573. - .pedit_personal_label {
- 574. - padding: 4px 0 0 10px;
- 575. - }
- 576. -
- 577. - .is_rtl1 .pedit_interests_label {
- 578. - padding: 4px 0 0 10px;
- 579. - }
- 580. -
- 581. - .is_rtl1 .pit_bday, .pit_bmonth {
- 582. - padding-right: 0px;
- 583. - padding-left: 5px;
- 584. - }
- 585. - .is_rtl1 .login_sure {
- 586. - padding-left: 0px;
- 587. - padding-right: 90px;
- 588. - }
- 589. -
- 590. - .is_rtl1 .top_info_bar .info .aligned_text {
- 591. - padding-left: 26px;
- 592. - padding-right: 157px;
- 593. - text-align: right;
- 594. - }
- 595. -
- 596. -
- 597. - /* Settings - settings.css */
- 598. - .is_rtl1 .settings_section {
- 599. - margin: 0 113px 25px 0;
- 600. - }
- 601. - .is_rtl1 .settings_label {
- 602. - padding: 5px 0 3px 15px;
- 603. - }
- 604. - .is_rtl1 .settings_row_button_wrap {
- 605. - padding-left: 0;
- 606. - padding-right: 140px;
- 607. - }
- 608. - .is_rtl1 .settings_bl_name {
- 609. - padding: 5px 10px 0 0;
- 610. - }
- 611. - .is_rtl1 .settings_bl_label {
- 612. - padding-left: 0;
- 613. - padding-right: 2px;
- 614. - }
- 615. - .is_rtl1 .settings_all_services {
- 616. - padding: 4px 140px 0 0;
- 617. - }
- 618. -
- 619. - /* Mail - mail.css */
- 620. - .is_rtl1 #mail_bar #s_search {
- 621. - background: white url(/images/magglass.png) no-repeat 130px 6px;
- 622. - padding: 5px 20px 5px 5px;
- 623. - }
- 624. - .is_rtl1 .mail_attach_photo,
- 625. - .is_rtl1 .mail_attach_video,
- 626. - .is_rtl1 .mail_attach_audio,
- 627. - .is_rtl1 .mail_attach_mail,
- 628. - .is_rtl1 .mail_attach_doc,
- 629. - .is_rtl1 .mail_attach_geo {
- 630. - margin: 3px 0 2px 5px;
- 631. - float: right;
- 632. - }
- 633. -
- 634. - /* Feed - fee.css */
- 635. - .is_rtl1 #feed_menu {
- 636. - left: auto;
- 637. - right: 470px;
- 638. - }
- 639. - .is_rtl1 .feed_post_field_wrap .post_upload_wrap {
- 640. - right: auto;
- 641. - left: 5px;
- 642. - }
- 643. - .is_rtl1 .feed_post_field_wrap .post_upload_min_wrap {
- 644. - right: auto;
- 645. - left: 0px
- 646. - }
- 647. - .is_rtl1 .feed_filter_icon {
- 648. - margin: 1px 4px 0 0;
- 649. - }
- 650. - .is_rtl1 b.feed_gr_icon,
- 651. - .is_rtl1 b.feed_ev_icon,
- 652. - .is_rtl1 b.feed_tp_icon,
- 653. - .is_rtl1 b.feed_nt_icon {
- 654. - float: right;
- 655. - margin: 2px 0 0 4px;
- 656. - }
- 657. - .is_rtl1 .feed_filter_title {
- 658. - padding-left: 0;
- 659. - padding-right: 7px;
- 660. - }
- 661. - .is_rtl1 .feedback_grouped_row {
- 662. - padding: 10px 0 0 25px;
- 663. - }
- 664. - .is_rtl1 .feedback_row {
- 665. - padding: 8px 0 0 30px;
- 666. - }
- 667. - .is_rtl1 .feedback_like_wrap {
- 668. - margin: -15px 584px 0 0;
- 669. - }
- 670. - .is_rtl1 .feedback_del_wrap {
- 671. - margin: 1px 585px 0 0;
- 672. - }
- 673. - .is_rtl1 #feed_rate_slider_wrap {
- 674. - left: 32px;
- 675. - right: auto;
- 676. - }
- 677. - .is_rtl1 #feed_rate_slider {
- 678. - left: 0;
- 679. - position: absolute;
- 680. - }
- 681. -
- 682. - /* IM - im.css */
- 683. - .is_rtl1 .im_tab,
- 684. - .is_rtl1 .im_tab_selected,
- 685. - .is_rtl1 .im_tab_over {
- 686. - float: right;
- 687. - }
- 688. - .is_rtl1 div.dialogs_inline_chatter {
- 689. - margin: 0 0px 4px 4px;
- 690. - float: right;
- 691. - }
- 692. - .is_rtl1 .im_fwd_log_body div.wrapped,
- 693. - .is_rtl1 .im_log_body div.wrapped {
- 694. - padding-left: 0px;
- 695. - padding-right: 4px;
- 696. - margin-left: 0px;
- 697. - margin-right: -4px;
- 698. - }
- 699. - .is_rtl1 .im_editable {
- 700. - padding: 3px 3px 3px 23px;
- 701. - }
- 702. - .is_rtl1 #im_smile {
- 703. - margin: 1px 333px 0px 0px;
- 704. - }
- 705. - .is_rtl1 .im_emoji_tt_wrap {
- 706. - margin: -128px 303px 0px 0px;
- 707. - }
- 708. - .is_rtl1 .im_emoji_bg {
- 709. - margin: -4px -4px 0px 0px;
- 710. - }
- 711. - .is_rtl1 .im_tab3 {
- 712. - padding-left: 5px;
- 713. - padding-right: 2px;
- 714. - }
- 715. - .is_rtl1 .dialogs_msg_body .dialogs_inline_author {
- 716. - margin: 3px 0 2px 10px;
- 717. - }
- 718. - .is_rtl1 #im_media_preview .im_media_x,
- 719. - .is_rtl1 #im_media_dpreview .im_media_x,
- 720. - .is_rtl1 #im_media_mpreview .im_media_x {
- 721. - margin-left: 0px;
- 722. - margin-right: -15px;
- 723. - }
- 724. - .is_rtl1 .im_send_cont {
- 725. - margin-right: 0px;
- 726. - margin-left: 2px;
- 727. - }
- 728. - .is_rtl1 .im_rcem_cont {
- 729. - padding-left: 0px;
- 730. - padding-right: 4px;
- 731. - }
- 732. - .is_rtl1 .dialogs_del_wrap {
- 733. - right: auto;
- 734. - left: 15px;
- 735. - }
- 736. - .is_rtl1 .im_fwd_log_wrap,
- 737. - .is_rtl1 .im_wall_log_wrap {
- 738. - border-left: 0px;
- 739. - padding-left: 0px;
- 740. - border-right: 2px solid #C3D1E0;
- 741. - padding-right: 10px;
- 742. - }
- 743. - .is_rtl1 .im_attach_photo,
- 744. - .is_rtl1 .im_attach_video,
- 745. - .is_rtl1 .im_attach_doc,
- 746. - .is_rtl1 .im_attach_mail,
- 747. - .is_rtl1 .im_attach_audio,
- 748. - .is_rtl1 .im_attach_geo {
- 749. - float: right;
- 750. - margin: 3px 0 2px 5px;
- 751. - }
- 752. - .is_rtl1 .im_fwd_log_author .im_log_author_chat_thumb {
- 753. - margin-right: 0;
- 754. - margin-left: 11px;
- 755. - }
- 756. - .is_rtl1 .im_fwd_log_date {
- 757. - padding-left: 0;
- 758. - padding-right: 5px;
- 759. - }
- 760. - .is_rtl1 #im_peer_controls {
- 761. - padding: 8px 67px 0 15px;
- 762. - }
- 763. - .is_rtl1 td#im_user_holder {
- 764. - padding-right: 0px;
- 765. - padding-left: 10px;
- 766. - }
- 767. - .is_rtl1 .im_status_online {
- 768. - margin-left: 17px;
- 769. - }
- 770. - .is_rtl1 td#im_peer_holders {
- 771. - padding-left: 0;
- 772. - padding-right: 10px;
- 773. - }
- 774. - .is_rtl1 .im_peer_mini_holder:nth-child(2) {
- 775. - margin-right: 0;
- 776. - margin-left: 60px;
- 777. - }
- 778. - .is_rtl1 .im_photo_holder {
- 779. - margin-right: 0;
- 780. - margin-left: 8px;
- 781. - }
- 782. - .is_rtl1 .im_peer_mini_holder .im_photo_holder {
- 783. - margin-right: 0;
- 784. - margin-left: 4px;
- 785. - }
- 786. - .is_rtl1 #im_status, .is_rtl1 #im_rcpt {
- 787. - padding: 6px 7px 0 0;
- 788. - }
- 789. - .is_rtl1 #im_filter {
- 790. - padding: 5px 20px 4px 20px;
- 791. - background: #FFF url(/images/magglass.png) no-repeat 328px 6px;
- 792. - }
- 793. - .is_rtl1 .im_submit_tail_wrap {
- 794. - left: auto;
- 795. - right: 233px;
- 796. - }
- 797. - .is_rtl1 .im_submit_tail {
- 798. - background-position: 0 0;
- 799. - }
- 800. - .is_rtl1 #im_submit_hint_opts .radiobtn div {
- 801. - margin-right: 0;
- 802. - margin-left: 5px;
- 803. - }
- 804. - .is_rtl1 .im_switch_notify_pointer {
- 805. - left: auto;
- 806. - right: 20px;
- 807. - }
- 808. -
- 809. - .is_rtl1 #im_filter_reset {
- 810. - margin-left: 0;
- 811. - margin-right: -23px;
- 812. - }
- 813. - .is_rtl1 .media_mail_icon {
- 814. - float: right;
- 815. - margin-left: 0;
- 816. - margin-right: 3px;
- 817. - }
- 818. - .is_rtl1 .im_preview_mail_wrap .media_mail_icon {
- 819. - margin-left: 3px;
- 820. - }
- 821. - .is_rtl1 .im_friend img {
- 822. - padding-right: 0;
- 823. - padding-left: 6px;
- 824. - }
- 825. - .is_rtl1 #im_friends_all_wrap {
- 826. - border-right: 0;
- 827. - border-left: 1px solid #DBDEE5;
- 828. - }
- 829. -
- 830. - /* Notifier - notifier.css */
- 831. - .is_rtl1 .fc_tab_close_wrap, .is_rtl1 .fc_tab_min_wrap, .is_rtl1 .fc_tab_max_wrap {
- 832. - margin: 0 4px 0 0;
- 833. - }
- 834. - .is_rtl1 .fc_contact_name {
- 835. - padding: 0 8px 0 0;
- 836. - }
- 837. - .is_rtl1 div.fc_clist_filter_wrap {
- 838. - background: #FFF url(/images/magglass.png) no-repeat 182px 7px;
- 839. - padding: 6px 22px 4px 4px;
- 840. - }
- 841. - .is_rtl1 div.fc_clist_filter {
- 842. - padding-right: 0;
- 843. - padding-left: 15px;
- 844. - }
- 845. - .is_rtl1 .fc_clist_online {
- 846. - margin: -1px -15px 0 0;
- 847. - }
- 848. - .is_rtl1 .fc_msgs_date {
- 849. - padding: 0 4px 4px 0;
- 850. - }
- 851. - .is_rtl1 .fc_msg {
- 852. - padding: 0 3px 3px 0;
- 853. - }
- 854. - .is_rtl1 .fc_msg_author_name {
- 855. - padding: 0 3px 3px 0;
- 856. - }
- 857. -
- 858. - /* Wall upload - page.css */
- 859. - .is_rtl1 .wall_module a.published_by_photo {
- 860. - margin-right: 0;
- 861. - margin-left: 8px;
- 862. - }
- 863. - .is_rtl1 .wall_module #submit_post .checkbox, .is_rtl1 .wall_module #submit_post .checkbox_pic {
- 864. - margin: 6px 10px 0px 0;
- 865. - }
- 866. - .is_rtl1 .wall_module .delete_post {
- 867. - left: 0;
- 868. - right: auto;
- 869. - }
- 870. - .is_rtl1 .post_upload_wrap {
- 871. - right: auto;
- 872. - left: 10px;
- 873. - }
- 874. -
- 875. - /* top search */
- 876. - .is_rtl1 #ts_wrap {
- 877. - left: auto;
- 878. - right: 144px;
- 879. - }
- 880. - .is_rtl1 #ts_wrap.vk {
- 881. - left: 45px;
- 882. - right: auto;
- 883. - }
- 884. - .is_rtl1 #ts_cont_wrap {
- 885. - left: auto;
- 886. - right: 147px;
- 887. - }
- 888. - .is_rtl1 #ts_cont_wrap.vk {
- 889. - right: auto;
- 890. - left: 1px;
- 891. - }
- 892. - *:first-child+html .is_rtl1 #ts_cont_wrap,
- 893. - * html .is_rtl1 #ts_cont_wrap {
- 894. - left: 0px;
- 895. - right: auto;
- 896. - }
- 897. - .is_rtl1 .ts_contact,
- 898. - .is_rtl1 .ts_search_link {
- 899. - margin-right /*\**/: 1px\9
- 900. - }
- 901. - .is_rtl1 .ts_contact_name {
- 902. - padding: 0 8px 0 0;
- 903. - }
- 904. - .is_rtl1 #ts_friends_online {
- 905. - right: auto;
- 906. - left: 6px;
- 907. - padding: 4px 5px 4px 12px;
- 908. - background: url(/images/icons/online_friends.gif) left no-repeat;
- 909. - }
- 910. - .is_rtl1 #ts_input {
- 911. - padding: 4px 23px 3px 40px;
- 912. - background: url(/images/search_icon_d.gif) no-repeat 152px -11px;
- 913. - }
- 914. - .is_rtl1 .ts.dark #ts_input {
- 915. - background: url(/images/search_icon_d.gif) no-repeat 152px 5px;
- 916. - background: url(/images/search_icon_d.gif) no-repeat 152px -11px\9;
- 917. - }
- 918. - .is_rtl1 #ts_wrap.vk #ts_input {
- 919. - background: url(/images/search_icon.gif?1) no-repeat 112px 5px;
- 920. - }
- 921. - .is_rtl1 div.ts_input_wrap2 {
- 922. - margin-right: 0px;
- 923. - margin-left: 62px;
- 924. - }
- 925. - .is_rtl1 .ts_settings {
- 926. - padding: 12px 18px 15px 19px;
- 927. - background-position: 6px 9px;
- 928. - }
- 929. - .is_rtl1 .ts_contact_status {
- 930. - margin: -2px 4px 0 0;
- 931. - }
- 932. - .is_rtl1 .ts_search_link .ts_contact_status {
- 933. - margin-top: 0px;
- 934. - }
- 935. - .is_rtl1 .ts_contact.active.go .ts_contact_status {
- 936. - width: 12px;
- 937. - }
- 938. - .is_rtl1 .ts_contact.active.write .ts_contact_status,
- 939. - .is_rtl1 .ts_search_link .ts_contact_status {
- 940. - width: 12px;
- 941. - right: auto;
- 942. - left: 9px;
- 943. - }
- 944. - .is_rtl1 .ts_contact_online .ts_contact_status {
- 945. - right: auto;
- 946. - left: 10px;
- 947. - }
- 948. - .is_rtl1 .ts_contact_mobile .ts_contact_status {
- 949. - right: auto;
- 950. - left: 9px;
- 951. - }
- 952. -
- 953. - .is_rtl1 .login_blocked_activity_info {
- 954. - margin-left: 0px;
- 955. - margin-right: 40px;
- 956. - }
- 957. -
- 958. - .is_rtl1 .request_result_msg {
- 959. - text-align: right;
- 960. - }
- 961. - .is_rtl1 #search_query_wrap.wide .search_submit {
- 962. - margin-left: 0px;
- 963. - margin-right: 8px;
- 964. - }
- 965. - .is_rtl1 #search_query {
- 966. - padding: 5px 20px 5px 40px;
- 967. - background-position: 493px 6px;
- 968. - }
- 969. - .is_rtl1 #search_query_reset {
- 970. - margin: 0 -18px 0 0;
- 971. - }
- 972. - .is_rtl1 #search_query_wrap.wide #search_query_progress {
- 973. - margin-left: 0;
- 974. - margin-right: -41px;
- 975. - }
- 976. - .is_rtl1 .search_subtab1 {
- 977. - margin: 10px 0 0 5px;
- 978. - }
- 979. - .is_rtl1 .search_subtab1.fl_r {
- 980. - margin: 10px 5px 0 0;
- 981. - }
- 982. - .is_rtl1 .videos_row .info {
- 983. - padding: 2px 10px 0 0;
- 984. - }
- 985. - .is_rtl1 .video_addition_options .checkbox div {
- 986. - margin: 0px 0px 0px 8px;
- 987. - }
- 988. - .is_rtl1 #results .groups_row .info,
- 989. - .is_rtl1 #results .three_col_row .info {
- 990. - padding-left: 0px;
- 991. - padding-right: 10px;
- 992. - }
- 993. - .is_rtl1 .group_row_info {
- 994. - padding-left: 0px;
- 995. - padding-right: 10px;
- 996. - }
- 997. - .is_rtl1 #search_content .audios_row {
- 998. - padding: 10px 20px 0 4px;
- 999. - }
- 1000. - .is_rtl1 #search_content .audios_row .repeat_wrap {
- 1001. - left: auto;
- 1002. - right: -3px;
- 1003. - }
- 1004. - .is_rtl1 #search_content .area .audio_add_wrap {
- 1005. - margin: 4px 0px 4px 4px;
- 1006. - }
- 1007. - .is_rtl1 .search_results td.results,
- 1008. - .is_rtl1 .search_people td.results {
- 1009. - border-right: none;
- 1010. - border-left: 1px solid #DAE2E8;
- 1011. - }
- 1012. - .is_rtl1 .filter_shut div.arrow,
- 1013. - .is_rtl1 .filter_open div.arrow {
- 1014. - padding-left: 0px;
- 1015. - padding-right: 6px;
- 1016. - }
- 1017. - .is_rtl1 #audio.new .audio .play_new {
- 1018. - margin: 0px;
- 1019. - }
- 1020. - .is_rtl1 .audio .duration {
- 1021. - padding: 8px 0px 7px 7px;
- 1022. - }
- 1023. - .is_rtl1 .audio .area .actions {
- 1024. - right: auto;
- 1025. - left: 0px;
- 1026. - }
- 1027. - .is_rtl1 .checkbox_container table td.checkbox_label,
- 1028. - .is_rtl1 .radiobtn_container table td.radiobtn_label {
- 1029. - text-align: right;
- 1030. - }
- 1031. -
- 1032. - .is_rtl1 .login_blocked_reason_info {
- 1033. - margin-left: 0;
- 1034. - margin-right: 45px;
- 1035. - }
- 1036. -
- 1037. - /* Profile profile.css */
- 1038. - .is_rtl1 .profile_msg_split .cut_left {
- 1039. - float: right;
- 1040. - }
- 1041. - .is_rtl1 .profile_msg_split .cut_right {
- 1042. - float: right;
- 1043. - }
- 1044. - .is_rtl1 .profile_msg_split .profile_btn_cut_left {
- 1045. - border-left: 1px solid #7496B9;
- 1046. - border-right: none;
- 1047. - -webkit-border-radius: 2px;
- 1048. - -khtml-border-radius: 2px;
- 1049. - -moz-border-radius: 2px;
- 1050. - border-radius: 2px;
- 1051. - -webkit-border-bottom-left-radius: 0;
- 1052. - -webkit-border-top-left-radius: 0;
- 1053. - -khtml-border-bottom-left-radius: 0;
- 1054. - -khtml-border-top-left-radius: 0;
- 1055. - -moz-border-bottom-left-radius: 0;
- 1056. - -moz-border-top-left-radius: 0;
- 1057. - border-bottom-left-radius: 0;
- 1058. - border-top-left-radius: 0;
- 1059. - }
- 1060. - .is_rtl1 .profile_msg_split .profile_btn_cut_right {
- 1061. - border-right: 1px solid #5E82A7;
- 1062. - border-left: none;
- 1063. - -webkit-border-radius: 2px;
- 1064. - -khtml-border-radius: 2px;
- 1065. - -moz-border-radius: 2px;
- 1066. - border-radius: 2px;
- 1067. - -webkit-border-bottom-right-radius: 0;
- 1068. - -webkit-border-top-right-radius: 0;
- 1069. - -khtml-border-bottom-right-radius: 0;
- 1070. - -khtml-border-top-right-radius: 0;
- 1071. - -moz-border-bottom-right-radius: 0;
- 1072. - -moz-border-top-right-radius: 0;
- 1073. - border-bottom-right-radius: 0;
- 1074. - border-top-right-radius: 0;
- 1075. - }
- 1076. - .is_rtl1 div.olist_select_wrap button {
- 1077. - -webkit-border-radius: 2px;
- 1078. - -khtml-border-radius: 2px;
- 1079. - -moz-border-radius: 2px;
- 1080. - border-radius: 2px;
- 1081. - -webkit-border-bottom-left-radius: 0;
- 1082. - -webkit-border-top-left-radius: 0;
- 1083. - -khtml-border-bottom-left-radius: 0;
- 1084. - -khtml-border-top-left-radius: 0;
- 1085. - -moz-border-bottom-left-radius: 0;
- 1086. - -moz-border-top-left-radius: 0;
- 1087. - border-bottom-left-radius: 0;
- 1088. - border-top-left-radius: 0;
- 1089. - }
- 1090. - .is_rtl1 .profile_calls_btn {
- 1091. - margin-left: 0;
- 1092. - margin-right: 4px;
- 1093. - }
- 1094. -
- 1095. - .is_rtl1 .audio_search div.abutton_wrap button,
- 1096. - .is_rtl1 #pad_audio_search div.abutton_wrap button {
- 1097. - -webkit-border-radius: 2px;
- 1098. - -khtml-border-radius: 2px;
- 1099. - -moz-border-radius: 2px;
- 1100. - border-radius: 2px;
- 1101. - -webkit-border-bottom-right-radius: 0;
- 1102. - -webkit-border-top-right-radius: 0;
- 1103. - -khtml-border-bottom-right-radius: 0;
- 1104. - -khtml-border-top-right-radius: 0;
- 1105. - -moz-border-bottom-right-radius: 0;
- 1106. - -moz-border-top-right-radius: 0;
- 1107. - border-bottom-right-radius: 0;
- 1108. - border-top-right-radius: 0;
- 1109. - }
- 1110. -
- 1111. - .is_rtl1 .wall_module .post_info {
- 1112. - margin-left: 0px;
- 1113. - margin-right: 60px;
- 1114. - }
- 1115. -
- 1116. - .is_rtl1 .wall_module .reply_info {
- 1117. - margin-left: 0px;
- 1118. - margin-right: 39px;
- 1119. - }
- 1120. - .is_rtl1 .wide_wall_module .reply_info {
- 1121. - margin-left: 0px;
- 1122. - margin-right: 61px;
- 1123. - }
- 1124. - .is_rtl1 .wall_module .reply_box_open .reply_box {
- 1125. - margin-left: 0;
- 1126. - margin-right: -6px;
- 1127. - }
- 1128. - .is_rtl1 .wall_module .reply_box_open .reply_form {
- 1129. - margin-left: 0px;
- 1130. - margin-right: 38px;
- 1131. - }
- 1132. - .is_rtl1 .wide_wall_module .reply_box_open .reply_form {
- 1133. - margin-left: 0px;
- 1134. - margin-right: 62px;
- 1135. - }
- 1136. - .is_rtl1 .wall_module .reply_field_tail {
- 1137. - display: none;
- 1138. - }
- 1139. - .reply_button_wrap {
- 1140. - padding-right: 0;
- 1141. - padding-left: 5px;
- 1142. - zoom: 1;
- 1143. - }
- 1144. - .is_rtl1 #reply_submit_hint_opts .radiobtn div {
- 1145. - margin: 2px 0 6px 5px;
- 1146. - }
- 1147. - .is_rtl1 div.feed_post_field {
- 1148. - margin-left: 0;
- 1149. - margin-right: 42px;
- 1150. - }
- 1151. -
- 1152. - .is_rtl1 .post_like {
- 1153. - right: auto;
- 1154. - left: 0px;
- 1155. - }
- 1156. - .is_rtl1 .wall_module div.page_media_link_desc_wrap {
- 1157. - padding-left: 0;
- 1158. - padding-right: 10px;
- 1159. - }
- 1160. - .is_rtl1 .wall_module .page_media_thumbed_link {
- 1161. - margin: 5px 3px 5px 0;
- 1162. - border-left: 0;
- 1163. - border-right: 2px solid #C3D1E0;
- 1164. - padding-left: 0;
- 1165. - padding-right: 5px;
- 1166. - }
- 1167. -
- 1168. -
- 1169. - .is_rtl1 .wall_module .like_wrap i.no_likes,
- 1170. - .is_rtl1 .wall_module .post_like i.no_likes {
- 1171. - margin-right: 3px;
- 1172. - margin-left: 0px;
- 1173. - }
- 1174. - .is_rtl1 div.fc_tab_txt_self {
- 1175. - margin-left: 0px;
- 1176. - margin-right: -36px;
- 1177. - }
- 1178. - .is_rtl1 div.fc_tab_txt {
- 1179. - padding: 3px 39px 3px 3px;
- 1180. - }
- 1181. -
- 1182. -
- 1183. - .is_rtl1 .wide_wall_module a.page_post_thumb_wrap,
- 1184. - .is_rtl1 .wide_wall_module a.page_post_thumb_unsized {
- 1185. - margin: 0 0 6px 6px;
- 1186. - }
- 1187. - .is_rtl1 a.page_post_thumb_wrap,
- 1188. - .is_rtl1 a.page_post_thumb_unsized,
- 1189. - .is_rtl1 .feedback_row a.page_post_thumb_wrap,
- 1190. - .is_rtl1 .feedback_row a.page_post_thumb_unsized {
- 1191. - margin: 0 0 3px 3px;
- 1192. - }
- 1193. - .is_rtl1 .page_post_sized_thumbs a.page_post_thumb_last_column,
- 1194. - .is_rtl1 .feedback_row a.page_post_thumb_last_column {
- 1195. - margin-left: 0;
- 1196. - }
- 1197. - .is_rtl1 .page_post_sized_thumbs a.page_post_thumb_last_row,
- 1198. - .is_rtl1 .page_post_sized_thumbs span.page_post_thumb_last_row {
- 1199. - margin-bottom: 0;
- 1200. - }
- 1201. - .is_rtl1 .wall_album_photos {
- 1202. - margin-left: 0;
- 1203. - margin-right: 3px;
- 1204. - }
- 1205. - .is_rtl1 .wide_wall_module .wall_album_photos {
- 1206. - margin-left: 0;
- 1207. - margin-right: 6px;
- 1208. - }
- 1209. -
- 1210. - .is_rtl1 .login_mobile_new {
- 1211. - margin-left: 0px;
- 1212. - margin-right: 7px;
- 1213. - }
- 1214. - .is_rtl1 .login_mobile_top_new {
- 1215. - padding-left: 0px;
- 1216. - padding-right: 5px;
- 1217. - }
- 1218. -
- 1219. - .is_rtl1 #audio.new .audio_list {
- 1220. - padding: 0 13px 13px 0;
- 1221. - }
- 1222. - .is_rtl1 .audio_list .actions {
- 1223. - padding-left: 0px;
- 1224. - padding-right: 10px;
- 1225. - }
- 1226. - .is_rtl1 .audio_friend_name,
- 1227. - .is_rtl1 .audio_friend_name_now,
- 1228. - .is_rtl1 .audio_friend_now {
- 1229. - padding: 0 8px 0 0;
- 1230. - }
- 1231. - .is_rtl1 .audio_table .audio .title_wrap {
- 1232. - float: right;
- 1233. - }
- 1234. - .is_rtl1 #pad_audio_search {
- 1235. - margin-left: -1px;
- 1236. - margin-right: 0px;
- 1237. - }
- 1238. - .is_rtl1 .audio_search div.abutton_wrap,
- 1239. - .is_rtl1 #pad_audio_search div.abutton_wrap {
- 1240. - left: 1px;
- 1241. - }
- 1242. - .is_rtl1 .audio_search div.abutton_wrap .button_blue,
- 1243. - .is_rtl1 #pad_audio_search div.abutton_wrap .button_blue {
- 1244. - -webkit-border-radius: 2px 0 0 2px;
- 1245. - -khtml-border-radius: 2px 0 0 2px;
- 1246. - -moz-border-radius: 2px 0 0 2px;
- 1247. - border-radius: 2px 0 0 2px;
- 1248. - }
- 1249. - .is_rtl1 .abutton_wrap .arrow,
- 1250. - .is_rtl1 .dd_menu_stype_act .arrow {
- 1251. - margin-left: 0px;
- 1252. - margin-right: 6px;
- 1253. - }
- 1254. - .is_rtl1 #audio.new .actions {
- 1255. - right: auto;
- 1256. - left: 0px;
- 1257. - }
- 1258. - .is_rtl1 #audio.new .audio_edit_wrap,
- 1259. - .is_rtl1 #audio.new .audio_remove_wrap,
- 1260. - .is_rtl1 #audio.new .audio_add_wrap {
- 1261. - margin: 6px 0 6px 6px;
- 1262. - }
- 1263. - .is_rtl1 .audio_filter div.icon_wrap {
- 1264. - right: auto;
- 1265. - left: -1px;
- 1266. - }
- 1267. - .is_rtl1 .audio_filter.loading,
- 1268. - .is_rtl1 .audio_filter.selected.loading {
- 1269. - background-position: 7px center;
- 1270. - }
- 1271. -
- 1272. - .is_rtl1 #ac_play,
- 1273. - .is_rtl1 #pd_play {
- 1274. - margin: 0 2px 0 4px;
- 1275. - }
- 1276. - .is_rtl1 .audio_current .info {
- 1277. - margin-left: 0px;
- 1278. - margin-right: 10px;
- 1279. - }
- 1280. - .is_rtl1 #ac_vol,
- 1281. - .is_rtl1 #pd_vol {
- 1282. - margin-left: 0px;
- 1283. - margin-right: 11px;
- 1284. - }
- 1285. - .is_rtl1 .ac_slider {
- 1286. - right: auto;
- 1287. - left: -4px;
- 1288. - }
- 1289. - .is_rtl1 #ac .info,
- 1290. - .is_rtl1 #pd .info {
- 1291. - margin-left: 0px;
- 1292. - margin-right: 10px;
- 1293. - }
- 1294. - .is_rtl1 #ac .duration,
- 1295. - .is_rtl1 #pd .duration {
- 1296. - margin-left: 66px;
- 1297. - margin-right: 0px;
- 1298. - }
- 1299. -
- 1300. - .is_rtl1 .ttb .top_pointer,
- 1301. - .is_rtl1 .ttb .bottom_pointer {
- 1302. - float: right;
- 1303. - }
- 1304. -
- 1305. - .is_rtl1 #pad_arrow {
- 1306. - left: auto;
- 1307. - right: -10px;
- 1308. - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAARCAYAAADpPU2iAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAEHSURBVHjaYvgPBGt3Hf/PwMDACsRMQMwMooHCDNgwQACBFCADZgYCACCAWJDYbEAMsokRiH8xMjKCTPyHrgEggECCYLBu7xmQYiEgFgRiDiBmhzqTGdlJAAEE14CkSQKqkRtJE9xPAAGEogFJkxS6JpgGgADC0IBDEytME0AAYdWApEkSiAWAmAumASCAcGpA0iQMswWkASCACNkgh6wBFGIAAYTPDypALItuA0AA4QoldSBWQPcDyAaAAGLAYbIiEEsjhRIHLAIBAogBi5vl0BRzIcc4QAAxIKVWESAWR4ppLmzJAyCAkBPfHyCGJbYfQPwbmtZ+I6c9gABC1oAs8RNX8gYIMAB16z+vM7O/CQAAAABJRU5ErkJggg==);
- 1309. - }
- 1310. - .is_rtl1 #pad_arrow.right {
- 1311. - width: 12px;
- 1312. - height: 17px;
- 1313. - left: -10px;
- 1314. - right: auto;
- 1315. - top: 17px;
- 1316. - background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAARCAYAAADpPU2iAAAAr0lEQVR42pWSTQoCMQxGS0NROpuxCv7hoCB4eD2A4NqNp+kNZr5KAyHYMA48uvleMmnqXPvzgOoZ7s/3mHMe3QwhzBF8DXYglrMlcMUFWIIVSI/X5xvWghfhUjmBnQxrQYcPOiyFIP65GdZCGa4H+1ZYC6X62gqzQFIAw18dwAlcrRlIzwDO4GbdEtVF8S0dweVXJ73hqKRBz9R6FpE3DbZgYz2+ILqlSm8JJOgYFiaDlASbG44/fAAAAABJRU5ErkJggg%3D%3D) no-repeat;
- 1317. - }
- 1318. - .is_rtl1 #pad_arrow.left {
- 1319. - width: 12px;
- 1320. - height: 17px;
- 1321. - left: auto;
- 1322. - right: -10px;
- 1323. - top: 15px;
- 1324. - background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAARCAYAAADpPU2iAAAArUlEQVR42pWSTQrCQAyFQ4eh4mz8A6uiKAgeXg8guHbjaeYGbQYivkkTxcK3e9880oRyzv31/uyJKAEBqD8QZsxCmDJRcIUVs2Y6kFqRQiUUbo9XkQ7CTqQEbaESQDozJyVNTAGkC3NkNjLbp0ULqmnPLKUlmg3GTCgEVwDprwY9A32bYQt/KbqCEW6rjRvhzgg33qZLcC6LGp+FuqX3GaTRq44Q4UU7bAjNL2EAU9kEmwVnt3EAAAAASUVORK5CYII%3D) no-repeat;
- 1325. - }
- 1326. - .is_rtl1 #pad_audio_search input.pad_search {
- 1327. - background-position: 349px 6px
- 1328. - }
- 1329. - body.pads.is_rtl1 #side_bar a.left_row {
- 1330. - padding: 0px 6px 0px 0px;
- 1331. - }
- 1332. - .is_rtl1 .pad_fr_info {
- 1333. - margin-left: 0px;
- 1334. - margin-right: 85px;
- 1335. - }
- 1336. - .is_rtl1 .pad_gr_info {
- 1337. - margin-left: 0px;
- 1338. - margin-right: 110px;
- 1339. - }
- 1340. - .is_rtl1 .pad_ph_tagger,
- 1341. - .is_rtl1 .pad_vid_tagger {
- 1342. - margin-left: 8px;
- 1343. - margin-right: 0;
- 1344. - }
- 1345. - .is_rtl1 .pad_msg_data {
- 1346. - margin-right: 60px;
- 1347. - margin-left: 0;
- 1348. - }
- 1349. - .is_rtl1 .pad_msga_data,
- 1350. - .is_rtl1 .pad_nwsa_data {
- 1351. - margin-left: 0;
- 1352. - margin-right: 49px;
- 1353. - }
- 1354. - .is_rtl1 .pad_msga_arrow,
- 1355. - .is_rtl1 .pad_nwsa_arrow {
- 1356. - left: auto;
- 1357. - right: 20px;
- 1358. - }
- 1359. -
- 1360. - .is_rtl1 div.im_chatbox_mem_photo {
- 1361. - padding-right: 0px;
- 1362. - padding-left: 15px;
- 1363. - }
- 1364. - .is_rtl1 .lang_box_row {
- 1365. - padding-left: 0px;
- 1366. - margin-left: 0px;
- 1367. - padding-right: 50px;
- 1368. - margin-right: 10px;
- 1369. - background-position: right center;
- 1370. - }
- 1371. - .is_rtl1 .pad_ap_right {
- 1372. - margin: 0px 10px 10px 0px;
- 1373. - }
- 1374. - .is_rtl1 .pad_decl {
- 1375. - margin-left: 0px;
- 1376. - margin-right: 10px;
- 1377. - }
- 1378. - .is_rtl1 .pad_ph_info,
- 1379. - .is_rtl1 .pad_vid_info {
- 1380. - margin-left: 0px;
- 1381. - margin-right: 60px;
- 1382. - }
- 1383. -
- 1384. - .is_rtl1 #reg_bar_content {
- 1385. - padding: 10px 120px 10px 0px;
- 1386. - }
- 1387. - .is_rtl1 #reg_bar_btn {
- 1388. - padding-right: 14px;
- 1389. - padding-left: 2px;
- 1390. - }
- 1391. - .is_rtl1 #reg_bar_with_arr {
- 1392. - padding-right: 0px;
- 1393. - padding-left: 25px;
- 1394. - }
- 1395. -
- 1396. - .is_rtl1 #mail_box_topic {
- 1397. - margin-left: 0px;
- 1398. - margin-right: 26px;
- 1399. - }
- 1400. - .is_rtl1 #mail_box_ava .wdd_img_half .wdd_img {
- 1401. - margin-left: 0px;
- 1402. - margin-right: -8px;
- 1403. - }
- 1404. - .is_rtl1 #dark_box_ava {
- 1405. - margin-left: 0px;
- 1406. - margin-right: -26px;
- 1407. - }
- 1408. - .is_rtl1 #dark_box_ava .wdd_img_half .wdd_img {
- 1409. - margin-left: 0px;
- 1410. - margin-right: -8px;
- 1411. - }
- 1412. -
- 1413. - .is_rtl1 .im_photo_holder {
- 1414. - margin-left: 8px;
- 1415. - margin-right: 0px;
- 1416. - }
- 1417. - .is_rtl1 #owner_photo_bubble_in {
- 1418. - padding-left: 0px;
- 1419. - padding-right: 20px;
- 1420. - background-position: right -1px;
- 1421. - }
- 1422. - .is_rtl1 #owner_photo_rotate_c {
- 1423. - right: auto;
- 1424. - left: 0px;
- 1425. - }
- 1426. - .is_rtl1 .pv_filter_icon,
- 1427. - .is_rtl1 .pv_filter_blur .pv_filter_icon {
- 1428. - margin-left: 0px;
- 1429. - margin-right: 8px;
- 1430. - }
- 1431. - .is_rtl1 .pv_crop_cancel {
- 1432. - margin: 11px 56px 0px 0px;
- 1433. - }
- 1434. -
- 1435. - .is_rtl1 #docs_choose_upload_area_label {
- 1436. - padding-left: 0px;
- 1437. - padding-right: 27px;
- 1438. - background-position: right 0px;
- 1439. - }
- 1440. - .is_rtl1 .docs_add_new span {
- 1441. - background-position: 7px -280px;
- 1442. - }
- 1443. - .is_rtl1 .docs_item_icon {
- 1444. - padding: 3px 17px 0px 0px;
- 1445. - background-position: 32px 7px;
- 1446. - }
- 1447. - .is_rtl1 .olist_actions .olist_filter {
- 1448. - border-left-width: 1px;
- 1449. - border-right-width: 0px;
- 1450. - }
- 1451. - .is_rtl1 input.olist_filter {
- 1452. - padding: 5px 20px 4px 4px;
- 1453. - background-position: 150px 6px;
- 1454. - }
- 1455. - .is_rtl1 div.olist_select_wrap .button_blue {
- 1456. - -webkit-border-radius: 0 2px 2px 0;
- 1457. - -khtml-border-radius: 0 2px 2px 0;
- 1458. - -moz-border-radius: 0 2px 2px 0;
- 1459. - border-radius: 0 2px 2px 0;
- 1460. - }
- 1461. -
- 1462. - .is_rtl1 .join_finish_tt_pointer {
- 1463. - left: auto;
- 1464. - right: -7px;
- 1465. - background-position: -8px 0px;
- 1466. - }
- 1467. - .is_rtl1 .page_media_poll .page_poll_row_percent {
- 1468. - padding: 2px 6px 0 0;
- 1469. - }
- 1470. - .is_rtl1 .wk_poll_stats_wrap .wk_poll_row_percent {
- 1471. - padding-left: 0px;
- 1472. - padding-right: 4px;
- 1473. - }
- 1474. - .is_rtl1 .wk_poll_usr {
- 1475. - margin-left: 6px;
- 1476. - margin-right: 0px;
- 1477. - }
- 1478. - .is_rtl1 .like_tt table.toup1 .bottom_pointer,
- 1479. - .is_rtl1 .mention_tt table.toup1 .bottom_pointer,
- 1480. - .is_rtl1 .poll_tt table.toup1 .bottom_pointer {
- 1481. - margin-right: 64px;
- 1482. - margin-left: 0px;
- 1483. - }
- 1484. - .is_rtl1 .like_tt table.toup .top_pointer,
- 1485. - .is_rtl1 .mention_tt table.toup .top_pointer,
- 1486. - .is_rtl1 .poll_tt table.toup .top_pointer {
- 1487. - margin-right: 64px;
- 1488. - margin-left: 0px;
- 1489. - }
- 1490. -
- 1491. - .is_rtl1 .medadd_h,
- 1492. - .is_rtl1 .medadd_c {
- 1493. - padding-left: 0px;
- 1494. - padding-right: 20px;
- 1495. - }
- 1496. - .is_rtl1 .medadd_aud {
- 1497. - padding-right: 0px;
- 1498. - padding-left: 10px;
- 1499. - }
- 1500. - .is_rtl1 .medadd_aud_play {
- 1501. - margin-right: 0px;
- 1502. - margin-left: 8px;
- 1503. - }
- 1504. -
- 1505. - .is_rtl1 .wall_module #wall_postponed_link .wall_postponed_link_arrow {
- 1506. - background-position: 0px -34px;
- 1507. - }
- 1508. - .is_rtl1 .wall_module #wall_postponed_msg_hide .wall_postponed_link_arrow {
- 1509. - background-position: 0px -22px;
- 1510. - }
- 1511. - .is_rtl1 .post_media_link_preview_wrap .button_blue {
- 1512. - margin: -4px 10px 0 0;
- 1513. - }
- 1514. - .is_rtl1 .medadd_h_note {
- 1515. - background-position: right -132px;
- 1516. - }
- 1517. - .is_rtl1 .medadd_h_doc {
- 1518. - background-position: right -278px;
- 1519. - }
- 1520. - .is_rtl1 .medadd_h_poll {
- 1521. - background-position: right -206px;
- 1522. - }
- 1523. - .is_rtl1 .medadd_h_link,
- 1524. - .is_rtl1 .medadd_h_page {
- 1525. - background-position: right -235px;
- 1526. - }
- 1527. - .is_rtl1 .medadd_h_timer {
- 1528. - background-position: right -332px;
- 1529. - }
- 1530. - .is_rtl1 .medadd_h_mail {
- 1531. - background-position: right -292px;
- 1532. - }
- 1533. - .is_rtl1 .datepicker_control {
- 1534. - background-position: left center;
- 1535. - }
- 1536. - .is_rtl1 .medadd_c_timersett .checkbox_status_export,
- 1537. - .is_rtl1 .medadd_c_timersett .checkbox_facebook_export,
- 1538. - .is_rtl1 .medadd_c_timersett .checkbox {
- 1539. - margin-left: 10px;
- 1540. - margin-right: 0px;
- 1541. - }
- 1542. -
- 1543. - .is_rtl1 .docs_choose_def_icon {
- 1544. - background-position: 31px 7px;
- 1545. - padding: 3px 17px 0px 0px;
- 1546. - }
- 1547. - .is_rtl1 #layer_stl_text {
- 1548. - margin: 0 15px 0 31px;
- 1549. - background-position: right 3px;
- 1550. - }
- 1551. - .is_rtl1 #layer_stl_text.down {
- 1552. - background-position: right -9px;
- 1553. - }
- 1554. - .is_rtl1 .page_media_poll_desc {
- 1555. - padding-left: 0px;
- 1556. - padding-right: 5px;
- 1557. - }
- 1558. - .is_rtl1 .page_album_title {
- 1559. - margin-left: 0px;
- 1560. - margin-right: 6px;
- 1561. - }
- 1562. -
- 1563. - .is_rtl1 #quick_login {
- 1564. - padding: 3px 9px 0px 0px;
- 1565. - }
- 1566. - .is_rtl1 #pv_reply_as_group {
- 1567. - margin-left: 0px;
- 1568. - margin-right: 10px;
- 1569. - }
- 1570. - .is_rtl1 .im_to_end {
- 1571. - background-position: left 0px;
- 1572. - }
- 1573. -
- 1574. - .is_rtl1 #page_header.p_head1 .right {
- 1575. - width: 48px;
- 1576. - background: #4E729A url(/images/hatf_vk_rtl.gif?1) 100% -1px;
- 1577. - }
- 1578. - .is_rtl1 #ts_input {
- 1579. - padding: 4px 20px 3px 41px;
- 1580. - background-position: 149px -11px;
- 1581. - }
- 1582. - .is_rtl1 .index_fb_logo {
- 1583. - border-right: 0;
- 1584. - border-left: 1px solid #5B78A4;
- 1585. - }
- 1586. - .is_rtl1 .index_fb_l {
- 1587. - padding-left: 5px;
- 1588. - padding-right: 10px;
- 1589. - margin-right: 27px;
- 1590. - margin-left: 0;
- 1591. - text-align: right;
- 1592. - border-left: 0;
- 1593. - border-right: 1px solid #6985B4;
- 1594. - }
- 1595. - .is_rtl1 .index_fb_btn button:hover .index_fb_logo {
- 1596. - border-right: 0;
- 1597. - border-left: 1px solid #5B78A4;
- 1598. - }
- 1599. - .is_rtl1 .index_fb_btn button:active .index_fb_logo {
- 1600. - border-right: 0;
- 1601. - border-left: 1px solid #5B78A4;
- 1602. - }
- 1603. - .is_rtl1 .index_fb_btn button:active .index_fb_l {
- 1604. - border-left: 0;
- 1605. - border-right: 1px solid #6985B4;
- 1606. - margin-left: 0;
- 1607. - margin-right: 25px;
- 1608. - padding-left: 10px;
- 1609. - padding-right: 12px;
- 1610. - }
- 1611. - .is_rtl1 .index_or {
- 1612. - margin-left: 0;
- 1613. - margin-right: 185px;
- 1614. - }
- 1615. - .is_rtl1 #box_layer_wrap.box_layer_hidden,
- 1616. - .is_rtl1 .box_layer_hidden {
- 1617. - left: auto;
- 1618. - right: -10000px;
- 1619. - }
- 1620. - .is_rtl1 .wall_module .post_actions,
- 1621. - .is_rtl1 .wall_module .reply_actions,
- 1622. - .is_rtl1 .post_full_like {
- 1623. - right: auto;
- 1624. - left: 0;
- 1625. - }
- ------
- Файл - feed.js (Старый размер - 96445 | Новый - 0):
- 0. - var Feed = {
- 1. - update: function (afterPost) {
- 2. - if (cur.feedUpdateLoading) return;
- 3. - if (cur.add_queue && window.Notifier &&
- 4. - Notifier.addKey(cur.add_queue, feed.updated) &&
- 5. - cur.section != 'news') {
- 6. - return;
- 7. - }
- 8. - if (cur.subsection == 'top' || inArray(cur.section, ['search', 'photos_search', 'mentions', 'articles', 'articles_search', 'likes'])) {
- 9. - return;
- 10. - }
- 11. - var rnd = Math.random();
- 12. - if (cur.section != 'news' && cur.section != 'comments' && rnd > 0.3 ||
- 13. - cur.section == 'news' && (afterPost || rnd > 0.05)) {
- 14. - return;
- 15. - }
- 16. - cur.feedUpdateLoading = true;
- 17. - ajax.post('al_feed.php?au_' + cur.section, extend(feed.getSectionParams(cur.section), {timestamp: cur.timestamp, posted: afterPost ? 1 : '', queue: cur.add_queue ? 1 : 0}), {
- 18. - onDone: function (options, rows, updates_timestamp) {
- 19. - cur.feedUpdateLoading = false;
- 20. - if (afterPost == 1 &&
- 21. - (!rows || rows.indexOf(vk.id + '') == -1)) {
- 22. - setTimeout(feed.update.pbind(2), 2000);
- 23. - return;
- 24. - }
- 25. - if (options.section != cur.section ||
- 26. - options.timestamp < cur.timestamp ||
- 27. - updates_timestamp < cur.timestamp) {
- 28. - return;
- 29. - }
- 30. - options.count += cur.count;
- 31. - var feed_rows = cur.rowsCont, au = ce('div'), el, postEl, post_raw, startST, updH = 0;
- 32. - if (cur.section == 'news') {
- 33. - startST = scrollGetY()
- 34. - if (rows) {
- 35. - au.innerHTML = rows;
- 36. - while (au.lastChild) {
- 37. - feed_rows.insertBefore(au.lastChild, feed_rows.firstChild);
- 38. - }
- 39. - each(geByClass('ts' + updates_timestamp, feed_rows), function() {
- 40. - var self = this;
- 41. - updH += this.offsetHeight;
- 42. - self.style.backgroundColor = '#FEFAE4';
- 43. - animate(self, {backgroundColor: '#FFF'}, 6000);
- 44. - cur.feedUnreadCount++;
- 45. - });
- 46. - }
- 47. - if (updH && startST > 100) {
- 48. - scrollToY(startST + updH, 0);
- 49. - }
- 50. - } else {
- 51. - if (rows) {
- 52. - au.innerHTML = rows;
- 53. - while (el = au.lastChild) {
- 54. - if (el.tagName != 'DIV') {
- 55. - au.removeChild(el);
- 56. - continue;
- 57. - }
- 58. - post_raw = el.firstChild.id.substr(4);
- 59. - if (post_raw && cur.wallLayer == post_raw) {
- 60. - continue;
- 61. - }
- 62. - if (!(postEl = ge('post' + post_raw))) {
- 63. - startST = scrollGetY();
- 64. - feed_rows.insertBefore(el, feed_rows.firstChild);
- 65. - el.style.backgroundColor = '#FEFAE4';
- 66. - animate(el, {backgroundColor: '#FFF'}, 6000);
- 67. - updH = el.offsetHeight;
- 68. - if (startST > 100) {
- 69. - scrollToY(startST + updH, 0);
- 70. - }
- 71. - } else {
- 72. - if (!hasClass(postEl.parentNode, 'feed_row')) {
- 73. - debugLog('insert fail', postEl.parentNode);
- 74. - return;
- 75. - }
- 76. - var repliesCont = ge('replies' + post_raw), openEl = repliesCont.nextSibling, cnt = 0;
- 77. - each ([].slice.call(geByClass('reply', el, 'div')), function () {
- 78. - if (ge(this.id)) return;
- 79. - addClass(this, 'new_reply');
- 80. - repliesCont.appendChild(this);
- 81. - cnt++;
- 82. - });
- 83. - if (cnt) {
- 84. - var stDelta = postEl.parentNode.offsetHeight, newCnt = geByClass('new_reply', repliesCont, 'div').length;
- 85. - if (!openEl || openEl.className != 'replies_open') {
- 86. - openEl = ce('div', {className: 'replies_open', onclick: wall.openNewComments.pbind(post_raw)});
- 87. - repliesCont.parentNode.insertBefore(openEl, repliesCont.nextSibling);
- 88. - }
- 89. - openEl.innerHTML = getLang('wall_x_new_replies_more', Math.min(100, newCnt));
- 90. - openEl.newCnt = newCnt;
- 91. -
- 92. - var st = scrollGetY(),
- 93. - ch = window.innerHeight || document.documentElement.clientHeight || bodyNode.clientHeight,
- 94. - btnY = getXY(openEl)[1],
- 95. - h = postEl.parentNode.offsetHeight;
- 96. -
- 97. - stDelta = h - stDelta;
- 98. -
- 99. - if (!inArray(post_raw, cur.feedUnread)) {
- 100. - cur.feedUnread.unshift(post_raw);
- 101. - }
- 102. - if (!cur.idleManager.isIdle && btnY > st + 100 && btnY < st + ch + 100) {
- 103. - debugLog('delaySorting');
- 104. - feed_rows.insertBefore(ge('post_ph' + post_raw) || ce('div', {id: 'post_ph' + post_raw}), feed_rows.firstChild);
- 105. - if (!inArray(post_raw, cur.feedToSort)) {
- 106. - cur.feedToSort.push(post_raw);
- 107. - }
- 108. - } else {
- 109. - debugLog('sort now', btnY, st + 100, st + ch + 100, stDelta);
- 110. - // debugLog(postEl.parentNode, feed_rows);
- 111. - re(postEl.parentNode);
- 112. - // debugLog(postEl.parentNode, feed_rows);
- 113. - feed_rows.insertBefore(postEl.parentNode, feed_rows.firstChild);
- 114. - if (btnY > st + ch + 100) {
- 115. - stDelta = h;
- 116. - }
- 117. - if (stDelta) {
- 118. - debugLog('moving st', stDelta);
- 119. - scrollToY(scrollGetY() + stDelta, 0);
- 120. - }
- 121. - }
- 122. - cur.feedUnreadCount += cnt;
- 123. - }
- 124. - au.removeChild(el);
- 125. - }
- 126. - }
- 127. - }
- 128. - }
- 129. - feed.applyOptions(options);
- 130. - feed.updateTitle();
- 131. - },
- 132. - onFail: function () {
- 133. - cur.feedUpdateLoading = false;
- 134. - return false;
- 135. - },
- 136. - showProgress: function () {
- 137. - cur.feedUpdateLoading = true;
- 138. - },
- 139. - hideProgress: function () {
- 140. - cur.feedUpdateLoading = false;
- 141. - }
- 142. - });
- 143. - },
- 144. - getNewQKey: function (to) {
- 145. - var params = {
- 146. - act: 'a_get_key',
- 147. - only_update: cur.add_queue ? 1 : 0,
- 148. - need_ignore: !isArray(cur.ignore_owners) ? 1 : 0
- 149. - };
- 150. - var options = {onDone: onDone, local: 1};
- 151. - ajax.post('al_feed.php?queue', extend(feed.getSectionParams(cur.section), params), options);
- 152. - function onDone(key, ignore_owners) {
- 153. - if (key) {
- 154. - cur.add_queue = key;
- 155. - setTimeout(feed.update.pbind(0), 0);
- 156. - } else if (!params.only_update) {
- 157. - var ts = ignore_owners;
- 158. - cur.timestamp = (ts || (vkNow() / 1000)) - to;
- 159. - return;
- 160. - }
- 161. - if (isArray(ignore_owners)) {
- 162. - cur.ignore_owners = ignore_owners;
- 163. - }
- 164. - }
- 165. - },
- 166. - updated: function (key, data) {
- 167. - if ((cur.section != 'search' && cur.section != 'news' && cur.section) || !cur.add_queue || cur.add_queue.key != key) {
- 168. - return;
- 169. - }
- 170. - if (data.failed) {
- 171. - cur.add_queue = false;
- 172. - var timeout = curNotifier.error_timeout || 1;
- 173. - clearTimeout(cur.lp_error_to);
- 174. - cur.lp_error_to = setTimeout(feed.getNewQKey.bind(feed).pbind(timeout), timeout * 1000);
- 175. - return;
- 176. - }
- 177. - if (!isArray(data.events) || !data.events.length) {
- 178. - return;
- 179. - }
- 180. - // debugLog('feed updated', data);
- 181. - cur.add_queue.ts = data.ts;
- 182. - if (data.key) {
- 183. - cur.add_queue.key = data.key;
- 184. - }
- 185. - var startST = scrollGetY(),
- 186. - updH = 0;
- 187. -
- 188. - each(data.events, function () {
- 189. - updH += feed.pushEvent(this.split('<!>'), startST);
- 190. - });
- 191. - var endST = scrollGetY();
- 192. - if (updH && startST > 100 && Math.abs(startST - endST) < 100) {
- 193. - scrollToY(endST + updH, 0);
- 194. - }
- 195. - feed.updateTitle();
- 196. - },
- 197. - pushEvent: function (ev, st) {
- 198. - var ev_ver = ev[0],
- 199. - ev_type = ev[1],
- 200. - post_id = ev[2],
- 201. - el = ge('post' + post_id),
- 202. - s = cur.section,
- 203. - flags = s != 'search' ? intval(ev.pop()) : 0,
- 204. - deltaH = 0;
- 205. -
- 206. - if (!cur.options || ev_ver != cur.options.qversion) {
- 207. - // location.reload();
- 208. - return;
- 209. - }
- 210. - // debugLog(ev_type, post_id, el, ev[ev.length - 1]);
- 211. - switch (ev_type) {
- 212. - case 'new_post':
- 213. - if (el) break;
- 214. - var adminLevel = 0;
- 215. - if (intval(ev[11]) && intval(ev[11]) != vk.id) { // own reply owner
- 216. - ajax.post('al_feed.php', {act: 'a_need_own_reply', oid: intval(ev[11])}, {
- 217. - onDone: function(need) {
- 218. - if (need) {
- 219. - ev[11] = 0;
- 220. - feed.pushEvent(ev);
- 221. - }
- 222. - }
- 223. - });
- 224. - return;
- 225. - }
- 226. - if (s != 'search') {
- 227. - var oid = post_id.split('_')[0];
- 228. - ev[8] = (intval(ev[8]) > 0 && (flags & 4) == 4) ? 1 : 0;
- 229. - if (oid < 0) {
- 230. - adminLevel = (flags & 8) ? 2 : ((flags & 2) ? 1 : 0);
- 231. - }
- 232. - // debugLog(oid, flags, adminLevel, ev[8]);
- 233. - }
- 234. - var cont = cur.rowsCont,
- 235. - cnodes = cont.childNodes,
- 236. - postHTML = wall.getNewPostHTML(ev, adminLevel, feed.feedPostRepl),
- 237. - place = ev[12],
- 238. - newEl, grouped, first, others, moreLink, singleOthers;
- 239. -
- 240. - if (place) { // Client-side grouping posts
- 241. - if (cur.ignore_owners.length && inArray(intval(place), cur.ignore_owners)) {
- 242. - break;
- 243. - }
- 244. - if (grouped = geByClass1('feed_reposts_wrap' + place, cont, 'div')) {
- 245. - first = geByClass1('feed_reposts_first', grouped, 'div').firstChild;
- 246. - others = geByClass1('feed_reposts_group', grouped, 'div');
- 247. - moreLink = geByClass1('feed_reposts_more_link', grouped, 'a');
- 248. - if (st > getXY(first)[1]) {
- 249. - deltaH -= first.offsetHeight;
- 250. - }
- 251. - first.parentNode.replaceChild(newEl = se(postHTML), first);
- 252. - others.insertBefore(first, others.firstChild);
- 253. - if (!isVisible(others)) {
- 254. - val(moreLink, getLang('news_show_X_reposts', others.childNodes.length));
- 255. - }
- 256. - grouped = grouped.parentNode;
- 257. - if (cont.firstChild != grouped) {
- 258. - cont.insertBefore(grouped, cont.firstChild);
- 259. - }
- 260. - if (st > getXY(grouped)[1]) {
- 261. - deltaH += grouped.offsetHeight;
- 262. - }
- 263. - grouped.bits = 0;
- 264. - } else if ((singleOthers = geByClass('feed_repost' + place, cont, 'div')) && singleOthers.length) {
- 265. - postHTML = rs(cur.wallTpl.grouped_posts, {
- 266. - place: place,
- 267. - random: irand(100000000, 200000000),
- 268. - first: postHTML,
- 269. - other: '',
- 270. - label: getLang('news_show_X_reposts', singleOthers.length)
- 271. - });
- 272. - var frow = se('<div class="feed_row">' + postHTML + '</div>');
- 273. - cont.insertBefore(frow, cont.firstChild);
- 274. - if (st > getXY(frow)[1]) {
- 275. - deltaH += frow.offsetHeight;
- 276. - }
- 277. - grouped = frow.firstChild;
- 278. - newEl = geByClass1('feed_reposts_first', grouped, 'div');
- 279. - others = geByClass1('feed_reposts_group', grouped, 'div');
- 280. - each(clone(singleOthers), function () {
- 281. - if (st > getXY(this)[1]) {
- 282. - deltaH -= this.offsetHeight;
- 283. - }
- 284. - re(this.parentNode);
- 285. - others.appendChild(this.firstChild);
- 286. - });
- 287. - } else {
- 288. - newEl = se('<div class="feed_row"><div class="feed_repost' + place + '">' + postHTML + '</div></div>');
- 289. - cont.insertBefore(newEl, cont.firstChild);
- 290. - if (st > getXY(newEl)[1]) {
- 291. - deltaH += newEl.offsetHeight;
- 292. - }
- 293. - }
- 294. - } else {
- 295. - newEl = se('<div class="feed_row">' + postHTML + '</div>');
- 296. - cont.insertBefore(newEl, cont.firstChild);
- 297. - if (st > getXY(newEl)[1]) {
- 298. - deltaH += newEl.offsetHeight;
- 299. - }
- 300. - }
- 301. - if (ge('post_poll_id' + post_id)) {
- 302. - wall.updatePoll(post_id);
- 303. - }
- 304. - cur.feedUnreadCount++;
- 305. - if (s != 'search') {
- 306. - setStyle(newEl, {backgroundColor: '#FEFAE4'});
- 307. - animate(newEl, {backgroundColor: '#FFF'}, 6000);
- 308. - }
- 309. - if (cnodes.length > 300) {
- 310. - cont.removeChild(cnodes[300]);
- 311. - } else if (cnodes.length <= 1) {
- 312. - hide('feed_empty');
- 313. - }
- 314. - Wall.updateMentionsIndex();
- 315. - break;
- 316. -
- 317. - case 'new_post_reply':
- 318. - if (el) break;
- 319. - var cont = cur.rowsCont,
- 320. - cnodes = cont.childNodes,
- 321. - postHTML = wall.getNewPostHTML(ev, false, feed.feedPostRepl),
- 322. - newEl = se('<div class="feed_row">' + postHTML + '</div>');
- 323. -
- 324. - cont.insertBefore(newEl, cont.firstChild);
- 325. - if (st > getXY(newEl)[1]) {
- 326. - deltaH += newEl.offsetHeight;
- 327. - }
- 328. - cur.feedUnreadCount++;
- 329. - if (cnodes.length > 300) {
- 330. - cont.removeChild(cnodes[300]);
- 331. - } else if (cnodes.length <= 1) {
- 332. - hide('feed_empty');
- 333. - }
- 334. - break;
- 335. -
- 336. - case 'edit_post':
- 337. - var editEl = ge('wpt' + post_id),
- 338. - stUnder;
- 339. - if (!isVisible(el) || !editEl) break;
- 340. -
- 341. - if (stUnder = (st > getXY(editEl)[1])) {
- 342. - deltaH -= editEl.offsetHeight;
- 343. - }
- 344. - var text = psr(rs(ev[3], {
- 345. - poll_hash: cur.wallTpl.poll_hash
- 346. - }));
- 347. - val(editEl, text);
- 348. - if (ge('post_poll_id' + post_id)) {
- 349. - wall.updatePoll(post_id);
- 350. - }
- 351. - if (stUnder) {
- 352. - deltaH += editEl.offsetHeight;
- 353. - }
- 354. -
- 355. - setStyle(editEl, {backgroundColor: '#FEFAE4'});
- 356. - animate(editEl, {backgroundColor: '#FFF'}, 6000);
- 357. - break;
- 358. -
- 359. - case 'edit_reply':
- 360. - var reply_id = ev[3],
- 361. - editEl = ge('wpt' + reply_id);
- 362. - if (!isVisible('post' + reply_id) || !editEl) break;
- 363. -
- 364. - updH = -editEl.offsetHeight;
- 365. - updY = getXY(editEl)[1];
- 366. - val(editEl, psr(ev[4]));
- 367. - updH += editEl.offsetHeight;
- 368. - setStyle(editEl, {backgroundColor: '#FEFAE4'});
- 369. - animate(editEl, {backgroundColor: '#FFF'}, 6000);
- 370. - break;
- 371. -
- 372. - case 'post_parsed_link':
- 373. - if (!el) break;
- 374. - var btnWrap = geByClass1('wall_postlink_preview_btn_disabled', el);
- 375. - if (!btnWrap) break;
- 376. - if (intval(ev[3])) {
- 377. - removeClass(btnWrap, 'wall_postlink_preview_btn_disabled');
- 378. - } else {
- 379. - re(btnWrap);
- 380. - }
- 381. - break;
- 382. -
- 383. - case 'del_post':
- 384. - if (el) {
- 385. - if (!cur.wallMyDeleted[post_id]) {
- 386. - if (st > getXY(el)[1]) {
- 387. - deltaH -= el.offsetHeight;
- 388. - }
- 389. - revertLastInlineVideo(el);
- 390. - hide(el);
- 391. - }
- 392. - cur.options.offset--;
- 393. - }
- 394. - break;
- 395. -
- 396. - case 'res_post':
- 397. - el && cur.options.offset++;
- 398. - break;
- 399. -
- 400. - case 'new_reply':
- 401. - if (!el || cur.wallMyReplied[post_id] || ge('post' + ev[3])) break;
- 402. -
- 403. - var repliesEl = ge('replies' + post_id),
- 404. - repliesWrap = ge('replies_wrap' + post_id),
- 405. - startH = el.offsetHeight,
- 406. - oid = post_id.split('_')[0],
- 407. - adminLevel = (oid < 0) ? ((flags & 8) ? 2 : ((flags & 2) ? 1 : 0)) : 0,
- 408. - newEl = se(wall.getNewReplyHTML(ev, adminLevel)),
- 409. - highlight = false;
- 410. -
- 411. - if (!isVisible(repliesEl) || !isVisible(repliesWrap) || isVisible('reply_link' + post_id)) {
- 412. - re('reply_link' + post_id);
- 413. - show(repliesWrap, repliesEl);
- 414. - highlight = true;
- 415. - } else {
- 416. - var openEl = repliesEl.nextSibling,
- 417. - newCnt = geByClass('new_reply', repliesEl, 'div').length + 1;
- 418. -
- 419. - if (!cur.wallMyOpened[post_id]) {
- 420. - addClass(newEl, 'new_reply');
- 421. - if (!openEl || openEl.className != 'replies_open') {
- 422. - openEl = ce('div', {className: 'replies_open', onclick: wall.openNewComments.pbind(post_id)});
- 423. - repliesEl.parentNode.insertBefore(openEl, repliesEl.nextSibling);
- 424. - }
- 425. - openEl.innerHTML = getLang('wall_x_new_replies_more', Math.min(100, newCnt));
- 426. - openEl.newCnt = newCnt;
- 427. - } else {
- 428. - if (openEl && openEl.className == 'replies_open') re(openEl);
- 429. - highlight = true;
- 430. - var headerEl = geByClass1('wr_header', repliesEl, 'a'),
- 431. - shown = geByClass('reply', repliesEl, 'div').length + 1,
- 432. - total = shown;
- 433. - if (headerEl) {
- 434. - total = intval(headerEl.getAttribute('offs').split('/')[1]) + 1;
- 435. - }
- 436. - if (total > 5 || shown < total) {
- 437. - if (!headerEl) {
- 438. - repliesEl.insertBefore(headerEl = ce('a', {className: 'wr_header'}), repliesEl.firstChild);
- 439. - }
- 440. - wall.updateRepliesHeader(post_id, headerEl, shown, total);
- 441. - }
- 442. - }
- 443. - }
- 444. - if (post_id.split('_')[0] == vk.id) {
- 445. - cur.feedUnreadCount++;
- 446. - }
- 447. - repliesEl.appendChild(newEl);
- 448. - if (st > getXY(highlight ? newEl : openEl)[1]) {
- 449. - deltaH += el.offsetHeight - startH;
- 450. - }
- 451. - if (highlight) {
- 452. - setStyle(newEl, {backgroundColor: '#FEFAE4'});
- 453. - animate(newEl, {backgroundColor: '#FFF'}, 6000);
- 454. - }
- 455. - Wall.repliesSideSetup(post_id);
- 456. - Wall.updateMentionsIndex();
- 457. - break;
- 458. -
- 459. - case 'del_reply':
- 460. - if (!cur.wallMyDeleted[post_id] && el) {
- 461. - if (st > getXY(el)[1]) {
- 462. - deltaH -= el.offsetHeight;
- 463. - }
- 464. -
- 465. - var post = el.parentNode.id.match(/replies(-?\d+_\d+)/);
- 466. - revertLastInlineVideo(el);
- 467. - re(el);
- 468. - if (post) {
- 469. - Wall.repliesSideSetup(post[1]);
- 470. - }
- 471. - }
- 472. - break;
- 473. -
- 474. - case 'like_post':
- 475. - case 'like_reply':
- 476. - if (!el) break;
- 477. - var likePost = ev_type == 'like_reply' ? post_id.replace('_', '_wall_reply') : post_id,
- 478. - cntEl = ge('like_count' + likePost),
- 479. - iconEl = ge('like_icon' + likePost),
- 480. - ttEl = iconEl && iconEl.parentNode,
- 481. - cnum = intval(val(cntEl)),
- 482. - num = intval(ev[3]);
- 483. -
- 484. - animateCount(cntEl, num);
- 485. - val('like_real_count_wall' + post_id, num);
- 486. - toggleClass(iconEl, 'no_likes', num <= 0);
- 487. - if (ttEl && ttEl.tt && !isVisible(ttEl.tt.container)) {
- 488. - ttEl && ttEl.tt && ttEl.tt.destroy();
- 489. - }
- 490. - setStyle(iconEl, {opacity: '', visibility: ''});
- 491. - break;
- 492. -
- 493. - case 'vote_poll':
- 494. - if (!el) break;
- 495. - wall.updatePollResults(post_id, ev[3]);
- 496. - break;
- 497. -
- 498. - case 'new_photos_private':
- 499. - break;
- 500. - ajax.post('al_feed.php', {act: 'a_get_private', oid: ev[2], key: ev[3], hash: ev[4], num: ev[5]}, {
- 501. - onDone: function (ev) {
- 502. - if (isArray(ev) && ev.length) {
- 503. - feed.pushEvent(ev);
- 504. - }
- 505. - }
- 506. - });
- 507. - break;
- 508. -
- 509. -
- 510. - case 'new_photos':
- 511. - case 'new_tagged':
- 512. - break;
- 513. - var cont = cur.rowsCont,
- 514. - cnodes = cont.childNodes,
- 515. - thumbs = ev.splice(7, ev.length - 7),
- 516. - place = ev[2].split('_')[1] + '_' + (ev_type == 'new_photos' ? 1 : 3),
- 517. - grouped, newEl;
- 518. -
- 519. - if (grouped = geByClass1('post_photos' + place, cont, 'div')) {
- 520. - if (st > getXY(grouped)[1]) {
- 521. - deltaH -= grouped.offsetHeight;
- 522. - }
- 523. - var numEl = geByClass1('feed_photos_num', grouped, 'small'),
- 524. - thumbsEl = geByClass1('post_media', grouped, 'div'),
- 525. - num = intval(numEl.getAttribute('num')) + thumbs.length / 3,
- 526. - thumbs_html = [], i;
- 527. - val(numEl, getLang('news_x_photos', num) + ', ' + wall.getNowRelTime());
- 528. - numEl.setAttribute('num', num);
- 529. - for (i = 0; i < thumbs.length; i += 3) {
- 530. - thumbs_html.push(cur.wallTpl.photo_thumb.replace(/%photo_id%/g, thumbs[i]).replace(/%thumb%/g, thumbs[i+1]).replace(/%temp%/g, thumbs[i+2].replace(/"/g, '"')).replace('%full_id%', ev[2]));
- 531. - }
- 532. - if (thumbs_html.length >= 8) {
- 533. - thumbs_html.splice(8, thumbs_html.length - 8);
- 534. - val(thumbsEl, thumbs_html.join(' '));
- 535. - } else {
- 536. - var t = ce('div', {innerHTML: thumbs_html});
- 537. - while (t.lastChild) {
- 538. - thumbsEl.insertBefore(t.lastChild, thumbsEl.firstChild);
- 539. - if (thumbsEl.childNodes.length > 8) {
- 540. - re(thumbsEl.lastChild);
- 541. - }
- 542. - }
- 543. - }
- 544. - newEl = grouped.parentNode;
- 545. - if (cont.firstChild != newEl) {
- 546. - cont.insertBefore(newEl, cont.firstChild);
- 547. - }
- 548. - if (st > getXY(newEl)[1]) {
- 549. - deltaH += newEl.offsetHeight;
- 550. - }
- 551. - } else {
- 552. - newEl = se('<div class="feed_row">' + wall.getNewPostHTML(ev, false, feed.feedPhotoRepl.pbind(thumbs)) + '</div>');
- 553. - addClass(newEl.firstChild, 'post_photos post_photos' + place);
- 554. - cont.insertBefore(newEl, cont.firstChild);
- 555. - if (st > getXY(newEl)[1]) {
- 556. - deltaH += newEl.offsetHeight;
- 557. - }
- 558. - }
- 559. - if (s != 'search') {
- 560. - setStyle(newEl, {backgroundColor: '#FEFAE4'});
- 561. - animate(newEl, {backgroundColor: '#FFF'}, 6000);
- 562. - }
- 563. - if (cnodes.length > 300) {
- 564. - cont.removeChild(cnodes[300]);
- 565. - } else if (cnodes.length == 1) {
- 566. - hide('feed_empty');
- 567. - }
- 568. - break;
- 569. - }
- 570. - return deltaH;
- 571. - },
- 572. - feedPostRepl: function (repl, ev) {
- 573. - repl.replies = cur.wallTpl.post_replies;
- 574. - var ext = {
- 575. - full_id: ev[2],
- 576. - item_id: 'wall_' + ev[2],
- 577. - sec_name: stripHTML(ev[3]),
- 578. - date: wall.getNowRelTime(),
- 579. - del: /*ev[9] == vk.id ? cur.wallTpl.del : */cur.wallTpl.spam // always hiding from feed
- 580. - };
- 581. - if (cur.section == 'search' && cur.q) {
- 582. - var text = repl.text || '',
- 583. - q = cur.q, q_words = q.toLowerCase().split(/[\s.,:;!?()]/),
- 584. - links = [];
- 585. - text = text.replace(/<.+?>/g, function (tag) {
- 586. - links.push(tag);
- 587. - return "\x01";
- 588. - });
- 589. - var text_l = text.toLowerCase(), i, pos, word;
- 590. - for (i = q_words.length - 1; i >= 0; i--) {
- 591. - word = q_words[i];
- 592. - if (!trim(word)) continue;
- 593. - pos = 0;
- 594. - while ((pos = text_l.indexOf(word, pos)) != -1) {
- 595. - if (text.charAt(pos - 1) == String.fromCharCode(2)) {
- 596. - pos += 2;
- 597. - continue;
- 598. - }
- 599. - text = text.substr(0, pos) + "\x02" + i + "\x02" + text.substr(pos + word.length);
- 600. - text_l = text_l.substr(0, pos) + "\x02" + i + "\x02" + text_l.substr(pos + word.length);
- 601. - }
- 602. - }
- 603. - text = text.replace(/\x02(\d+)\x02/g, function (a, i) {
- 604. - return '<span class="match">' + q_words[i] + '</span>';
- 605. - });
- 606. - text = text.replace(/\x01/g, function () {
- 607. - return links.shift() || '';
- 608. - });
- 609. - ext.text = text;
- 610. - if (ev[1] == 'new_post_reply') {
- 611. - ext.date_postfix = ev[7];
- 612. - }
- 613. - }
- 614. - return ext;
- 615. - },
- 616. - feedPhotoRepl: function (thumbs, repl, ev) {
- 617. - var thumbs_html = [], i, ext, explain = '', cnt = 1;
- 618. -
- 619. - for (i = 0; i < thumbs.length; i += 3) {
- 620. - thumbs_html.push(cur.wallTpl.photo_thumb.replace(/%photo_id%/g, thumbs[i]).replace(/%thumb%/g, thumbs[i+1]).replace(/%temp%/g, thumbs[i+2].replace(/"/g, '"')));
- 621. - }
- 622. - if (ev[1] == 'new_tagged') {
- 623. - explain = cur.wallTpl.tagged_explain.replace('%explain_text%', langSex(ev[6], cur.lang.wall_user_was_tagged_on_photos));
- 624. - } else {
- 625. - cnt = ev[6];
- 626. - }
- 627. - ext = {
- 628. - text: cur.wallTpl.photos,
- 629. - reply_link: '',
- 630. - reply_box: '',
- 631. - oid: ev[2].split('_')[1],
- 632. - explain: explain,
- 633. - photos: thumbs_html.join(' '),
- 634. - replies: cur.wallTpl.photo_replies.replace('%date%', getLang('news_x_photos', cnt) + ', ' + wall.getNowRelTime()),
- 635. - count: cnt,
- 636. - full_id: ev[2],
- 637. - item_id: ev[2].replace(/^1_/, 'photos_').replace(/^3_/, 'tagged_'),
- 638. - sec_name: stripHTML(ev[3])
- 639. - };
- 640. - return ext;
- 641. - },
- 642. - reSortItems: function () {
- 643. - debugLog('resort', cur.feedToSort);
- 644. - if (!cur.feedToSort || !cur.feedToSort.length) return;
- 645. - each (cur.feedToSort, function (k, v) {
- 646. - var ph = ge('post_ph' + v), el = ge('post' + v).parentNode;
- 647. - if (ph && el) {
- 648. - ph.parentNode.insertBefore(el, ph);
- 649. - re(ph);
- 650. - }
- 651. - });
- 652. - cur.feedToSort = [];
- 653. - scrollToY(0, 0);
- 654. - },
- 655. - updateTitle: function () {
- 656. - if (!cur.idleManager) return;
- 657. - if (!cur.idleManager.isIdle) {
- 658. - cur.feedUnreadCount = 0;
- 659. - }
- 660. - document.title = (cur.feedUnreadCount ? '('+ cur.feedUnreadCount + ') ' : '') + cur.feedInitialTitle;
- 661. - },
- 662. - toggleTabsMenu: function (on) {
- 663. - var feedMenu = ge('feed_tab_add_menu');
- 664. - if (on === undefined) {
- 665. - on = !isVisible(feedMenu);
- 666. - }
- 667. - if (browser.mozilla) {
- 668. - setStyle('page_body', {overflow: on ? 'visible' : ''});
- 669. - }
- 670. - toggle(feedMenu, on);
- 671. - if (on) {
- 672. - addEvent(document, 'mousedown', function (e) {
- 673. - Feed.toggleTabsMenu(0);
- 674. - removeEvent(document, 'mousedown', arguments.callee);
- 675. - });
- 676. - }
- 677. - },
- 678. - toggleMenu: function (on) {
- 679. - var feedMenu = ge('feed_menu');
- 680. - if (on === undefined) {
- 681. - on = !isVisible(feedMenu);
- 682. - }
- 683. - val('feed_menu_toggler', on ? getLang('news_hide_menu') : getLang('news_show_menu'));
- 684. - toggle(feedMenu, on);
- 685. - if (on) {
- 686. - addEvent(document, 'mousedown', function (e) {
- 687. - var target = e.target;
- 688. - while (target) {
- 689. - if (hasClass(target, 'dd_menu_header')) {
- 690. - return true;
- 691. - }
- 692. - target = target.parentNode;
- 693. - }
- 694. - Feed.toggleMenu(0);
- 695. - removeEvent(document, 'mousedown', arguments.callee);
- 696. - });
- 697. - }
- 698. - },
- 699. - getSectionParams: function(section) {
- 700. - var params = {section: section};
- 701. - switch (section) {
- 702. - case 'news':
- 703. - case 'recommended':
- 704. - if ((params.subsection = cur.subsections[section]) === undefined) {
- 705. - delete params.subsection;
- 706. - }
- 707. - break;
- 708. -
- 709. - case 'owner':
- 710. - if (!(params.owner = cur.owner)) {
- 711. - delete params.section;
- 712. - }
- 713. - break;
- 714. -
- 715. - case 'source':
- 716. - if (!(params.source = cur.source)) {
- 717. - delete params.source;
- 718. - }
- 719. - break;
- 720. -
- 721. - case 'list':
- 722. - if (!(params.list = cur.list)) {
- 723. - delete params.list;
- 724. - }
- 725. - break;
- 726. -
- 727. - case 'notifications':
- 728. - if (!(params.source = cur.source)) {
- 729. - delete params.source;
- 730. - }
- 731. - break;
- 732. -
- 733. - case 'articles':
- 734. - params.percent = cur.periodPercent;
- 735. - if ((params.subsection = cur.subsections[section]) === undefined) {
- 736. - delete params.subsection;
- 737. - }
- 738. - break;
- 739. -
- 740. - case 'search':
- 741. - case 'photos_search':
- 742. - if (!(params.q = trim(val('feed_search')))) {
- 743. - delete params.section;
- 744. - }
- 745. - if (!(params.sort = intval(cur.searchSortMenu && cur.searchSortMenu.val()))) {
- 746. - delete params.sort;
- 747. - }
- 748. - break;
- 749. -
- 750. - case 'articles_search':
- 751. - if (!(params.q = trim(val('feed_search')))) {
- 752. - params.section = 'articles';
- 753. - }
- 754. - break;
- 755. -
- 756. - case 'comments':
- 757. - if (cur.reposts) {
- 758. - params.reposts = cur.reposts;
- 759. - }
- 760. - break;
- 761. -
- 762. - case 'mentions':
- 763. - if (cur.mentionObj && cur.mentionObj != vk.id) {
- 764. - params.obj = cur.mentionObj;
- 765. - }
- 766. - break;
- 767. - }
- 768. - debugLog(params, section);
- 769. - return params;
- 770. - },
- 771. - switchSection: function(newSection, e) {
- 772. - if (e && checkEvent(e)) {
- 773. - return true;
- 774. - }
- 775. - if (newSection == 'search' && !trim(val('feed_search'))) {
- 776. - if (cur.section != 'search') return false;
- 777. - newSection = 'news';
- 778. - }
- 779. - if (newSection == 'photos_search' && !trim(val('feed_search'))) {
- 780. - if (cur.section != 'photos_search') return false;
- 781. - newSection = 'photos';
- 782. - }
- 783. - if (newSection == 'comments') {
- 784. - cur.reposts = cur.options.reposts = '';
- 785. - }
- 786. - feed.setSection(newSection, 1);
- 787. - var params = feed.getSectionParams(newSection || 'news');
- 788. - delete cur.feedUpdateLoading;
- 789. - delete cur.isFeedLoading;
- 790. - nav.go(extend(params || {}, {'0': 'feed'}));
- 791. - return false;
- 792. - },
- 793. - setSection: function (newSection, from) {
- 794. - from = from || 0;
- 795. - cur.prevSection = cur.section;
- 796. - if (newSection == cur.section && from < 2 || !newSection) return;
- 797. -
- 798. - var splitt = !!ge('feedtab_updates') || !ge('feedtab_news');
- 799. -
- 800. - hide('feed_progress');
- 801. -
- 802. - var feedBar = ge('feed_bar'),
- 803. - curSection = cur.section,
- 804. - curTopTab = 'news',
- 805. - newTopTab = 'news',
- 806. - curTab, newTab;
- 807. -
- 808. - if (from >= 2 && newSection == cur.section) {
- 809. - curSection = cur.prevSection || cur.section;
- 810. - }
- 811. - if (curSection == 'articles_search') {
- 812. - curTab = 'articles';
- 813. - } else if (curSection == 'photos_search') {
- 814. - curTab = 'photos';
- 815. - } else if (curSection == 'list') {
- 816. - curTab = 'list' + (newSection == 'list' ? cur.prevList : cur.list);
- 817. - } else {
- 818. - curTab = curSection || '';
- 819. - }
- 820. -
- 821. - if (newSection == 'articles_search') {
- 822. - newTab = 'articles';
- 823. - } else if (newSection == 'photos_search') {
- 824. - newTab = 'photos';
- 825. - } else if (newSection == 'list') {
- 826. - newTab = 'list' + cur.list;
- 827. - } else {
- 828. - newTab = newSection || '';
- 829. - }
- 830. -
- 831. - switch (cur.section) {
- 832. - // case 'groups':
- 833. - // case 'mentions':
- 834. - // case 'articles':
- 835. - // case 'articles_search':
- 836. - // curTopTab = 'custom';
- 837. - // break
- 838. - case 'notifications':
- 839. - curTopTab = 'notifications';
- 840. - break;
- 841. -
- 842. - case 'updates':
- 843. - if (splitt) {
- 844. - curTopTab = 'updates';
- 845. - break;
- 846. - }
- 847. - case 'comments':
- 848. - curTopTab = 'comments';
- 849. - break;
- 850. -
- 851. - case 'owner': curTopTab = 'owner'; break;
- 852. - case 'source': curTopTab = 'source'; break;
- 853. - }
- 854. - switch (newSection) {
- 855. - // case 'groups':
- 856. - // case 'mentions':
- 857. - // case 'articles':
- 858. - // case 'articles_search':
- 859. - // newTopTab = 'custom';
- 860. - // break
- 861. -
- 862. - case 'notifications':
- 863. - newTopTab = 'notifications';
- 864. - break;
- 865. -
- 866. - case 'updates':
- 867. - case 'comments':
- 868. - if (splitt) {
- 869. - newTopTab = 'updates';
- 870. - break;
- 871. - }
- 872. - newTopTab = 'comments';
- 873. - break;
- 874. -
- 875. - case 'owner':
- 876. - newTopTab = 'owner';
- 877. - break;
- 878. -
- 879. - case 'source':
- 880. - newTopTab = 'source';
- 881. - break;
- 882. - }
- 883. -
- 884. - var curTabEl = curTab && curTab != newTab && geByClass1('feed_tab_' + curTab, feedBar, 'div');
- 885. - newTabEl = newTab && geByClass1('feed_tab_' + newTab, feedBar, 'div');
- 886. -
- 887. - // debugLog('replace old', curTab, curTabEl, debugEl(curTabEl));
- 888. - curTabEl && replaceClass(curTabEl, 'summary_tab_sel', 'summary_tab');
- 889. -
- 890. - // debugLog('replace new', newTab, newTabEl, debugEl(newTabEl));
- 891. - if (newTabEl) {
- 892. - var tabLink = geByTag1('a', newTabEl),
- 893. - tween = data(tabLink, 'tween');
- 894. -
- 895. - if (tween && tween.isTweening) {
- 896. - tween.stop(false);
- 897. - }
- 898. - tabLink.style.backgroundColor = '';
- 899. - replaceClass(newTabEl, 'summary_tab', 'summary_tab_sel');
- 900. - }
- 901. -
- 902. - // debugLog(curTopTab, newTopTab, from);
- 903. - if (curTopTab != newTopTab || from > 1) {
- 904. - removeClass(ge('feedtab_' + curTopTab), 'active_link');
- 905. - addClass(ge('feedtab_' + newTopTab), 'active_link');
- 906. - if (from < 2) {
- 907. - if (cur.section != 'owner') {
- 908. - hide(feed.getTypesSection() + '_filters');
- 909. - } else {
- 910. - hide('person_filters', 'group_filters');
- 911. - }
- 912. - if (curTopTab == 'news' || cur.section == 'articles') {
- 913. - hide('feed_rate_slider_wrap');
- 914. - }
- 915. - cur.section = newSection;
- 916. - return;
- 917. - }
- 918. -
- 919. - toggle('feed_news_bar', newTopTab == 'news');
- 920. - toggle('feed_comments_bar', newTopTab == 'comments');
- 921. - toggle('feed_search_bar', inArray(newSection, ['articles_search', 'articles', 'notifications', 'search', 'photos_search', 'photos']));
- 922. - if (splitt) {
- 923. - toggle('feed_bar', newTopTab != 'updates' && newTopTab != 'notifications' && newTopTab != 'comments' && newTopTab != 'source');
- 924. - } else {
- 925. - toggle('feed_bar', newTopTab != 'source');
- 926. - }
- 927. -
- 928. - toggleClass('feed_bar', 'feed_bar_extended_search', newSection == 'search');
- 929. - }
- 930. -
- 931. - if (from > 1 && newSection.indexOf('search') == -1 && val('feed_search')) {
- 932. - Feed.searchReset();
- 933. - }
- 934. -
- 935. - var oldFilters = ge(feed.getTypesSection() + '_filters');
- 936. - cur.section = newSection;
- 937. - if (from == 4) {
- 938. - Feed.searchUpdate();
- 939. - return;
- 940. - }
- 941. -
- 942. - if (cur.section != 'owner') {
- 943. - hide(oldFilters);
- 944. - } else {
- 945. - hide('person_filters', 'group_filters');
- 946. - }
- 947. -
- 948. - var newFilters = ge(feed.getTypesSection() + '_filters');
- 949. - if (newFilters) {
- 950. - show(newFilters, 'feed_menu_toggle');
- 951. - } else {
- 952. - hide('feed_menu_toggle');
- 953. - }
- 954. - toggle('feed_edit_hidden', newSection == 'news' || newSection == 'photos');
- 955. - toggle('feed_search_sort', inArray(newSection, ['search'/*, 'photos_search'*/]));
- 956. - toggle('feed_period_select', newSection == 'articles' && cur.subsection == 'top');
- 957. - toggle('feed_rate_slider_wrap', newSection == 'articles' && cur.subsection == 'top');
- 958. -
- 959. - cur.editingHide = newSection == 'notifications' ? feed.notifyCheckHideReply : false;
- 960. -
- 961. - if (inArray(newSection, ['search', 'photos_search']) && !cur.searchSortMenu) {
- 962. - stManager.add(['ui_controls.js', 'ui_controls.css'], feed.initUi);
- 963. - }
- 964. - },
- 965. - applyOptions: function(options, from) {
- 966. - from = from || 0;
- 967. - if (options.owner) {
- 968. - cur.owner = options.owner;
- 969. - }
- 970. - cur.subsection = options.subsection || '';
- 971. - feed.setSection(options.section, from);
- 972. - if (!cur.options) cur.options = {reply_names: {}};
- 973. - extend(cur.options.reply_names, options.reply_names);
- 974. - delete options.reply_names;
- 975. - extend(cur, options);
- 976. -
- 977. - cur.subsections[cur.section] = cur.subsection;
- 978. -
- 979. - if (options.loc && from == 2) {
- 980. - nav.setLoc(options.loc);
- 981. - }
- 982. - if (options.summary) {
- 983. - val('feed_summary', options.summary);
- 984. - }
- 985. - if (options.owner_name) {
- 986. - val(geByTag1('nobr', ge('feedtab_owner')), options.owner_name);
- 987. - }
- 988. - if (options.source_name) {
- 989. - val(geByTag1('nobr', ge('feedtab_source')), options.source_name);
- 990. - }
- 991. - if (options.htitle) {
- 992. - cur.feedInitialTitle = document.title = replaceEntities(stripHTML(options.htitle));
- 993. - }
- 994. - if (options.add_queue !== undefined && options.add_queue !== null) {
- 995. - if (from) {
- 996. - if (options.add_queue === true) {
- 997. - cur.add_queue = options.add_queue = false;
- 998. - }
- 999. - feed.getNewQKey(0);
- 1000. - }
- 1001. - if (cur.add_queue = options.add_queue) {
- 1002. - setTimeout(feed.update.pbind(0), 0);
- 1003. - }
- 1004. - } else if (from && cur.section != 'search' && cur.section != 'news' && cur.section) {
- 1005. - cur.add_queue = false;
- 1006. - }
- 1007. - if (options.q) {
- 1008. - val('feed_search', replaceEntities(options.q));
- 1009. - var query = options.q;
- 1010. - if (query.length > 30) {
- 1011. - query = trim(query.substr(0, 30)) + '...';
- 1012. - }
- 1013. - }
- 1014. - Feed.searchUpdate();
- 1015. - if (cur.section == 'comments' && !cur.reposts) {
- 1016. - toggle('comments_filters', !cur.reposts);
- 1017. - }
- 1018. - if (cur.all_shown_text) {
- 1019. - val('all_shown', cur.all_shown_text);
- 1020. - }
- 1021. - if (cur.empty_text) {
- 1022. - val('feed_empty', cur.empty_text);
- 1023. - }
- 1024. - if (cur.percent !== undefined && cur.percent !== null) {
- 1025. - feed.sliderUpdate(cur.percent, true);
- 1026. - delete cur.percent;
- 1027. - }
- 1028. - if (cur.count >= 0) {
- 1029. - re('feed_error_wrap');
- 1030. - }
- 1031. - var hasNews = geByClass1('feed_row', cur.rowsCont, 'div') || false,
- 1032. - isEmpty = !hasNews,
- 1033. - nextRows = ge('feed_rows_next');
- 1034. -
- 1035. - if (isEmpty) {
- 1036. - toggle('feed_empty', !isVisible('feed_error_wrap'));
- 1037. - hide('all_shown');
- 1038. - toggle('show_more_link', cur.count > 0 && !cur.all_shown);
- 1039. - } else if (cur.all_shown && (!nextRows || !nextRows.firstChild)) {
- 1040. - hide('feed_empty', 'show_more_link');
- 1041. - show('all_shown');
- 1042. - re(nextRows);
- 1043. - } else {
- 1044. - hide('feed_empty', 'all_shown');
- 1045. - show('show_more_link');
- 1046. - }
- 1047. -
- 1048. - if (cur.section == 'notifications' && cur.notify) {
- 1049. - var el = ge('feedback_row_' + cur.notify);
- 1050. - if (el) {
- 1051. - setTimeout(function () {el.onclick()}, browser.msie ? 100 : 0);
- 1052. - delete cur.notify;
- 1053. - }
- 1054. - }
- 1055. - Feed.applyUi();
- 1056. - },
- 1057. - showMore: function() {
- 1058. - if (cur.isFeedLoading) return;
- 1059. - cur.disableAutoMore = false;
- 1060. - var nextRows = ge('feed_rows_next');
- 1061. - if (nextRows) {
- 1062. - if (nextRows.firstChild) {
- 1063. - while (nextRows.firstChild) {
- 1064. - cur.rowsCont.insertBefore(nextRows.firstChild, nextRows);
- 1065. - }
- 1066. - }
- 1067. - re(nextRows);
- 1068. - }
- 1069. - if (cur.all_shown) {
- 1070. - hide('show_more_link');
- 1071. - show('all_shown');
- 1072. - }
- 1073. - hide('show_more');
- 1074. - show('show_more_progress');
- 1075. - var escPressed = false;
- 1076. - var tmp = function (e) { if (e.keyCode == KEY.ESC) { escPressed = true; } };
- 1077. - addEvent(document, 'keyup', tmp);
- 1078. - var params = feed.getSectionParams(cur.section || 'news');
- 1079. - extend(params, {offset: cur.offset, from: cur.from, part: 1, more: 1});
- 1080. - ajax.post('al_feed.php?sm_' + cur.section, params, {
- 1081. - onDone: function (options, rows) {
- 1082. - removeEvent(document, 'keyup', tmp);
- 1083. - if (escPressed) {
- 1084. - show('show_more');
- 1085. - hide('show_more_progress');
- 1086. - cur.disableAutoMore = true;
- 1087. - return;
- 1088. - }
- 1089. - if (rows) {
- 1090. - var au = ce('div'), row;
- 1091. - au.innerHTML = rows;
- 1092. - while (row = au.firstChild) {
- 1093. - if (!row.firstChild || !row.firstChild.id || ge(row.firstChild.id)) {
- 1094. - au.removeChild(row);
- 1095. - continue;
- 1096. - }
- 1097. - cur.rowsCont.appendChild(row);
- 1098. - }
- 1099. - }
- 1100. - show('show_more');
- 1101. - hide('show_more_progress');
- 1102. - feed.applyOptions(options);
- 1103. - setTimeout(feed.scrollCheck, 200);
- 1104. - },
- 1105. - showProgress: function () {
- 1106. - cur.isFeedLoading = true;
- 1107. - },
- 1108. - hideProgress: function () {
- 1109. - cur.isFeedLoading = false;
- 1110. - },
- 1111. - cache: 1
- 1112. - });
- 1113. - },
- 1114. - getTypesSection: function () {
- 1115. - switch (cur.section) {
- 1116. - case 'owner':
- 1117. - return (cur.owner > 0 ? 'person' : 'group');
- 1118. -
- 1119. - default:
- 1120. - return cur.section;
- 1121. - }
- 1122. - },
- 1123. - checkTabsFilter: function (option, option_id) {
- 1124. - switch (option) {
- 1125. - case 'news': return false;
- 1126. - case 'newlist': return Feed.addList();
- 1127. - default:
- 1128. - if (listMatches = option.match(/list(\d+)/)) {
- 1129. - return Feed.editList(listMatches[1]);
- 1130. - }
- 1131. - }
- 1132. -
- 1133. - var cont = ge('tabs_type_filter'),
- 1134. - filter_row = ge('filter_' + option_id),
- 1135. - my_types = cur.my_feed_types.tabs,
- 1136. - types = cur.feed_types.tabs,
- 1137. - found, pos, listMatches;
- 1138. -
- 1139. - found = (pos = indexOf(my_types, option)) != -1;
- 1140. - toggleClass(filter_row, 'checked', !found);
- 1141. - if (found) {
- 1142. - my_types.splice(pos, 1);
- 1143. - if (cur.section == option) {
- 1144. - feed.switchSection('news');
- 1145. - }
- 1146. - } else {
- 1147. - my_types.push(option);
- 1148. - }
- 1149. -
- 1150. - // Feed.toggleTabsMenu(0);
- 1151. - cur.my_feed_types.tabs = my_types;
- 1152. - var tabEl = geByClass1('feed_tab_' + option, ge('feed_news_bar'))
- 1153. - tabLink = geByTag1('a', tabEl),
- 1154. - vis = isVisible(tabEl);
- 1155. - toggleClass(tabEl, 'feed_tab_hidden', found);
- 1156. - var onComplete = function () {
- 1157. - debugLog('oncomplete ', tabEl);
- 1158. - tabLink.style.backgroundColor = '';
- 1159. - };
- 1160. - if (!vis && !found) {
- 1161. - setStyle(tabLink, {backgroundColor: '#E1E7ED'});
- 1162. - debugLog('animate ', tabEl);
- 1163. - animate(tabLink, {backgroundColor: '#F7F7F7'}, 1000, onComplete);
- 1164. - tabLink.oncompleteTO = setTimeout(onComplete, 1000);
- 1165. - } else {
- 1166. - onComplete();
- 1167. - }
- 1168. - clearTimeout(cur.saveTabsTO);
- 1169. - cur.saveTabsTO = setTimeout(Feed.saveTabs, 500);
- 1170. - },
- 1171. - checkFilter: function(option, option_id) {
- 1172. - var typesSection = feed.getTypesSection(),
- 1173. - cont = ge(typesSection + '_type_filter'),
- 1174. - filter_row = ge('filter_' + option_id),
- 1175. - my_types = cur.my_feed_types[typesSection],
- 1176. - types = cur.feed_types[typesSection],
- 1177. - found, pos;
- 1178. -
- 1179. - if (my_types === true) {
- 1180. - my_types = clone(cur.feed_types[typesSection]);
- 1181. - }
- 1182. - // debugLog(typesSection, cont, filter_row, my_types, types);
- 1183. - found = (pos = indexOf(my_types, option)) != -1;
- 1184. - if (found) {
- 1185. - my_types.splice(pos, 1);
- 1186. - removeClass(filter_row, 'checked');
- 1187. - } else {
- 1188. - my_types.push(option);
- 1189. - if (my_types.length == types.length) {
- 1190. - my_types = true;
- 1191. - }
- 1192. - addClass(filter_row, 'checked');
- 1193. - }
- 1194. -
- 1195. - cur.my_feed_types[typesSection] = my_types;
- 1196. - feed.updateTypesCookie();
- 1197. - feed.switchSection(cur.section);
- 1198. - },
- 1199. - setFilter: function (option, option_id) {
- 1200. - var typesSection = feed.getTypesSection(),
- 1201. - cont = ge(typesSection + '_type_filter'),
- 1202. - filter_row = ge('filter_' + option_id),
- 1203. - my_types = cur.my_feed_types[typesSection],
- 1204. - types = cur.feed_types[typesSection],
- 1205. - pos,
- 1206. - all_unchecked = true;
- 1207. -
- 1208. - each (geByClass('checked', cont, 'div'), function () {
- 1209. - if (this != filter_row) return (all_unchecked = false);
- 1210. - });
- 1211. - if (all_unchecked) {
- 1212. - cur.my_feed_types[typesSection] = true;
- 1213. - each(geByClass('feed_filter_row', cont, 'div'), function () {
- 1214. - addClass(this, 'checked');
- 1215. - });
- 1216. - } else {
- 1217. - each([].slice.apply(geByClass('checked', cont, 'div')), function () {
- 1218. - removeClass(this, 'checked');
- 1219. - });
- 1220. - cur.my_feed_types[typesSection] = [option];
- 1221. - addClass(filter_row, 'checked');
- 1222. - }
- 1223. -
- 1224. - feed.updateTypesCookie();
- 1225. - feed.switchSection(cur.section);
- 1226. - },
- 1227. - updateTypesCookie: function () {
- 1228. - var new_cookie = [];
- 1229. - each(cur.my_feed_types, function (section, types) {
- 1230. - if (section == 'tabs') return;
- 1231. - new_cookie.push(
- 1232. - types === true ? '*' : types.join(',')
- 1233. - );
- 1234. - });
- 1235. - setCookie('remixfeed', new_cookie.join('.'), 365);
- 1236. - },
- 1237. - flistToggleReposts: function (value, hash) {
- 1238. - ajax.post('al_feed.php', {act: 'a_toggle_reposts', value: value, hash: hash}, {
- 1239. - onDone: function () {
- 1240. - feed.getNewQKey(0);
- 1241. - }
- 1242. - });
- 1243. - },
- 1244. - switchPhotos: function (loc, el, event) {
- 1245. - if (wall.checkPostClick(el, event)) {
- 1246. - return nav.go(loc, event);
- 1247. - }
- 1248. - },
- 1249. - switchOwner: function (owner_id, owner_name, el, event) {
- 1250. - if (el && event && !wall.checkPostClick(el, event)) return;
- 1251. - var ownerLabel = geByTag1('nobr', ge('feedtab_owner')),
- 1252. - loadCb = inArray(cur.section, ['comments', 'photos']) ? false : feed.onLocalTabLoad;
- 1253. - val(ownerLabel, owner_name);
- 1254. - cur.owner = owner_id;
- 1255. - feed.setSection('owner', 1);
- 1256. - feed.go(feed.getSectionParams(cur.section), loadCb);
- 1257. - },
- 1258. - switchSearch: function () {
- 1259. - Feed.setSection('search', 4);
- 1260. - Feed.searchToggleExtended(true);
- 1261. - setTimeout(elfocus.pbind('feed_search'), 10);
- 1262. - },
- 1263. - switchList: function (list_id) {
- 1264. - cur.prevList = cur.list;
- 1265. - cur.list = list_id;
- 1266. - feed.setSection('list', 1);
- 1267. - feed.go(feed.getSectionParams(cur.section));
- 1268. - },
- 1269. - submitSearch: function (query, section) {
- 1270. - if (query === undefined) {
- 1271. - query = trim(val('feed_search'));
- 1272. - } else {
- 1273. - val('feed_search', query);
- 1274. - Feed.searchUpdate();
- 1275. - }
- 1276. - var section = (section === undefined ? cur.section : section) || '',
- 1277. - switchTo = 'search',
- 1278. - switchToBad = 'news';
- 1279. - if (!section.indexOf('articles')) {
- 1280. - switchTo = 'articles_search';
- 1281. - switchToBad = 'articles';
- 1282. - } else if (!section.indexOf('photos')) {
- 1283. - switchTo = 'photos_search';
- 1284. - switchToBad = 'photos';
- 1285. - }
- 1286. - if (!query) {
- 1287. - feed.switchSection(switchToBad);
- 1288. - return;
- 1289. - }
- 1290. - var loadCb = false; // inArray(cur.section, ['comments', 'photos', 'search', 'articles_search']) ? false : feed.onLocalTabLoad;
- 1291. - feed.setSection(switchTo, 1);
- 1292. - feed.go(feed.getSectionParams(cur.section), loadCb);
- 1293. - },
- 1294. - onLocalTabLoad: function (content) {
- 1295. - // debugLog('local tab load', content);
- 1296. - if (window.wall) wall.cancelEdit();
- 1297. - var _back = cur._back, wNode = cur.rowsCont, cur_loc = hab.getLoc();
- 1298. - var newW = ce('div', {id: 'feed_rows', innerHTML: content}), st = scrollGetY();
- 1299. - cur._back_local = {
- 1300. - content: wNode.parentNode.replaceChild(newW, wNode),
- 1301. - section: cur.prevSection || cur.section || 'news',
- 1302. - subsection: cur.subsection,
- 1303. - percent: cur.percent,
- 1304. - owner: cur.owner,
- 1305. - source: cur.source,
- 1306. - q: cur.q,
- 1307. - reposts: cur.reposts,
- 1308. - add_queue: cur.add_queue,
- 1309. - loc: cur_loc,
- 1310. - scrollTop: st,
- 1311. - back: (window._tbLink && _tbLink.loc) ? [_tbLink.loc, val(_tbLink), _tbLink.fast] : false,
- 1312. - count: cur.count,
- 1313. - offset: cur.offset,
- 1314. - from: cur.from,
- 1315. - timestamp: cur.timestamp,
- 1316. - summary: cur.summary,
- 1317. - // options: cur.options,
- 1318. - all_shown: cur.all_shown,
- 1319. - all_shown_text: cur.all_shown_text,
- 1320. - empty_text: cur.empty_text,
- 1321. - htitle: cur.feedInitialTitle
- 1322. - };
- 1323. - cur.rowsCont = newW;
- 1324. - // cur.options = {};
- 1325. - scrollToY(0, 0);
- 1326. - showBackLink(cur._back_local.loc, getLang('news_return_to_news'), true);
- 1327. - },
- 1328. - returnToFeed: function (params, back) {
- 1329. - if (!cur._back_local) {
- 1330. - return true;
- 1331. - }
- 1332. -
- 1333. - var hist = cur._back_local;
- 1334. - if (params !== false) {
- 1335. - var next_section = params.section || 'news';
- 1336. - if (hist.section != next_section) {
- 1337. - return true;
- 1338. - }
- 1339. - } else {
- 1340. - params = {section: hist.section};
- 1341. - }
- 1342. - setTimeout(function() {
- 1343. - cur._back_local = false;
- 1344. - var _back = cur._back, wNode = cur.rowsCont;
- 1345. - cur.rowsCont = wNode.parentNode.replaceChild(hist.content, wNode);
- 1346. - feed.applyOptions({
- 1347. - section: hist.section,
- 1348. - subsection: hist.subsection,
- 1349. - percent: hist.percent,
- 1350. - owner: hist.owner,
- 1351. - source: hist.source,
- 1352. - q: hist.q,
- 1353. - reposts: hist.reposts,
- 1354. - add_queue: hist.add_queue,
- 1355. - count: hist.count,
- 1356. - offset: hist.offset,
- 1357. - from: hist.from,
- 1358. - timestamp: hist.timestamp,
- 1359. - options: hist.options,
- 1360. - all_shown: hist.all_shown,
- 1361. - all_shown_text: hist.all_shown_text,
- 1362. - empty_text: hist.empty_text,
- 1363. - htitle: hist.htitle,
- 1364. - summary: hist.summary
- 1365. - }, 3);
- 1366. - if (hist.back) {
- 1367. - showBackLink(hist.back[0], hist.back[1], hist.back[2]);
- 1368. - } else {
- 1369. - showBackLink(false);
- 1370. - }
- 1371. - nav.setLoc(hist.loc);
- 1372. - if (back) {
- 1373. - scrollToY(hist.scrollTop, 0);
- 1374. - } else {
- 1375. - scrollToY(0, 0);
- 1376. - feed.go(params);
- 1377. - }
- 1378. - }, 10);
- 1379. - return false;
- 1380. - },
- 1381. - notifyShowEditReply: function (item, opts) {
- 1382. - if (cur.editing && cur.notifyReplyData && cur.notifyReplyData[cur.editing].disabled) {
- 1383. - feed.notifyCheckHideReply(cur.editing, (window.event || {}).target);
- 1384. - }
- 1385. - var replyWrap = ge(item + '_reply_wrap');
- 1386. - if (replyWrap) {
- 1387. - if (isVisible(replyWrap)) {
- 1388. - feed.notifyCheckHideReply(item, false);
- 1389. - } else {
- 1390. - show(replyWrap);
- 1391. - removeClass(ge('feedback_row_' + item).parentNode, 'feedback_row_clickable');
- 1392. - if (opts.disabled) {
- 1393. - setTimeout(function() { cur.editing = item; }, 0);
- 1394. - } else {
- 1395. - val(item + '_field', opts.greet);
- 1396. - var ta = ge(item + '_field');
- 1397. - ta && ta.autosize && ta.autosize.update();
- 1398. - setTimeout(elfocus.pbind(item + '_field'), 0);
- 1399. - }
- 1400. - feed.notifyRowOver(item, 0);
- 1401. - }
- 1402. - return;
- 1403. - }
- 1404. -
- 1405. - var itemEl = ge('feedback_row_' + item),
- 1406. - acts = '',
- 1407. - repl = {
- 1408. - hint: opts.hint || '',
- 1409. - bighint: opts.bighint || '',
- 1410. - placeholder: opts.ph,
- 1411. - submit: opts.btn,
- 1412. - greeting: opts.greet,
- 1413. - item: item
- 1414. - };
- 1415. -
- 1416. - removeClass(itemEl.parentNode, 'feedback_row_clickable');
- 1417. -
- 1418. - if (cur.notifyReplyData === undefined) {
- 1419. - cur.notifyReplyData = {};
- 1420. - }
- 1421. - cur.notifyReplyData[item] = opts;
- 1422. - if (opts.disabled) {
- 1423. - itemEl.parentNode.appendChild(se(rs(cur.options.feedback_dis, {item: item, text: opts.disabled})));
- 1424. - setTimeout(function() { cur.editing = item; }, 0);
- 1425. - } else {
- 1426. - itemEl.parentNode.appendChild(se(rs(cur.options.feedback_form, repl)));
- 1427. - var ta = ge(item + '_field');
- 1428. - ta.onfocus = function () {cur.editing = item};
- 1429. - autosizeSetup(ta, {minHeight: 31});
- 1430. - setTimeout(elfocus.pbind(ta), 0);
- 1431. - Wall.initComposer(ta, {
- 1432. - lang: {
- 1433. - introText: getLang('profile_mention_start_typing'),
- 1434. - noResult: getLang('profile_mention_not_found')
- 1435. - }
- 1436. - });
- 1437. - }
- 1438. - feed.notifyRowOver(item, 0);
- 1439. - },
- 1440. - onNotifyReplySubmit: function (item, e) {
- 1441. - var rf = ge(item + '_field');
- 1442. - if (e.keyCode == KEY.RETURN || e.keyCode == 10) {
- 1443. - var composer = data(rf, 'composer'),
- 1444. - isListVisible = composer && composer.wdd && composer.wdd.listWrap && isVisible(composer.wdd.listWrap);
- 1445. -
- 1446. - if (cur.wallTpl.reply_multiline && (e.ctrlKey || browser.mac && e.metaKey) ||
- 1447. - !cur.wallTpl.reply_multiline && !e.shiftKey && !(e.ctrlKey || browser.mac && e.metaKey) && !isListVisible) {
- 1448. - feed.notifySendReply(item);
- 1449. - return cancelEvent(e);
- 1450. - }
- 1451. - }
- 1452. - if (e.ctrlKey && e.keyCode == KEY.RETURN) {
- 1453. - var v = val(rf),
- 1454. - pos = Composer.getCursorPosition(rf);
- 1455. -
- 1456. - val(rf, v.substr(0, pos) + "\n" + v.substr(pos));
- 1457. - elfocus(rf, pos + 1, pos + 1);
- 1458. -
- 1459. - rf.autosize.update();
- 1460. - setTimeout(function () {
- 1461. - rf.autosize.update();
- 1462. - }, 0);
- 1463. - return cancelEvent(e);
- 1464. - }
- 1465. - },
- 1466. - notifySendReply: function (item) {
- 1467. - var opts = cur.notifyReplyData[item];
- 1468. - if (!opts || opts.sending) return;
- 1469. -
- 1470. - var ta = ge(item + '_field'),
- 1471. - btn = ge(item + '_btn'),
- 1472. - params = {
- 1473. - act: 'post',
- 1474. - message: trim(val(ta)),
- 1475. - from: 'feedback',
- 1476. - item: item
- 1477. - };
- 1478. - extend(params, opts.params || {});
- 1479. - if (!params.message || opts.greet && !opts.greet.indexOf(params.message)) {
- 1480. - notaBene(ta);
- 1481. - return;
- 1482. - }
- 1483. - opts.sending = 1;
- 1484. - ajax.post('al_wall.php', params, {
- 1485. - onDone: function (text, answer) {
- 1486. - delete opts.sending;
- 1487. - feed.notifyHideReply(item);
- 1488. - if (answer) {
- 1489. - var answerWrap = ge(item + '_answer_wrap');
- 1490. - val(answerWrap, answer);
- 1491. - show(answerWrap);
- 1492. - } else if (text) {
- 1493. - showDoneBox(text);
- 1494. - }
- 1495. - },
- 1496. - onFail: function () {
- 1497. - delete opts.sending;
- 1498. - },
- 1499. - showProgress: lockButton.pbind(btn),
- 1500. - hideProgress: unlockButton.pbind(btn)
- 1501. - });
- 1502. - },
- 1503. - notifyCheckHideReply: function (item, target) {
- 1504. - var opts = cur.notifyReplyData[item],
- 1505. - toggled = target === false;
- 1506. - if (!opts || opts.sending || !isVisible(item + '_reply_wrap')) return;
- 1507. -
- 1508. - var i = 8, foundGood = false;
- 1509. - do {
- 1510. - if (!target || (foundGood = (target.id == (item + '_reply_wrap') || target.id == ('feedback_row_' + item)))) {
- 1511. - break;
- 1512. - }
- 1513. - } while (i-- && (target = target.parentNode));
- 1514. - if (foundGood) {
- 1515. - return;
- 1516. - }
- 1517. - cur.editing = false;
- 1518. - if (!opts.disabled) {
- 1519. - var ta = ge(item + '_field'), msg = trim(val(ta));
- 1520. - if (msg && !opts.greet || opts.greet.indexOf(msg)) {
- 1521. - return;
- 1522. - }
- 1523. - }
- 1524. - feed.notifyHideReply(item, toggled);
- 1525. - },
- 1526. - notifyHideReply: function (item, toggled) {
- 1527. - if (cur.editing == item) {
- 1528. - cur.editing = false;
- 1529. - }
- 1530. - addClass(ge('feedback_row_' + item).parentNode, 'feedback_row_clickable');
- 1531. - hide(item + '_reply_wrap');
- 1532. - if (toggled) {
- 1533. - feed.notifyRowOver(item, 1);
- 1534. - }
- 1535. - },
- 1536. -
- 1537. - notifyRowOver: function (item, state) {
- 1538. - var el = ge('feedback_row_' + item).parentNode,
- 1539. - prevRow = el.parentNode.previousSibling,
- 1540. - over = 2,
- 1541. - likeEl;
- 1542. -
- 1543. - while (prevRow && prevRow.nodeType == 3) { // skipping text nodes
- 1544. - prevRow = prevRow.previousSibling;
- 1545. - }
- 1546. -
- 1547. - if (state && hasClass(el, 'feedback_row_clickable')) {
- 1548. - if (prevRow && prevRow.className == 'feed_row' && isVisible(geByClass1('feedback_reply_row_wrap', prevRow, 'div'))) {
- 1549. - over = 2;
- 1550. - } else if (!prevRow) {
- 1551. - over = 3;
- 1552. - }
- 1553. - addClass(el, 'feedback_row_clickable_over' + over);
- 1554. - addClass(el, 'feedback_row_clickable_over');
- 1555. - } else {
- 1556. - removeClass(el, 'feedback_row_clickable_over1');
- 1557. - removeClass(el, 'feedback_row_clickable_over2');
- 1558. - removeClass(el, 'feedback_row_clickable_over3');
- 1559. - removeClass(el, 'feedback_row_clickable_over');
- 1560. - if (likeEl = geByTag1('div', geByClass1('like_wrap', ge(el), 'div'))) {
- 1561. - var to = data(likeEl, 'likeoutTO'), tween = data(likeEl, 'tween');
- 1562. - to && clearTimeout(to);
- 1563. - tween && tween.stop(true);
- 1564. - setStyle(likeEl, {display: '', opacity: ''});
- 1565. - }
- 1566. - }
- 1567. - },
- 1568. -
- 1569. - notifyPostTooltip: function(el, post, opts) {
- 1570. - var reply = (opts || {}).reply, url = 'al_wall.php';
- 1571. -
- 1572. - if (!post.indexOf('topic_comment')) {
- 1573. - url = 'al_board.php';
- 1574. - post = post.replace('topic_comment', '');
- 1575. - } else {
- 1576. - post = post.replace('wall_reply', '').replace('wall', '');
- 1577. - }
- 1578. -
- 1579. - showTooltip(el, {
- 1580. - url: url,
- 1581. - params: extend({act: 'post_tt', post: post, self: 1, from: 'feedback'}, opts || {}),
- 1582. - slide: 15,
- 1583. - shift: [35, -3, 0],
- 1584. - ajaxdt: 100,
- 1585. - showdt: 400,
- 1586. - hidedt: 200,
- 1587. - className: 'rich wall_tt'
- 1588. - });
- 1589. - },
- 1590. - notifyDeleteOver: function(item, el, label) {
- 1591. - showTooltip(el, {text: label});
- 1592. - wall && wall._animDelX(1, item);
- 1593. - },
- 1594. - notifyDeleteOut: function (item) {
- 1595. - wall && wall._animDelX(0.6, item);
- 1596. - },
- 1597. - notifyDelete: function (item, types, hash, el) {
- 1598. - el.tt && el.tt.el && el.tt.hide();
- 1599. - ajax.post('al_feed.php', {act: 'a_feedback_delete', item: item, hash: hash, types: types}, {
- 1600. - onDone: function (html) {
- 1601. - feed.notifyHideReply(item);
- 1602. - var row = ge('feedback_row_' + item).parentNode;
- 1603. - row.parentNode.replaceChild(se(html), row);
- 1604. - cur.feedEntriesHTML['fb_' + item] = row;
- 1605. - }
- 1606. - })
- 1607. - },
- 1608. - notifyUndelete: function (item, types, hash) {
- 1609. - ajax.post('al_feed.php', {act: 'a_feedback_undelete', item: item, hash: hash, types: types}, {
- 1610. - onDone: function (text) {
- 1611. - var row = ge('feedback_row_' + item);
- 1612. - row.parentNode.replaceChild(cur.feedEntriesHTML['fb_' + item], row);
- 1613. - delete cur.feedEntriesHTML['fb_' + item];
- 1614. - }
- 1615. - })
- 1616. - },
- 1617. - notifyDeleteAll: function (uid, hash, btn, item) {
- 1618. - ajax.post('al_feed.php', {act: 'a_feedback_delete_all', uid: uid, item: item, hash: hash}, {
- 1619. - onDone: function (text) {
- 1620. - showDoneBox(text);
- 1621. - // feed.go(feed.getSectionParams(cur.section), false, true);
- 1622. - var rows = cur.rowsCont, row;
- 1623. - if (rows && (row = rows.firstChild)) {
- 1624. - var startY = false,
- 1625. - st = scrollGetY(),
- 1626. - h, y;
- 1627. - do {
- 1628. - if (row.className &&
- 1629. - hasClass(row, 'feed_row') &&
- 1630. - row.firstChild &&
- 1631. - uid == row.firstChild.getAttribute('author')) {
- 1632. - h = row.offsetHeight;
- 1633. - y = row.offsetTop;
- 1634. - if (startY === false) {
- 1635. - startY = getXY(row.offsetParent)[1]
- 1636. - }
- 1637. - hide(row);
- 1638. - if (y + startY < st) {
- 1639. - st -= h;
- 1640. - scrollToY(st, 0);
- 1641. - }
- 1642. - }
- 1643. - } while (row = row.nextSibling);
- 1644. -
- 1645. - if (cur.wasScroll === 0 || cur.wasScroll > 0) {
- 1646. - cur.wasScroll = st;
- 1647. - }
- 1648. - feed.scrollCheck();
- 1649. - }
- 1650. - },
- 1651. - showProgress: lockButton.pbind(btn),
- 1652. - hideProgress: unlockButton.pbind(btn)
- 1653. - })
- 1654. - },
- 1655. -
- 1656. -
- 1657. - ignoreItem: function (post_raw, feed_raw, hash) {
- 1658. - triggerEvent(ge('post_delete' + post_raw), 'mouseout');
- 1659. - revertLastInlineVideo('post' + post_raw);
- 1660. - cur.feedEntriesHTML[post_raw] = val('post' + post_raw);
- 1661. - ajax.post('/al_feed.php?misc', {act: 'a_ignore_item', post_raw: post_raw, feed_raw: feed_raw, hash: hash}, {
- 1662. - onDone: function (html) {
- 1663. - val('post' + post_raw, html);
- 1664. - }
- 1665. - });
- 1666. - },
- 1667. - unignoreItem: function (post_raw, feed_raw, hash) {
- 1668. - ajax.post('/al_feed.php?misc', {act: 'a_unignore_item', post_raw: post_raw, feed_raw: feed_raw, hash: hash}, {
- 1669. - onDone: function () {
- 1670. - feed.restorePost(post_raw);
- 1671. - }
- 1672. - });
- 1673. - },
- 1674. - reportIgnoredItem: function (post, hash) {
- 1675. - ajax.post('al_wall.php', {act: 'spam', post: post, hash: hash}, {
- 1676. - onDone: function(msg) {
- 1677. - var r = ge('post' + post), label = r && geByClass1('feed_post_report', r, 'div');
- 1678. - val(label, msg);
- 1679. - }
- 1680. - });
- 1681. - },
- 1682. - ignoreOwner: function (post_raw, owner_id, hash, btn) {
- 1683. - if (post_raw) {
- 1684. - cur.feedEntriesHTML[post_raw + '_ignored'] = val('post' + post_raw);
- 1685. - }
- 1686. - ajax.post('/al_feed.php?misc', {act: 'a_ignore_owner', post_raw: post_raw, owner_id: owner_id, hash: hash, list: cur.section == 'list' && cur.list || 0}, {
- 1687. - onDone:function(html) {
- 1688. - val('post' + post_raw, html);
- 1689. - each(geByClass('post', cur.rowsCont), function(i,v) {
- 1690. - var ids = this.id.match(/post((-?\d+)_(-?\d+)(_\d+)?)/);
- 1691. - if (ids[1] != post_raw && (!ids[4] && ids[2] == owner_id || ids[4] && ids[3] == owner_id)) {
- 1692. - revertLastInlineVideo(this);
- 1693. - hide(this.parentNode);
- 1694. - }
- 1695. - });
- 1696. - },
- 1697. - showProgress: btn && lockButton.pbind(btn),
- 1698. - hideProgress: btn && unlockButton.pbind(btn)
- 1699. - });
- 1700. - },
- 1701. - unignoreOwner: function (post_raw, owner_id, hash) {
- 1702. - ajax.post('/al_feed.php?misc', {act: 'a_unignore_owner', post_raw: post_raw || '', owner_id: owner_id, hash: hash, list: cur.section == 'list' && cur.list || 0}, {
- 1703. - onDone:function(html) {
- 1704. - if (post_raw) {
- 1705. - val('post' + post_raw, cur.feedEntriesHTML[post_raw + '_ignored']);
- 1706. - } else {
- 1707. - val('ignore_row' + owner_id, html);
- 1708. - }
- 1709. - each(geByClass('post', cur.rowsCont), function(i,v) {
- 1710. - var ids = this.id.match(/post((-?\d+)_(-?\d+)(_\d+)?)/);
- 1711. - if (!ids[4] && ids[2] == owner_id || ids[4] && ids[3] == owner_id) {
- 1712. - show(this.parentNode);
- 1713. - }
- 1714. - });
- 1715. - }
- 1716. - });
- 1717. - },
- 1718. - unsubscribe: function (post_raw, hash) {
- 1719. - triggerEvent(ge('post_delete' + post_raw), 'mouseout');
- 1720. - cur.feedEntriesHTML[post_raw] = ge('post' + post_raw).innerHTML;
- 1721. - var matches = post_raw.match(/(\-?\d+)_(photo|video|topic|note|)(\d+)/);
- 1722. - if (!matches) return;
- 1723. - ajax.post('al_feed.php', {act: 'unsubscribe', type: {'': 24, photo: 21, video: 22, topic: 20, note: 23}[matches[2]], owner_id: matches[1], place_id: matches[3], hash: hash, feed: 1}, {
- 1724. - onDone: function(html) { ge('post' + post_raw).innerHTML = html.replace('%post_raw%', post_raw); }
- 1725. - });
- 1726. - },
- 1727. - subscribe: function (post_raw, hash) {
- 1728. - var matches = post_raw.match(/(\-?\d+)_(photo|video|topic|note|)(\d+)/);
- 1729. - if (!matches) return;
- 1730. - ajax.post('al_feed.php', {act: 'subscribe', type: {'': 24, photo: 21, video: 22, topic: 20, note: 23}[matches[2]], owner_id: matches[1], place_id: matches[3], hash: hash, feed: 1}, {
- 1731. - onDone: feed.restorePost.pbind(post_raw)
- 1732. - });
- 1733. - },
- 1734. - restorePost: function (post_raw) {
- 1735. - ge('post' + post_raw).innerHTML = cur.feedEntriesHTML[post_raw];
- 1736. - var ph_back = geByClass1('input_back', ge('post' + post_raw), 'div');
- 1737. - var ta = geByTag1('textarea', ge('post' + post_raw));
- 1738. - if (!ta) return;
- 1739. - ta.placeholder = ph_back.innerHTML;
- 1740. - ph_back.parentNode.removeChild(ph_back);
- 1741. - placeholderSetup(ta);
- 1742. - },
- 1743. - toggleReposts: function (place, rand, e) {
- 1744. - if (checkEvent(e)) return true;
- 1745. -
- 1746. - var lnk = ge('feed_reposts_more' + place + '_' + rand),
- 1747. - cont = ge('feed_reposts' + place + '_' + rand),
- 1748. - h = 0,
- 1749. - st = scrollGetY(),
- 1750. - vis = isVisible(cont);
- 1751. - if (!cont) {
- 1752. - lnk && re(lnk.parentNode.parentNode);
- 1753. - return;
- 1754. - }
- 1755. -
- 1756. - if (vis) {
- 1757. - h -= cont.offsetHeight;
- 1758. - } else {
- 1759. - (domPN(domPN(cont)) || {}).bits = 0;
- 1760. - }
- 1761. - toggle(cont, !vis);
- 1762. - val(lnk, !vis ? getLang('news_hide_reposts') : getLang('news_show_X_reposts', cont.childNodes.length));
- 1763. - if (h) {
- 1764. - scrollToY(st + h, 0);
- 1765. - }
- 1766. - return false;
- 1767. - },
- 1768. -
- 1769. - sliderScaleClick: function (e) {
- 1770. - if (checkEvent(e)) return;
- 1771. - var slider = ge('feed_rate_slider'),
- 1772. - scale = slider.parentNode,
- 1773. - maxX = (scale.clientWidth || 100) - slider.offsetWidth,
- 1774. - margin = Math.max(0, Math.min(maxX, (e.offsetX || e.layerX) - slider.offsetWidth / 2)),
- 1775. - percent = margin / maxX * 100;
- 1776. -
- 1777. - setStyle('feed_rate_slider', 'marginLeft', margin);
- 1778. - feed.sliderUpdate(percent);
- 1779. - feed.sliderClick(e);
- 1780. - },
- 1781. - sliderClick: function (e) {
- 1782. - if (checkEvent(e)) return;
- 1783. - e.cancelBubble = true;
- 1784. -
- 1785. - var startX = e.clientX || e.pageX,
- 1786. - slider = ge('feed_rate_slider'),
- 1787. - scale = slider.parentNode,
- 1788. - startMargin = slider.offsetLeft || 0,
- 1789. - maxX = (scale.clientWidth || 100) - slider.offsetWidth,
- 1790. - selectEvent = 'mousedown selectstart',
- 1791. - defPercent = intval(cur.default_percent),
- 1792. - margin, percent;
- 1793. -
- 1794. - var _temp = function (e) {
- 1795. - margin = Math.max(0, Math.min(maxX, startMargin + (e.clientX || e.pageX)- startX));
- 1796. - percent = margin / maxX * 100;
- 1797. -
- 1798. - if (Math.abs(percent - 100) < 8) {
- 1799. - percent = 100;
- 1800. - }
- 1801. - if (defPercent > 0 && Math.abs(percent - defPercent) < 3) {
- 1802. - percent = defPercent;
- 1803. - }
- 1804. - percent = intval(percent);
- 1805. - margin = maxX * percent / 100;
- 1806. - slider.style.marginLeft = margin + 'px';
- 1807. - feed.sliderUpdate(percent);
- 1808. - return cancelEvent(e);
- 1809. - }, _temp2 = function () {
- 1810. - removeEvent(document, 'mousemove', _temp);
- 1811. - removeEvent(document, 'mouseup', _temp2);
- 1812. - removeEvent(document, selectEvent, cancelEvent);
- 1813. - setStyle(bodyNode, 'cursor', '');
- 1814. - setStyle(scale, 'cursor', '');
- 1815. - feed.sliderApply();
- 1816. - };
- 1817. -
- 1818. - addEvent(document, 'mousemove', _temp);
- 1819. - addEvent(document, 'mouseup', _temp2);
- 1820. - addEvent(document, selectEvent, cancelEvent);
- 1821. - setStyle(bodyNode, 'cursor', 'pointer');
- 1822. - setStyle(scale, 'cursor', 'pointer');
- 1823. - return false;
- 1824. - },
- 1825. - sliderSelectChanged: function (e) {
- 1826. - var percent = ge(cur.section == 'articles' ? 'feed_period_select' : 'feed_rate_select').value;
- 1827. - feed.sliderUpdate(percent);
- 1828. - feed.sliderApply();
- 1829. - },
- 1830. - sliderUpdate: function (percent, upd) {
- 1831. - percent = intval(percent);
- 1832. - switch (cur.section) {
- 1833. - case 'articles':
- 1834. - case 'articles_search':
- 1835. - cur.periodPercent = percent;
- 1836. - var label = getLang('news_top_no_articles');
- 1837. - each (cur.top_periods, function (p, key) {
- 1838. - if (percent < p) {
- 1839. - return false;
- 1840. - }
- 1841. - label = key;
- 1842. - });
- 1843. - val('feed_rate_slider_label', label);
- 1844. - break;
- 1845. - }
- 1846. - if (upd) {
- 1847. - if (isVisible('feed_rate_slider_wrap')) {
- 1848. - var slider = ge('feed_rate_slider'),
- 1849. - maxX = (slider.parentNode.clientWidth || 100) - slider.offsetWidth;
- 1850. - setStyle('feed_rate_slider', 'marginLeft', maxX * percent / 100);
- 1851. - }
- 1852. - var wasSelected = false, select = ge('feed_period_select');
- 1853. - each(select && select.childNodes || [], function () {
- 1854. - if (this.tagName != 'OPTION') return;
- 1855. - if (wasSelected === false && this.value >= percent) {
- 1856. - this.setAttribute('selected', 'selected');
- 1857. - select.value = this.value;
- 1858. - wasSelected = true;
- 1859. - } else {
- 1860. - removeAttr(this, 'selected');
- 1861. - }
- 1862. - });
- 1863. - }
- 1864. - },
- 1865. - sliderApply: function () {
- 1866. - if (!cur.section.indexOf('articles')) {
- 1867. - feed.switchSection(cur.section);
- 1868. - return;
- 1869. - }
- 1870. - },
- 1871. - sliderShowProgress: function () {
- 1872. - addClass('feed_rate_slider_wrap', 'feed_rate_wait');
- 1873. - },
- 1874. - sliderHideProgress: function () {
- 1875. - removeClass('feed_rate_slider_wrap', 'feed_rate_wait');
- 1876. - },
- 1877. -
- 1878. - editHidden: function () {
- 1879. - showTabbedBox('al_settings.php', {act: 'a_edit_owners_list', list: 'feed', height: lastWindowHeight}, {stat: ['privacy.js', 'privacy.css', 'ui_controls.js', 'ui_controls.css', 'indexer.js']});
- 1880. - cur.onOListSave = feed.onHiddenSave;
- 1881. - return false;
- 1882. - },
- 1883. - onHiddenSave: function (white, black, list, options) {
- 1884. - var box = curBox(), params = {act: 'a_ignore_olist', hash: options.hash};
- 1885. - if (white.length < black.length) {
- 1886. - params.White = white.join(',');
- 1887. - } else {
- 1888. - params.Black = black.join(',');
- 1889. - }
- 1890. - ajax.post('al_feed.php', params, {
- 1891. - onDone: function(control, rules) {
- 1892. - box.hide();
- 1893. - feed.switchSection(cur.section == 'photos' ? 'photos' : 'news');
- 1894. - },
- 1895. - showProgress: box.showProgress,
- 1896. - hiderogress: box.hideProgress
- 1897. - });
- 1898. - return false;
- 1899. - },
- 1900. -
- 1901. - addList: function () {
- 1902. - Feed.toggleTabsMenu(0);
- 1903. - showTabbedBox('al_settings.php', {act: 'a_edit_owners_list', list: 'feed', list_id: -1, height: lastWindowHeight}, {
- 1904. - stat: ['privacy.js', 'privacy.css', 'ui_controls.js', 'ui_controls.css', 'indexer.js'],
- 1905. - onFail: function (text) {
- 1906. - setTimeout(showFastBox({title: getLang('global_error')}, text, getLang('global_close')).hide, 4500);
- 1907. - return true;
- 1908. - }
- 1909. - });
- 1910. - cur.onOListSave = feed.onListSave.pbind(-1);
- 1911. - return false;
- 1912. - },
- 1913. - editList: function (list_id) {
- 1914. - Feed.toggleTabsMenu(0);
- 1915. - showTabbedBox('al_settings.php', {act: 'a_edit_owners_list', list: 'feed', list_id: list_id, height: lastWindowHeight}, {stat: ['privacy.js', 'privacy.css', 'ui_controls.js', 'ui_controls.css', 'indexer.js']});
- 1916. - cur.onOListSave = feed.onListSave.pbind(list_id);
- 1917. - return false;
- 1918. - },
- 1919. - onListSave: function (list_id, white, black, list, options) {
- 1920. - var listName = val('feed_list_name');
- 1921. - if (!trim(listName)) {
- 1922. - notaBene('feed_list_name');
- 1923. - return false;
- 1924. - }
- 1925. - if (!white.length) {
- 1926. - return false;
- 1927. - }
- 1928. - var box = curBox();
- 1929. - ajax.post('al_feed.php', {
- 1930. - act: 'a_save_list',
- 1931. - hash: cur.tabs_hash,
- 1932. - White: white.join(','),
- 1933. - title: listName,
- 1934. - list_id: list_id,
- 1935. - no_reposts: ge('feed_list_reposts') && !isChecked('feed_list_reposts') ? 1 : 0
- 1936. - }, {
- 1937. - onDone: function(new_list_id) {
- 1938. - var topTab = geByClass1('feed_tab_list' + list_id, ge('feed_news_bar')),
- 1939. - filterTab = ge('filter_t_list' + list_id);
- 1940. - val(geByTag1('nobr', topTab), clean(listName));
- 1941. - val(geByClass1('feed_filter_tabs_title', filterTab), clean(listName));
- 1942. - box.hide();
- 1943. - if (list_id > 0) {
- 1944. - Feed.switchList(list_id);
- 1945. - } else {
- 1946. - nav.go({'0': 'feed', section: 'list', list: new_list_id}, null, {nocur: true});
- 1947. - }
- 1948. - },
- 1949. - showProgress: box.showProgress,
- 1950. - hiderogress: box.hideProgress
- 1951. - });
- 1952. - return false;
- 1953. - },
- 1954. - deleteList: function (list_id, force) {
- 1955. - if (list_id <= 0) {
- 1956. - return false;
- 1957. - }
- 1958. -
- 1959. - if (!force) {
- 1960. - var box = showFastBox(getLang('news_delete_list_confirm_title'), getLang('news_delete_list_confirm'), getLang('box_yes'), function () {
- 1961. - Feed.deleteList(list_id, true);
- 1962. - }, getLang('box_no'), function () {
- 1963. - box.hide();
- 1964. - });
- 1965. - return;
- 1966. - }
- 1967. - var box = curBox();
- 1968. - ajax.post('al_feed.php', extend({act: 'a_delete_list', list_id: list_id, hash: cur.tabs_hash}), {
- 1969. - onDone: function () {
- 1970. - re(geByClass1('feed_tab_list' + list_id, ge('feed_news_bar')));
- 1971. - re('filter_t_list' + list_id);
- 1972. - boxQueue.hideAll();
- 1973. - if (cur.section == 'list' && cur.list == list_id) {
- 1974. - feed.switchSection('news');
- 1975. - }
- 1976. - },
- 1977. - showProgress: box.showProgress,
- 1978. - hideProgress: box.hideProgress
- 1979. - });
- 1980. - },
- 1981. -
- 1982. - saveTabs: function () {
- 1983. - ajax.post('al_feed.php', {act: 'a_save_tabs', hash: cur.tabs_hash, tabs: cur.my_feed_types.tabs.join(',')});
- 1984. - },
- 1985. -
- 1986. - statsShow: function (e, opts) {
- 1987. - return showWiki({w: 'stats' + (cur.source || '')}, false, e);
- 1988. - },
- 1989. -
- 1990. - // scrollTop check
- 1991. - scrollCheck: function() {
- 1992. - if (!cur.idleManager || cur.isFeedLoading || cur.idleManager.isIdle || cur.disableAutoMore) return;
- 1993. - var el = ge('show_more_link');
- 1994. - if (!isVisible(el)) return;
- 1995. -
- 1996. - var ch = window.innerHeight || document.documentElement.clientHeight || bodyNode.clientHeight,
- 1997. - st = scrollGetY(), top, ntop = 0, el, nel, bits, posts = [];
- 1998. -
- 1999. - if (st + ch + 1000 > el.offsetTop) {
- 2000. - feed.showMore();
- 2001. - }
- 2002. -
- 2003. - if (
- 2004. - domPN(cur.topRow) != cur.rowsCont ||
- 2005. - (cur.topRow || {}).id == 'feed_rows_next'
- 2006. - ) {
- 2007. - cur.topRow = domFC(cur.rowsCont);
- 2008. - }
- 2009. - if (
- 2010. - !vk.id ||
- 2011. - !cur.topRow ||
- 2012. - cur.topRow.id == 'feed_rows_next' ||
- 2013. - cur.section != 'news' && cur.section != 'recommended' ||
- 2014. - ((window.curNotifier || {}).idle_manager || {}).is_idle
- 2015. - ) {
- 2016. - return;
- 2017. - }
- 2018. - for (el = domPS(cur.topRow); el && cur.topRow.offsetTop > st; el = domPS(el)) cur.topRow = el;
- 2019. - for (el = cur.topRow; el; el = nel) {
- 2020. - top = ntop ? ntop : el.offsetTop;
- 2021. - if (top >= st + ch) break;
- 2022. -
- 2023. - nel = domNS(el);
- 2024. - if ((nel || {}).id == 'feed_rows_next') nel = null;
- 2025. -
- 2026. - ntop = nel ? nel.offsetTop : top + el.offsetHeight;
- 2027. - if (ntop < st && nel) cur.topRow = nel;
- 2028. -
- 2029. - bits = el.bits || 0;
- 2030. - if (bits >= 3) continue;
- 2031. -
- 2032. - bits |= ((top >= st && top < st + ch) ? 1 : 0) | ((ntop >= st && ntop < st + ch) ? 2 : 0);
- 2033. - if (bits) {
- 2034. - el.bits = bits;
- 2035. - if (bits == 3) {
- 2036. - posts.push(Feed.postsGetRaws(el));
- 2037. - }
- 2038. - }
- 2039. - }
- 2040. - Page.postsSeen(posts);
- 2041. - },
- 2042. -
- 2043. - postsGetRaws: function(el) {
- 2044. - var f = domFC(el), c, m, p, r = /^post(-?\d+_\d+)$/, res = {};
- 2045. - if (m = f.id.match(r)) {
- 2046. - res[m[1]] = 1;
- 2047. - } else {
- 2048. - c = f.className;
- 2049. - if (m = c.match(/feed_reposts_wrap(-?\d+_\d+)/)) {
- 2050. - p = domFC(f);
- 2051. - if (hasClass(domFC(p), 'post_copy')) {
- 2052. - res[m[1]] = -1;
- 2053. - }
- 2054. - if (m = domFC(p).id.match(r)) {
- 2055. - res[m[1]] = 1;
- 2056. - }
- 2057. - if (isVisible(p = domNS(p))) {
- 2058. - for (p = domFC(p); p; p = domNS(p)) {
- 2059. - if (m = p.id.match(r)) {
- 2060. - res[m[1]] = 1;
- 2061. - }
- 2062. - }
- 2063. - }
- 2064. - } else if (m = c.match(/feed_repost(-?\d+_\d+)/)) {
- 2065. - p = domFC(f);
- 2066. - if (hasClass(p, 'post_copy')) {
- 2067. - res[m[1]] = -1;
- 2068. - }
- 2069. - if (m = p.id.match(r)) {
- 2070. - res[m[1]] = 1;
- 2071. - }
- 2072. - }
- 2073. - }
- 2074. - return res;
- 2075. - },
- 2076. - searchPreloadExtended: function () {
- 2077. - if (cur.feedSearchExtendedLoaded || cur.feedSearchExtendedPreloaded) {
- 2078. - return false;
- 2079. - }
- 2080. - cur.feedSearchExtendedPreloaded = true;
- 2081. - ajax.post('al_feed.php', {act: 'a_get_search_extended'}, {cache: 1});
- 2082. - },
- 2083. - searchToggleExtended: function (enabled) {
- 2084. - if (cur.feedSearchExtendedLoaded || !enabled) {
- 2085. - toggle('feed_search_extform', enabled);
- 2086. - return;
- 2087. - }
- 2088. - var visibleBefore = [isVisible('feed_menu_toggle'), isVisible('feed_edit_hidden'), isVisible('feed_search_sort')];
- 2089. - ajax.post('al_feed.php', {act: 'a_get_search_extended'}, {
- 2090. - stat: ['ui_controls.css', 'ui_controls.js'],
- 2091. - showProgress: function () {
- 2092. - show('feed_progress');
- 2093. - hide('feed_menu_toggle', 'feed_edit_hidden', 'feed_search_sort');
- 2094. - },
- 2095. - hideProgress: function () {
- 2096. - hide('feed_progress');
- 2097. - toggle('feed_menu_toggle', visibleBefore[0]);
- 2098. - toggle('feed_edit_hidden', visibleBefore[1]);
- 2099. - toggle('feed_search_sort', visibleBefore[2]);
- 2100. - },
- 2101. - cache: 1,
- 2102. - onDone: function (html, js) {
- 2103. - cur.feedSearchExtendedLoaded = true;
- 2104. - val('feed_search_extform', html);
- 2105. - show('feed_search_extform');
- 2106. - eval(js);
- 2107. - }
- 2108. - });
- 2109. - },
- 2110. - searchAppendTag: function (tag, pattern, nosubmit) {
- 2111. - if (!trim(tag) && !pattern) {
- 2112. - return;
- 2113. - }
- 2114. - var text = val('feed_search');
- 2115. - try {
- 2116. - text = text.replace(pattern || new RegExp('(^|\\s)' + tag + '(\\s|$)', 'i'), ' ');
- 2117. - } catch (e) {};
- 2118. - text += ' ' + tag + ' ';
- 2119. - text = text.replace(/\s{2,}/g, ' ').replace(/^\s+/, '');
- 2120. - val('feed_search', text);
- 2121. - if (trim(text).length && !nosubmit) {
- 2122. - Feed.submitSearch();
- 2123. - }
- 2124. - Feed.searchUpdate();
- 2125. - },
- 2126. - searchUnchooseGeoPoint: function () {
- 2127. - var map = ge('feed_searchext_map'),
- 2128. - x = ge('feed_searchext_map_delete_wrap');
- 2129. -
- 2130. - removeClass(map, 'feed_searchext_map_selected');
- 2131. - setStyle(map, {background: ''});
- 2132. - x && x.tt && x.tt.hide && x.tt.hide();
- 2133. - Feed.searchAppendTag('', /near:[0-9\.,\-\+]+/);
- 2134. - },
- 2135. - searchChooseGeoPoint: function () {
- 2136. - var params = {act: 'a_choose_place_box', search: 1},
- 2137. - text = val('feed_search'),
- 2138. - currentPointMatches = text.match(/near\:(\-?\d{1,3}(?:\.\d+)?)\,(\-?\d{1,3}(?:\.\d+)?)(\+{0,4})/);
- 2139. -
- 2140. - if (currentPointMatches) {
- 2141. - params.lat = floatval(currentPointMatches[1]);
- 2142. - params.lon = floatval(currentPointMatches[2]);
- 2143. - params.zoom = [8, 11, 14, 17, 20][(currentPointMatches[3] || '').length]
- 2144. - }
- 2145. - showBox('al_places.php', params, {dark: 1});
- 2146. - cur.chooseGeoPoint = function (lat, lon, zoom) {
- 2147. - var num = 0;
- 2148. - each([8, 11, 14, 17, 20], function (k, zoomLevel) {
- 2149. - if (zoom <= zoomLevel) {
- 2150. - return false;
- 2151. - }
- 2152. - num = k;
- 2153. - });
- 2154. - boxQueue.hideLast();
- 2155. - var postfix = (new Array(num + 1)).join('+');
- 2156. - var mult = Math.pow(10, 10);
- 2157. - lat = Math.round(lat * mult) / mult;
- 2158. - lon = Math.round(lon * mult) / mult;
- 2159. -
- 2160. - var map = ge('feed_searchext_map');
- 2161. - addClass(map, 'feed_searchext_map_selected');
- 2162. - setStyle(map, {
- 2163. - background: 'url(/maps?lat='+lat+'&lng='+lon+'&z='+zoom+'&'+(window.devicePixelRatio >= 2 ? 'w=260&h=160' : 'w=130&h=80')+')'
- 2164. - });
- 2165. - Feed.searchAppendTag('near:' + lat + ',' + lon + postfix, /near:[0-9\.,\-\+]+/);
- 2166. - };
- 2167. - },
- 2168. - searchChooseFilter: function (filter, item) {
- 2169. - var uiDropdown;
- 2170. - switch (filter) {
- 2171. - case 'type':
- 2172. - uiDropdown = cur.uiSearchPostType; break;
- 2173. - case 'has':
- 2174. - uiDropdown = cur.uiSearchPostAttach; break;
- 2175. - case 'likes':
- 2176. - uiDropdown = cur.uiSearchPostLikes; break;
- 2177. -
- 2178. - default: return false;
- 2179. - }
- 2180. - var sel = (uiDropdown.selectedItems() || [])[0];
- 2181. -
- 2182. - Feed.searchAppendTag(sel && intval(sel[0]) ? (filter + ':' + (sel[3] || sel[0])) : '', new RegExp(filter + ':' + '[\\S]+', 'g'));
- 2183. - },
- 2184. - searchExcludeOnChange: function (input, nosubmit) {
- 2185. - var exclude = trim(val(input));
- 2186. - if (!exclude) {
- 2187. - return false;
- 2188. - }
- 2189. - var words = trim(exclude).split(/[\s\,\.\/\!\@\#\$\%\^\&\*\(\)\-\=\:\~\;\'\"\|\}\{\+]+/),
- 2190. - len = words.length,
- 2191. - newTag = len > 0 && ('-' + words.join(' -')) || '';
- 2192. -
- 2193. - Feed.searchAppendTag(newTag, /(?:\s|^)\-\S+/g, nosubmit);
- 2194. - },
- 2195. - searchUrlOnChange: function (fromTooltip) {
- 2196. - var urlMatches = (val('feed_searchext_link') || '').match(urlInactiveExp),
- 2197. - newTag = '';
- 2198. -
- 2199. - if (urlMatches) {
- 2200. - var url = urlMatches[4] + (urlMatches[5] || ''),
- 2201. - domain = urlMatches[4],
- 2202. - newTag = radioBtns.feed_searchext_domain.val ? ('domain:' + domain) : ('url:' + url);
- 2203. - }
- 2204. - Feed.searchAppendTag(newTag, cur.feedSearchPrevLinkTag);
- 2205. - cur.feedSearchPrevLinkTag = newTag;
- 2206. -
- 2207. - if (fromTooltip) {
- 2208. - elfocus('feed_searchext_link');
- 2209. - }
- 2210. - },
- 2211. - searchContentOnChange: function () {
- 2212. - var urlMatches = (val('feed_searchext_content') || '').match(urlInactiveExp),
- 2213. - domainMatches = urlMatches && urlMatches[4].match(/(^|\.|\/\/)vkontakte\.ru|vk\.com/),
- 2214. - mediaMatches = domainMatches && urlMatches[5].match(/(?:#(photo)|^\/(photo|video|album|page|audio|wall)|z=(album|photo|video)|w=(page|wall))(-?\d+_)?(\d+)(?:\?reply=(\d+))?$/),
- 2215. - newTag = '';
- 2216. -
- 2217. - if (mediaMatches) {
- 2218. - var mediaType = mediaMatches[1] || mediaMatches[2] || mediaMatches[3] || mediaMatches[4],
- 2219. - mediaID = mediaMatches[5] + (mediaMatches[7] || mediaMatches[6]),
- 2220. - newTag = 'copy:' + mediaType + mediaID;
- 2221. - }
- 2222. - Feed.searchAppendTag(newTag, /copy\:\S+/);
- 2223. - },
- 2224. - searchUpdate: function () {
- 2225. - val(cur.searchPh, !cur.section.indexOf('photos') ? getLang('news_photo_search') : getLang('news_search'));
- 2226. -
- 2227. - toggle('feed_query_reset', trim(val('feed_search')));
- 2228. - },
- 2229. - searchClickOutside: function (event) {
- 2230. - if (val('feed_search') || !hasClass('feed_bar', 'feed_bar_extended_search') || isChecked('feed_search_extended_checkbox')) {
- 2231. - return;
- 2232. - }
- 2233. - removeClass('feed_bar', 'feed_bar_extended_search');
- 2234. - },
- 2235. - searchReset: function (fire) {
- 2236. - console.trace();
- 2237. - val('feed_search', '');
- 2238. - // removeClass('feed_bar', 'feed_bar_extended_search');
- 2239. - each ([cur.uiSearchPostType, cur.uiSearchPostAttach, cur.uiSearchPostLikes], function () {
- 2240. - this.val(0);
- 2241. - });
- 2242. - each(['feed_searchext_exclude', 'feed_searchext_link', 'feed_searchext_content'], function (k, input) {
- 2243. - val(input, '');
- 2244. - });
- 2245. - Feed.searchUnchooseGeoPoint();
- 2246. - Feed.searchUpdate();
- 2247. - if (!fire) {
- 2248. - return;
- 2249. - }
- 2250. -
- 2251. - var switchTo = 'news';
- 2252. - switch (cur.section) {
- 2253. - case 'articles':
- 2254. - case 'articles_search':
- 2255. - switchTo = 'articles';
- 2256. - break;
- 2257. -
- 2258. - case 'photos_search':
- 2259. - case 'photos':
- 2260. - switchTo = 'photos';
- 2261. - break;
- 2262. - }
- 2263. - Feed.switchSection(switchTo);
- 2264. - },
- 2265. -
- 2266. - sinceOwnerOver: function (obj, oid, name) {
- 2267. - if (!obj.nophoto) {
- 2268. - Feed.sinceOwnerBigphOver(obj, oid);
- 2269. - }
- 2270. - showTooltip(obj, {
- 2271. - text: name,
- 2272. - showdt: 0,
- 2273. - hidedt: 0,
- 2274. - black: 1,
- 2275. - shift: [12, 3, 3],
- 2276. - forcetoup: true,
- 2277. - // onCreate: function () {removeEvent(obj, 'mouseout');},
- 2278. - className: 'feed_since_owner_tt'
- 2279. - });
- 2280. - },
- 2281. - sinceOwnerBigphOver: function(obj, oid) {
- 2282. - if (!cur.lang || !cur.lang.global_photo_full_size || browser.mobile) return;
- 2283. - var o = obj.firstChild,
- 2284. - ch = cur.phCache[oid];
- 2285. - if (o.tagName != 'A' || o.className != 'feed_since_ownerph') {
- 2286. - o = obj.insertBefore(ce('a', {className: 'feed_since_ownerph', href: ch && ch._id ? ('/photo' + ch._id + '?all=1') : ('/albums' + oid), innerHTML: '<span class="feed_since_ownerph_label">' + cur.lang.global_photo_full_size + '</span>'}), obj.firstChild);
- 2287. - o.onclick = Feed.sinceOwnerBigphClick.pbind(oid, obj);
- 2288. - o._oid = oid;
- 2289. - }
- 2290. -
- 2291. - clearTimeout(o.hideTO);
- 2292. - animate(o, {marginTop: 65}, {duration: 200, transition: Fx.Transitions.easeOutCirc});
- 2293. - cur.phShown[oid] = o;
- 2294. -
- 2295. - if (!obj.onmouseout) obj.onmouseout = Feed.sinceOwnerBigphOut.pbind(obj);
- 2296. - },
- 2297. - sinceOwnerBigphOut: function(obj) {
- 2298. - var o = obj.firstChild;
- 2299. - if (!o || o.tagName != 'A' || o.className != 'feed_since_ownerph') return;
- 2300. -
- 2301. - clearTimeout(o.hideTO);
- 2302. - o.hideTO = setTimeout(function() {
- 2303. - animate(o, {marginTop: 90}, 200);
- 2304. - delete cur.phShown[o._oid];
- 2305. - }, 150);
- 2306. - },
- 2307. - sinceOwnerBigphClick: function(oid, obj, ev) {
- 2308. - if (checkEvent(ev) !== false) return;
- 2309. -
- 2310. - obj && obj.tt && obj.tt.destroy();
- 2311. - var ch = cur.phCache[oid]
- 2312. - o = cur.phShown[oid],
- 2313. - obj = domPN(o);
- 2314. -
- 2315. - if (!o || !obj) return;
- 2316. - if (ch === undefined) {
- 2317. - ch = cur.phCache[oid] = 'show';
- 2318. - ajax.post('al_photos.php', {act: 'fast_get_photo', oid: oid}, {onDone: function(res) {
- 2319. - if (!res) {
- 2320. - obj.onmouseover = function() {};
- 2321. - re(o);
- 2322. - return;
- 2323. - }
- 2324. - var sh = (cur.phCache[oid] == 'show');
- 2325. - cur.phCache[oid] = res;
- 2326. - o.href = '/photo' + res._id + '?all=1';
- 2327. - if (sh) Feed.sinceOwnerBigphClick(oid, obj);
- 2328. - }, onFail: function() {
- 2329. - obj.nophoto = true;
- 2330. - re(o);
- 2331. - return true;
- 2332. - }});
- 2333. - }
- 2334. - if (ch == 'show') {
- 2335. - return cancelEvent(ev);
- 2336. - }
- 2337. - if (!ch) return;
- 2338. - extend(ch, {
- 2339. - jumpTo: {z: 'albums' + oid}
- 2340. - });
- 2341. - return showPhoto(ch._id, 'album' + oid + '_0/rev', ch, ev);
- 2342. - },
- 2343. -
- 2344. - go: function(params, onBeforeReplace, noscroll) {
- 2345. - if (cur._back_local) {
- 2346. - var hist = cur._back_local;
- 2347. - if (hist.back) {
- 2348. - showBackLink(hist.back[0], hist.back[1], hist.back[2]);
- 2349. - } else {
- 2350. - showBackLink(false);
- 2351. - }
- 2352. - cur._back_local = false;
- 2353. - }
- 2354. - if (cur.feedReq) {
- 2355. - try {
- 2356. - cur.feedReq.abort();
- 2357. - } catch (e) {debugLog(e);}
- 2358. - }
- 2359. - var frame = 1, hideProgress = function () {
- 2360. - cur.isFeedLoading = false;
- 2361. - };
- 2362. - if (browser.msie || noscroll) {
- 2363. - frame = false;
- 2364. - hideProgress = cur.onFrameBlocksDone;
- 2365. - }
- 2366. - cur.wasScroll = noscroll ? scrollGetY() : false;
- 2367. - cur.feedReq = ajax.post('al_feed.php', extend(params, {part: 1}), {
- 2368. - onDone: function (options, rows, js) {
- 2369. - // debugLog(onBeforeReplace, options, rows.length, js);
- 2370. - revertLastInlineVideo();
- 2371. - if (window.tooltips) tooltips.destroyAll(ge('feed_rows'));
- 2372. - boxQueue.hideAll();
- 2373. - if (layers.fullhide) layers.fullhide(true);
- 2374. -
- 2375. - if (frame) {
- 2376. - ajax._framenext();
- 2377. - }
- 2378. - if (window.wall) wall.cancelEdit();
- 2379. - boxQueue.hideAll();
- 2380. - if (onBeforeReplace) {
- 2381. - onBeforeReplace(rows || '');
- 2382. - } else {
- 2383. - val(cur.rowsCont, rows || '');
- 2384. - }
- 2385. - feed.applyOptions(options, 2);
- 2386. - js && eval(js);
- 2387. -
- 2388. - if (!params.norecom) {
- 2389. - val('feed_recommends', options.recommends || '');
- 2390. - var str = '/al_feed.php#' + ajx2q({act: 'recom'});
- 2391. - if (ajaxCache[str]) delete(ajaxCache[str]);
- 2392. - cur.recomPreload = false;
- 2393. - }
- 2394. - toggle('feed_recommends', cur.section == 'news' || cur.section == 'recommended');
- 2395. -
- 2396. - // debugLog('init js:', js);
- 2397. - var _a = window.audioPlayer, aid = currentAudioId();
- 2398. - if (_a && aid && _a.showCurrentTrack) _a.showCurrentTrack();
- 2399. - setTimeout(function () {
- 2400. - var aid = currentAudioId();
- 2401. - if (_a && aid && _a.showCurrentTrack) _a.showCurrentTrack();
- 2402. - }, 100);
- 2403. - setTimeout(feed.scrollCheck, 200);
- 2404. - },
- 2405. - onFail: function () {return false;},
- 2406. - showProgress: function () {
- 2407. - hide('feed_menu_toggle', 'feed_edit_hidden', 'feed_search_sort');
- 2408. - if (cur.section == 'articles') {
- 2409. - feed.sliderShowProgress();
- 2410. - }
- 2411. - show('feed_progress');
- 2412. - cur.isFeedLoading = true;
- 2413. - },
- 2414. - frame: frame,
- 2415. - ads: 1,
- 2416. - hideProgress: hideProgress
- 2417. - });
- 2418. - },
- 2419. -
- 2420. - init: function (options) {
- 2421. - var searchEl = ge('feed_search');
- 2422. - placeholderSetup(searchEl, {back: 1});
- 2423. - cur.searchPh = geByClass1('input_back_content', ge('feed_isearch'));
- 2424. -
- 2425. - FeedSearch.init(searchEl);
- 2426. -
- 2427. - if (!window.Select) {
- 2428. - addEvent(searchEl, 'focus', function (e) {
- 2429. - stManager.add(['ui_controls.js', 'ui_controls.css'], feed.initUi);
- 2430. - removeEvent(searchEl, 'focus', arguments.callee);
- 2431. - });
- 2432. - }
- 2433. -
- 2434. - addEvent(searchEl, 'keydown focus', function (e) {
- 2435. - if (e.type == 'focus') {
- 2436. - if (cur.section.indexOf('articles') && cur.section.indexOf('photos')) {
- 2437. - addClass('feed_bar', 'feed_bar_extended_search');
- 2438. - }
- 2439. - return;
- 2440. - }
- 2441. - if (e.keyCode == KEY.RETURN && (!FeedSearch.select || FeedSearch.select.active < 0)) {
- 2442. - if (val(searchEl)) {
- 2443. - feed.submitSearch();
- 2444. - } else if (cur.section == 'search' || cur.section == 'articles_search') {
- 2445. - if (feed.returnToFeed(false, false)) {
- 2446. - feed.go(feed.getSectionParams(cur.section == 'search' ? 'news' : 'articles'));
- 2447. - }
- 2448. - }
- 2449. - searchEl.blur();
- 2450. - clearTimeout(cur.requestTimeout);
- 2451. - return cancelEvent(e);
- 2452. - }
- 2453. - setTimeout(Feed.searchUpdate, 0);
- 2454. - });
- 2455. - setTimeout(function () {
- 2456. - each(geByTag('textarea', cur.rowsCont), function() { placeholderSetup(this); });
- 2457. - }, 200);
- 2458. -
- 2459. - extend(cur, {
- 2460. - oid: options.user_id,
- 2461. - postTo: options.user_id,
- 2462. - phCache: {},
- 2463. - phShown: {},
- 2464. - subsections: {},
- 2465. - module: 'feed',
- 2466. - isFeedLoading: false,
- 2467. - wallPostCb: function () {
- 2468. - if (cur.section == 'news') {
- 2469. - setTimeout(feed.update.pbind(1), 1000);
- 2470. - } else {
- 2471. - setTimeout(feed.switchSection.pbind('news'), 1000);
- 2472. - }
- 2473. - },
- 2474. - // Decomment
- 2475. - // disableAutoMore: true,
- 2476. -
- 2477. -
- 2478. - idleManager: (function () {
- 2479. - var setIdleTo, checkIdleCb, checkIdleCbTo, onActive, onInActive, onFocusBlur, params = {
- 2480. - isIdle: false,
- 2481. - onIdle: null,
- 2482. - onUnIdle: null,
- 2483. - stop: function () {
- 2484. - removeEvent(document, 'mousemove keydown', onActive);
- 2485. - removeEvent(window, 'focus blur', onFocusBlur);
- 2486. - // clearTimeout(setIdleTo);
- 2487. - // clearTimeout(checkIdleCbTo);
- 2488. - },
- 2489. - start: function () {
- 2490. - if (browser.mobile) return;
- 2491. - // checkIdleCb = function () {
- 2492. - // if (!cur.idleManager) return;
- 2493. - // addEvent(document, 'mousemove keydown', onActive);
- 2494. - // clearTimeout(setIdleTo);
- 2495. - // setIdleTo = setTimeout(onBlur, 60000); // tab becomes idle in 30 secs without moving mouse or typing
- 2496. - // };
- 2497. - onActive = function () {
- 2498. - if (!cur.idleManager) return;
- 2499. - // clearTimeout(setIdleTo);
- 2500. - if (params.isIdle) {
- 2501. - params.isIdle = false;
- 2502. - if (params.onUnIdle) params.onUnIdle();
- 2503. - debugLog('unidle');
- 2504. - }
- 2505. - // removeEvent(document, 'mousemove keydown', onAction);
- 2506. - // clearTimeout(checkIdleCbTo);
- 2507. - // checkIdleCbTo = setTimeout(checkIdleCb, 30000);
- 2508. - };
- 2509. - onInActive = function () {
- 2510. - if (!cur.idleManager) return;
- 2511. - params.isIdle = true;
- 2512. - debugLog('idle');
- 2513. - if (params.onIdle) params.onIdle();
- 2514. - };
- 2515. - onFocusBlur = function (e) {
- 2516. - if (e.type == 'focus') {
- 2517. - onActive();
- 2518. - } else {
- 2519. - onInActive();
- 2520. - }
- 2521. - };
- 2522. - addEvent(window, 'focus blur', onFocusBlur);
- 2523. - // clearTimeout(checkIdleCbTo);
- 2524. - // checkIdleCbTo = setTimeout(checkIdleCb, 30000);
- 2525. - }
- 2526. - };
- 2527. - return params;
- 2528. - }()),
- 2529. -
- 2530. - onFrameBlocksDone: /*vkLocal(*/function () {
- 2531. - hide('feed_progress');
- 2532. - feed.sliderHideProgress();
- 2533. - toggle('feed_edit_hidden', cur.section == 'news' || cur.section == 'photos');
- 2534. - toggle('feed_search_sort', cur.section == 'search'/* || cur.section == 'photos_search'*/);
- 2535. - toggle('feed_menu_toggle', ge(feed.getTypesSection() + '_filters'));
- 2536. - toggle('feed_rate_slider_wrap', cur.section == 'articles' && cur.subsection == 'top');
- 2537. - cur.isFeedLoading = false;
- 2538. - if (cur.wasScroll === 0 || cur.wasScroll > 0) {
- 2539. - scrollToY(st, 0);
- 2540. - cur.wasScroll = false;
- 2541. - }
- 2542. - }/*)*/,
- 2543. -
- 2544. - // Cached entries' HTML
- 2545. - feedEntriesHTML: {},
- 2546. - feedUnreadCount: 0,
- 2547. - feedInitialTitle: '',
- 2548. - feedUnread: [],
- 2549. - feedToSort: []
- 2550. - });
- 2551. -
- 2552. - cur.nav.push(function(changed, old, n, opts) {
- 2553. - if (changed[0] !== undefined) return;
- 2554. - var params = clone(n);
- 2555. - delete(params[0]);
- 2556. - var splitt = !!ge('feedtab_updates') || !ge('feedtab_news');
- 2557. - if (splitt && changed.section !== undefined && ((cur.section == 'notifications' || cur.section == 'comments') &&changed.section != 'notifications' && changed.section != 'comments' || cur.section != 'notifications' && cur.section != 'comments' && (changed.section == 'notifications' || changed.section == 'comments'))) {
- 2558. - return;
- 2559. - }
- 2560. - if ((cur.section == 'owner' || cur.section == 'search') && !feed.returnToFeed(params, opts.back || opts.hist)) {
- 2561. - return false;
- 2562. - }
- 2563. - if (changed.q) {
- 2564. - feed.submitSearch(changed.q, params.section || '');
- 2565. - return false;
- 2566. - }
- 2567. - if (changed.list) {
- 2568. - Feed.switchList(changed.list);
- 2569. - return false;
- 2570. - }
- 2571. - feed.go(extend(params, opts.params || {}));
- 2572. - return false;
- 2573. - });
- 2574. - cur.idleManager.onUnIdle = feed.updateTitle;
- 2575. - cur.idleManager.onIdle = feed.reSortItems;
- 2576. -
- 2577. - cur.options = cur.options || {};
- 2578. - extend(cur.options, options);
- 2579. - feed.applyOptions(options, 3);
- 2580. -
- 2581. - // Extrnal static requred
- 2582. - // page.js
- 2583. - cur.rowsCont = options.wallCont = ge('feed_rows');
- 2584. - wall.init(options);
- 2585. -
- 2586. - // Scroll check routine
- 2587. - feed.scrollNode = browser.msie6 ? pageNode : window;
- 2588. -
- 2589. - cur._back = {
- 2590. - text: getLang('news_return_to_news'),
- 2591. - show: [feed.startEvents],
- 2592. - hide: [function () {
- 2593. - clearInterval(cur.updateInt);
- 2594. - removeEvent(feed.scrollNode, 'scroll', feed.scrollCheck);
- 2595. - removeEvent(window, 'resize', feed.scrollCheck);
- 2596. - cur.idleManager.stop();
- 2597. - clearTimeout(cur.lp_error_to);
- 2598. - // removeEvent(document, 'click', Feed.searchClickOutside);
- 2599. - }],
- 2600. - loc: false
- 2601. - };
- 2602. - feed.startEvents();
- 2603. - var _a = window.audioPlayer,
- 2604. - aid = currentAudioId();
- 2605. - if (_a && aid && _a.showCurrentTrack) _a.showCurrentTrack();
- 2606. -
- 2607. - if (browser.mobile) {
- 2608. - setStyle('feed_rate_slider_wrap', {width: 150});
- 2609. - hide('feed_rate_full');
- 2610. - show('feed_rate_mobile');
- 2611. - }
- 2612. -
- 2613. - setTimeout(feed.scrollCheck, 200);
- 2614. - },
- 2615. - startEvents: function () {
- 2616. - // IDLE manager
- 2617. - cur.idleManager.start();
- 2618. -
- 2619. - // Feed update interval
- 2620. - cur.updateInt = setInterval(function () {feed.update(0);}, 20000);
- 2621. -
- 2622. - // Scroll check routine for auto preload next news
- 2623. - addEvent(feed.scrollNode, 'scroll', feed.scrollCheck);
- 2624. - addEvent(window, 'resize', feed.scrollCheck);
- 2625. - // addEvent(document, 'click', Feed.searchClickOutside);
- 2626. - },
- 2627. - initUi: function () {
- 2628. - cur.searchSortMenu = new DropdownMenu(cur.options.search_sorts, {
- 2629. - target: ge('feed_search_sort_dd'),
- 2630. - onSelect: function (e) {
- 2631. - feed.submitSearch()
- 2632. - },
- 2633. - fadeSpeed: 0
- 2634. - });
- 2635. -
- 2636. - FeedSearch.initSelect();
- 2637. - cur.destroy.push(function () {
- 2638. - FeedSearch.destroy();
- 2639. - });
- 2640. - },
- 2641. - applyUi: function () {
- 2642. - // debugLog('apply ui');
- 2643. - if (!cur.searchSortMenu) return;
- 2644. - cur.searchSortMenu.setOptions({title: cur.search_sort[1]});
- 2645. - cur.searchSortMenu.value = cur.search_sort[0];
- 2646. - val('feed_search_sort_dd', cur.search_sort[1].replace(/\s+/g, ' '));
- 2647. - },
- 2648. - mentionClick: function(el, ev) {
- 2649. - var post = ((el.getAttribute('mention') || '').match(/^bp(-?\d+_\d+)$/) || {})[1];
- 2650. - if (!post) return nav.go(el, ev);
- 2651. -
- 2652. - post = post.split('_');
- 2653. - for (; el; el = el.parentNode) {
- 2654. - var m = (el.id || '').match(/^replies(-?\d+_topic\d+)$/);
- 2655. - if (m) {
- 2656. - var topic = m[1].split('_');
- 2657. - if (topic[0] == post[0]) {
- 2658. - return wall.showReply(m[1], post[0] + 'topic_' + post[1]);
- 2659. - } else {
- 2660. - break;
- 2661. - }
- 2662. - }
- 2663. - }
- 2664. - return nav.go(el, ev);
- 2665. - },
- 2666. -
- 2667. - recomPreload: function() {
- 2668. - if (cur.recomPreload) return;
- 2669. - cur.recomPreload = true;
- 2670. - ajax.post('/al_feed.php', {act: 'recom'}, {cache: 1});
- 2671. - },
- 2672. - recomMore: function(ev) {
- 2673. - if (checkEvent(ev) !== false) return;
- 2674. - var cont = ge('feed_recom_rows'), lnk = ge('feed_recom_more');
- 2675. - if (cont.childNodes.length > 2) {
- 2676. - var old = getSize(cont)[1];
- 2677. - while (cont.childNodes.length > 2) {
- 2678. - cont.removeChild(cont.lastChild);
- 2679. - }
- 2680. - scrollToY(0, 0);
- 2681. - hide(lnk.firstChild.nextSibling);
- 2682. - show(lnk.firstChild);
- 2683. - return cancelEvent(ev);
- 2684. - }
- 2685. -
- 2686. - ajax.post('/al_feed.php', {act: 'recom'}, {cache: 1, onDone: function(rows) {
- 2687. - hide(lnk.firstChild);
- 2688. - show(lnk.firstChild.nextSibling);
- 2689. - var e = ce('div', {innerHTML: rows}), c = ge('feed_recom_rows'), el;
- 2690. - while (el = e.firstChild) {
- 2691. - if (ge(el.id)) {
- 2692. - re(el);
- 2693. - } else {
- 2694. - c.appendChild(el);
- 2695. - }
- 2696. - }
- 2697. - if (c.childNodes.length % 2) re(c.lastChild);
- 2698. - }, showProgress: function() {
- 2699. - hide(lnk.firstChild);
- 2700. - show(lnk.lastChild);
- 2701. - }, hideProgress: function() {
- 2702. - show(lnk.firstChild);
- 2703. - hide(lnk.lastChild);
- 2704. - }});
- 2705. - return cancelEvent(ev);
- 2706. - },
- 2707. - recomSubscribe: function(oid, btn) {
- 2708. - ajax.post('/al_feed.php', {act: 'subscr', oid: oid, from: nav.objLoc.section, hash: val('feed_recom_hash')}, {
- 2709. - onDone: function(text) {
- 2710. - btn.parentNode.parentNode.replaceChild(ce('div', {className: 'feed_recom_done fl_l', innerHTML: text}), btn.parentNode);
- 2711. - if (nav.objLoc.section != 'recommended') {
- 2712. - nav.go(nav.objLoc, false, {params: {norecom: 1}});
- 2713. - }
- 2714. - },
- 2715. - showProgress: lockButton.pbind(btn),
- 2716. - hideProgress: unlockButton.pbind(btn)
- 2717. - });
- 2718. - }
- 2719. -
- 2720. - };
- 2721. - window.feed = Feed;
- 2722. -
- 2723. - FeedSearch = {
- 2724. - init: function (input, options) {
- 2725. - return false;
- 2726. - var self = this;
- 2727. - this.input = input;
- 2728. - this.cont = input.parentNode.parentNode;
- 2729. - var resultContainer = ce('div', {className: 'results_container', innerHTML: '<div class="result_list"></div><div class="result_list_shadow"><div class="shadow1"></div><div class="shadow2"></div></div>'});
- 2730. - this.cont.appendChild(resultContainer);
- 2731. - this.resultList = geByClass('result_list', resultContainer)[0];
- 2732. - this.resultListShadow = geByClass('result_list_shadow', resultContainer)[0];
- 2733. - hide(this.resultList, this.resultListShadow);
- 2734. -
- 2735. - if (browser.chrome) this.resultList.style.opacity = 1;
- 2736. - else if (!browser.safari) setStyle(this.resultListShadow, 'top', browser.mozilla ? 0 : (browser.msie && browser.version < 8) ? 0 : -1);
- 2737. - this.resultList.style.width = this.resultListShadow.style.width = resultContainer.style.width = '273px';
- 2738. -
- 2739. - this.initSelect();
- 2740. -
- 2741. - addEvent(input, 'keyup click mouseup', function (e) {
- 2742. - if (!self.select) return;
- 2743. - if (self.select.isVisible() && self.select.active > -1) {
- 2744. - if (inArray(e.keyCode, [KEY.UP, KEY.DOWN, KEY.PAGEUP, KEY.PAGEDOWN, KEY.RETURN])) return cancelEvent(e);
- 2745. - }
- 2746. - clearTimeout(cur.requestTimeout);
- 2747. - var term = val(input);
- 2748. - self.currentTerm = term;
- 2749. - var section = cur.section;
- 2750. - if (!term) {
- 2751. - self.select.hide();
- 2752. - return;
- 2753. - }
- 2754. - cur.requestTimeout = setTimeout(function() {
- 2755. - ajax.post('/hints.php?act=a_feed_hints', {q: term, section: section}, {
- 2756. - onDone: function (data) {
- 2757. - if (self.currentTerm === term) self.showSelectList(term, data);
- 2758. - }, cache: 1
- 2759. - });
- 2760. - }, 300);
- 2761. - });
- 2762. - addEvent(input, 'blur', function () {
- 2763. - clearTimeout(cur.requestTimeout);
- 2764. - delete self.currentTerm;
- 2765. - if (!self.select) return;
- 2766. - self.select.hide();
- 2767. - });
- 2768. - addEvent(input, 'keypress keydown', function (e) {
- 2769. - if (!self.select) return;
- 2770. - if (!self.select || self.select.active < 0) return true;
- 2771. -
- 2772. - if (e.keyCode == KEY.RETURN || e.keyCode == 10) {
- 2773. - if (self.select && self.select.isVisible()) {
- 2774. - triggerEvent(document, e.type, e);
- 2775. - return cancelEvent(e);
- 2776. - }
- 2777. - } else if (e.keyCode == KEY.SPACE) {
- 2778. - var el = self.select.list.childNodes[self.select.active], id = el ? el.getAttribute('val') : '', item;
- 2779. - each(self.lastItems, function () {
- 2780. - if (this[0] == id) {
- 2781. - item = this;
- 2782. - }
- 2783. - });
- 2784. - if (!item) return;
- 2785. - val(input, item[3] + ' ');
- 2786. - focusAtEnd(input);
- 2787. - return cancelEvent(e);
- 2788. - }
- 2789. - return true;
- 2790. - });
- 2791. - },
- 2792. - initSelect: function () {
- 2793. - return false;
- 2794. - if (this.select || !window.Select || !window._ui) return;
- 2795. - if (!this.resultList || !this.resultListShadow) {
- 2796. - debugLog('no containers', this.resultList, this.resultListShadow);
- 2797. - return;
- 2798. - }
- 2799. - this.guid = _ui.reg(this);
- 2800. - this.select = new Select(this.resultList, this.resultListShadow, {
- 2801. - selectFirst: false,
- 2802. - onItemSelect: this.onItemSelect.bind(this),
- 2803. - onShow: _ui.sel.pbind(this.guid),
- 2804. - onHide: _ui.sel.pbind(false),
- 2805. - cycle: true
- 2806. - });
- 2807. - this.select.hide();
- 2808. - },
- 2809. - showSelectList: function (term, items) {
- 2810. - var self = this;
- 2811. - if (!this.select) return;
- 2812. - items = isArray(items) && items.length ? items : [];
- 2813. - if (!items.length) {
- 2814. - self.select.hide();
- 2815. - return;
- 2816. - }
- 2817. - this.select.clear();
- 2818. - this.lastItems = items;
- 2819. - this.select.content(items);
- 2820. - this.select.show();
- 2821. - },
- 2822. - onItemSelect: function(id) {
- 2823. - if (!this.select) return;
- 2824. - this.select.hide();
- 2825. - var item;
- 2826. - each(this.lastItems, function () {
- 2827. - if (this[0] == id) {
- 2828. - item = this;
- 2829. - }
- 2830. - });
- 2831. - if (!item) return;
- 2832. - val(this.input, '');
- 2833. - feed.switchOwner(item[4], item[3]);
- 2834. - this.input.blur();
- 2835. - },
- 2836. - onEvent: function(e) {
- 2837. - if (e.type == (browser.opera || browser.mozilla ? 'keypress' : 'keydown')) {
- 2838. - this.select.handleKeyEvent(e);
- 2839. - }
- 2840. - },
- 2841. - destroy: function (prevCur) {
- 2842. - cleanElems(this.resultList, this.resultListShadow, this.input);
- 2843. - clearTimeout(prevCur ? prevCur.requestTimeout : cur.requestTimeout);
- 2844. - if (this.select) {
- 2845. - this.select.destroy();
- 2846. - delete this.select;
- 2847. - }
- 2848. - if (this.resultList) {
- 2849. - re(this.resultList.parentNode);
- 2850. - }
- 2851. - delete this.lastItems;
- 2852. - this.inited = false;
- 2853. - }
- 2854. - }
- 2855. -
- 2856. - try{stManager.done('feed.js');}catch(e){}
- ------
- Файл - privacy.css (Старый размер - 15585 | Новый - 0):
- 0. - #privacy_css {
- 1. - display: none;
- 2. - }
- 3. - .group1, .group2, .group3, .group4,
- 4. - .group5, .group6, .group7, .group8,
- 5. - .group9, .group10 {
- 6. - margin: 3px 0px;
- 7. - line-height: 175%;
- 8. - white-space : nowrap;
- 9. - }
- 10. -
- 11. - .flist_search_input {
- 12. - padding: 5px;
- 13. - }
- 14. -
- 15. - .group1 {
- 16. - background-color: #F5E9E2;
- 17. - color: #8B4C23;
- 18. - }
- 19. -
- 20. - .group2 {
- 21. - background-color: #FAEAD8;
- 22. - color: #764F14;
- 23. - }
- 24. -
- 25. - .group3 {
- 26. - background-color: #FAF3D8;
- 27. - color: #817945;
- 28. - }
- 29. -
- 30. - .group4 {
- 31. - background-color: #E8F2DC;
- 32. - color: #37702A;
- 33. - }
- 34. -
- 35. - .group5 {
- 36. - background-color: #E0ECEA;
- 37. - color: #4C7171;
- 38. - }
- 39. -
- 40. - .group6 {
- 41. - background-color: #E4EBF1;
- 42. - color: #0B5588;
- 43. - }
- 44. -
- 45. - .group7 {
- 46. - background-color: #E4E7F2;
- 47. - color: #2F54AA;
- 48. - }
- 49. -
- 50. - .group8 {
- 51. - background-color: #EDE5F0;
- 52. - color: #80478F;
- 53. - }
- 54. -
- 55. - .group9 {
- 56. - background-color: #F5E9E2;
- 57. - color: #8B4C23;
- 58. - }
- 59. -
- 60. - .group10 {
- 61. - background-color: #FAEAD8;
- 62. - color: #764F14;
- 63. - }
- 64. -
- 65. - .group1, .group2, .group3, .group4,
- 66. - .group5, .group6, .group7, .group8,
- 67. - .group9, .group10 {
- 68. - margin:0px 0px;
- 69. - padding: 1px 3px;
- 70. - apadding:0px;
- 71. - line-height: 160%;
- 72. - aline-height: 140%;
- 73. - white-space : nowrap;
- 74. - abackground-color:#FFF;
- 75. - abackground-color: #EEF2F6;
- 76. - acolor: #2B587A;
- 77. - acolor: #000;
- 78. - }
- 79. -
- 80. -
- 81. - /* Privacy box */
- 82. -
- 83. - .flist_empty {
- 84. - background-color: #FFF;
- 85. - color: #777777;
- 86. - font-size: 1.18em;
- 87. - text-align: center;
- 88. - padding: 103px 0px 90px 0px;
- 89. - margin: 10px 10px 12px 10px;
- 90. - }
- 91. -
- 92. -
- 93. - .privacy_control {
- 94. - line-height:175%;
- 95. - width:250px;
- 96. - }
- 97. -
- 98. - #box_layer .privacy_friends {
- 99. - overflow: auto;
- 100. - overflow-y: scroll;
- 101. - overflow-x: hidden;
- 102. - }
- 103. - #flist_scroll_wrap {
- 104. - overflow: hidden;
- 105. - height: 420px;
- 106. - }
- 107. - .flist_col {
- 108. - border: 0px;
- 109. - width: 254px;
- 110. - padding: 0px 11px 15px 11px;
- 111. - vertical-align: top;
- 112. - }
- 113. - .flist_search_cont {
- 114. - background: #F7F7F7;
- 115. - padding: 10px;
- 116. - border-bottom: 1px solid #DAE1E8;
- 117. - width: 528px;
- 118. - }
- 119. - #flist_search {
- 120. - width: 486px;
- 121. - background: #FFFFFF url(/images/magglass.png) no-repeat 5px 6px;
- 122. - outline: none;
- 123. - padding: 5px 20px;
- 124. - }
- 125. - #flist_list_name {
- 126. - display: none;
- 127. - }
- 128. - .flist_two_cols #flist_search {
- 129. - width: 215px;
- 130. - }
- 131. - .flist_two_cols #flist_list_name {
- 132. - display: block;
- 133. - width: 245px;
- 134. - position: absolute;
- 135. - margin-left: 271px;
- 136. - padding: 5px 5px;
- 137. - }
- 138. - #flist_cont {
- 139. - position: relative;
- 140. - }
- 141. - .flist_left_col {
- 142. - border-right: 1px solid #DBDEE5;
- 143. - width: 253px;
- 144. - }
- 145. - #flist_right_col {
- 146. - position: absolute;
- 147. - top: 0;
- 148. - left: 276px;
- 149. - height: 405px;
- 150. - overflow: hidden;
- 151. - }
- 152. - .flist_cell {
- 153. - width: 253px;
- 154. - border-bottom: 1px solid #E4E8ED;
- 155. - cursor: pointer;
- 156. - }
- 157. - .flist_cell:hover {
- 158. - background: #EDF1F5;
- 159. - }
- 160. - td.flist_item_img {
- 161. - width: 32px;
- 162. - height: 32px;
- 163. - padding: 8px 9px 9px 9px;
- 164. - }
- 165. - td.flist_item_img img {
- 166. - width: 32px;
- 167. - height: 32px;
- 168. - }
- 169. - .flist_item_name {
- 170. - font-weight: bold;
- 171. - color: #45688E;
- 172. - width: 173px;
- 173. - overflow: hidden;
- 174. - }
- 175. - .flist_item_name em {
- 176. - font-style: normal;
- 177. - background: #FFF8CC none repeat scroll 0 0;
- 178. - }
- 179. - .flist_item_action {
- 180. - width: 12px;
- 181. - height: 12px;
- 182. - background: url('/images/icons/lite_acts_12x12.png?2') no-repeat 0px 0px;
- 183. - }
- 184. - #flist_sel_list .flist_item_action {
- 185. - background: url('/images/icons/lite_acts_12x12.png?2') no-repeat 0px -12px;
- 186. - }
- 187. - td.flist_item_act {
- 188. - padding: 5px;
- 189. - width: 12px;
- 190. - }
- 191. - .flist_full .flist_item_action{
- 192. - background: none;
- 193. - }
- 194. - .flist_full .flist_cell {
- 195. - cursor: default;
- 196. - }
- 197. - .flist_full .flist_cell:hover {
- 198. - background: #FFFFFF;
- 199. - }
- 200. - .flist_more {
- 201. - padding: 10px;
- 202. - text-align: center;
- 203. - cursor: pointer;
- 204. - margin-bottom: 10px;
- 205. - display: block;
- 206. - }
- 207. - .flist_more:hover {
- 208. - background: #EDF1F5;
- 209. - text-decoration: none;
- 210. - }
- 211. - .flist_info {
- 212. - padding: 65px 30px;
- 213. - color: #777777;
- 214. - text-align: center;
- 215. - font-size: 1.18em;
- 216. - }
- 217. - #flist_search_reset {
- 218. - margin: 1px 0px 0px 505px;
- 219. - display: none;
- 220. - cursor: pointer;
- 221. - background: transparent url(/images/icons/input_clear.gif) 6px 6px no-repeat;
- 222. - padding: 2px;
- 223. - width: 19px;
- 224. - height: 19px;
- 225. - opacity: 0.6;
- 226. - filter: alpha(opacity=60);
- 227. - position: absolute;
- 228. - z-index: 95;
- 229. - }
- 230. - .flist_max_size_tt {
- 231. - width: 200px;
- 232. - }
- 233. - .flist_info_tt {
- 234. - width: 199px;
- 235. - }
- 236. - .flist_info_text {
- 237. - color: #000000;
- 238. - padding: 5px;
- 239. - }
- 240. - .flist_info_text b {
- 241. - display: block;
- 242. - margin-bottom: 8px;
- 243. - }
- 244. - .flist_tt_tail_wrap {
- 245. - position: absolute;
- 246. - top: 48px;
- 247. - left: 198px;
- 248. - z-index: 2001;
- 249. - }
- 250. - .flist_tt_tail {
- 251. - width: 8px;
- 252. - height: 11px;
- 253. - background: url(/images/ddtooltip.png) -8px 0 no-repeat;
- 254. - }
- 255. - #flist_helper {
- 256. - position: absolute;
- 257. - margin-left: -200px;
- 258. - margin-top: -43px;
- 259. - opacity: 0;
- 260. - filter: alpha(opacity=0);
- 261. - /* display: none;*/
- 262. - }
- 263. -
- 264. -
- 265. - /* Drop down */
- 266. - #privacy_dropdown {
- 267. - z-index: 1100;
- 268. - cursor: pointer;
- 269. - }
- 270. - #privacy_dropdown .top_sh {
- 271. - display: none;
- 272. - }
- 273. - #privacy_dropdown .to_up .top_sh {
- 274. - display: table-row;
- 275. - }
- 276. - * html #privacy_dropdown .to_up .top_sh {
- 277. - display: block;
- 278. - }
- 279. - #privacy_dropdown .to_up .bottom_sh {
- 280. - display: none;
- 281. - }
- 282. - #privacy_dropdown .side {
- 283. - background: #000;
- 284. - opacity: 0.1;
- 285. - filter: alpha(opacity=10);
- 286. - }
- 287. - #privacy_dropdown .side div {
- 288. - width: 1px;
- 289. - }
- 290. - #privacy_dropdown .bottom, #privacy_dropdown .bottom2 {
- 291. - background: #000;
- 292. - height: 1px;
- 293. - overflow: hidden;
- 294. - position: relative;
- 295. - opacity: 0.1;
- 296. - filter: alpha(opacity=10);
- 297. - }
- 298. - #privacy_dropdown .bottom2 {
- 299. - height: 1px;
- 300. - opacity: 0.05;
- 301. - filter: alpha(opacity=5);
- 302. - }
- 303. - #privacy_dropdown .header {
- 304. - background: #EEF2F6;
- 305. - border: solid #96AABE;
- 306. - border-width: 1px 1px 0px;
- 307. - }
- 308. - #privacy_dropdown .header div {
- 309. - padding: 1px 21px 3px 4px;
- 310. - background: #EEF2F6 url(/images/flydead.gif?1) no-repeat 100% 2px;
- 311. - border: 1px solid #EEF2F6;
- 312. - color: #2C587D;
- 313. - }
- 314. - #privacy_dropdown .to_up .header {
- 315. - border-width: 0px 1px 1px;
- 316. - }
- 317. - #privacy_dropdown .to_up .header div {
- 318. - background-position: 100% -75px;
- 319. - }
- 320. - #privacy_dropdown .body {
- 321. - background: #FFF;
- 322. - border: solid #96AABE;
- 323. - border-width: 0px 1px 1px;
- 324. - }
- 325. - #privacy_dropdown .to_up .body {
- 326. - border-width: 1px 1px 0px;
- 327. - }
- 328. - #privacy_dropdown .item, #privacy_dropdown .item_sel, #privacy_dropdown .item_sel_plus {
- 329. - padding: 2px 21px 4px 5px;
- 330. - background: #FFF;
- 331. - color: #2C587D;
- 332. - overflow: hidden;
- 333. - }
- 334. - #privacy_dropdown .item_sel, #privacy_dropdown .item_sel_plus {
- 335. - padding: 1px 21px 3px 5px;
- 336. - background: #5e82a8;
- 337. - border: 1px solid #476D96;
- 338. - color: #FFF;
- 339. - margin: 0px -1px;
- 340. - }
- 341. - #privacy_dropdown .last.item_sel, #privacy_dropdown .last.item_sel_plus {
- 342. - border-bottom-color: #7C9ABA;
- 343. - }
- 344. - #privacy_dropdown .item_sel_plus {
- 345. - background: #5e82a8 url(/images/flydead.gif?1) no-repeat 100% -32px;
- 346. - }
- 347. - #privacy_dropdown .l_header {
- 348. - border: 1px solid #517295;
- 349. - border-bottom-color: #5C82AB;
- 350. - margin: -19px -1px 0px;
- 351. - }
- 352. - #privacy_dropdown .to_up .l_header {
- 353. - margin: 0px -1px -19px;
- 354. - }
- 355. - #privacy_dropdown #privacy_lists {
- 356. - position: relative;
- 357. - }
- 358. - #privacy_dropdown .l_header div {
- 359. - padding: 0px 16px 3px 4px;
- 360. - background: #5e82a8 url(/images/flydead.gif?1) no-repeat 100% -16px;
- 361. - border: 1px solid #5e82a8;
- 362. - border-bottom: 0px;
- 363. - color: #FFF;
- 364. - }
- 365. - #privacy_dropdown .to_up .l_header div {
- 366. - background-position: 100% -58px;
- 367. - }
- 368. - #privacy_dropdown .l_item, #privacy_dropdown .l_item_sel {
- 369. - padding: 3px 3px 3px 22px;
- 370. - background: #FFF;
- 371. - color: #2C587D;
- 372. - }
- 373. - #privacy_dropdown .l_item_sel {
- 374. - background: #FFF url(/images/dropdead_check.gif) no-repeat 4px 2px;
- 375. - }
- 376. - #privacy_dropdown .l_item:hover, #privacy_dropdown .l_item_sel:hover {
- 377. - background-color: #EEF2F6;
- 378. - }
- 379. -
- 380. - #privacy_custom_box .show_to {
- 381. - padding: 3px 0px;
- 382. - }
- 383. - #privacy_custom_box .header_mionus_friends {
- 384. - margin: 15px 0px 5px;
- 385. - }
- 386. - #privacy_custom_box .dropdown_wrap {
- 387. - padding: 5px 0px;
- 388. - }
- 389. - #privacy_custom_box h4 {
- 390. - border-bottom: 1px solid #DAE2E8;
- 391. - margin: 5px 0px;
- 392. - padding: 0px 0px 1px;
- 393. - }
- 394. - #privacy_custom_box .plus_friends, #privacy_custom_box .minus_friends {
- 395. - padding: 0px 0px 0px 20px;
- 396. - }
- 397. - #privacy_custom_box .plus_friends {
- 398. - background: url(/images/plus.gif) no-repeat 0px -3px;
- 399. - }
- 400. - #privacy_custom_box .minus_friends {
- 401. - background: url(/images/minus.gif) no-repeat 0px -1px;
- 402. - }
- 403. -
- 404. - #privacy_helper {
- 405. - /* position: absolute; */
- 406. - z-index: 1100;
- 407. - display: none;
- 408. - }
- 409. - .priv_h_top_sh {
- 410. - display: none;
- 411. - }
- 412. - .to_up .priv_h_top_sh {
- 413. - display: table-row;
- 414. - }
- 415. - * html .to_up .priv_h_top_sh {
- 416. - display: block;
- 417. - }
- 418. - .to_up .priv_h_bottom_sh {
- 419. - display: none;
- 420. - }
- 421. - .priv_h_bottom {
- 422. - background: #000;
- 423. - height: 1px;
- 424. - overflow: hidden;
- 425. - opacity: 0.1;
- 426. - filter: alpha(opacity=10);
- 427. - }
- 428. - .priv_h_bottom2 {
- 429. - background: #000;
- 430. - height: 1px;
- 431. - overflow: hidden;
- 432. - opacity: 0.05;
- 433. - filter: alpha(opacity=5);
- 434. - }
- 435. - .priv_h_side_td {
- 436. - background: #000;
- 437. - opacity: 0.1;
- 438. - filter: alpha(opacity=10);
- 439. - }
- 440. - .priv_h_side_td2 {
- 441. - background: #000;
- 442. - opacity: 0.05;
- 443. - filter: alpha(opacity=5);
- 444. - }
- 445. - .priv_h_side {
- 446. - width: 1px;
- 447. - }
- 448. - .priv_h_arrow_td {
- 449. - vertical-align: middle;
- 450. - }
- 451. - .priv_h_arrow {
- 452. - left: 3px;
- 453. - width: 8px;
- 454. - height: 11px;
- 455. - position: relative;
- 456. - overflow: hidden;
- 457. - z-index: 10;
- 458. - }
- 459. - .priv_h_arrow_l {
- 460. - left: -3px;
- 461. - width: 8px;
- 462. - height: 11px;
- 463. - position: relative;
- 464. - overflow: hidden;
- 465. - z-index: 10;
- 466. - }
- 467. - .priv_h_arrow_l .priv_h_arrow_img {
- 468. - margin-left: -8px;
- 469. - }
- 470. - .priv_h_rows {
- 471. - width: 242px;
- 472. - background: #FFF;
- 473. - border: 1px solid #AEBDCC;
- 474. - padding: 10px;
- 475. - }
- 476. -
- 477. - /* scrollbars */
- 478. - .scrollbar_cont {
- 479. - width: 9px;
- 480. - height: 100%;
- 481. - margin-top: 0px;
- 482. - position: absolute;
- 483. - background: rgba(200, 200, 200, 0);
- 484. - -webkit-transition: all 150ms linear;
- 485. - -moz-transition: all 150ms linear;
- 486. - -o-transition: all 150ms linear;
- 487. - transition: all 150ms linear;
- 488. - z-index: 1000;
- 489. - cursor: pointer;
- 490. - }
- 491. - .scrollbar_cont.scrollbar_c_overed {
- 492. - background: rgba(235, 235, 245, 0.4);
- 493. - width: 11px;
- 494. - }
- 495. - .scrollbar_inner {
- 496. - background: #DAE1E8;
- 497. - width: 6px;
- 498. - height: 26px;
- 499. - margin-left: 1px;
- 500. - -webkit-border-radius: 3px;
- 501. - -moz-border-radius: 3px;
- 502. - border-radius: 3px;
- 503. - cursor: pointer;
- 504. - -webkit-transition: width 150ms linear, background-color 200ms linear;
- 505. - -moz-transition: width 150ms linear, background-color 200ms linear;
- 506. - -o-transition: width 150ms linear, background-color 200ms linear;
- 507. - transition: width 150ms linear, background-color 200ms linear;
- 508. - }
- 509. - .scrollbar_c_overed .scrollbar_inner {
- 510. - width: 8px;
- 511. - -webkit-border-radius: 4px;
- 512. - -moz-border-radius: 4px;
- 513. - border-radius: 4px;
- 514. - }
- 515. - .scrollbar_inner:hover,
- 516. - .scrollbar_hovered {
- 517. - background: #BEC8D3;
- 518. - }
- 519. - .scrollbar_top {
- 520. - position: absolute;
- 521. - height: 3px;
- 522. - margin-top: -1px;
- 523. - background: #555555;
- 524. - opacity: 0.12;
- 525. - filter: alpha(opacity=12);
- 526. - display: none;
- 527. - }
- 528. - .scrollbar_bottom {
- 529. - position: absolute;
- 530. - height: 3px;
- 531. - margin-top: -2px;
- 532. - background: #555555;
- 533. - opacity: 0.12;
- 534. - filter: alpha(opacity=12);
- 535. - }
- 536. -
- 537. - /* New friends list */
- 538. - #box_layer .privacy_olist {
- 539. - overflow: auto;
- 540. - overflow-y: scroll;
- 541. - overflow-x: hidden;
- 542. - }
- 543. - .olist_item_wrap,
- 544. - .olist_item_wrap_over,
- 545. - .olist_item_wrap_on {
- 546. - display: block;
- 547. - line-height: 0;
- 548. - border: 1px solid #FFF;
- 549. - margin: 3px 5px 0 5px;
- 550. - zoom: 1;
- 551. - }
- 552. - .olist_item_wrap_over {
- 553. - background: #E1E8ED;
- 554. - border-color: #E1E8ED #E1E8ED #F4F4F4 #E1E8ED;
- 555. - }
- 556. - a.olist_item_wrap:hover,
- 557. - a.olist_item_wrap_over:hover,
- 558. - a.olist_item_wrap_on:hover {
- 559. - text-decoration: none ! important;
- 560. - }
- 561. - .olist_item_wrap_on {
- 562. - background: #6C8CAC;
- 563. - border-color: #537698;
- 564. - }
- 565. - .olist_item_wrap_on .olist_checkbox,
- 566. - .olist_item_wrap_over .olist_checkbox {
- 567. - display: block;
- 568. - width: 18px;
- 569. - height: 16px;
- 570. - margin: 13px 5px;
- 571. - background: url(/images/icons/check_follow.gif) 0 0 no-repeat;
- 572. - }
- 573. - .olist_item_wrap_over .olist_checkbox {
- 574. - background-position: 0 -16px;
- 575. - }
- 576. - .olist_item {
- 577. - height: 42px;
- 578. - padding: 4px;
- 579. - }
- 580. - span.olist_item_photo {
- 581. - display: block;
- 582. - border: 1px solid #FFF;
- 583. - }
- 584. - .olist_item_wrap_over span.olist_item_photo {
- 585. - border-color: #E1E8ED;
- 586. - }
- 587. - .olist_item_wrap_on span.olist_item_photo {
- 588. - border-color: #537698;
- 589. - }
- 590. - img.olist_item_photo {
- 591. - display: block;
- 592. - overflow: hidden;
- 593. - height: 40px;
- 594. - width: 40px;
- 595. - }
- 596. - .olist_ignored .olist_item {
- 597. - position: relative;
- 598. - }
- 599. - .olist_item_name,
- 600. - .olist_item_over_label,
- 601. - .olist_item_on_label {
- 602. - white-space: nowrap;
- 603. - line-height: 40px;
- 604. - -o-text-overflow: ellipsis;
- 605. - text-overflow: ellipsis;
- 606. - }
- 607. - .olist_item_over_label,
- 608. - .olist_item_on_label {
- 609. - position: absolute;
- 610. - margin: 1px 7px;
- 611. - right: 4px;
- 612. - top: 4px;
- 613. - display: none;
- 614. - color: #FFF;
- 615. - }
- 616. - .olist_item_name {
- 617. - display: block;
- 618. - font-weight: bold;
- 619. - color: #2D5979;
- 620. - overflow: hidden;
- 621. - width: 200px;
- 622. - height: 40px;
- 623. - margin: 1px 10px;
- 624. - }
- 625. -
- 626. - .olist_item_wrap_on .olist_item_name {
- 627. - color: #FFF;
- 628. - }
- 629. - .olist_item_wrap_over .olist_item_over_label {
- 630. - display: block;
- 631. - color: #2D5979;
- 632. - }
- 633. - .olist_item_wrap_on .olist_item_on_label {
- 634. - display: block;
- 635. - }
- 636. - .olist_item_loading .olist_item_on_label,
- 637. - .olist_item_loading .olist_item_over_label {
- 638. - display: none;
- 639. - }
- 640. - .olist_ignored {
- 641. - padding-top: 5px;
- 642. - }
- 643. - .olist_ignored .olist_checkbox {
- 644. - display: none;
- 645. - }
- 646. - .olist_item_loading .olist_item {
- 647. - background-image: url(/images/upload.gif);
- 648. - background-position: 98% 50%;
- 649. - background-repeat: no-repeat;
- 650. - }
- 651. - .olist_item_wrap_on.olist_item_loading .olist_item {
- 652. - background-image: url(/images/upload_inv.gif);
- 653. - }
- 654. -
- 655. - .olist_item_wrap em,
- 656. - .olist_item_wrap_on em,
- 657. - .olist_item_wrap_over em {
- 658. - background-color: #D8DFEA;
- 659. - font-style: normal;
- 660. - font-weight: bold;
- 661. - text-decoration: inherit;
- 662. - }
- 663. -
- 664. - .olist_item_wrap_on em {
- 665. - background-color: #2F5C86;
- 666. - }
- 667. -
- 668. - .olist_item_wrap_over em {
- 669. - background-color: #C0C7D2;
- 670. - }
- 671. -
- 672. - .olist_empty {
- 673. - background-color: #FFF;
- 674. - color: #777777;
- 675. - font-size: 13px;
- 676. - text-align: center;
- 677. - padding: 103px 0px 90px 0px;
- 678. - margin: 10px 10px 12px 10px;
- 679. - overflow: hidden;
- 680. - text-overflow: ellipsis;
- 681. - }
- 682. - .olist_actions {
- 683. - padding: 12px 10px;
- 684. - }
- 685. - .olist_filter_wrap {
- 686. - padding: 10px;
- 687. - background: #F7F7F7;
- 688. - }
- 689. - .olist_actions .olist_filter_wrap {
- 690. - padding: 0;
- 691. - background: none;
- 692. - }
- 693. - input.olist_filter {
- 694. - margin: 0;
- 695. - padding: 5px 4px 4px 20px;
- 696. - height: 14px;
- 697. - width: 143px;
- 698. - line-height: 1.27em;
- 699. - background: #FFF url(/images/magglass.png) no-repeat 5px 6px;
- 700. - outline: none;
- 701. - }
- 702. - .olist_actions .olist_filter {
- 703. - border-left-width: 0;
- 704. - width: 143px;
- 705. - }
- 706. - .olist_reposts_toggler {
- 707. - padding: 6px 0 0 10px;
- 708. - }
- 709. - .olist_actions .olist_reposts_toggler {
- 710. - display: none;
- 711. - }
- 712. - #olist_all,
- 713. - #olist_unsorted,
- 714. - #olist_selected,
- 715. - #olist_unselected {
- 716. - color: #A6B5C6;
- 717. - padding-left: 4px;
- 718. - }
- 719. - .summary_tab_sel #olist_all,
- 720. - .summary_tab_sel #olist_unsorted,
- 721. - .summary_tab_sel #olist_selected,
- 722. - .summary_tab_sel #olist_unselected {
- 723. - color: #FFF;
- 724. - }
- 725. - #olist_blacklisted {
- 726. - color: #A6B5C6;
- 727. - font-weight: bold;
- 728. - padding-left: 4px;
- 729. - }
- 730. -
- 731. - div.olist_select_wrap .button_blue {
- 732. - vertical-align: top;
- 733. - }
- 734. - div.olist_select_wrap button {
- 735. - width: 42px;
- 736. - height: 25px;
- 737. - line-height: 6px;
- 738. - -webkit-border-bottom-right-radius: 0;
- 739. - -webkit-border-top-right-radius: 0;
- 740. - -khtml-border-bottom-right-radius: 0;
- 741. - -khtml-border-top-right-radius: 0;
- 742. - -moz-border-bottom-right-radius: 0;
- 743. - -moz-border-top-right-radius: 0;
- 744. - border-bottom-right-radius: 0;
- 745. - border-top-right-radius: 0;
- 746. - }
- 747. - div.olist_select_wrap img {
- 748. - position: relative;
- 749. - top: -1px;
- 750. - }
- 751. - .olist_dd_over {
- 752. - display: inline-block;
- 753. - *display: inline;
- 754. - zoom: 1;
- 755. - background: url(/images/darr_dd_over.gif) no-repeat;
- 756. - width: 7px;
- 757. - height: 4px;
- 758. - position: relative;
- 759. - top: -1px;
- 760. - }
- 761. - .olist_ignored_actions {
- 762. - display: none;
- 763. - }
- 764. - .dd_menu_olist_act .dd_menu_header {
- 765. - -webkit-border-radius: 2px 0 0 2px;
- 766. - -khtml-border-radius: 2px 0 0 2px;
- 767. - -moz-border-radius: 2px 0 0 2px;
- 768. - border-radius: 2px 0 0 2px;
- 769. - }
- 770. - .dd_menu_olist_act .dd_menu_header div {
- 771. - border-color: #6D8FB3;
- 772. - width: 37px;
- 773. - text-align: center;
- 774. - height: 11px;
- 775. - line-height: 6px;
- 776. - background-image: none;
- 777. - padding: 7px 1px 3px 0px;
- 778. - margin: 0;
- 779. - }
- 780. - .dd_menu_olist_act .dd_menu_header .olist_dd_over {
- 781. - margin-top: 2px;
- 782. - }
- 783. -
- 784. - a.olist_more {
- 785. - padding: 10px 0px;
- 786. - text-align: center;
- 787. - border-top: 1px solid #DAE1E8;
- 788. - margin: 5px 5px 0;
- 789. - display: block;
- 790. - }
- 791. - a.olist_more:hover {
- 792. - text-decoration: none;
- 793. - background: #E9EDF1;
- 794. - }
- 795. - a.olist_controls_ignored {
- 796. - padding: 3px 0;
- 797. - color: #45688E;
- 798. - font-weight: bold;
- 799. - }
- 800. - a.olist_controls_ignored:hover {
- 801. - text-decoration: none;
- 802. - }
- ------
- Файл - widget_comments.css (Старый размер - 32370 | Новый - 0):
- 0. - #widget_comments_css {
- 1. - display: none;
- 2. - }
- 3. -
- 4. -
- 5. - /* Global wall styles (from page.css) */
- 6. - .wide_column {
- 7. - padding-bottom: 10px;
- 8. - width: 397px;
- 9. - }
- 10. -
- 11. - .narrow_column {
- 12. - padding-bottom: 10px;
- 13. - width: 200px;
- 14. - }
- 15. -
- 16. - .wall_module .more_link {
- 17. - display: none;
- 18. - padding: 8px 0px;
- 19. - text-align: center;
- 20. - border-top: 1px solid #DAE1E8;
- 21. - margin-bottom: 10px;
- 22. - }
- 23. - .wall_module .module_header span.fl_r {
- 24. - color: #2B587A;
- 25. - }
- 26. - .wall_module .module_header span.fl_r:hover {
- 27. - text-decoration: underline;
- 28. - }
- 29. - .wall_module #page_wall_posts_count {
- 30. - color: #99ADC2;
- 31. - font-weight: bold;
- 32. - padding: 0px 5px;
- 33. - }
- 34. - .wall_module #page_wall_posts_count:hover {
- 35. - text-decoration: underline;
- 36. - }
- 37. - .wall_module .more_link:hover {
- 38. - text-decoration: none;
- 39. - background: #E9EDF1;
- 40. - }
- 41. - .wall_module .more_link .progress {
- 42. - margin: 0px auto;
- 43. - }
- 44. - .wall_module .more_link div {
- 45. - height: 13px;
- 46. - }
- 47. - .wall_module .ext_video img {
- 48. - width: 120px;
- 49. - height: 90px;
- 50. - }
- 51. - div.wall_module .ext_video div {
- 52. - width: 120px;
- 53. - margin-top: 75px;
- 54. - }
- 55. - .wall_module .video div {
- 56. - bottom: 5px;
- 57. - right: 0px;
- 58. - position: absolute;
- 59. - font-size: 0.9em;
- 60. - z-index: 10;
- 61. - }
- 62. - .wall_module .video div span.bg {
- 63. - background: #000;
- 64. - color: #000;
- 65. - opacity: 0.6;
- 66. - filter: alpha(opacity=60);
- 67. - }
- 68. - .wall_module .video div span {
- 69. - color: #FFF;
- 70. - padding: 0px 3px 1px;
- 71. - }
- 72. -
- 73. - /* Posts */
- 74. - .wall_module .post {
- 75. - padding: 3px 0;
- 76. - border-top: 1px solid #DAE1E8;
- 77. - *position: relative;
- 78. - }
- 79. - .wall_module .post:first-child {
- 80. - border-top: none;
- 81. - }
- 82. - /* Actions */
- 83. - .wall_module .delete_post_wrap {
- 84. - position: relative;
- 85. - z-index: 10;
- 86. - }
- 87. - .wall_module .delete_post {
- 88. - height: 13px;
- 89. - width: 17px;
- 90. - padding-top: 4px;
- 91. - }
- 92. - .wall_module .delete_post div {
- 93. - background: url(/images/pics/statusx_op.gif) no-repeat;
- 94. - opacity: 0;
- 95. - filter: alpha(opacity=0);
- 96. - cursor: pointer;
- 97. - height: 17px;
- 98. - width: 17px;
- 99. - }
- 100. -
- 101. - .wall_module .post_actions_wrap,
- 102. - .wall_module .reply_actions_wrap {
- 103. - position: relative;
- 104. - z-index: 10;
- 105. - }
- 106. - .wall_module .post_actions,
- 107. - .wall_module .reply_actions {
- 108. - height: 11px;
- 109. - width: 32px;
- 110. - padding-top: 4px;
- 111. - position: absolute;
- 112. - right: 0;
- 113. - }
- 114. - .wall_module .post_delete_button,
- 115. - .wall_module .post_edit_button,
- 116. - .wall_module .reply_delete_button,
- 117. - .wall_module .reply_edit_button {
- 118. - background: url(/images/pics/statusx_op.gif) 0 0 no-repeat;
- 119. - opacity: 0;
- 120. - filter: alpha(opacity=0);
- 121. - cursor: pointer;
- 122. - height: 11px;
- 123. - width: 11px;
- 124. - margin-left: 5px;
- 125. - }
- 126. - .wall_module .reply_edit_button,
- 127. - .wall_module .post_edit_button {
- 128. - display: none;
- 129. - background-image: url(/images/pics/statusedit.gif);
- 130. - }
- 131. -
- 132. -
- 133. - .wall_module div.post_image {
- 134. - position: absolute;
- 135. - *left: 0;
- 136. - padding: 5px 0;
- 137. - width: 50px;
- 138. - }
- 139. - .wall_module a.post_image {
- 140. - width: 50px;
- 141. - height: 50px;
- 142. - display: block;
- 143. - }
- 144. - #wcomments_page .wall_module .post_info {
- 145. - margin-left: 65px;
- 146. - padding: 0 0 2px;
- 147. - *position: relative;
- 148. - width: auto;
- 149. - }
- 150. - .wall_module .dld {
- 151. - color: #777;
- 152. - padding: 5px 60px 8px;
- 153. - }
- 154. - .wall_module .reply .dld {
- 155. - padding: 11px 4px 12px 41px;
- 156. - }
- 157. - .wide_wall_module .reply .dld {
- 158. - padding: 11px 4px 12px 64px;
- 159. - }
- 160. - .wall_module .author {
- 161. - font-weight: bold;
- 162. - line-height: 140%;
- 163. - }
- 164. - .wall_module .published_by_wrap {
- 165. - margin: 7px 0 5px;
- 166. - }
- 167. - .wall_module a.published_by_photo {
- 168. - display: block;
- 169. - width: 30px;
- 170. - height: 30px;
- 171. - margin-right: 8px;
- 172. - }
- 173. - .wall_module .published_by {
- 174. - padding-left: 12px;
- 175. - background: url(/images/icons/published.gif) no-repeat 0px 3px;
- 176. - font-weight: bold;
- 177. - }
- 178. - .wall_module div.published_by_date {
- 179. - padding-top: 4px;
- 180. - }
- 181. - .wall_module .published_by_date, .wall_module .wall_post_source {
- 182. - color: #777;
- 183. - }
- 184. -
- 185. - #submit_post_box_wrap {
- 186. - padding: 10px;
- 187. - background: #F7F7F7;
- 188. - }
- 189. - .wall_module #submit_post_box {
- 190. - padding: 8px;
- 191. - background: #F7F7F7;
- 192. - border-top: 1px solid #d8dfe5;
- 193. - }
- 194. - .wall_module #submit_post_box textarea {
- 195. - overflow: hidden;
- 196. - outline: none;
- 197. - width: 372px;
- 198. - height: 14px;
- 199. - resize: none;
- 200. - }
- 201. - .wall_module #submit_post {
- 202. - display: none;
- 203. - padding-top: 8px;
- 204. - }
- 205. - .wall_module #submit_post .progress.fl_r {
- 206. - margin: 6px 8px 0px;
- 207. - }
- 208. - .wall_module #submit_post .checkbox,
- 209. - .wall_module #submit_post .checkbox_pic {
- 210. - margin: 6px 0 0px 10px;
- 211. - }
- 212. - .wall_module td {
- 213. - vertical-align: top;
- 214. - }
- 215. - .wall_module .online {
- 216. - display: block;
- 217. - width: 50px;
- 218. - text-align: center;
- 219. - padding-top: 5px;
- 220. - color: #AAA;
- 221. - }
- 222. -
- 223. - .wall_post_over .wall_post_text,
- 224. - .wall_post_over .post_media,
- 225. - .wall_post_over .explain,
- 226. - .wall_post_over .group_share,
- 227. - .wall_post_over .public_share,
- 228. - .wall_post_over .event_share {
- 229. - cursor: pointer;
- 230. - }
- 231. -
- 232. - .wall_post_text,
- 233. - .wall_reply_text {
- 234. - padding-top: 2px;
- 235. - line-height: 130%;
- 236. - }
- 237. - .wall_post_text {
- 238. - overflow: hidden;
- 239. - word-wrap: break-word;
- 240. - }
- 241. - .wall_post_more,
- 242. - .wall_reply_more,
- 243. - .wall_module .reply_show_whole {
- 244. - position: relative;
- 245. - top: 2px;
- 246. - font-weight: bold;
- 247. - color: #91A4B8;
- 248. - -webkit-transition: color 200ms linear;
- 249. - -moz-transition: color 200ms linear;
- 250. - -o-transition: color 200ms linear;
- 251. - transition: color 200ms linear;
- 252. - }
- 253. - .wall_post_text:hover .wall_post_more,
- 254. - .wall_reply_text:hover .wall_reply_more,
- 255. - .wall_post_more:hover, .wall_reply_more:hover {
- 256. - color: #45688E;
- 257. - text-decoration: none;
- 258. - }
- 259. - #wcomments_page .wall_text {
- 260. - width: auto;
- 261. - padding: 5px 0px 0px;
- 262. - position: relative;
- 263. - margin: 0px;
- 264. - }
- 265. - .wall_text .explain {
- 266. - color: #777;
- 267. - line-height: 140%;
- 268. - }
- 269. - .wall_module .audio .info {
- 270. - padding: 2px;
- 271. - width: 100%;
- 272. - }
- 273. -
- 274. - /* Likes */
- 275. - .wall_module .like_wrap {
- 276. - margin: 4px 1px 8px;
- 277. - color: #2F5879;
- 278. - font-size: 0.9em;
- 279. - cursor: pointer;
- 280. - }
- 281. - .wall_module .reply .like_wrap {
- 282. - margin: 0 1px 0 0;
- 283. - }
- 284. - .fw_reply .like_wrap {
- 285. - margin: 0 1px 0 0;
- 286. - color: #2F5879;
- 287. - font-size: 1em;
- 288. - cursor: pointer;
- 289. - }
- 290. - .wall_module .like_link, .wall_module .no_likes {
- 291. - visibility: hidden;
- 292. - opacity: 0;
- 293. - filter: alpha(opacity=0);
- 294. - }
- 295. - .wall_module .reply .like_link, .fw_reply .like_link {
- 296. - cursor: pointer;
- 297. - color: #2F5879;
- 298. - visibility: visible;
- 299. - opacity: 1;
- 300. - filter: none;
- 301. - }
- 302. -
- 303. - .wall_module .one .like_link {
- 304. - visibility: visible;
- 305. - opacity: 1;
- 306. - filter: none;
- 307. - }
- 308. - .wall_module .one .no_likes {
- 309. - visibility: visible;
- 310. - }
- 311. - .wall_module .like_wrap i {
- 312. - display: block;
- 313. - background: url(/images/icons/like.gif?1) no-repeat 1px 0px;
- 314. - height: 10px;
- 315. - margin: 3px 3px 0px;
- 316. - opacity: 0.4;
- 317. - filter: alpha(opacity=40);
- 318. - width: 11px;
- 319. - }
- 320. -
- 321. - .wall_module .like_wrap i.my_like,
- 322. - .fw_reply .like_wrap i.my_like {
- 323. - opacity: 1;
- 324. - filter: none;
- 325. - }
- 326. - .wall_module .like_wrap i.no_likes {
- 327. - margin-right: 0px;
- 328. - }
- 329. - .wall_module .like_count, .fw_reply .like_count {
- 330. - font-weight: bold;
- 331. - color: #7295b2;
- 332. - margin-right: 3px;
- 333. - }
- 334. - .wall_module .fw_like_count {
- 335. - color: #7295b2;
- 336. - font-weight: bold;
- 337. - }
- 338. -
- 339. - /* Replies */
- 340. - .wall_module .reply_link_wrap {
- 341. - padding-top: 4px;
- 342. - padding-bottom: 8px;
- 343. - font-size: 0.9em;
- 344. - }
- 345. - .wall_module .reply_link_wrap small, .wall_module .reply_link_wrap small a {
- 346. - color: #999;
- 347. - font-size: 1em;
- 348. - }
- 349. -
- 350. - /* Replies header link */
- 351. - .wrh_text {
- 352. - text-align: center;
- 353. - }
- 354. - .wrh_prg {
- 355. - margin: 0px auto;
- 356. - }
- 357. - .wr_header {
- 358. - display: block;
- 359. - cursor: pointer;
- 360. - color: #6A7989;
- 361. - background: #E9EDF1;
- 362. - height: 13px;
- 363. - padding: 9px 0px 8px;
- 364. - }
- 365. - .wr_header:hover {
- 366. - text-decoration: none;
- 367. - }
- 368. - .wrh_all {
- 369. - background: #FFF;
- 370. - color: #777;
- 371. - }
- 372. - .wrh_all:hover {
- 373. - background: #E9EDF1;
- 374. - color: #6A7989;
- 375. - }
- 376. - .wd_lnk {
- 377. - color: #999;
- 378. - }
- 379. - .wall_module .replies_wrap {
- 380. - padding-top: 2px;
- 381. - margin-bottom: 6px;
- 382. - position: relative;
- 383. - }
- 384. - /* Reply */
- 385. - .wall_module .reply {
- 386. - background: #FFF;
- 387. - border-top: 1px solid #E9EDF1;
- 388. - padding: 6px 0px;
- 389. - position: relative;
- 390. - }
- 391. - .wall_module .reply .delete_post {
- 392. - padding-top: 2px;
- 393. - }
- 394. - .wall_module a.reply_image {
- 395. - width: 32px;
- 396. - height: 32px;
- 397. - margin: 2px 0;
- 398. - display: block;
- 399. - overflow: hidden;
- 400. - position: absolute;
- 401. - *left: 0;
- 402. - }
- 403. - .wall_module img.reply_image {
- 404. - width: 32px;
- 405. - height: 32px;
- 406. - }
- 407. - .wall_module .reply .author {
- 408. - padding-right: 3px;
- 409. - font-weight: normal;
- 410. - }
- 411. - .wall_module .reply_text {
- 412. - word-wrap: break-word;
- 413. - overflow: hidden;
- 414. - max-width: 293px;
- 415. - }
- 416. - .wall_module .reply_info {
- 417. - margin-left: 39px;
- 418. - *position: relative;
- 419. - }
- 420. - .wall_module .info_footer {
- 421. - font-size: 0.9em;
- 422. - color: #999;
- 423. - padding: 4px 0 0;
- 424. - }
- 425. - .wall_module .reply_to {
- 426. - color: #999;
- 427. - }
- 428. - /* Reply form */
- 429. - .wall_module .reply_fakebox_wrap {
- 430. - background: #F1F1F1;
- 431. - padding: 6px;
- 432. - }
- 433. - .wall_module .reply_fakebox {
- 434. - cursor: text;
- 435. - background: white;
- 436. - border: 1px solid #C0CAD5;
- 437. - padding: 3px 5px;
- 438. - color: #777;
- 439. - }
- 440. - .reply_field_wrap {
- 441. - padding: 3px;
- 442. - background: #FFF;
- 443. - border: 1px solid #C0CAD5;
- 444. - }
- 445. - .reply_field {
- 446. - padding: 0;
- 447. - border: 0;
- 448. - overflow: hidden;
- 449. - height: 14px;
- 450. - outline: 0;
- 451. - margin: 0px;
- 452. - width: 100%;
- 453. - resize: none;
- 454. - height: 14px;
- 455. - }
- 456. - .reply_field_tail {
- 457. - display: none;
- 458. - width: 5px;
- 459. - height: 9px;
- 460. - background: url(/images/icons/feedback_iconset.gif?4) 0 -155px no-repeat;
- 461. - position: absolute;
- 462. - margin-left: -8px;
- 463. - margin-top: 8px;
- 464. - }
- 465. - .wall_module .reply_box {
- 466. - background: #F1F1F1;
- 467. - padding: 6px;
- 468. - *position: relative;
- 469. - clear: both;
- 470. - }
- 471. - .wall_module a.reply_form_image {
- 472. - display: none;
- 473. - width: 32px;
- 474. - height: 32px;
- 475. - overflow: hidden;
- 476. - position: absolute;
- 477. - *left: 6px;
- 478. - }
- 479. - .wall_module .reply_form {
- 480. - zoom: 1;
- 481. - }
- 482. - .wall_module .reply_form_img {
- 483. - width: 32px;
- 484. - height: 32px;
- 485. - }
- 486. - .wall_module .submit_reply {
- 487. - display: none;
- 488. - padding-top: 6px;
- 489. - height: 25px;
- 490. - }
- 491. - .wall_module .reply_as_group_wrap {
- 492. - padding: 6px 0 0 5px;
- 493. - display: none;
- 494. - }
- 495. - .wall_module .reply_as_group_active {
- 496. - display: block;
- 497. - }
- 498. - .reply_button_wrap {
- 499. - padding-right: 5px;
- 500. - zoom: 1;
- 501. - *position: relative;
- 502. - }
- 503. - .wall_module .reply_button_wrap button {
- 504. - padding: 3px 14px;
- 505. - }
- 506. - .wall_module .reply_box_open .reply_form {
- 507. - margin-left: 38px;
- 508. - }
- 509. - .wall_module .reply_hint {
- 510. - padding: 6px 0 0px 5px;
- 511. - overflow: hidden;
- 512. - -o-text-overflow: ellipsis;
- 513. - text-overflow: ellipsis;
- 514. - position: relative;
- 515. - }
- 516. - .wall_module .reply_hint_text {
- 517. - color: #777;
- 518. - cursor: default;
- 519. - white-space: nowrap;
- 520. - overflow: hidden;
- 521. - -o-text-overflow: ellipsis;
- 522. - text-overflow: ellipsis;
- 523. - }
- 524. - .wall_module .reply_box_open .reply_box {
- 525. - margin-left: -6px;
- 526. - }
- 527. - .wall_module .reply_to_title {
- 528. - display: none;
- 529. - padding: 6px 5px 0px;
- 530. - }
- 531. -
- 532. - .reply_multiline_tt_point {
- 533. - position: absolute;
- 534. - width: 1px;
- 535. - height: 1px;
- 536. - }
- 537. - .wall_module .reply_box_open .replies_wrap,
- 538. - .wall_module .reply_box_open .submit_reply,
- 539. - .wall_module .reply_box_open a.reply_form_image,
- 540. - .reply_box_open .reply_field_tail {
- 541. - display: block;
- 542. - }
- 543. - .wall_module .reply_box_open .reply_link {
- 544. - display: none;
- 545. - }
- 546. - .wall_module #post_warn,
- 547. - .wall_module .reply_warn {
- 548. - display: none;
- 549. - padding-top: 5px;
- 550. - color: #777;
- 551. - }
- 552. - /* Reply submit hint */
- 553. - .reply_submit_hint_wrap {
- 554. - width: 210px;
- 555. - height: 110px;
- 556. - padding: 8px 5px 8px;
- 557. - }
- 558. - .reply_submit_hint_title {
- 559. - color: #2A5779;
- 560. - font-weight: bold;
- 561. - padding-bottom: 2px;
- 562. - }
- 563. - #reply_submit_hint_opts .radiobtn {
- 564. - color: #000;
- 565. - padding-top: 10px;
- 566. - padding-bottom: 5px;
- 567. - line-height: 160%;
- 568. - }
- 569. - #reply_submit_hint_opts .radiobtn div {
- 570. - margin: 2px 5px 6px 0;
- 571. - }
- 572. -
- 573. -
- 574. -
- 575. -
- 576. - .wall_module #post_warn,
- 577. - .wall_module .reply_warn {
- 578. - display: none;
- 579. - padding-top: 5px;
- 580. - color: #777;
- 581. - }
- 582. - .wall_module .post_media {
- 583. - padding-top: 7px;
- 584. - }
- 585. - .wall_module .graffiti img {
- 586. - width: 200px;
- 587. - height: 100px;
- 588. - }
- 589. - .wall_module .photo img {
- 590. - vertical-align: top;
- 591. - max-height: 150px;
- 592. - overflow: hidden;
- 593. - }
- 594. - span.post_video_title {
- 595. - font-weight: bold;
- 596. - }
- 597. - span.post_video_duration {
- 598. - font-weight: bold;
- 599. - color: #000;
- 600. - }
- 601. - .wall_module .video {
- 602. - display: block;
- 603. - position: relative;
- 604. - }
- 605. - .wall_module .video:hover {
- 606. - text-decoration: none;
- 607. - }
- 608. - .wall_module .app img.icon {
- 609. - padding: 4px 5px 0px 0px;
- 610. - vertical-align: bottom;
- 611. - }
- 612. - .wall_module .app img.thumb {
- 613. - max-width: 75px;
- 614. - max-height: 75px;
- 615. - margin: 3px 6px 3px 0px;
- 616. - vertical-align: middle;
- 617. - }
- 618. - .wall_module .mention_rich_ta {
- 619. - background: #FFF;
- 620. - padding: 3px;
- 621. - border: 1px solid #C0CAD5;
- 622. - outline: none;
- 623. - overflow-x: hidden;
- 624. - line-height: normal;
- 625. - }
- 626. - .wall_module .mini_editor_cont {
- 627. - display: none;
- 628. - position: relative;
- 629. - z-index: 102;
- 630. - }
- 631. - .wall_module .mention_rich_ta a {
- 632. - color: #2B587A !important;
- 633. - cursor: text !important;
- 634. - text-decoration: none !important;
- 635. - }
- 636. - .wall_module .mention_rich_ta p {
- 637. - font-family: tahoma, verdana, arial, sans-serif, Lucida Sans;
- 638. - font-size: 1em;
- 639. - padding:0px;
- 640. - margin: 0;
- 641. - line-height: normal;
- 642. - }
- 643. - .wall_module .mini_editor_cont .selector_container .result_list {
- 644. - display: none;
- 645. - }
- 646. - #wcomments_form #page_add_media {
- 647. - padding: 6px 20px 0;
- 648. - }
- 649. - #page_no_wall {
- 650. - padding: 15px;
- 651. - border-top: 1px solid #CCD3DA;
- 652. - font-size: 1.09em;
- 653. - color: #777;
- 654. - text-align: center;
- 655. - }
- 656. -
- 657. - .add_media_rows {
- 658. - -webkit-border-radius: 2px;
- 659. - -khtml-border-radius: 2px;
- 660. - -moz-border-radius: 2px;
- 661. - border-radius: 2px;
- 662. - -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.35);
- 663. - -moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.35);
- 664. - box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.35);
- 665. - background: #FFF;
- 666. - border: 1px solid #B2BDCA;
- 667. - position: static;
- 668. - margin: 0px -20px;
- 669. - }
- 670. - .add_media_head {
- 671. - background: #EDF1F5;
- 672. - padding: 7px 27px;
- 673. - color: #2B587A;
- 674. - }
- 675. - .add_media_menu {
- 676. - /* position: absolute; is in js*/
- 677. - display: none;
- 678. - cursor: default;
- 679. - z-index: 1005;
- 680. - }
- 681. - .add_media_item {
- 682. - padding: 6px 10px 2px 27px;
- 683. - display: block;
- 684. - height: 18px;
- 685. - position: relative;
- 686. - background: #FFF no-repeat;
- 687. - }
- 688. - .add_media_item:last-child,
- 689. - .add_media_head:last-child,
- 690. - .add_media_more_wrap a.add_media_more {
- 691. - -webkit-border-radius: 0px 0px 2px 2px;
- 692. - -khtml-border-radius: 0px 0px 2px 2px;
- 693. - -moz-border-radius: 0px 0px 2px 2px;
- 694. - border-radius: 0px 0px 2px 2px;
- 695. - }
- 696. - .add_media_item:first-child,
- 697. - .add_media_head:first-child,
- 698. - .add_media_rev .add_media_more_wrap a.add_media_more {
- 699. - -webkit-border-radius: 2px 2px 0px 0px;
- 700. - -khtml-border-radius: 2px 2px 0px 0px;
- 701. - -moz-border-radius: 2px 2px 0px 0px;
- 702. - border-radius: 2px 2px 0px 0px;
- 703. - }
- 704. - .add_media_item:hover {
- 705. - text-decoration: none;
- 706. - background-color: #e1e7ed;
- 707. - }
- 708. - .add_media_menu .rows {
- 709. - margin: 0px;
- 710. - position: relative;
- 711. - *position: static;
- 712. - z-index: 1006;
- 713. - }
- 714. - .media_preview {
- 715. - margin-bottom: 8px;
- 716. - display: none;
- 717. - }
- 718. - .media_preview .audio {
- 719. - padding-top: 4px;
- 720. - }
- 721. -
- 722. - .media_preview .x {
- 723. - cursor: pointer;
- 724. - margin: 4px 5px 0px;
- 725. - background: url(/images/pics/statusx_op.gif) no-repeat 0 0;
- 726. - opacity: 0.6;
- 727. - filter: alpha(opacity=60);
- 728. - height: 11px;
- 729. - width: 11px;
- 730. - }
- 731. - .media_preview .x:hover {
- 732. - opacity: 1;
- 733. - filter: none;
- 734. - }
- 735. - .media_preview .graffiti {
- 736. - width: 100px;
- 737. - height: 50px;
- 738. - }
- 739. - .media_preview .audio img,
- 740. - .media_preview .app img {
- 741. - padding-top: 3px;
- 742. - }
- 743. - .media_preview .audio span,
- 744. - .media_preview .app span {
- 745. - padding: 0px 6px;
- 746. - position: relative;
- 747. - top: -1px;
- 748. - }
- 749. - .media_audio_icon {
- 750. - float: left;
- 751. - background: url(/images/icons/mono_iconset.gif?8) no-repeat 0 -222px;
- 752. - width: 11px;
- 753. - height: 11px;
- 754. - margin: 0px 3px;
- 755. - }
- 756. - .media_preview .share, .media_preview .poll {
- 757. - padding-top: 3px;
- 758. - color: #555;
- 759. - }
- 760. - .media_preview .share b, .media_preview .poll b, .media_desc b {
- 761. - width: 15px;
- 762. - height: 10px;
- 763. - margin-top: 2px;
- 764. - background: url(/images/icons/mono_iconset.gif?8) no-repeat left -237px;
- 765. - }
- 766. - .media_desc b.topic {
- 767. - background: url(/images/icons/mono_iconset.gif?8) no-repeat 0 -90px;
- 768. - }
- 769. - .media_desc b.group {
- 770. - background: url(/images/icons/mono_iconset.gif?8) no-repeat 0 -45px;
- 771. - height: 12px;
- 772. - }
- 773. - .media_preview .poll b {
- 774. - background-position: left -208px;
- 775. - }
- 776. - .share_preview .content, .poll_preview .content {
- 777. - background: #FFF;
- 778. - padding: 5px;
- 779. - border: 1px solid #C0CAD5;
- 780. - }
- 781. - .share_preview .progress {
- 782. - display: block;
- 783. - margin: 0px auto;
- 784. - }
- 785. - .share_preview img {
- 786. - padding: 5px 10px 5px 5px;
- 787. - }
- 788. - .share_preview .header {
- 789. - margin: 0px;
- 790. - padding: 5px;
- 791. - border: 0px;
- 792. - font-size: 1em;
- 793. - }
- 794. - .share_preview .descr {
- 795. - padding: 0px 5px 5px;
- 796. - }
- 797. - .share_preview .bottom_pointer, .poll_preview .bottom_pointer {
- 798. - background: url(/images/tooltip_arrow_down_w.gif) no-repeat 0px 0px;
- 799. - width: 11px;
- 800. - height: 7px;
- 801. - position: relative;
- 802. - top: -2px;
- 803. - margin: 0px 50px 1px;
- 804. - overflow: hidden;
- 805. - }
- 806. - .poll_preview .content {
- 807. - overflow: hidden;
- 808. - padding: 10px 10px 2px;
- 809. - }
- 810. - .poll_preview .label {
- 811. - width: 100px;
- 812. - padding: 4px 10px 0px;
- 813. - color: #777;
- 814. - }
- 815. - .poll_preview .labeled {
- 816. - width: 239px;
- 817. - }
- 818. - .poll span span {
- 819. - color: #2B587A;
- 820. - }
- 821. - .poll_preview input {
- 822. - margin-bottom: 8px;
- 823. - position: relative;
- 824. - width: 231px;
- 825. - }
- 826. - .poll_preview nobr {
- 827. - font-size: 0.9em;
- 828. - text-transform: lowercase;
- 829. - }
- 830. - .poll_preview a.disabled {
- 831. - cursor: default;
- 832. - color: #777;
- 833. - }
- 834. - .poll_preview a.disabled:hover {
- 835. - text-decoration: none;
- 836. - }
- 837. - .media_desc {
- 838. - padding: 5px 0px 1px;
- 839. - }
- 840. - .wall_module .post_media .media_desc {
- 841. - padding-top: 8px;
- 842. - clear: both;
- 843. - }
- 844. - .media_desc .lnk {
- 845. - color: #777;
- 846. - cursor: pointer;
- 847. - }
- 848. - .media_desc .lnk:hover {
- 849. - text-decoration: none;
- 850. - }
- 851. - .media_desc .a {
- 852. - color: #2b587a;
- 853. - }
- 854. - .media_desc .lnk:hover .a {
- 855. - text-decoration: underline;
- 856. - }
- 857. - .media_desc .comment {
- 858. - background-position: 0px -194px;
- 859. - }
- 860. - .media_desc .note {
- 861. - background-position: 0px -150px;
- 862. - }
- 863. - .media_desc .poll {
- 864. - background-position: 0px -208px;
- 865. - }
- 866. - .media_desc .app {
- 867. - background-position: 0px -60px;
- 868. - }
- 869. - .media_desc .checkin {
- 870. - background-position: 0px -165px;
- 871. - }
- 872. - .media_desc .donation {
- 873. - background-position: 0px -179px;
- 874. - }
- 875. -
- 876. - a.wall_reply_greeting {
- 877. - color: #000;
- 878. - }
- 879. -
- 880. - /* Thumbed links */
- 881. - .wall_module .page_media_thumbed_link {
- 882. - margin: 5px 0 5px 3px;
- 883. - border-left: 2px solid #C3D1E0;
- 884. - padding-left: 5px;
- 885. - }
- 886. - .wall_module td.page_media_link_thumb {
- 887. - cursor: pointer;
- 888. - background-position: 50% 50%;
- 889. - background-repeat: no-repeat;
- 890. - }
- 891. - .wall_module a.page_media_link_thumb {
- 892. - display: block;
- 893. - width: 100px;
- 894. - overflow: hidden;
- 895. - line-height: 0;
- 896. - min-height: 63px;
- 897. - height: 100%;
- 898. - }
- 899. - .wall_module a.page_media_link_thumb:hover {
- 900. - text-decoration: none;
- 901. - }
- 902. - .wall_module div.page_media_link_desc_wrap {
- 903. - padding-left: 10px;
- 904. - line-height: 140%;
- 905. - min-height: 63px;
- 906. - max-height: 79px;
- 907. - overflow: hidden;
- 908. - -o-text-overflow: ellipsis;
- 909. - text-overflow: ellipsis;
- 910. - }
- 911. - .wall_module a.page_media_link_title {
- 912. - font-weight: bold;
- 913. - }
- 914. - .wall_module div.page_media_link_desc {
- 915. - padding-top: 3px;
- 916. - }
- 917. -
- 918. - /* global wall styles end */
- 919. -
- 920. -
- 921. -
- 922. - /* Widget styles */
- 923. - .wcomments_head {
- 924. - background: #DAE2E8;
- 925. - padding: 4px 4px 4px 6px;
- 926. - }
- 927. - .wcomments_head_icon {
- 928. - height: 16px;
- 929. - width: 16px;
- 930. - overflow: hidden;
- 931. - }
- 932. - #wcomments_count {
- 933. - padding: 2px 3px 1px;
- 934. - line-height: 100%;
- 935. - color: #45688E;
- 936. - font-weight: bold;
- 937. - }
- 938. - #wcomments_admin_link_wrap, #wcomments_refresh_link_wrap {
- 939. - padding: 2px 5px 1px;
- 940. - line-height: 100%;
- 941. - }
- 942. - #wcomments_admin_link, #wcomments_refresh_link {
- 943. - font-weight: bold;
- 944. - color: #A9B8CB;
- 945. - }
- 946. - #wcomments_user_link_wrap {
- 947. - padding: 2px 0 0;
- 948. - line-height: 100%;
- 949. - }
- 950. - .wcomments_userpic_wrap,
- 951. - .wcommens_input_wrap {
- 952. - vertical-align: top;
- 953. - }
- 954. -
- 955. - td.wcomments_userpic_wrap {
- 956. - width: 60px;
- 957. - }
- 958. - div.wcomments_userpic {
- 959. - width: 60px;
- 960. - height: 50px;
- 961. - overflow: hidden;
- 962. - }
- 963. - img.wcomments_userpic {
- 964. - width: 50px;
- 965. - }
- 966. -
- 967. - .wcomments_input {
- 968. - background: #FFF;
- 969. - border: 1px solid #C0CAD5;
- 970. - padding: 0 3px;
- 971. - }
- 972. - .wcomments_input .input_back {
- 973. - margin-top: -0px !important;
- 974. - }
- 975. - #post_field {
- 976. - height: 56px;
- 977. - border: 0;
- 978. - padding: 3px 0;
- 979. - width: 100%;
- 980. - outline: 0;
- 981. - overflow: hidden;
- 982. - resize: vertical;
- 983. - }
- 984. - .mention_rich_ta {
- 985. - padding: 3px 0;
- 986. - outline: 0;
- 987. - }
- 988. -
- 989. - #submit_post {
- 990. - padding-top: 10px;
- 991. - padding-left: 60px;
- 992. - }
- 993. - #submit_post_box .submit_post_nopadding {
- 994. - padding-left: 0;
- 995. - }
- 996. - #page_post_progress {
- 997. - padding: 6px 10px;
- 998. - background-position: 50% 50%;
- 999. - }
- 1000. - .wcomments_input .selector_container .results_container {
- 1001. - margin: 1px -4px 0;
- 1002. - }
- 1003. - .wcomments_input .selector_container .result_list_shadow,
- 1004. - .wcomments_input .selector_container .result_list {
- 1005. - display: none;
- 1006. - }
- 1007. - #wcomments_export {
- 1008. - margin: 6px 0 0 10px;
- 1009. - width: 190px;
- 1010. - }
- 1011. - .font_medium #wcomments_export {
- 1012. - width: 220px;
- 1013. - }
- 1014. -
- 1015. - #wcomments_posts .wcomments_post {
- 1016. - padding: 5px 10px;
- 1017. - }
- 1018. -
- 1019. - #wcomments_more_link {
- 1020. - padding: 10px 0px;
- 1021. - text-align: center;
- 1022. - border-top: 1px solid #DAE1E8;
- 1023. - display: block;
- 1024. - height: 13px;
- 1025. - }
- 1026. - #wcomments_more_link:hover {
- 1027. - text-decoration: none;
- 1028. - background: #E9EDF1;
- 1029. - }
- 1030. - #wcomments_more_progress {
- 1031. - margin: 0 auto;
- 1032. - }
- 1033. - #wcomments_posts_wrap {
- 1034. - position: relative;
- 1035. - }
- 1036. -
- 1037. -
- 1038. - .wcomments_delete_all_buttons {
- 1039. - padding-top: 10px;
- 1040. - }
- 1041. - .wcomments_delete_all {
- 1042. - margin-right: 10px;
- 1043. - }
- 1044. -
- 1045. - /* Admin tabs */
- 1046. - #wcomments_admin_nav {
- 1047. - display: none;
- 1048. - }
- 1049. - .wcomments_tabs {
- 1050. - background: #F7F7F7;
- 1051. - padding: 10px;
- 1052. - }
- 1053. - .wcomments_admins_wrap {
- 1054. - padding: 5px 0;
- 1055. - }
- 1056. - .wcomments_tab, .wcomments_tab_selected, .wcomments_tab_over {
- 1057. - cursor: pointer;
- 1058. - padding: 2px 5px 2px 0px;
- 1059. - float: left;
- 1060. - }
- 1061. - .wcomments_tab1 {
- 1062. - padding: 3px 6px 4px;
- 1063. - }
- 1064. - .wcomments_tab_over .wcomments_tab1 {
- 1065. - -moz-border-radius: 2px;
- 1066. - -webkit-border-radius: 2px;
- 1067. - border-radius: 2px;
- 1068. - background-color: #E1E7ED;
- 1069. - }
- 1070. - .wcomments_tab_selected .wcomments_tab1 {
- 1071. - -moz-border-radius: 2px;
- 1072. - -webkit-border-radius: 2px;
- 1073. - border-radius: 2px;
- 1074. - background-color: #597DA3;
- 1075. - }
- 1076. - .wcomments_tab2 {
- 1077. - font-weight: bold;
- 1078. - color: #45688E;
- 1079. - padding-left: 2px;
- 1080. - padding-right: 2px;
- 1081. - -o-text-overflow: ellipsis;
- 1082. - text-overflow: ellipsis;
- 1083. - }
- 1084. - .wcomments_tab_selected .wcomments_tab2 {
- 1085. - color: #FFF;
- 1086. - }
- 1087. - #wcomments_posts {
- 1088. - padding: 0;
- 1089. - }
- 1090. - .wcomments_posts_loading {
- 1091. - border-top: 1px solid #DAE1E8;
- 1092. - height: 400px;
- 1093. - background: #FFF url(/images/progress7.gif) 50% 50% no-repeat;
- 1094. - }
- 1095. - /* Blacklist */
- 1096. - .wcomments_bl_row {
- 1097. - padding: 10px;
- 1098. - height: 25px;
- 1099. - overflow: hidden;
- 1100. - border-top: 1px solid #DAE2E8;
- 1101. - }
- 1102. - img.wcomments_bl_photo {
- 1103. - width: 25px;
- 1104. - height: 25px;
- 1105. - }
- 1106. - .wcomments_bl_name {
- 1107. - padding: 5px 0 0 10px;
- 1108. - font-weight: bold;
- 1109. - }
- 1110. - .wcomments_bl_label {
- 1111. - font-weight: normal;
- 1112. - color: #777;
- 1113. - padding-left: 2px;
- 1114. - display: none;
- 1115. - }
- 1116. - .wcomments_bl_action {
- 1117. - padding-top: 5px;
- 1118. - }
- 1119. - .wcomments_empty {
- 1120. - border-top: 1px solid #DAE2E8;
- 1121. - font-size: 1.09em;
- 1122. - padding: 100px 30px;
- 1123. - text-align: center;
- 1124. - color: #777;
- 1125. - }
- 1126. -
- 1127. - /* scrollbars from widget community */
- 1128. - .scrollbar_cont {
- 1129. - width: 11px;
- 1130. - height: 100%;
- 1131. - margin-top: 3px;
- 1132. - position: absolute;
- 1133. - z-index: 1000;
- 1134. - }
- 1135. - .scrollbar_inner {
- 1136. - background: #000;
- 1137. - opacity: 0.5;
- 1138. - filter: alpha(opacity=50);
- 1139. - /* background: #DAE1E8; */
- 1140. - width: 16px;
- 1141. - height: 50px;
- 1142. - margin-left: -1px;
- 1143. - -webkit-border-radius: 2px;
- 1144. - -moz-border-radius: 2px;
- 1145. - border-radius: 2px;
- 1146. - cursor: pointer;
- 1147. - }
- 1148. - .scrollbar_inner:hover,
- 1149. - .scrollbar_hovered {
- 1150. - opacity: 0.65;
- 1151. - filter: alpha(opacity=65);
- 1152. - /* background: #BEC8D3; */
- 1153. - }
- 1154. - .scrollbar_top {
- 1155. - position: absolute;
- 1156. - height: 3px;
- 1157. - margin-top: -1px;
- 1158. - background: #555555;
- 1159. - opacity: 0.12;
- 1160. - filter: alpha(opacity=12);
- 1161. - display: none;
- 1162. - }
- 1163. - .scrollbar_bottom {
- 1164. - position: absolute;
- 1165. - height: 3px;
- 1166. - margin-top: -2px;
- 1167. - background: #555555;
- 1168. - opacity: 0.12;
- 1169. - filter: alpha(opacity=12);
- 1170. - }
- 1171. - /* scrollbars end */
- 1172. -
- 1173. -
- 1174. - /* Autoupdate replies */
- 1175. - .new_reply {
- 1176. - display: none;
- 1177. - }
- 1178. - .replies_open {
- 1179. - color: #2B587A;
- 1180. - background: #e9edf1;
- 1181. - border: 1px solid #dae1e8;
- 1182. - cursor: pointer;
- 1183. - padding: 5px;
- 1184. - text-align: center;
- 1185. - margin: 5px 0;
- 1186. - }
- 1187. - .replies_open:hover {
- 1188. - background: #dae1e8;
- 1189. - }
- 1190. -
- 1191. -
- 1192. - /* Wide wall fixes */
- 1193. - .wide_wall_module .audio .info {
- 1194. - padding: 2px;
- 1195. - width: 100%;
- 1196. - }
- 1197. - .wide_wall_module .post {
- 1198. - border-top: 0px;
- 1199. - border-bottom: 1px solid #DAE1E8;
- 1200. - *position: relative;
- 1201. - }
- 1202. - .wide_wall_module .post:last-child {
- 1203. - border-bottom: 0px;
- 1204. - }
- 1205. - .wide_wall_module .wall_post_text,
- 1206. - .wide_wall_module .wall_reply_text {
- 1207. - line-height: 160%;
- 1208. - }
- 1209. - .wide_wall_module .wall_text,
- 1210. - .wide_wall_module .wall_post_text {
- 1211. - max-width: 500px;
- 1212. - }
- 1213. - .wide_wall_module a.reply_image {
- 1214. - width: 50px;
- 1215. - height: 50px;
- 1216. - }
- 1217. - .wide_wall_module img.reply_image {
- 1218. - width: 50px;
- 1219. - height: 50px;
- 1220. - }
- 1221. - .wide_wall_module .reply_info {
- 1222. - margin-left: 63px;
- 1223. - }
- 1224. - .wide_wall_module .reply_text {
- 1225. - max-width: 469px;
- 1226. - }
- 1227. - .wide_wall_module .reply_box_open .reply_field {
- 1228. - height: 42px;
- 1229. - }
- 1230. - .wide_wall_module .reply_field_tail {
- 1231. - width: 6px;
- 1232. - height: 11px;
- 1233. - background-position: 0 -154px;
- 1234. - margin-left: -9px;
- 1235. - margin-top: 16px;
- 1236. - }
- 1237. - .wide_wall_module .like_wrap, .wide_wall_module .reply_link_wrap,
- 1238. - .wide_wall_module .reply_link_wrap small, .wide_wall_module .info_footer {
- 1239. - font-size: 1em;
- 1240. - }
- 1241. - .wide_wall_module #page_wall_posts .post, .wide_wall_module #page_wall_posts .online {
- 1242. - display: block;
- 1243. - }
- 1244. - .wide_wall_module .wpe_prg {
- 1245. - height: 13px;
- 1246. - margin: 0px 10px;
- 1247. - }
- 1248. - .wide_wall_module #wpe_text {
- 1249. - max-width: 492px;
- 1250. - line-height: 1.54em;
- 1251. - }
- 1252. - .wide_wall_module .wpe_buttons {
- 1253. - max-width: 492px;
- 1254. - }
- 1255. - .wide_wall_module #wpe_cont .mention_rich_ta {
- 1256. - line-height: 1.54em;
- 1257. - }
- 1258. - .wide_wall_module .poll_preview .content, .fw_post_info .poll_preview .content {
- 1259. - max-width: 360px;
- 1260. - }
- 1261. - .wide_wall_module #wpe_media_preview .poll_preview .labeled, .fw_post_info #wpe_media_preview .poll_preview .labeled {
- 1262. - max-width: 239px;
- 1263. - }
- 1264. - .wide_wall_module #wpe_media_preview .poll_preview input, .fw_post_info #wpe_media_preview .poll_preview input {
- 1265. - max-width: 231px;
- 1266. - }
- 1267. - .wide_wall_module .reply {
- 1268. - padding: 10px 0px 11px;
- 1269. - }
- 1270. - .wide_wall_module a.reply_image,
- 1271. - .wide_wall_module img.reply_image {
- 1272. - width: 50px;
- 1273. - height: 50px;
- 1274. - }
- 1275. - .wide_wall_module .reply_info {
- 1276. - margin-left: 63px;
- 1277. - }
- 1278. - .wide_wall_module .reply_button_wrap button {
- 1279. - padding: 4px 14px;
- 1280. - }
- 1281. - .wide_wall_module .reply_form_img,
- 1282. - .wide_wall_module a.reply_form_image {
- 1283. - width: 50px;
- 1284. - height: 50px;
- 1285. - }
- 1286. - .wide_wall_module .reply_box_open .reply_form {
- 1287. - margin-left: 62px;
- 1288. - }
- 1289. -
- 1290. -
- 1291. -
- 1292. - /* New post likes */
- 1293. - .wall_module .post_like_wrap {
- 1294. - position: relative;
- 1295. - width: 150px;
- 1296. - }
- 1297. - .post_like {
- 1298. - background: #FFF;
- 1299. - color: #2F5879;
- 1300. - font-size: 0.9em;
- 1301. - cursor: pointer;
- 1302. - padding: 5px 6px;
- 1303. - margin-top: -1px;
- 1304. - right: 0px;
- 1305. - position: absolute;
- 1306. - white-space: nowrap;
- 1307. - }
- 1308. - .wide_wall_module .post_like {
- 1309. - font-size: 1em;
- 1310. - }
- 1311. - .post_like_link {
- 1312. - opacity: 0.6;
- 1313. - filter: alpha(opacity=60);
- 1314. - -webkit-transition: opacity 50ms linear;
- 1315. - -moz-transition: opacity 50ms linear;
- 1316. - transition: opacity 50ms linear;
- 1317. - }
- 1318. - .wall_post_over .post_like_link,
- 1319. - .wall_module .post:hover .post_like_link {
- 1320. - opacity: 1;
- 1321. - filter: none;
- 1322. - }
- 1323. - .wall_module .post_like:hover {
- 1324. - background: #E9EDF1;
- 1325. - }
- 1326. - .wall_module .post_like:hover {
- 1327. -
- 1328. - }
- 1329. - .wall_module .post_like_icon {
- 1330. - background: url(/images/icons/like.gif?1) no-repeat 1px 0px;
- 1331. - height: 10px;
- 1332. - margin: 2px 3px 0px;
- 1333. - opacity: 0.4;
- 1334. - filter: alpha(opacity=40);
- 1335. - width: 11px;
- 1336. - }
- 1337. - .wide_wall_module .post_like_icon {
- 1338. - margin-top: 3px;
- 1339. - }
- 1340. - .wall_module .post_like_count {
- 1341. - font-weight: bold;
- 1342. - color: #7295b2;
- 1343. - }
- 1344. -
- 1345. - .wall_module .post_like .no_likes {
- 1346. - visibility: visible;
- 1347. - opacity: 0.4;
- 1348. - filter: alpha(opacity=40);
- 1349. - }
- 1350. - .wall_module .post_like i.my_like {
- 1351. - opacity: 1;
- 1352. - filter: none;
- 1353. - }
- 1354. -
- 1355. - .reply_replieable,
- 1356. - .reply_moreable {
- 1357. - cursor: pointer;
- 1358. - }
- 1359. -
- 1360. -
- 1361. - /* Inline view video */
- 1362. - .wide_wall_module .post_thumbs_num1 .page_media_video .video div,
- 1363. - .wall_module .page_media_full_video .video div {
- 1364. - bottom: 10px;
- 1365. - font-size: 1em;
- 1366. - }
- 1367. - .wall_module .post_thumbs_num1 .page_media_thumb1 {
- 1368. - margin: 0;
- 1369. - }
- 1370. - .wall_module .page_media_full_video {
- 1371. - padding-bottom: 0;
- 1372. - }
- 1373. - .wide_wall_module .post_thumbs_num1 .page_media_video,
- 1374. - .wall_module .page_media_full_video {
- 1375. - max-width: 480px;
- 1376. - max-height: 360px;
- 1377. - }
- 1378. - .wide_wall_module .post_thumbs_num1 .page_media_video .video img,
- 1379. - .wall_module .page_media_full_video .video img {
- 1380. - max-width: 480px;
- 1381. - max-height: 360px;
- 1382. - width: 480px;
- 1383. - height: 360px;
- 1384. - }
- 1385. - .wall_module .page_media_video .video div.video_play_inline,
- 1386. - .wall_module .page_media_full_video .video div.video_play_inline {
- 1387. - left: 137px;
- 1388. - top: 97px;
- 1389. - bottom: auto;
- 1390. - position: absolute;
- 1391. - z-index: 10;
- 1392. - background: url(/images/inline_video_play.png) no-repeat;
- 1393. - width: 46px;
- 1394. - height: 46px;
- 1395. - }
- 1396. - .wide_wall_module .page_media_video .video div.video_play_inline,
- 1397. - .wall_module .page_media_full_video .video div.video_play_inline {
- 1398. - left: 225px;
- 1399. - top: 165px;
- 1400. - }
- 1401. - .wide_wall_module .page_media_video .video div.video_play_inline_loading,
- 1402. - .wall_module .page_media_full_video .video div.video_play_inline_loading {
- 1403. - background: url(/images/upload_inv_mono.gif) no-repeat 50% 50%;
- 1404. - width: 100px;
- 1405. - background-color: #000;
- 1406. - background-color: rgba(0, 0, 0, 0.7);
- 1407. - *filter: alpha(opacity=70);
- 1408. -
- 1409. - border-radius: 5px;
- 1410. - -moz-border-radius: 5px;
- 1411. - -khtml-border-radius: 5px;
- 1412. - -webkit-border-radius: 5px;
- 1413. -
- 1414. - margin: -2px 0 0 -27px;
- 1415. - }
- 1416. - .widget_body .like_tt_clubs {
- 1417. - display: none;
- 1418. - }
- 1419. -
- 1420. - .widget_body.bugs .wcomments_head_icon {
- 1421. - display: none;
- 1422. - }
- 1423. - .widget_body.bugs .wcomments_head {
- 1424. - padding: 4px 6px 6px 6px;
- 1425. - }
- 1426. -
- 1427. - #custom_menu_cont {
- 1428. - top: 0px;
- 1429. - width: 100%;
- 1430. - }
- 1431. - #custom_menu_wrap {
- 1432. - z-index: 1005;
- 1433. - position: absolute;
- 1434. - top: 0px;
- 1435. - }
- 1436. -
- 1437. -
- 1438. - .page_post_sized_thumbs {
- 1439. - margin: 9px 0 4px;
- 1440. - }
- 1441. - .page_post_sized_full_thumb {
- 1442. - margin: 20px 0 10px;
- 1443. - }
- 1444. - .page_post_sized_full_thumb_first {
- 1445. - margin-top: 10px;
- 1446. - }
- 1447. -
- 1448. - a.page_post_thumb_wrap,
- 1449. - span.page_post_thumb_wrap {
- 1450. - display: block;
- 1451. - overflow: hidden;
- 1452. - position: relative;
- 1453. - margin: 0 3px 3px 0;
- 1454. - }
- 1455. - a.page_post_thumb_wrap:hover,
- 1456. - a.page_post_thumb_unsized:hover {
- 1457. - text-decoration: none !important;
- 1458. - }
- 1459. - .page_post_thumb_video {
- 1460. - position: relative;
- 1461. - }
- 1462. - .page_post_thumb_sized_photo {
- 1463. - position: absolute;
- 1464. - }
- 1465. - .page_post_video_play_inline {
- 1466. - position: absolute;
- 1467. - z-index: 10;
- 1468. - background: url(/images/inline_video_play.png) no-repeat;
- 1469. - margin-left: -23px;
- 1470. - margin-top: -23px;
- 1471. - width: 46px;
- 1472. - height: 46px;
- 1473. - top: 50%;
- 1474. - left: 50%;
- 1475. - }
- 1476. - .page_post_video_duration {
- 1477. - background: url('/images/mv_bg.png');
- 1478. - background: rgba(0,0,0, 0.6);
- 1479. - color: #FFF;
- 1480. - position: absolute;
- 1481. - bottom: 10px;
- 1482. - right: 0;
- 1483. - padding: 0px 3px 1px;
- 1484. - z-index: 10;
- 1485. - }
- 1486. -
- 1487. - a.page_post_thumb_last_column .page_post_thumb_undersized_w,
- 1488. - span.page_post_thumb_last_column .page_post_thumb_undersized_w {
- 1489. - right: 0;
- 1490. - }
- 1491. - a.page_post_thumb_last_row .page_post_thumb_undersized_h,
- 1492. - span.page_post_thumb_last_row .page_post_thumb_undersized_h {
- 1493. - bottom: 0;
- 1494. - }
- 1495. -
- 1496. - a.page_post_thumb_unsized,
- 1497. - span.page_post_thumb_unsized {
- 1498. - background: 50% 50% no-repeat;
- 1499. - background-size: cover;
- 1500. -
- 1501. - display: block;
- 1502. - position: relative;
- 1503. - overflow: hidden;
- 1504. - margin: 0 3px 3px 0;
- 1505. - }
- 1506. - a.page_post_thumb_unsized_single,
- 1507. - span.page_post_thumb_unsized_single {
- 1508. - /*background: 0 0 no-repeat;*/
- 1509. - background-size: contain;
- 1510. - }
- 1511. -
- 1512. - .wide_wall_module a.page_post_thumb_unsized,
- 1513. - .wide_wall_module a.page_post_thumb_wrap,
- 1514. - .wide_wall_module span.page_post_thumb_unsized,
- 1515. - .wide_wall_module span.page_post_thumb_wrap {
- 1516. - margin: 0 6px 6px 0;
- 1517. - }
- 1518. - .page_post_sized_thumbs a.page_post_thumb_last_column,
- 1519. - .page_post_sized_thumbs span.page_post_thumb_last_column {
- 1520. - margin-right: 0;
- 1521. - }
- 1522. - .page_post_sized_thumbs a.page_post_thumb_last_row,
- 1523. - .page_post_sized_thumbs span.page_post_thumb_last_row {
- 1524. - margin-bottom: 0;
- 1525. - }
- 1526. -
- 1527. - .page_post_queue_wide,
- 1528. - .wide_wall_module .page_post_queue_narrow {
- 1529. - display: none;
- 1530. - }
- 1531. - .wide_wall_module .page_post_queue_wide {
- 1532. - display: block;
- 1533. - }
- 1534. -
- 1535. - .reply_media_lnk {
- 1536. - display: none;
- 1537. - }
- 1538. - .checkbox_pic {
- 1539. - cursor: pointer;
- 1540. - }
- 1541. - #wcomments_export.checkbox_pic {
- 1542. - background: url(/images/icons/wall_export.gif?1) no-repeat 0 0;
- 1543. - height: 14px;
- 1544. - width: 14px;
- 1545. - overflow: hidden;
- 1546. - }
- 1547. - #wcomments_export.checkbox_pic {
- 1548. - background-position: 0 -70px;
- 1549. - opacity: 0.5;
- 1550. - filter: alpha(opacity=50);
- 1551. - }
- 1552. - #wcomments_export.on {
- 1553. - opacity: 1;
- 1554. - filter: none;
- 1555. - }
- 1556. - #video_box_body .box_dark .box_title {
- 1557. - background: #000000;
- 1558. - color: #777777;
- 1559. - }
- 1560. - #video_box_body .box_dark .box_x_button {
- 1561. - color: #777777;
- 1562. - }
- 1563. - #video_box_body .box_dark .box_x_button:hover {
- 1564. - color: #FFFFFF;
- 1565. - }
- 1566. - #photo_box_body .box_dark .box_title {
- 1567. - background: #FFFFFF;
- 1568. - color: #45688E;
- 1569. - }
- 1570. - #photo_box_body .box_dark .box_x_button {
- 1571. - color: #2B587A;
- 1572. - }
- 1573. - #photo_box_body .box_dark .box_x_button:hover {
- 1574. - text-decoration: underline;
- 1575. - }
- 1576. - .photo_view_more {
- 1577. - margin-top: 25px;
- 1578. - display: block;
- 1579. - background: #eef0f2;
- 1580. - text-align: center;
- 1581. - padding: 16px;
- 1582. - color: #738392;
- 1583. - }
- 1584. - .photo_view_more:hover {
- 1585. - text-decoration: none;
- 1586. - background: #e9edf1;
- 1587. - }
- 1588. - .medadd_c_doc {
- 1589. - overflow: hidden;
- 1590. - -o-text-overflow: ellipsis;
- 1591. - text-overflow: ellipsis;
- 1592. - }
- 1593. - .medadd_h,
- 1594. - .medadd_c_pollh {
- 1595. - font-size: 1.09em;
- 1596. - font-weight: bold;
- 1597. - color: #45688E;
- 1598. - background: url(/images/icons/mono_iconset.gif?8) no-repeat;
- 1599. - margin: 4px 2px 0px;
- 1600. - }
- 1601. - .font_medium .medadd_h,
- 1602. - .font_medium .medadd_c_pollh {
- 1603. - margin-top: 3px;
- 1604. - }
- 1605. - .medadd_h:hover {
- 1606. - text-decoration: none;
- 1607. - }
- 1608. - .medadd_h_note {
- 1609. - background-position: 0 -132px;
- 1610. - }
- 1611. - .medadd_h_doc {
- 1612. - background-position: 0 -278px;
- 1613. - }
- 1614. - .medadd_h_poll {
- 1615. - background-position: 0 -206px;
- 1616. - }
- 1617. - .medadd_h_link,
- 1618. - .medadd_h_page {
- 1619. - background-position: 0 -235px;
- 1620. - }
- 1621. - .medadd_h_timer {
- 1622. - background-position: 0 -332px;
- 1623. - }
- 1624. - .medadd_h_mail {
- 1625. - background-position: 0 -292px;
- 1626. - }
- 1627. - .medadd_h,
- 1628. - .medadd_c {
- 1629. - padding-left: 15px;
- 1630. - }
- 1631. - .medadd_c {
- 1632. - margin: 7px 2px 0px;
- 1633. - }
- 1634. - .medadd_c_linkimg {
- 1635. - padding: 5px 10px 5px 5px;
- 1636. - }
- 1637. - .medadd_c_linkhead {
- 1638. - margin: 0px;
- 1639. - padding: 5px;
- 1640. - border: 0px;
- 1641. - font-size: 11px;
- 1642. - }
- 1643. - .medadd_c_linkdsc {
- 1644. - padding: 0px 5px 5px;
- 1645. - }
- 1646. - #wcomments_form .medadd_c_linkcon {
- 1647. - overflow: hidden;
- 1648. - background: #FFF;
- 1649. - padding: 6px;
- 1650. - border: 1px solid #C0CAD5;
- 1651. - }
- 1652. - #wcomments_form .medadd_c_link {
- 1653. - padding-left: 0px;
- 1654. - margin-left: 0px;
- 1655. - }
- ------
Add Comment
Please, Sign In to add comment