Hormold

VK Change (#1380222906)

Sep 26th, 2013
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 30.09 KB | None | 0 0
  1. Файл - gifts.css (Старый размер - 11239 | Новый - 0):
  2. 0.  - #gifts_css {
  3. 1.  -   display: none;
  4. 2.  - }
  5. 3.  -
  6. 4.  - #gifts_box {
  7. 5.  -   position: relative;
  8. 6.  -   margin: -3px 0px 0;
  9. 7.  -   overflow: auto;
  10. 8.  -   width: 642px;
  11. 9.  -   padding: 5px 5px 20px;
  12. 10.  - }
  13. 11.  - .gifts_section {
  14. 12.  -   position: relative;
  15. 13.  -   margin: -3px 0px 0px;
  16. 14.  -   overflow: auto;
  17. 15.  -   padding: 10px 5px 23px 7px;
  18. 16.  - }
  19. 17.  - .gift_cell {
  20. 18.  -   height: 96px;
  21. 19.  -   width: 96px;
  22. 20.  -   padding: 4px;
  23. 21.  -   position: relative;
  24. 22.  - }
  25. 23.  - #gift_price {
  26. 24.  -   background: #D0D8E0;
  27. 25.  -   background: rgba(208, 216, 224, 0.8);
  28. 26.  -   border-radius: 3px;
  29. 27.  -   padding: 1px 4px 2px;
  30. 28.  -   margin: 0 12px;
  31. 29.  -   color: #45688E;
  32. 30.  -   font-size: 1em;
  33. 31.  -   font-weight: bold;
  34. 32.  -   position: absolute;
  35. 33.  -   left: 0;
  36. 34.  -   right: 0;
  37. 35.  -   bottom: 0;
  38. 36.  -   text-align: center;
  39. 37.  -   display: none;
  40. 38.  -   z-index: 99;
  41. 39.  - }
  42. 40.  - .gift_free {
  43. 41.  -   background: #D0D8E0;
  44. 42.  -   background: rgba(208, 216, 224, 0.8);
  45. 43.  -   border-radius: 3px;
  46. 44.  -   padding: 3px 4px 4px;
  47. 45.  -   margin: 0 12px;
  48. 46.  -   color: #45688E;
  49. 47.  -   font-size: 1em;
  50. 48.  -   font-weight: bold;
  51. 49.  -   position: absolute;
  52. 50.  -   left: 0;
  53. 51.  -   right: 0;
  54. 52.  -   bottom: 0;
  55. 53.  -   text-align: center;
  56. 54.  -   z-index: 99;
  57. 55.  - }
  58. 56.  - #gift_privacy {
  59. 57.  -   padding: 10px 0 0;
  60. 58.  -   color: #666;
  61. 59.  - }
  62. 60.  - .gifts_section img,
  63. 61.  - #gifts_box img {
  64. 62.  -   display: block;
  65. 63.  - }
  66. 64.  - #gift_price_str {
  67. 65.  -   display: block;
  68. 66.  -   margin: 2px 0px;
  69. 67.  - }
  70. 68.  - #gifts_box b.rbottom {
  71. 69.  -   background: white;
  72. 70.  -   display: block;
  73. 71.  - }
  74. 72.  - #gifts_box b.rbottom b {
  75. 73.  -   background: #F2E9BA;
  76. 74.  -   display: block;
  77. 75.  -   height: 1px;
  78. 76.  -   overflow: hidden;
  79. 77.  - }
  80. 78.  - #gifts_box b.rbottom b.r {
  81. 79.  -   height: 1px;
  82. 80.  -   margin: 0px 1px;
  83. 81.  - }
  84. 82.  - #gifts_box a.gold {
  85. 83.  -   background: url(/images/gift_gold_bg.gif) no-repeat;
  86. 84.  - }
  87. 85.  - .gift_cell .gift_img {
  88. 86.  -   -webkit-transition: opacity  .2s;
  89. 87.  -   -moz-transition: opacity  .2s;
  90. 88.  -   -o-transition: opacity  .2s;
  91. 89.  -   transition: opacity  .2s;
  92. 90.  - }
  93. 91.  - .gift_cell:hover .gift_img {
  94. 92.  -   opacity: .8;
  95. 93.  - }
  96. 94.  - .gift_cell:hover .gift_free {
  97. 95.  -   display: none;
  98. 96.  - }
  99. 97.  - #select_gift a.gold:hover {
  100. 98.  -   background: url(/images/gift_bg.gif) no-repeat;
  101. 99.  -   background-color: transparent;
  102. 100.  -   text-decoration: none;
  103. 101.  - }
  104. 102.  - #gifts_box a.unactive:hover {
  105. 103.  -   opacity: 1;
  106. 104.  -   filter:alpha(opacity=100);
  107. 105.  - }
  108. 106.  - #gifts_box a.active {
  109. 107.  -   background: url(/images/gift_bg.gif) no-repeat;
  110. 108.  - }
  111. 109.  - .gift_loader {
  112. 110.  -   height: 256px;
  113. 111.  -   text-align: center;
  114. 112.  -   margin-bottom: 4px;
  115. 113.  - }
  116. 114.  - .gift_loader img {
  117. 115.  -   margin: 0 auto;
  118. 116.  - }
  119. 117.  - .gift_label {
  120. 118.  -   width: 130px;
  121. 119.  -   color: #666;
  122. 120.  -   text-align: right;
  123. 121.  -   padding-top: 8px;
  124. 122.  - }
  125. 123.  - .gift_labeled {
  126. 124.  -   width: 250px;
  127. 125.  -   padding: 4px 10px 0;
  128. 126.  - }
  129. 127.  - .gift_labeled textarea {
  130. 128.  -   margin-top: 1px;
  131. 129.  - }
  132. 130.  - #g_money_to_votes {
  133. 131.  -   display: none;
  134. 132.  -   background-color: #F9F6E7;
  135. 133.  -   border: 1px solid #D4BC4C;
  136. 134.  -   padding: 8px 11px;
  137. 135.  -   text-align: center;
  138. 136.  - }
  139. 137.  - #gift_message .input_text {
  140. 138.  -   width: 222px;
  141. 139.  -   display:block
  142. 140.  - }
  143. 141.  - .gft_send #text_box_warn {
  144. 142.  -   color: #777;
  145. 143.  -   padding: 20px 0px 0px;
  146. 144.  -   display: none;
  147. 145.  - }
  148. 146.  - #gift_tip {
  149. 147.  -   text-align: center;
  150. 148.  -   padding-top:6px;
  151. 149.  -   line-height:140%;
  152. 150.  -   display:none;
  153. 151.  - }
  154. 152.  -
  155. 153.  - /* Wishlist */
  156. 154.  - #page {
  157. 155.  -   background-color: #F7F7F7;
  158. 156.  -   padding: 10px;
  159. 157.  -   height: 50px;
  160. 158.  -   border-bottom: 1px solid #DAE2E8;
  161. 159.  - }
  162. 160.  - .add_wish_row {
  163. 161.  -   clear: both;
  164. 162.  -   width: 400px;
  165. 163.  -   margin: 0px auto;
  166. 164.  - }
  167. 165.  - .box_body #cont_wrapper {
  168. 166.  -   background-color: #FFF;
  169. 167.  -   clear: left;
  170. 168.  -   overflow-x: hidden;
  171. 169.  -   overflow-y: auto;
  172. 170.  - }
  173. 171.  - .box_body .cont {
  174. 172.  -   width: 500px;
  175. 173.  -   margin: 0px auto;
  176. 174.  - }
  177. 175.  - .box_body .image_cont {
  178. 176.  -   padding: 3px;
  179. 177.  -   width: 96px;
  180. 178.  -   height: 96px;
  181. 179.  -   float: left;
  182. 180.  -   margin: 3px 10px 3px 0px;
  183. 181.  -   background: #FFF url(/images/upload.gif) no-repeat 50% 50%;
  184. 182.  - }
  185. 183.  - .box_body .image_cont img {
  186. 184.  -   margin: 0px;
  187. 185.  -   padding: 0px;
  188. 186.  -   border: 0px;
  189. 187.  - }
  190. 188.  - .box_body .item_description {
  191. 189.  -   padding: 7px 4px 4px;
  192. 190.  -   color: #000;
  193. 191.  - }
  194. 192.  - .box_body .item_name {
  195. 193.  -   padding: 7px 4px 4px;
  196. 194.  -   font-weight: bold;
  197. 195.  -   color: #36638E;
  198. 196.  - }
  199. 197.  - .box_body .item_details {
  200. 198.  -   padding: 0px 4px;
  201. 199.  -   font-size: 0.9em;
  202. 200.  -   color: #666;
  203. 201.  - }
  204. 202.  - .box_body #wish_publish {
  205. 203.  -   margin-left: 160px;
  206. 204.  -   position: relative;
  207. 205.  - }
  208. 206.  -
  209. 207.  - .gifts_right_link {
  210. 208.  -   display: none;
  211. 209.  - }
  212. 210.  - #gifts_rows,
  213. 211.  - .gifts_box_rows {
  214. 212.  -   padding: 0px 15px;
  215. 213.  - }
  216. 214.  - .gift_row {
  217. 215.  -   padding: 15px 0px 10px;
  218. 216.  -   border-bottom: 1px solid #DAE1E8;
  219. 217.  - }
  220. 218.  - .gift_row:last-child {
  221. 219.  -   border-bottom: 0px;
  222. 220.  - }
  223. 221.  - .gifts_box_rows .gift_row:last-child {
  224. 222.  -   padding-bottom: 15px;
  225. 223.  - }
  226. 224.  - .gift_thumb_td {
  227. 225.  -   vertical-align: top;
  228. 226.  -   width: 65px;
  229. 227.  - }
  230. 228.  - .gift_thumb {
  231. 229.  -   width: 65px;
  232. 230.  -   height: 50px;
  233. 231.  -   overflow: hidden;
  234. 232.  - }
  235. 233.  - .gift_info_td {
  236. 234.  -   vertical-align: top;
  237. 235.  -   width: 100%;
  238. 236.  - }
  239. 237.  - .gift_name {
  240. 238.  -   font-weight: bold;
  241. 239.  -   color: #45688E;
  242. 240.  - }
  243. 241.  - .gift_anonim {
  244. 242.  -   font-weight: normal;
  245. 243.  - }
  246. 244.  - .gift_text {
  247. 245.  -   padding: 10px 0px 20px;
  248. 246.  -   line-height: 160%;
  249. 247.  -   text-align: center;
  250. 248.  -   width: 466px;
  251. 249.  -   overflow: hidden;
  252. 250.  -   word-wrap: break-word;
  253. 251.  - }
  254. 252.  - .gift_wrap {
  255. 253.  -   width: 256px;
  256. 254.  -   margin: 25px 0px 0px 105px;
  257. 255.  -   height: 256px;
  258. 256.  -   overflow: hidden;
  259. 257.  - }
  260. 258.  - .gift_tip {
  261. 259.  -   width: 338px;
  262. 260.  -   border: 1px solid #DAE1E8;
  263. 261.  -   background: #F7F7F7;
  264. 262.  -   padding: 10px;
  265. 263.  -   margin: 10px 53px;
  266. 264.  -   line-height: 160%;
  267. 265.  -   text-align: center;
  268. 266.  - }
  269. 267.  - .gift_bottom {
  270. 268.  -   color: #999;
  271. 269.  -   height: 13px;
  272. 270.  - }
  273. 271.  - .gift_prg {
  274. 272.  -   margin: 0px 10px;
  275. 273.  - }
  276. 274.  - .gift_privacy {
  277. 275.  -   color: #999;
  278. 276.  -   margin: 0px 15px;
  279. 277.  - }
  280. 278.  - #gifts_no_content {
  281. 279.  -   padding: 100px 50px;
  282. 280.  -   text-align: center;
  283. 281.  -   font-size: 1.09em;
  284. 282.  -   color: #777;
  285. 283.  -   line-height: 160%;
  286. 284.  - }
  287. 285.  - #gifts_load_more {
  288. 286.  -   margin: 0px 15px 15px;
  289. 287.  - }
  290. 288.  - .gift_deleted {
  291. 289.  -   color: #777;
  292. 290.  -   padding: 18px 65px;
  293. 291.  - }
  294. 292.  -
  295. 293.  - #gs_rows {
  296. 294.  -   padding: 7px 7px 20px;
  297. 295.  - }
  298. 296.  - .gift_friend_gift {
  299. 297.  -   width: 96px;
  300. 298.  -   height: 96px;
  301. 299.  - }
  302. 300.  - .gift_many {
  303. 301.  -   display: block;
  304. 302.  -   padding: 20px 0px;
  305. 303.  - }
  306. 304.  - .gs_img {
  307. 305.  -   width: 96px;
  308. 306.  -   height: 96px;
  309. 307.  -   vertical-align: top;
  310. 308.  -   -webkit-transition: opacity  .2s;
  311. 309.  -   -moz-transition: opacity  .2s;
  312. 310.  -   -o-transition: opacity  .2s;
  313. 311.  -   transition: opacity  .2s;
  314. 312.  - }
  315. 313.  - .gs_btm {
  316. 314.  -   background: #D0D8E0;
  317. 315.  -   background: rgba(208, 216, 224, 0.8);
  318. 316.  -   border-radius: 3px;
  319. 317.  -   padding: 1px 4px 2px;
  320. 318.  -   margin: 0 12px;
  321. 319.  -   color: #45688E;
  322. 320.  -   font-size: 1em;
  323. 321.  -   font-weight: bold;
  324. 322.  -   position: absolute;
  325. 323.  -   left: 0;
  326. 324.  -   right: 0;
  327. 325.  -   bottom: 0;
  328. 326.  -   text-align: center;
  329. 327.  -   display: none;
  330. 328.  -   z-index: 499;
  331. 329.  - }
  332. 330.  - .gs_price {
  333. 331.  -   margin: 2px 0px 2px 0px;
  334. 332.  - }
  335. 333.  - .gs_btm1 {
  336. 334.  -   display: block;
  337. 335.  -   background: #FFF;
  338. 336.  - }
  339. 337.  - .gs_btm2 {
  340. 338.  -   display: block;
  341. 339.  -   height: 1px;
  342. 340.  -   overflow: hidden;
  343. 341.  -   background: #F2E9BA;
  344. 342.  -   margin: 0 1px;
  345. 343.  - }
  346. 344.  - .gs_row {
  347. 345.  -   display: inline-block;
  348. 346.  -   *display: inline;
  349. 347.  -   zoom: 1;
  350. 348.  -   width: 96px;
  351. 349.  -   height: 96px;
  352. 350.  -   padding: 4px 2px;
  353. 351.  -   margin: 1px;
  354. 352.  -   border-radius: 2px;
  355. 353.  -   position: relative;
  356. 354.  - }
  357. 355.  - .gs_row:hover .gs_btm {
  358. 356.  -   display: block;
  359. 357.  - }
  360. 358.  - .gs_row:hover .gs_img {
  361. 359.  -   opacity: .8;
  362. 360.  - }
  363. 361.  - .gs_row:hover .gift_free {
  364. 362.  -   display: none;
  365. 363.  - }
  366. 364.  - .gs_privacy {
  367. 365.  -   padding: 7px 0 0;
  368. 366.  -   color: #666;
  369. 367.  - }
  370. 368.  - .gs_check {
  371. 369.  -   position: absolute;
  372. 370.  -   z-index: 399;
  373. 371.  -   margin: 1px 82px;
  374. 372.  -   width: 12px;
  375. 373.  -   height: 14px;
  376. 374.  -   background: url(/images/check_dark.gif);
  377. 375.  -   display: none;
  378. 376.  - }
  379. 377.  - .gs_active .gs_check {
  380. 378.  -   display: block;
  381. 379.  - }
  382. 380.  - .gs_box_wrap {
  383. 381.  -   text-align: center;
  384. 382.  -   padding: 1px;
  385. 383.  -   padding-bottom: 10px;
  386. 384.  - }
  387. 385.  - .gs_box_img {
  388. 386.  -   width: 256px;
  389. 387.  -   height: 256px;
  390. 388.  -   vertical-align: top;
  391. 389.  - }
  392. 390.  - .gs_box_label {
  393. 391.  -   padding: 13px 10px 0px;
  394. 392.  -   width: 130px;
  395. 393.  -   color: #777;
  396. 394.  - }
  397. 395.  - .gs_box_labeled {
  398. 396.  -   padding-top: 10px;
  399. 397.  -   width: 236px;
  400. 398.  - }
  401. 399.  - .gs_box_privacy {
  402. 400.  -   padding: 9px 6px 0px;
  403. 401.  -   width: 236px;
  404. 402.  - }
  405. 403.  - #gs_msg,
  406. 404.  - #gift_text {
  407. 405.  -   width: 356px;
  408. 406.  -   height: 50px;
  409. 407.  - }
  410. 408.  - #gift_text {
  411. 409.  -   width: 364px;
  412. 410.  - }
  413. 411.  - #gs_warn {
  414. 412.  -   display: none;
  415. 413.  -   color: #777;
  416. 414.  -   padding: 20px 0px 0px;
  417. 415.  - }
  418. 416.  - .gft_send {
  419. 417.  -   padding: 0px 25px;
  420. 418.  - }
  421. 419.  - #gft_box_to {
  422. 420.  -   padding-top: 0px;
  423. 421.  - }
  424. 422.  - .gft_box_text_wrap {
  425. 423.  -   margin-bottom: 5px;
  426. 424.  - }
  427. 425.  - .gft_box_label {
  428. 426.  -   color: #45688E;
  429. 427.  -   line-height: 1.27em;
  430. 428.  -   margin: 0px;
  431. 429.  -   padding: 20px 0px 9px;
  432. 430.  -   font-size: 1.09em;
  433. 431.  -   font-weight: bold;
  434. 432.  - }
  435. 433.  -
  436. 434.  -
  437. 435.  - /* section tabs */
  438. 436.  - .gifts_subtab1 {
  439. 437.  -   -moz-border-radius: 2px;
  440. 438.  -   border-radius: 2px;
  441. 439.  -   cursor: pointer;
  442. 440.  -   margin: 0 5px 0 0;
  443. 441.  -   color: #45688E;
  444. 442.  - }
  445. 443.  - .gifts_subtab1:hover {
  446. 444.  -   background-color: #E1E7ED;
  447. 445.  - }
  448. 446.  -
  449. 447.  - .gifts_subtab1.active {
  450. 448.  -   background-color: #597DA3;
  451. 449.  -   color: white;
  452. 450.  -   cursor: default;
  453. 451.  - }
  454. 452.  - .gifts_subtab2 {
  455. 453.  -   padding: 3px 8px 4px;
  456. 454.  -   font-weight: bold;
  457. 455.  - }
  458. 456.  - .gifts_profile_block {
  459. 457.  -   background: #FFF;
  460. 458.  -   text-align: center;
  461. 459.  -   overflow: hidden;
  462. 460.  - }
  463. 461.  - .gifts_profile_cont {
  464. 462.  -   position: relative;
  465. 463.  - }
  466. 464.  - .gifts_profile_list_wrap {
  467. 465.  -   overflow: hidden;
  468. 466.  -   height: 288px;
  469. 467.  - }
  470. 468.  - .gifts_profile_list {
  471. 469.  -   position: static;
  472. 470.  -   width: 400px;
  473. 471.  -   height: auto;
  474. 472.  -   padding: 9px 15px 9px 11px;
  475. 473.  - }
  476. 474.  - .gifts_profile_cont .list_shadow {
  477. 475.  -   position: absolute;
  478. 476.  -   width: 100%;
  479. 477.  -   height: 6px;
  480. 478.  -   background-color: white;
  481. 479.  -   box-shadow: 0 0 3px white;
  482. 480.  - }
  483. 481.  - .gifts_profile_cont .shadow_top {
  484. 482.  -   top: 0;
  485. 483.  -   box-shadow: 0 1px 3px white;
  486. 484.  - }
  487. 485.  - .gifts_profile_cont .shadow_bottom {
  488. 486.  -   bottom: 0;
  489. 487.  -   box-shadow: 0 -1px 3px white;
  490. 488.  - }
  491. 489.  - .gifts_profile_send {
  492. 490.  -   position: relative;
  493. 491.  -   width: 168px;
  494. 492.  -   height: 288px;
  495. 493.  -   background: #F1F1F1;
  496. 494.  -   border-left: #dae1e8 1px solid;
  497. 495.  - }
  498. 496.  - .gift_profile_cell {
  499. 497.  -   height: 48px;
  500. 498.  -   width: 48px;
  501. 499.  -   padding: 3px 1px;
  502. 500.  -   -moz-border-radius: 2px;
  503. 501.  -   border-radius: 2px;
  504. 502.  -   -moz-transition: background .1s;
  505. 503.  -   -webkit-transition: background .1s;
  506. 504.  -   -o-transition: background .1s;
  507. 505.  -   transition: background .1s;
  508. 506.  - }
  509. 507.  - .gift_profile_cell:hover {
  510. 508.  -   background: #E1E7ED;
  511. 509.  -   -moz-transition-duration: 0;
  512. 510.  -   -webkit-transition-duration: 0;
  513. 511.  -   -o-transition-duration: 0;
  514. 512.  -   transition-duration: 0;
  515. 513.  - }
  516. 514.  - .gifts_profile_header {
  517. 515.  -   font-size: 1.09em;
  518. 516.  -   font-weight: bold;
  519. 517.  -   color: #45688E;
  520. 518.  -   padding: 12px 0 0;
  521. 519.  - }
  522. 520.  - .gifts_profile_price {
  523. 521.  -   font-size: 0.9em;
  524. 522.  -   color: #666;
  525. 523.  -   padding: 4px 0 2px;
  526. 524.  - }
  527. 525.  - .gifts_profile_gift {
  528. 526.  -   padding: 12px 0 9px;
  529. 527.  -   height: 96px;
  530. 528.  - }
  531. 529.  - .gifts_profile_gift img.animated {
  532. 530.  -   position: absolute;
  533. 531.  -   left: 0;
  534. 532.  -   right: 0;
  535. 533.  -   margin: 0 auto;
  536. 534.  - }
  537. 535.  - .gifts_profile_send .checkbox {
  538. 536.  -   text-align: left;
  539. 537.  -   padding: 8px 12px;
  540. 538.  -   font-size: 0.9em;
  541. 539.  -   color: #666;
  542. 540.  - }
  543. 541.  - .gifts_profile_message {
  544. 542.  -   padding: 0 12px;
  545. 543.  - }
  546. 544.  - #gifts_message {
  547. 545.  -   width: 136px;
  548. 546.  -   height: 35px;
  549. 547.  -   vertical-align: top;
  550. 548.  -   resize: none;
  551. 549.  -   margin: 2px 0px;
  552. 550.  -   outline: none;
  553. 551.  - }
  554. 552.  - #gifts_buttons {
  555. 553.  -   padding-top: 4px;
  556. 554.  - }
  557. 555.  - #gifts_submit {
  558. 556.  -   width: 144px;
  559. 557.  - }
  560. 558.  -
  561. 559.  - /* scrollbars */
  562. 560.  - .gifts_scrollbar_cont {
  563. 561.  -   width: 7px;
  564. 562.  -   height: 100%;
  565. 563.  -   margin-top: 3px;
  566. 564.  -   position: absolute;
  567. 565.  -   z-index: 500;
  568. 566.  - }
  569. 567.  - .gifts_scrollbar_inner {
  570. 568.  -   background: #DAE1E8;
  571. 569.  -   width: 6px;
  572. 570.  -   height: 26px;
  573. 571.  -   margin-left: -1px;
  574. 572.  -   -webkit-border-radius: 3px;
  575. 573.  -   -moz-border-radius: 3px;
  576. 574.  -   border-radius: 3px;
  577. 575.  -   cursor: pointer;
  578. 576.  - }
  579. 577.  - .gifts_scrollbar_inner:hover,
  580. 578.  - .gifts_scrollbar_hovered {
  581. 579.  -   background: #BEC8D3;
  582. 580.  - }
  583. 581.  - .gifts_scrollbar_top {
  584. 582.  -   position: absolute;
  585. 583.  -   height: 3px;
  586. 584.  -   margin-top: -1px;
  587. 585.  -   background: #555555;
  588. 586.  -   opacity: 0.12;
  589. 587.  -   filter: alpha(opacity=12);
  590. 588.  -   display: none;
  591. 589.  - }
  592. 590.  - .gifts_scrollbar_bottom {
  593. 591.  -   position: absolute;
  594. 592.  -   height: 3px;
  595. 593.  -   margin-top: -2px;
  596. 594.  -   background: #555555;
  597. 595.  -   opacity: 0.12;
  598. 596.  -   filter: alpha(opacity=12);
  599. 597.  - }
  600. 598.  - .gs_bonus_info {
  601. 599.  -   background: #F1F1F1;
  602. 600.  -   padding: 10px 10px;
  603. 601.  -   margin: 4px 10px 12px;
  604. 602.  - }
  605. 603.  - .gs_box_close {
  606. 604.  -   padding: 16px 20px 0px;
  607. 605.  - }
  608. 606.  - .gs_box_header {
  609. 607.  -   padding: 16px 0px 10px 0px;
  610. 608.  - }
  611. 609.  - .gs_box_header_f {
  612. 610.  -   font-size: 1.18em;
  613. 611.  -   color: #45688E;
  614. 612.  -   font-weight: bold;
  615. 613.  - }
  616. 614.  - #gsw_inp {
  617. 615.  -   width: 382px;
  618. 616.  -   font-size: 1em;
  619. 617.  -   font-family: Tahoma, Verdana, Arial, Sans-Serif, Lucida Sans;
  620. 618.  - }
  621. 619.  - .tb_tabs_wrap .gifts_add_lnk {
  622. 620.  -   padding: 11px 5px 9px;
  623. 621.  -   color: #899BA9;
  624. 622.  - }
  625. 623.  - #gifts_do_send_wrap {
  626. 624.  -   padding: 16px 14px;
  627. 625.  - }
  628. 626.  - #gifts_packages_wrap {
  629. 627.  -   display: none;
  630. 628.  -   padding: 16px 39px;
  631. 629.  - }
  632. 630.  - #gifts_packages_wrap .radiobtn {
  633. 631.  -   margin: 0 0 12px 5px;
  634. 632.  - }
  635. 633.  - #gifts_packages_wrap .radiobtn b {
  636. 634.  -   color: #36638E;
  637. 635.  -   font-size: 1.09em;
  638. 636.  - }
  639. 637.  - #gifts_packages_wrap .radiobtn span {
  640. 638.  -   color: #777;
  641. 639.  -   line-height: 20px;
  642. 640.  - }
  643. 641.  - #gifts_packages_wrap .radiobtn.disabled {
  644. 642.  -   opacity: 0.7;
  645. 643.  -   filter: alpha(opacity=70);
  646. 644.  - }
  647. 645.  - #gifts_packages_wrap .gifts_packages_options {
  648. 646.  -   margin: 0 auto;
  649. 647.  -   width: 240px;
  650. 648.  - }
  651. 649.  - #gifts_packages_wrap h2 {
  652. 650.  -   margin: 10px 0 20px 0;
  653. 651.  - }
  654. 652.  - #gifts_packages_wrap .error {
  655. 653.  -   margin: 0 -10px 15px -10px;
  656. 654.  - }
  657. 655.  - #gifts_packages_descr {
  658. 656.  -   margin: 20px 0 10px 0;
  659. 657.  -   color: #777;
  660. 658.  -   text-align: center;;
  661. 659.  - }
  662. 660.  - #gift_footer_balance_str {
  663. 661.  -   color: #777;
  664. 662.  - }
  665. 663.  -
  666. ------
  667. Файл - gifts.js (Старый размер - 11643 | Новый - 0):
  668. 0.  - var Gifts = {
  669. 1.  -   initGifts: function(opts, preload) {
  670. 2.  -     extend(cur, {
  671. 3.  -       pgStart: opts.start,
  672. 4.  -       pgOffset: opts.offset,
  673. 5.  -       pgCount: opts.count,
  674. 6.  -       pgPerPage: opts.perpage,
  675. 7.  -       pgCont: ge('gifts_rows'),
  676. 8.  -       pgMore: ge('gifts_load_more'),
  677. 9.  -       pgPages: ge('gifts_pages'),
  678. 10.  -       pgMorePrg: ge('gifts_more_progress'),
  679. 11.  -       pgPreload: preload,
  680. 12.  -       pgHref: '/gifts' + opts.mid + '?' + (opts.sent ? 'act=sent&' : '') + 'offset=',
  681. 13.  -       pgParams: opts.sent ? {act: 'sent'} : {},
  682. 14.  -       pgUrl: '/gifts' + opts.mid,
  683. 15.  -
  684. 16.  -       mid: opts.mid,
  685. 17.  -       hash: opts.hash
  686. 18.  -     });
  687. 19.  -     Pagination.init();
  688. 20.  -     cur.destroy.push(Pagination.deinit);
  689. 21.  -   },
  690. 22.  -   deleteGift: function(el, gift, giftData, opts) {
  691. 23.  -     opts = opts || {};
  692. 24.  -     ajax.post('al_gifts.php', {act: 'delete', mid: opts.mid, gift: giftData, hash: opts.hash}, {onDone: function(text) {
  693. 25.  -       var p = ge('gift' + gift);
  694. 26.  -       if (!p) return;
  695. 27.  -       if (p.firstChild.nextSibling) {
  696. 28.  -         p.firstChild.nextSibling.innerHTML = text;
  697. 29.  -       } else {
  698. 30.  -         p.appendChild(ce('div', {className: 'gift_deleted', innerHTML: text}));
  699. 31.  -         hide(p.firstChild);
  700. 32.  -         if (window.Pagination && !curBox()) Pagination.recache(-1);
  701. 33.  -       }
  702. 34.  -     }, showProgress: function() {
  703. 35.  -       hide(el);
  704. 36.  -       show(el.parentNode.nextSibling);
  705. 37.  -     }, hideProgress: function() {
  706. 38.  -       hide(el.parentNode.nextSibling);
  707. 39.  -       show(el);
  708. 40.  -     }});
  709. 41.  -   },
  710. 42.  -   restoreGift: function(el, gift, giftData, opts) {
  711. 43.  -     opts = opts || {};
  712. 44.  -     ajax.post('al_gifts.php', {act: 'restore', mid: opts.mid, gift: giftData, hash: opts.hash}, {onDone: function() {
  713. 45.  -       var p = ge('gift' + gift);
  714. 46.  -       if (!p || !p.firstChild.nextSibling) return;
  715. 47.  -       re(p.firstChild.nextSibling);
  716. 48.  -       show(p.firstChild);
  717. 49.  -     }});
  718. 50.  -   },
  719. 51.  -   onReceiverChange: function() {
  720. 52.  -     var dd = cur.wdd && cur.wdd['gft_box_dd'];
  721. 53.  -     if (cur.giftsLeft) {
  722. 54.  -       var selected = 0, all = dd.selected;
  723. 55.  -       for (var i in all) {
  724. 56.  -         var d = (all[i][0] > 0) ? 1 : all[i][6];
  725. 57.  -         if (selected + d > cur.giftsLeft) {
  726. 58.  -           setTimeout(WideDropdown.deselect.pbind('gft_box_dd', all[i][0], false), 0);
  727. 59.  -           return false;
  728. 60.  -         } else {
  729. 61.  -           selected += d;
  730. 62.  -         }
  731. 63.  -       }
  732. 64.  -     }
  733. 65.  -
  734. 66.  -     cur.sel = [];
  735. 67.  -     for (var i in dd.selected) {
  736. 68.  -       cur.sel.push(dd.selected[i]);
  737. 69.  -     }
  738. 70.  -     if (!cur.sel.length) {
  739. 71.  -       delete(cur.sel);
  740. 72.  -     }
  741. 73.  -     val('gft_box_to', getLang((cur.sel && cur.sel.length > 1) ? 'gifts_receivers' : 'gifts_receiver').replace(':', ''));
  742. 74.  -   },
  743. 75.  -   selectGift: function(num, votes, bonus, tip, left) {
  744. 76.  -     cur.gift = num;
  745. 77.  -     cur.giftsLeft = left;
  746. 78.  -     var box = showFastBox({
  747. 79.  -       title: false,
  748. 80.  -       width: 444,
  749. 81.  -       bodyStyle: 'border: 0px; padding: 0px;',
  750. 82.  -       onShow: function() {
  751. 83.  -         addClass(boxLayerBG, 'bg_dark');
  752. 84.  -         cur._noEscHide = true;
  753. 85.  -       },
  754. 86.  -       onClean: function() {
  755. 87.  -         if (window.WideDropdown) WideDropdown.deinit('gft_box_dd');
  756. 88.  -         cur._noEscHide = false;
  757. 89.  -       }
  758. 90.  -     }, '\
  759. 91.  - <a class="fl_r tb_close" onclick="curBox().hide()">' + getLang('global_close') + '</a>\
  760. 92.  - <div class="tb_title">' + getLang('gifts_send_gift') + '</div>\
  761. 93.  - <div id="gifts_do_send_wrap">\
  762. 94.  - ' + (left > 0 ? '<div class="info_msg" style="margin-bottom: 10px;">' + getLang('gifts_free_send_left', left) + '</div>' : '') + '\
  763. 95.  - <div class="gs_box_wrap">\
  764. 96.  -   <img class="gs_box_img" src="images/gifts/256/' + num + '.jpg" />\
  765. 97.  - </div>\
  766. 98.  - <div class="gft_send">\
  767. 99.  -   <div class="gft_box_label" id="gft_box_to">' + getLang('gifts_receiver').replace(':', '') + '</div>\
  768. 100.  -   <div class="wdd clear_fix" id="gft_box_dd">\
  769. 101.  -     <div class="fl_r wdd_arr"></div>\
  770. 102.  -     <input type="text" class="wdd_text fl_l" placeholder="' + clean(getLang('gifts_choose_recipients')) + '" id="gft_box_inp" onfocus="this.focused=1" onblur="this.focused=\'\'" />\
  771. 103.  -     <br class="clear" />\
  772. 104.  -   </div>\
  773. 105.  -   <div class="fl_r" id="gs_warn"></div>\
  774. 106.  -   <div class="gft_box_label">' + getLang('gifts_your_message').replace(':', '') + '</div>\
  775. 107.  -   <div class="gft_box_text_wrap">\
  776. 108.  -     <textarea id="gs_msg" onchange="cur.giftCurrentMessage = this.value;" onkeydown="onCtrlEnter(event, Gifts.sendGift)" onkeyup="checkTextLength(cur.maxLen, this, \'gs_warn\', false, true)"></textarea>\
  777. 109.  -   </div>\
  778. 110.  -   <div class="gs_privacy">\
  779. 111.  -     <div class="checkbox' + (cur.giftCurrentPrivacy ? ' on' : '') + '" id="gift_receiver_only" onclick="checkbox(this); cur.giftCurrentPrivacy = isChecked(this);">\
  780. 112.  -       <div></div>' + getLang('gifts_receiver_only') + '\
  781. 113.  -     </div>\
  782. 114.  -   </div>\
  783. 115.  - </div>\
  784. 116.  - ' + (bonus > 0 ? '<div class="gs_bonus">' + getLang('gifts_rate_increase').replace('{gifts_count}', getLang(bonus, 'gifts_X_votes')) + '</div>' : '') + '\
  785. 117.  - ' + (tip ? '<div class="gs_tip">' + tip + '</div>' : '') + '\
  786. 118.  - </div>\
  787. 119.  -     ', getLang('box_send'), Gifts.sendGift, getLang('global_cancel'));
  788. 120.  -     setStyle(domNS(box.bodyNode), {border: '0px'});
  789. 121.  -
  790. 122.  -     if (WideDropdown.init('gft_box_dd', {
  791. 123.  -       defaultItems: cur.users,
  792. 124.  -       items: cur.users,
  793. 125.  -       noResult: getLang('gifts_nobody_found'),
  794. 126.  -       introText: getLang('gifts_start_typing_recipient'),
  795. 127.  -       maxItems: cur.giftsLimit ? cur.giftsLimit : 100,
  796. 128.  -       onChange: function(act) {
  797. 129.  -         if (act == 1 && !inArray(cur.section, ['valentines', 'love', 'friends', 'birthday'])) { // added
  798. 130.  -           setTimeout(WideDropdown.focus.pbind('gft_box_dd'), 0);
  799. 131.  -         }
  800. 132.  -         setTimeout(Gifts.onReceiverChange, 0);
  801. 133.  -       },
  802. 134.  -       itemMark: function(item) {
  803. 135.  -         return intval(item[5]) ? 1 : 0;
  804. 136.  -       }
  805. 137.  -     })) {
  806. 138.  -       if (cur.sel) {
  807. 139.  -         for (var i in cur.sel) {
  808. 140.  -           WideDropdown.select('gft_box_dd', false, cur.sel[i]);
  809. 141.  -         }
  810. 142.  -       }
  811. 143.  -     }
  812. 144.  -
  813. 145.  -     box.setControlsText('&nbsp;');
  814. 146.  -     Gifts.onReceiverChange();
  815. 147.  -     box.changed = true;
  816. 148.  -     autosizeSetup('gs_msg', {minHeight: 50, maxHeight: 150});
  817. 149.  -     if (!cur.sel || isArray(cur.sel) && !cur.sel.length) {
  818. 150.  -       WideDropdown.focus('gft_box_dd');
  819. 151.  -     } else {
  820. 152.  -       elfocus('gs_msg');
  821. 153.  -     }
  822. 154.  -   },
  823. 155.  -   sendGift: function() {
  824. 156.  -     var mids = [], dd = cur.wdd && cur.wdd['gft_box_dd'], sel = dd.selected;
  825. 157.  -     for (var i in sel) {
  826. 158.  -       if (typeof(sel[i][4]) == 'string' && sel[i][4] != '' && sel[i][4] != 'none') {
  827. 159.  -         mids.push(sel[i][4]);
  828. 160.  -       } else {
  829. 161.  -         mids.push(sel[i][0]);
  830. 162.  -       }
  831. 163.  -     }
  832. 164.  -     mids = mids.join(',');
  833. 165.  -     if (!mids) {
  834. 166.  -       return WideDropdown.focus('gft_box_dd');
  835. 167.  -     }
  836. 168.  -     var sendBtn = geByClass1('button_blue', curBox().bodyNode.nextSibling).firstChild;
  837. 169.  -     ajax.post('al_gifts.php', {
  838. 170.  -       act: 'do_send',
  839. 171.  -       text: ge('gs_msg').value,//(isVisible('gs_msg_wrap') ? ge('gs_msg').value : ''),
  840. 172.  -       mids: mids,
  841. 173.  -       number: cur.gift,
  842. 174.  -       type: isChecked('gift_receiver_only') ? 1 : 0,
  843. 175.  -       hash: cur.hash
  844. 176.  -     }, {
  845. 177.  -       onDone: function(data, text) {
  846. 178.  -         cur.giftCurrentMessage = '';
  847. 179.  -         updateMoney(data);
  848. 180.  -         curBox().hide();
  849. 181.  -         showDoneBox(text, {out: 1500})
  850. 182.  -         if (cur.giftsLeft) nav.reload();
  851. 183.  -       },
  852. 184.  -       showProgress: lockButton.pbind(sendBtn),
  853. 185.  -       hideProgress: unlockButton.pbind(sendBtn)
  854. 186.  -     });
  855. 187.  -   },
  856. 188.  -   initGiftsBox: function(box, opts) {
  857. 189.  -     box.setOptions({width: 620, bodyStyle: 'margin-top: 50px; padding: 0px', onShow: function() {
  858. 190.  -       if (cur.gftbxWasScroll) {
  859. 191.  -         boxLayerWrap.scrollTop = cur.gftbxWasScroll;
  860. 192.  -         cur.gftbxWasScroll = false;
  861. 193.  -       }
  862. 194.  -       addClass(boxLayerBG, 'bg_dark');
  863. 195.  -     }});
  864. 196.  -     if (opts.lang) {
  865. 197.  -       cur.lang = extend(cur.lang || {}, opts.lang);
  866. 198.  -     }
  867. 199.  -
  868. 200.  -     if (cur.lSTL) re(cur.lSTL);
  869. 201.  -     if (cur.gftbxAddLnk) re(cur.gftbxAddLnk);
  870. 202.  -     extend(cur, {
  871. 203.  -       gftbxOffsets: cur.gftbxOffsets || {},
  872. 204.  -       gftbxPhCache: cur.gftbxPhCache || {},
  873. 205.  -       gftbxPhShown: cur.gftbxPhShown || {},
  874. 206.  -
  875. 207.  -       gftbxAutoload: true,
  876. 208.  -       gftbxWasScroll: false,
  877. 209.  -       // gftbxHash: opts.hash,
  878. 210.  -       gftbxMid: opts.mid,
  879. 211.  -       gftbxId: box.tbId,
  880. 212.  -       gftbxAddLnk: ge('tb_'+box.tbId+'_prg').parentNode.insertBefore(se('<div class="gifts_add_lnk fl_r"><a href="/gifts?act=send" onclick="return (window.Profile ? Profile.showGiftBox(cur.oid, event) : nav.go(this, event));">' + getLang('gifts_send_gift') + '</a></div>'), ge('tb_'+box.tbId+'_prg')),
  881. 213.  -
  882. 214.  -       lSTL: boxLayerWrap.appendChild(ce('div', {id: 'layer_stl', innerHTML: '<div id="layer_stl_bg" class="fixed"></div><div id="layer_stl_cl"></div><nobr id="layer_stl_text" class="fixed">' + getLang('global_to_top') + '</nobr>', el: box.bodyNode, onclick: cancelEvent, onmousedown: Gifts.lSTLDown, sc: Gifts.onGiftsScroll})),
  883. 215.  -       lSTLShown: 0,
  884. 216.  -       lSTLWas: 0,
  885. 217.  -       lSTLWasSet: 0
  886. 218.  -     });
  887. 219.  -     cur.gftbxOffsets[opts.tab] = opts.offset;
  888. 220.  -
  889. 221.  -     ajax.preload('al_gifts.php', {
  890. 222.  -       act: 'box',
  891. 223.  -       tab: opts.tab,
  892. 224.  -       mid: opts.mid,
  893. 225.  -       offset: opts.offset
  894. 226.  -     }, opts.preload);
  895. 227.  -
  896. 228.  -     if (!box.tbDeinit) {
  897. 229.  -       box.tbDeinit = function() {
  898. 230.  -         cur.gftbxMid = cur.gftbxOffsets = cur.gftbxPhShown = false;
  899. 231.  -         re(cur.lSTL);
  900. 232.  -         removeEvent(boxLayerWrap, 'scroll', Gifts.onGiftsScroll);
  901. 233.  -       }
  902. 234.  -       addEvent(boxLayerWrap, 'scroll', Gifts.onGiftsScroll);
  903. 235.  -     }
  904. 236.  -
  905. 237.  -     if (cur.gftbxLoaded) cur.gftbxLoaded();
  906. 238.  -     onBodyResize();
  907. 239.  -     Gifts.onGiftsScroll();
  908. 240.  -   },
  909. 241.  -   moreGifts: function() {
  910. 242.  -     var t = curBox().tbCur;
  911. 243.  -     if (isVisible('gifts_more_prg' + t)) return;
  912. 244.  -     ajax.post('al_gifts.php', {act: 'box', tab: t, mid: cur.gftbxMid, offset: cur.gftbxOffsets[t]}, {
  913. 245.  -       onDone: function(rows, newOffset, needMore) {
  914. 246.  -         var el = ce('div', {innerHTML: rows}), cnt = ge('gifts_rows' + t);
  915. 247.  -         if (!cnt) return;
  916. 248.  -
  917. 249.  -         for (var e = domFC(el); e; e = domFC(el)) {
  918. 250.  -           cnt.appendChild(e);
  919. 251.  -         }
  920. 252.  -         cur.gftbxOffsets[t] = newOffset;
  921. 253.  -         if (needMore) {
  922. 254.  -           Gifts.preloadGifts();
  923. 255.  -         } else {
  924. 256.  -           hide('gifts_more_link' + t);
  925. 257.  -         }
  926. 258.  -       }, showProgress: function() {
  927. 259.  -         hide('gifts_more_link' + t);
  928. 260.  -         show('gifts_more_prg' + t);
  929. 261.  -       }, hideProgress: function() {
  930. 262.  -         show('gifts_more_link' + t);
  931. 263.  -         hide('gifts_more_prg' + t);
  932. 264.  -       }, cache: 1
  933. 265.  -     });
  934. 266.  -     cur.gftbxAutoload = true;
  935. 267.  -   },
  936. 268.  -   preloadGifts: function() {
  937. 269.  -     var t = curBox().tbCur;
  938. 270.  -     ajax.post('al_gifts.php', {act: 'box', tab: t, mid: cur.gftbxMid, offset: cur.gftbxOffsets[t]}, {
  939. 271.  -       cache: 1
  940. 272.  -     });
  941. 273.  -   },
  942. 274.  -   lSTLDown: function(e) {
  943. 275.  -     e = e || window.event;
  944. 276.  -     if (checkEvent(e)) return;
  945. 277.  -
  946. 278.  -     if (!__afterFocus) {
  947. 279.  -       var to = 0, st = boxLayerWrap.scrollTop;
  948. 280.  -       if (cur.lSTLWasSet && cur.lSTLWas) {
  949. 281.  -         to = cur.lSTLWas;
  950. 282.  -         cur.lSTLWas = 0;
  951. 283.  -       } else {
  952. 284.  -         cur.lSTLWas = st;
  953. 285.  -       }
  954. 286.  -       boxLayerWrap.scrollTop = to;
  955. 287.  -     }
  956. 288.  -     return cancelEvent(e);
  957. 289.  -   },
  958. 290.  -   onGiftsScroll: function() {
  959. 291.  -     var st = boxLayerWrap.scrollTop, mx = 200, vis = cur.lSTLWas || (st > mx), o = 0;
  960. 292.  -     cur.lSTL.style.marginTop = st + 'px';
  961. 293.  -     if (!vis) {
  962. 294.  -       if (cur.lSTLShown !== 0) {
  963. 295.  -         hide(cur.lSTL);
  964. 296.  -         cur.lSTLShown = 0;
  965. 297.  -       }
  966. 298.  -     } else {
  967. 299.  -       if (cur.lSTLShown !== 1) {
  968. 300.  -         show(cur.lSTL);
  969. 301.  -         cur.lSTLShown = 1;
  970. 302.  -       }
  971. 303.  -       if (cur.lSTLWas && st > 500) {
  972. 304.  -         cur.lSTLWas = 0;
  973. 305.  -       }
  974. 306.  -       if (st > mx) {
  975. 307.  -         o = (st - mx) / mx;
  976. 308.  -         if (cur.lSTLWasSet) {
  977. 309.  -           cur.lSTLWasSet = 0;
  978. 310.  -           val(domLC(cur.lSTL), getLang('global_to_top'));
  979. 311.  -           removeClass(domLC(cur.lSTL), 'down');
  980. 312.  -         }
  981. 313.  -       } else {
  982. 314.  -         o = (mx - st) / mx;
  983. 315.  -         if (cur.lSTLWas) {
  984. 316.  -           if (!cur.lSTLWasSet) {
  985. 317.  -             cur.lSTLWasSet = 1;
  986. 318.  -             val(domLC(cur.lSTL), '');
  987. 319.  -             addClass(domLC(cur.lSTL), 'down');
  988. 320.  -           }
  989. 321.  -         }
  990. 322.  -       }
  991. 323.  -     }
  992. 324.  -     setStyle(cur.lSTL, {opacity: Math.min(Math.max(o, 0), 1)});
  993. 325.  -     if (!cur.gftbxAutoload) return;
  994. 326.  -     var bt = lastWindowHeight, objMore = ge('gifts_more_link' + curBox().tbCur);
  995. 327.  -     if (isVisible(objMore) && (bt > getXY(objMore, true)[1])) {
  996. 328.  -       objMore.click();
  997. 329.  -     }
  998. 330.  -   }
  999. 331.  - }
  1000. 332.  -
  1001. 333.  - try{stManager.done('gifts.js');}catch(e){}
  1002. ------
Advertisement
Add Comment
Please, Sign In to add comment