Hormold

VK Change (#1375714809)

Aug 5th, 2013
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 112.51 KB | None | 0 0
  1. Файл - pads.css (Старый размер - 31368 | Новый - 0):
  2. 0.  - #pads_css {
  3. 1.  -   display: none;
  4. 2.  - }
  5. 3.  -
  6. 4.  - #pad_rows {
  7. 5.  -   overflow: hidden;
  8. 6.  - }
  9. 7.  - .pad_no_fixed {
  10. 8.  -   position: absolute;
  11. 9.  - }
  12. 10.  - #pad_wrap {
  13. 11.  -   z-index: 400;
  14. 12.  -   -webkit-box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.35);
  15. 13.  -   -moz-box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.35);
  16. 14.  -   box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.35);
  17. 15.  - }
  18. 16.  - #pad_cont {
  19. 17.  -   background: #FFF;
  20. 18.  -   overflow: hidden;
  21. 19.  -   position: relative;
  22. 20.  - }
  23. 21.  - #pad_cont.pad_loading {
  24. 22.  -   background: #FFF url(/images/upload.gif) no-repeat center center;
  25. 23.  -   height: 100px;
  26. 24.  -   border: 1px solid #ADBAC7;
  27. 25.  - }
  28. 26.  - #pad_title_wrap {
  29. 27.  -   background-color: #597DA3;
  30. 28.  -   border: 1px solid;
  31. 29.  -   border-color: #45688E #43658A;
  32. 30.  -   padding: 0px;
  33. 31.  -   color: #FFF;
  34. 32.  -   font-size: 1.18em;
  35. 33.  -   font-weight: bold;
  36. 34.  - }
  37. 35.  - #pad_title {
  38. 36.  -   border-top: 1px solid #648CB7;
  39. 37.  -   padding: 6px 10px 8px 10px;
  40. 38.  - }
  41. 39.  - #pad_title_right {
  42. 40.  -   font-size: 0.847em;
  43. 41.  -   color: #FFF;
  44. 42.  -   font-weight: normal;
  45. 43.  -   line-height: 13px;
  46. 44.  -   padding: 9px 10px;
  47. 45.  -   color: #C7D7E9;
  48. 46.  -   -webkit-transition: color 100ms linear;
  49. 47.  -   -moz-transition: color 100ms linear;
  50. 48.  -   -o-transition: color 100ms linear;
  51. 49.  -   transition: color 100ms linear;
  52. 50.  - }
  53. 51.  - #pad_title_right:hover {
  54. 52.  -   color: #FFF;
  55. 53.  -   text-decoration: none;
  56. 54.  - }
  57. 55.  - #pad_content {
  58. 56.  -   position: relative;
  59. 57.  -   overflow: hidden;
  60. 58.  -   border: 1px solid #ADBAC7;
  61. 59.  -   border-width: 0px 1px;
  62. 60.  - }
  63. 61.  - #pad_controls {
  64. 62.  -   border: 1px solid #ADBAC7;
  65. 63.  -   border-width: 1px 1px 0px;
  66. 64.  - }
  67. 65.  - #pad_footer_wrap {
  68. 66.  -   border: 1px solid #999;
  69. 67.  -   border-top: 0px;
  70. 68.  - }
  71. 69.  - #pad_footer_wrap.music {
  72. 70.  -   border-color: #ADBAC7;
  73. 71.  - }
  74. 72.  - #pad_footer {
  75. 73.  -   padding: 8px 5px 7px;
  76. 74.  -   height: 30px;
  77. 75.  -   background-color: #F2F2F2;
  78. 76.  -   border-top: 1px solid #DAE1E8;
  79. 77.  - }
  80. 78.  - #pad_footer_text {
  81. 79.  -   padding: 8px 8px 0px;
  82. 80.  - }
  83. 81.  - .pad_close_btn {
  84. 82.  -   margin: 2px 5px;
  85. 83.  - }
  86. 84.  - .pad_none {
  87. 85.  -   color: #777;
  88. 86.  -   font-size: 12px;
  89. 87.  -   text-align: center;
  90. 88.  -   line-height: 160%;
  91. 89.  -   padding: 30px 0px;
  92. 90.  -   border: 1px solid #ADBAC7;
  93. 91.  - }
  94. 92.  - div.pad_btn_prg {
  95. 93.  -   background: url(/images/upload.gif) no-repeat center center;
  96. 94.  -   cursor: default;
  97. 95.  - }
  98. 96.  - div.pad_btn_prg .button {
  99. 97.  -   visibility: hidden;
  100. 98.  - }
  101. 99.  -
  102. 100.  - #pad_layer_bg {
  103. 101.  -   top: 0;
  104. 102.  -   left: 0;
  105. 103.  -   width: 100%;
  106. 104.  -   height: 100%;
  107. 105.  -   overflow: hidden;
  108. 106.  -   background: #000;
  109. 107.  -   opacity: 0.2;
  110. 108.  -   filter: alpha(opacity=20);
  111. 109.  -   z-index: 350;
  112. 110.  - }
  113. 111.  - @-moz-document url-prefix() {
  114. 112.  -   #pad_layer_bg {
  115. 113.  -     background: url(/images/layer_bg_lite.png);
  116. 114.  -     opacity: 1 !important;
  117. 115.  -   }
  118. 116.  - }
  119. 117.  -
  120. 118.  - #pad_arrow {
  121. 119.  -   position: absolute;
  122. 120.  -   left: -10px;
  123. 121.  -   top: 43px;
  124. 122.  -   z-index: 410;
  125. 123.  -   width: 12px;
  126. 124.  -   height: 17px;
  127. 125.  -   background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAARCAYAAADpPU2iAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAEBSURBVHjaYvj//z8DNgwETEDMDKVZ1+46/h8EAAIIxCEEmJE5AAHEgk0FIyMjzHQ2IAZZxwiTAwggdGeAFLECMTsQcwCxIBALrdt75j8MAAQQupthirlBCoFYAlkxCAAEELIGdMVS6IpBACCAkBWzElIMAgABhKyBC4gFgFgSl2IQAAggZA0g04XxKQYBgABCDhmwBiCWw6cJIIAwbABiWSBWwaUJIICQbYD7AYgVgFgdmyaAAEKOMA6kUJIGYkVsNgEEEAMWW5A1yaH7CSCAcCULLlhMA7E4EIvAUitAALEgpam/QOovMOGBNP1DS49wPkAAYUutMMmfKKkUCgACDAApwDnZIBTuSQAAAABJRU5ErkJggg==) no-repeat;
  128. 126.  - }
  129. 127.  - #pad_arrow.head {
  130. 128.  -   width: 17px;
  131. 129.  -   height: 12px;
  132. 130.  -   left: auto;
  133. 131.  -   right: 124px;
  134. 132.  -   top: -10px;
  135. 133.  -   background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAMCAYAAACEJVa/AAAAsUlEQVR42pWRUQrCMAyGy8rY6F5mFeYURUHw8HoAwee9eJreoEskKSG0uhU+ysqfjywxJn+sulcdS9QFFgkw2AIO6AROiKpfkloU98BW0NN7Qzlb6qChoAdG4AScn+9PpG+vRFmJo+ARuAA3FIQQIokOSlRpiRRcgTsLGCVqxXy+Mv6FPbYvO9CQCHMbquNtJsnAM8gJlMiLjaVOcPq7fwIl6tLaH68pMksEjKwzawpLzG2yBJvr9mIGAAAAAElFTkSuQmCC) no-repeat;
  136. 134.  - }
  137. 135.  - #pad_arrow.head.no_data {
  138. 136.  -   width: 17px;
  139. 137.  -   height: 12px;
  140. 138.  -   left: auto;
  141. 139.  -   right: 124px;
  142. 140.  -   top: -10px;
  143. 141.  -   background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAMCAYAAACEJVa/AAAAsElEQVR42pWR0QrCMAxFy8rY6F5mFeYURUHw4/UDBJ/34j+VLpGkhNDqVjiUlZtDlhiTP1bdq44l6gKLBBhsAQd0AidE1S9JLYp7YCvo6b2hnC110FDQAyNwAs7P9yfSt1eirMRR8AhcgBsKQgiRRAclqrRECq7AnQWMErViPl8Z/8Ie25cdaEiEuQ3V8TaTZOAZ5ARK5MXGUic4/d0/gRJ1ae2P1xSZJQJG1pk1hSVmRScMrgyoQyAAAAAASUVORK5CYII%3D) no-repeat;
  144. 142.  - }
  145. 143.  - #pad_arrow.right {
  146. 144.  -   width: 12px;
  147. 145.  -   height: 17px;
  148. 146.  -   left: auto;
  149. 147.  -   right: -10px;
  150. 148.  -   top: 17px;
  151. 149.  -   background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAARCAYAAADpPU2iAAAArUlEQVR42pWSTQrCQAyFQ4eh4mz8A6uiKAgeXg8guHbjaeYGbQYivkkTxcK3e9880oRyzv31/uyJKAEBqD8QZsxCmDJRcIUVs2Y6kFqRQiUUbo9XkQ7CTqQEbaESQDozJyVNTAGkC3NkNjLbp0ULqmnPLKUlmg3GTCgEVwDprwY9A32bYQt/KbqCEW6rjRvhzgg33qZLcC6LGp+FuqX3GaTRq44Q4UU7bAjNL2EAU9kEmwVnt3EAAAAASUVORK5CYII%3D) no-repeat;
  152. 150.  - }
  153. 151.  - #pad_arrow.left {
  154. 152.  -   width: 12px;
  155. 153.  -   height: 17px;
  156. 154.  -   left: -10px;
  157. 155.  -   right: auto;
  158. 156.  -   top: auto;
  159. 157.  -   bottom: 15px;
  160. 158.  -   background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAARCAYAAADpPU2iAAAAr0lEQVR42pWSTQoCMQxGS0NROpuxCv7hoCB4eD2A4NqNp+kNZr5KAyHYMA48uvleMmnqXPvzgOoZ7s/3mHMe3QwhzBF8DXYglrMlcMUFWIIVSI/X5xvWghfhUjmBnQxrQYcPOiyFIP65GdZCGa4H+1ZYC6X62gqzQFIAw18dwAlcrRlIzwDO4GbdEtVF8S0dweVXJ73hqKRBz9R6FpE3DbZgYz2+ILqlSm8JJOgYFiaDlASbG44/fAAAAABJRU5ErkJggg%3D%3D) no-repeat;
  161. 159.  - }
  162. 160.  - #pad_arrow.blue {
  163. 161.  -   background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAARCAYAAADpPU2iAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAM1JREFUeNqMksEJwkAQAC/nqecVIAr+BC3EAqwiFdiFYAVWYTkKPnwZfPg8TxKNu7ILS8hqAvO6mWyySWb0qwcMCbPKt/fxZGqcImcU9Cmo+cApsqUzlAfASwtYxjt7wq03+0sI/itYRQ6EB/nMsgza5ADyUcocdJblBF7hCNFkOYHXiC940mQOagJXVx12+SLG9DMwJD+BBwLRUot4whsogchoEU/oHMkP1xYliOYyso2JMkoELmJ2K67qz8dRRYuw//5WI9ZcNp/iI8AAlvJWguL+p+oAAAAASUVORK5CYII=);
  164. 162.  - }
  165. 163.  -
  166. 164.  - /* scrollbars */
  167. 165.  - .pad_scrollbar_cont {
  168. 166.  -   width: 9px;
  169. 167.  -   height: 100%;
  170. 168.  -   margin-top: 0px;
  171. 169.  -   position: absolute;
  172. 170.  -   background: rgba(200, 200, 200, 0);
  173. 171.  -   -webkit-transition: all 150ms linear;
  174. 172.  -   -moz-transition: all 150ms linear;
  175. 173.  -   -o-transition: all 150ms linear;
  176. 174.  -   transition: all 150ms linear;
  177. 175.  -   z-index: 500;
  178. 176.  -   cursor: pointer;
  179. 177.  - }
  180. 178.  - .pad_scrollbar_cont.scrollbar_c_overed {
  181. 179.  -   background: rgba(235, 235, 245, 0.4);
  182. 180.  -   width: 11px;
  183. 181.  - }
  184. 182.  - .pad_scrollbar_inner {
  185. 183.  -   background: #DAE1E8;
  186. 184.  -   width: 6px;
  187. 185.  -   height: 26px;
  188. 186.  -   margin-left: 1px;
  189. 187.  -   -webkit-border-radius: 3px;
  190. 188.  -   -moz-border-radius: 3px;
  191. 189.  -   border-radius: 3px;
  192. 190.  -   cursor: pointer;
  193. 191.  -   -webkit-transition: width 150ms linear, background-color 200ms linear;
  194. 192.  -   -moz-transition: width 150ms linear,  background-color 200ms linear;
  195. 193.  -   -o-transition: width 150ms linear,  background-color 200ms linear;
  196. 194.  -   transition: width 150ms linear,  background-color 200ms linear;
  197. 195.  - }
  198. 196.  - .scrollbar_c_overed .pad_scrollbar_inner {
  199. 197.  -   width: 8px;
  200. 198.  -   -webkit-border-radius: 4px;
  201. 199.  -   -moz-border-radius: 4px;
  202. 200.  -   border-radius: 4px;
  203. 201.  - }
  204. 202.  - .pad_scrollbar_inner:hover,
  205. 203.  - .pad_scrollbar_hovered {
  206. 204.  -   background: #BEC8D3;
  207. 205.  - }
  208. 206.  - .pad_scrollbar_top {
  209. 207.  -   position: absolute;
  210. 208.  -   height: 3px;
  211. 209.  -   margin-top: -1px;
  212. 210.  -   background: #555555;
  213. 211.  -   opacity: 0.12;
  214. 212.  -   filter: alpha(opacity=12);
  215. 213.  -   display: none;
  216. 214.  -   z-index: 20;
  217. 215.  - }
  218. 216.  - .pad_scrollbar_bottom {
  219. 217.  -   position: absolute;
  220. 218.  -   height: 3px;
  221. 219.  -   margin-top: -2px;
  222. 220.  -   background: #555555;
  223. 221.  -   opacity: 0.12;
  224. 222.  -   filter: alpha(opacity=12);
  225. 223.  -   z-index: 20;
  226. 224.  - }
  227. 225.  - #pad_more {
  228. 226.  -   background: #EFF1F3;
  229. 227.  -   display: block;
  230. 228.  -   text-align: center;
  231. 229.  -   color: #738392;
  232. 230.  -   padding: 8px;
  233. 231.  -   margin: 0 10px 10px;
  234. 232.  - }
  235. 233.  - #pad_more:hover {
  236. 234.  -   text-decoration: none;
  237. 235.  -   background: #E9EDF1;
  238. 236.  - }
  239. 237.  - .pad_more_arrow {
  240. 238.  -   width: 10px;
  241. 239.  -   height: 10px;
  242. 240.  -   padding: 2px 0px 0px 4px;
  243. 241.  -   background: url('/images/icons/wall_fixed_more_arrows.gif') 1px 2px no-repeat;
  244. 242.  - }
  245. 243.  - .pad_error {
  246. 244.  -   color: #800;
  247. 245.  - }
  248. 246.  - .pad_decl {
  249. 247.  -   margin-left: 10px;
  250. 248.  - }
  251. 249.  - .pad_mini_friend {
  252. 250.  -   width: 32px;
  253. 251.  - }
  254. 252.  -
  255. 253.  - .pad_fr_rows,
  256. 254.  - .pad_ph_rows,
  257. 255.  - .pad_vid_rows {
  258. 256.  -   width: 376px;
  259. 257.  - }
  260. 258.  - .pad_fr_addinfo,
  261. 259.  - .pad_gr_addinfo,
  262. 260.  - .pad_ap_addinfo {
  263. 261.  -   padding-top: 7px;
  264. 262.  -   color: #777;
  265. 263.  - }
  266. 264.  - .pad_fr_done {
  267. 265.  -   padding-top: 9px;
  268. 266.  - }
  269. 267.  - .add_fr_one,
  270. 268.  - .add_ap_one {
  271. 269.  -   padding-bottom: 5px;
  272. 270.  - }
  273. 271.  - .pad_fr_img,
  274. 272.  - .pad_ap_img {
  275. 273.  -   width: 75px;
  276. 274.  - }
  277. 275.  - .pad_ap_list_img {
  278. 276.  -   width: 50px;
  279. 277.  -   -webkit-border-radius: 5px;
  280. 278.  -   -moz-border-radius: 5px;
  281. 279.  -   border-radius: 5px;
  282. 280.  - }
  283. 281.  - .pad_fr_msg,
  284. 282.  - .pad_ap_msg {
  285. 283.  -   padding-top: 5px;
  286. 284.  -   overflow: hidden;
  287. 285.  -   -o-text-overflow: ellipsis;
  288. 286.  -   text-overflow: ellipsis;
  289. 287.  - }
  290. 288.  - .pad_ap_msg {
  291. 289.  -   padding: 7px 0px 5px;
  292. 290.  - }
  293. 291.  - .pad_fr_common,
  294. 292.  - .pad_gr_friends,
  295. 293.  - .pad_ap_friends {
  296. 294.  -   padding-top: 8px;
  297. 295.  -   height: 32px;
  298. 296.  -   overflow: hidden;
  299. 297.  - }
  300. 298.  - .pad_fr,
  301. 299.  - .pad_gr,
  302. 300.  - .pad_ap {
  303. 301.  -   padding: 10px 0px;
  304. 302.  -   margin: 0px 12px;
  305. 303.  -   border-bottom: 1px solid #E4E8ED;
  306. 304.  - }
  307. 305.  - .pad_fr:last-child,
  308. 306.  - .pad_gr:last-child,
  309. 307.  - .pad_ap:last-child {
  310. 308.  -   border-bottom: 0px;
  311. 309.  - }
  312. 310.  - .pad_fr_phwrap,
  313. 311.  - .pad_gr_phwrap,
  314. 312.  - .pad_ap_phwrap {
  315. 313.  -   height: 75px;
  316. 314.  -   overflow: hidden;
  317. 315.  -   position: relative;
  318. 316.  - }
  319. 317.  - .pad_ap_list_phwrap {
  320. 318.  -   height: 50px;
  321. 319.  -   overflow: hidden;
  322. 320.  -   -webkit-border-radius: 5px;
  323. 321.  -   -moz-border-radius: 5px;
  324. 322.  -   border-radius: 5px;
  325. 323.  - }
  326. 324.  - .pad_gr_phwrap {
  327. 325.  -   height: 100px;
  328. 326.  - }
  329. 327.  - .pad_fr_info,
  330. 328.  - .pad_ap_info {
  331. 329.  -   margin-left: 85px;
  332. 330.  -   width: 265px;
  333. 331.  - }
  334. 332.  - .pad_ap_list_info {
  335. 333.  -   margin-left: 60px;
  336. 334.  -   width: 265px;
  337. 335.  -   color: #777777;
  338. 336.  - }
  339. 337.  - .pad_gr_info {
  340. 338.  -   margin-left: 110px;
  341. 339.  -   width: 335px;
  342. 340.  - }
  343. 341.  - .pad_fr_name,
  344. 342.  - .pad_ap_name {
  345. 343.  -   padding-top: 2px;
  346. 344.  - }
  347. 345.  - .pad_ap_list_name {
  348. 346.  -   padding: 2px 0px 4px;
  349. 347.  - }
  350. 348.  - .pad_fr_lnk,
  351. 349.  - .pad_gr_lnk,
  352. 350.  - .pad_ap_lnk {
  353. 351.  -   font-weight: bold;
  354. 352.  -   color: #45688E;
  355. 353.  - }
  356. 354.  - .pad_fr_phbig {
  357. 355.  -   position: absolute;
  358. 356.  -   color: #FFF;
  359. 357.  -   margin-top: 75px;
  360. 358.  -   background: #333;
  361. 359.  -   background: rgba(0, 0, 0, 0.5);
  362. 360.  -   width: 75px;
  363. 361.  -   height: 15px;
  364. 362.  -   line-height: 15px;
  365. 363.  -   padding: 4px 0px 6px 0px;
  366. 364.  -   text-align: center;
  367. 365.  -   filter: alpha(opacity=75);
  368. 366.  - }
  369. 367.  - @media all and (min-width:0) { /* IE9-10 */
  370. 368.  -   .pad_fr_phbig { filter: none; }
  371. 369.  - }
  372. 370.  - .pad_fr_phbig:hover {
  373. 371.  -   text-decoration: none;
  374. 372.  - }
  375. 373.  - .pad_fr_phlabel {
  376. 374.  -   opacity: 0.75;
  377. 375.  -   -webkit-transition: opacity 100ms linear;
  378. 376.  -   -moz-transition: opacity 100ms linear;
  379. 377.  -   -o-transition: opacity 100ms linear;
  380. 378.  -   transition: opacity 100ms linear;
  381. 379.  -   padding: 0px 0px 1px;
  382. 380.  - }
  383. 381.  - .pad_fr_phbig:hover .pad_fr_phlabel {
  384. 382.  -   opacity: 1;
  385. 383.  - }
  386. 384.  - .pad_fr_tip {
  387. 385.  -   line-height: 160%;
  388. 386.  -   width: 200px;
  389. 387.  - }
  390. 388.  - .pad_fr_btns,
  391. 389.  - .pad_gr_btns,
  392. 390.  - .pad_ap_btns {
  393. 391.  -   padding-top: 10px;
  394. 392.  - }
  395. 393.  - .pad_fr_result,
  396. 394.  - .pad_gr_result,
  397. 395.  - .pad_ap_result {
  398. 396.  -   width: 230px;
  399. 397.  -   color: #777;
  400. 398.  -   height: 30px;
  401. 399.  -   padding-top: 5px;
  402. 400.  -   line-height: 160%;
  403. 401.  - }
  404. 402.  - .pad_ap_result {
  405. 403.  -   width: 260px;
  406. 404.  - }
  407. 405.  - .pad_fr_online {
  408. 406.  -   color: #BBB;
  409. 407.  -   padding: 0px 10px;
  410. 408.  -   padding-top: 5px;
  411. 409.  - }
  412. 410.  - b.pad_fr_mob_onl {
  413. 411.  -   background-position: -1px 0px;
  414. 412.  -   *background-position: -1px -1px;
  415. 413.  - }
  416. 414.  -
  417. 415.  - .pad_ph,
  418. 416.  - .pad_vid {
  419. 417.  -   padding: 10px 0px;
  420. 418.  -   margin: 0px 12px;
  421. 419.  -   border-bottom: 1px solid #E4E8ED;
  422. 420.  - }
  423. 421.  - .pad_ph:last-child,
  424. 422.  - .pad_vid:last-child {
  425. 423.  -   border-bottom: 0px;
  426. 424.  - }
  427. 425.  - .pad_ph_info,
  428. 426.  - .pad_vid_info {
  429. 427.  -   margin-left: 60px;
  430. 428.  -   height: 50px;
  431. 429.  - }
  432. 430.  - .pad_ph_about,
  433. 431.  - .pad_vid_about {
  434. 432.  -   width: 290px;
  435. 433.  -   padding-top: 2px;
  436. 434.  -   white-space: nowrap;
  437. 435.  -   overflow: hidden;
  438. 436.  -   -o-text-overflow: ellipsis;
  439. 437.  -   text-overflow: ellipsis;
  440. 438.  -   color: #777;
  441. 439.  - }
  442. 440.  - .pad_ph_lnk,
  443. 441.  - .pad_vid_wrap {
  444. 442.  -   display: block;
  445. 443.  -   overflow: hidden;
  446. 444.  -   padding-top: 10px;
  447. 445.  -   text-align: center;
  448. 446.  - }
  449. 447.  - .pad_ph_tagger,
  450. 448.  - .pad_vid_tagger {
  451. 449.  -   font-weight: bold;
  452. 450.  - }
  453. 451.  - .pad_ph_img {
  454. 452.  -   max-width: 320px;
  455. 453.  -   *width: 320px;
  456. 454.  -   vertical-align: top;
  457. 455.  - }
  458. 456.  - .pad_ph_btns,
  459. 457.  - .pad_vid_btns {
  460. 458.  -   padding-top: 10px;
  461. 459.  - }
  462. 460.  - .pad_ph_result,
  463. 461.  - .pad_vid_result {
  464. 462.  -   color: #777;
  465. 463.  -   height: 21px;
  466. 464.  -   padding-top: 14px;
  467. 465.  -   line-height: 160%;
  468. 466.  -   width: 320px;
  469. 467.  -   margin: 0px auto;
  470. 468.  - }
  471. 469.  -
  472. 470.  - .pad_vid_img {
  473. 471.  -   width: 320px;
  474. 472.  -   height: 240px;
  475. 473.  - }
  476. 474.  - .pad_vid_desc {
  477. 475.  -   padding-top: 10px;
  478. 476.  -   font-weight: bold;
  479. 477.  -   width: 320px;
  480. 478.  -   margin: 0px auto;
  481. 479.  - }
  482. 480.  - .pad_vid_name {
  483. 481.  -   color: #45688E;
  484. 482.  - }
  485. 483.  - .pad_vid_name:hover {
  486. 484.  -   text-decoration: none;
  487. 485.  - }
  488. 486.  - .pad_vid_title:hover {
  489. 487.  -   text-decoration: underline;
  490. 488.  - }
  491. 489.  - .pad_vid_icon {
  492. 490.  -   width: 15px;
  493. 491.  -   height: 11px;
  494. 492.  -   margin-top: 3px;
  495. 493.  -   background: url(/images/icons/mono_iconset.gif?8) no-repeat 0px -75px;
  496. 494.  - }
  497. 495.  - .pad_vid_dur {
  498. 496.  -   color: #000;
  499. 497.  - }
  500. 498.  - .pad_vid_wrap {
  501. 499.  -   width: 320px;
  502. 500.  -   margin: 0px auto;
  503. 501.  -   max-height: 240px;
  504. 502.  - }
  505. 503.  - .pad_vid_lnk {
  506. 504.  -   position: relative;
  507. 505.  -   display: block;
  508. 506.  - }
  509. 507.  - .pad_vid_play {
  510. 508.  -   left: 137px;
  511. 509.  -   top: 97px;
  512. 510.  -   position: absolute;
  513. 511.  -   z-index: 410;
  514. 512.  -   background: url(/images/inline_video_play.png) no-repeat;
  515. 513.  -   width: 46px;
  516. 514.  -   height: 46px;
  517. 515.  - }
  518. 516.  -
  519. 517.  - .pad_gr_result {
  520. 518.  -   width: 275px;
  521. 519.  -   padding-top: 14px;
  522. 520.  -   height: 21px;
  523. 521.  - }
  524. 522.  -
  525. 523.  - .pad_msg_rows,
  526. 524.  - .pad_nws_rows,
  527. 525.  - .pad_gr_rows {
  528. 526.  -   width: 468px;
  529. 527.  - }
  530. 528.  - .pad_msg_name,
  531. 529.  - .pad_nws_name {
  532. 530.  -   width: 320px;
  533. 531.  -   overflow: hidden;
  534. 532.  -   -o-text-overflow: ellipsis;
  535. 533.  -   text-overflow: ellipsis;
  536. 534.  -   color: #777;
  537. 535.  - }
  538. 536.  - .pad_msg,
  539. 537.  - .pad_nws {
  540. 538.  -   padding: 0px 12px;
  541. 539.  -   cursor: pointer;
  542. 540.  - }
  543. 541.  - .pad_msg_wrap,
  544. 542.  - .pad_nws_wrap {
  545. 543.  -   border-bottom: 1px solid #E4E8ED;
  546. 544.  -   padding: 10px 0px;
  547. 545.  - }
  548. 546.  -
  549. 547.  - .pad_msg:last-child .pad_msg_wrap,
  550. 548.  - .pad_nws:last-child .pad_nws_wrap {
  551. 549.  -   border-bottom: 0px;
  552. 550.  - }
  553. 551.  - .pad_msg_data {
  554. 552.  -   margin-left: 60px;
  555. 553.  - }
  556. 554.  - .pad_msg_photo,
  557. 555.  - .pad_nws_photo {
  558. 556.  -   width: 50px;
  559. 557.  -   height: 50px;
  560. 558.  -   overflow: hidden;
  561. 559.  - }
  562. 560.  - .pad_msg_img {
  563. 561.  -   width: 50px;
  564. 562.  - }
  565. 563.  - .pad_msg_text,
  566. 564.  - .pad_nws_text {
  567. 565.  -   padding: 2px 0 4px 4px;
  568. 566.  -   margin-left: -4px;
  569. 567.  -   line-height: 160%;
  570. 568.  -   overflow: hidden;
  571. 569.  -   width: 320px;
  572. 570.  -   min-height: 17px;
  573. 571.  - }
  574. 572.  - .pad_nws_text.wall_module .post_media {
  575. 573.  -   width: 320px;
  576. 574.  - }
  577. 575.  - .is_rtl1 .pad_msg_text,
  578. 576.  - .is_rtl1 .pad_nws_text {
  579. 577.  -   padding: 2px 4px 4px 0;
  580. 578.  -   margin-left: 0px;
  581. 579.  -   margin-right: -4px;
  582. 580.  - }
  583. 581.  - .pad_msg_name,
  584. 582.  - .pad_msg_text,
  585. 583.  - .pad_msg_text .wall_module .post_media {
  586. 584.  -   width: 380px;
  587. 585.  - }
  588. 586.  -
  589. 587.  - .pad_msg_text .wall_reply_text,
  590. 588.  - .pad_nws_text .wall_reply_text,
  591. 589.  - .pad_msg_text .wall_post_text,
  592. 590.  - .pad_nws_text .wall_post_text {
  593. 591.  -   line-height: 160%;
  594. 592.  - }
  595. 593.  - .pad_msg_date,
  596. 594.  - .pad_nws_date {
  597. 595.  -   color: #777;
  598. 596.  - }
  599. 597.  - .pad_msga,
  600. 598.  - .pad_nwsa {
  601. 599.  -   border: 1px solid #D5DEE7;
  602. 600.  -   background: #EDF1F5;
  603. 601.  -   margin: 10px 0 0;
  604. 602.  -   width: 440px;
  605. 603.  - }
  606. 604.  - .pad_msga_wrap,
  607. 605.  - .pad_nwsa_wrap {
  608. 606.  -   padding: 8px 10px 6px;
  609. 607.  - }
  610. 608.  - .pad_msga_arrow_wrap,
  611. 609.  - .pad_nwsa_arrow_wrap {
  612. 610.  -   position: relative;
  613. 611.  - }
  614. 612.  - .pad_msga_arrow,
  615. 613.  - .pad_nwsa_arrow {
  616. 614.  -   background: url(/images/icons/feedback_iconset.gif?4) no-repeat 0 -127px;
  617. 615.  -   width: 15px;
  618. 616.  -   height: 9px;
  619. 617.  -   position: absolute;
  620. 618.  -   left: 20px;
  621. 619.  -   top: -7px;
  622. 620.  - }
  623. 621.  - .pad_msga_data,
  624. 622.  - .pad_nwsa_data {
  625. 623.  -   margin-left: 49px;
  626. 624.  - }
  627. 625.  - .pad_msga_photo,
  628. 626.  - .pad_nwsa_photo {
  629. 627.  -   width: 39px;
  630. 628.  -   height: 39px;
  631. 629.  -   overflow: hidden;
  632. 630.  - }
  633. 631.  - .pad_msga_img,
  634. 632.  - .pad_nwsa_img {
  635. 633.  -   width: 39px;
  636. 634.  - }
  637. 635.  - .pad_msga_date,
  638. 636.  - .pad_nwsa_date {
  639. 637.  -   color: #879BB0;
  640. 638.  - }
  641. 639.  - .pad_msg_subj {
  642. 640.  -   margin: 2px 0px 4px;
  643. 641.  -   font-weight: bold;
  644. 642.  - }
  645. 643.  - div.pad_msg_text div.im_fwd_log_wrap {
  646. 644.  -   min-width: 100px;
  647. 645.  - }
  648. 646.  - #pad_msg_reply_tpl,
  649. 647.  - #pad_nws_reply_tpl,
  650. 648.  - #pad_nws_dis_tpl {
  651. 649.  -   display: none;
  652. 650.  - }
  653. 651.  - .pad_nwsa_dld {
  654. 652.  -   color: #879BB0;
  655. 653.  -   padding: 1px 49px 3px;
  656. 654.  -   line-height: 140%;
  657. 655.  - }
  658. 656.  - .pads_nwsa_dlda {
  659. 657.  -   color: #45688E;
  660. 658.  - }
  661. 659.  - .pad_msg_field,
  662. 660.  - .pad_nws_field {
  663. 661.  -   vertical-align: top;
  664. 662.  -   width: 363px;
  665. 663.  - }
  666. 664.  - .pad_msg_reply .pad_msgr,
  667. 665.  - .pad_nws_reply .pad_nwsr {
  668. 666.  -   cursor: default;
  669. 667.  -   margin-top: 15px;
  670. 668.  - }
  671. 669.  - .pad_msg_btns,
  672. 670.  - .pad_nws_btns {
  673. 671.  -   margin-top: 8px;
  674. 672.  - }
  675. 673.  - .pad_msg_rcpts {
  676. 674.  -   padding: 6px 10px;
  677. 675.  - }
  678. 676.  - .pad_msg_error,
  679. 677.  - .pad_nws_error {
  680. 678.  -   margin-bottom: 8px;
  681. 679.  -   line-height: 160%;
  682. 680.  - }
  683. 681.  -
  684. 682.  - .pad_nws_data {
  685. 683.  -   margin: 0px 60px;
  686. 684.  -   width: 320px;
  687. 685.  - }
  688. 686.  - .pad_nws_img {
  689. 687.  -   max-width: 50px;
  690. 688.  - }
  691. 689.  - .pad_nws_cont {
  692. 690.  -   width: 440px;
  693. 691.  - }
  694. 692.  -
  695. 693.  - .pad_submit_hint_title {
  696. 694.  -   color: #45688E;
  697. 695.  -   font-weight: bold;
  698. 696.  -   padding-bottom: 2px;
  699. 697.  - }
  700. 698.  - .pad_submit_hint_wrap {
  701. 699.  -   width: 210px;
  702. 700.  -   height: 110px;
  703. 701.  -   padding: 8px 5px 8px;
  704. 702.  - }
  705. 703.  - #pad_submit_hint_opts .pad_submit_hint_rb {
  706. 704.  -   color: black;
  707. 705.  -   padding-top: 10px;
  708. 706.  -   padding-bottom: 5px;
  709. 707.  -   line-height: 160%;
  710. 708.  - }
  711. 709.  - #pad_submit_hint_opts .pad_submit_hint_rb .rb {
  712. 710.  -   margin: 2px 5px 6px 0;
  713. 711.  - }
  714. 712.  - .pad_submit_hint_el {
  715. 713.  -   position: absolute;
  716. 714.  -   width: 1px;
  717. 715.  -   height: 1px;
  718. 716.  -   margin-top: 13px;
  719. 717.  - }
  720. 718.  -
  721. 719.  - .pad_ap_rows {
  722. 720.  -   width: 376px;
  723. 721.  - }
  724. 722.  - .pad_ap_right {
  725. 723.  -   width: 50px;
  726. 724.  -   height: 50px;
  727. 725.  -   overflow: hidden;
  728. 726.  -   margin: 0px 0px 10px 10px;
  729. 727.  - }
  730. 728.  - .pad_ap_right_img {
  731. 729.  -   width: 50px;
  732. 730.  -   vertical-align: top;
  733. 731.  - }
  734. 732.  - .pad_mus_rows {
  735. 733.  -   padding: 15px;
  736. 734.  - }
  737. 735.  -
  738. 736.  - #pad_more_audio {
  739. 737.  -   background: #EFF1F3;
  740. 738.  -   display: block;
  741. 739.  -   text-align: center;
  742. 740.  -   color: #738392;
  743. 741.  -   padding: 8px;
  744. 742.  -   margin: 0 15px 15px;
  745. 743.  - }
  746. 744.  - #pad_more_audio:hover {
  747. 745.  -   text-decoration: none;
  748. 746.  -   background: #E9EDF1;
  749. 747.  - }
  750. 748.  - .pad_audio_status,
  751. 749.  - .pad_no_audios {
  752. 750.  -   color: #777;
  753. 751.  -   font-size: 12px;
  754. 752.  -   text-align: center;
  755. 753.  -   line-height: 160%;
  756. 754.  -   padding: 30px 0px;
  757. 755.  - }
  758. 756.  -
  759. 757.  - #pad_audio_search {
  760. 758.  -   margin-bottom: 9px;
  761. 759.  -   margin-right: -1px;
  762. 760.  - }
  763. 761.  - #pad_audio_search input.pad_search {
  764. 762.  -   height: 13px;
  765. 763.  -   padding: 5px 20px;
  766. 764.  -   width: 325px;
  767. 765.  -   background: #FFF url(/images/magglass.png) no-repeat 5px 6px;
  768. 766.  -   outline: none;
  769. 767.  - }
  770. 768.  - #pad_audio_search input.pad_search:active {
  771. 769.  -   pointer-events: none;
  772. 770.  - }
  773. 771.  - .font_medium #pad_audio_search input.pad_search {
  774. 772.  -   width: 310px;
  775. 773.  - }
  776. 774.  - #pad_audio_search div.abutton_wrap {
  777. 775.  -   position: relative;
  778. 776.  -   left: -1px;
  779. 777.  - }
  780. 778.  - #pad_audio_search div.abutton_wrap button {
  781. 779.  -   width: 120px;
  782. 780.  -   height: 23px;
  783. 781.  -   line-height: 6px;
  784. 782.  - }
  785. 783.  - .font_medium #pad_audio_search div.abutton_wrap button {
  786. 784.  -   width: 135px;
  787. 785.  - }
  788. 786.  - #pad_audio_search div.abutton_wrap img {
  789. 787.  -   position: relative;
  790. 788.  -   top: -1px;
  791. 789.  -   left: 4px;
  792. 790.  - }
  793. 791.  - #pad_audio_search .pad_reset {
  794. 792.  -   cursor: pointer;
  795. 793.  -   display: none;
  796. 794.  -   background: transparent url(/images/icons/input_clear.gif) 6px 6px no-repeat;
  797. 795.  -   padding: 2px;
  798. 796.  -   width: 19px;
  799. 797.  -   height: 19px;
  800. 798.  -   margin-left: -24px;
  801. 799.  -   margin-top: 1px;
  802. 800.  -   opacity: 0.6;
  803. 801.  -   filter: alpha(opacity=60);
  804. 802.  -   position: relative;
  805. 803.  -   z-index: 100;
  806. 804.  - }
  807. 805.  - #pad_audio_search .pad_progress {
  808. 806.  -   background: url("/images/upload.gif") no-repeat scroll center center transparent;
  809. 807.  -   display: none;
  810. 808.  -   height: 23px;
  811. 809.  -   margin-left: -41px;
  812. 810.  -   margin-top: 1px;
  813. 811.  -   position: relative;
  814. 812.  -   width: 32px;
  815. 813.  -   z-index: 95;
  816. 814.  - }
  817. 815.  - #pad_audio_search.loading .pad_progress,
  818. 816.  - #pad_audio_search .pad_reset.shown {
  819. 817.  -   display: block;
  820. 818.  - }
  821. 819.  - #pad_audio_search.loading .pad_reset.shown {
  822. 820.  -   display: none;
  823. 821.  - }
  824. 822.  - #pad_audio_search div.abutton_wrap .button_blue {
  825. 823.  -   -webkit-border-radius: 0 2px 2px 0;
  826. 824.  -   -khtml-border-radius: 0 2px 2px 0;
  827. 825.  -   -moz-border-radius: 0 2px 2px 0;
  828. 826.  -   border-radius: 0 2px 2px 0;
  829. 827.  - }
  830. 828.  -
  831. 829.  - #pad_playlist .audio .area {
  832. 830.  -   cursor: pointer;
  833. 831.  -   position: relative;
  834. 832.  -   width: 488px;
  835. 833.  -   margin: 0px;
  836. 834.  - }
  837. 835.  - #pad_playlist .audio.over .area {
  838. 836.  -   background-color: #EDF1F5;
  839. 837.  - }
  840. 838.  - #pad_playlist .audio.tab_current .area,
  841. 839.  - #pad_playlist .audio.tab_current.tt_shown .area,
  842. 840.  - #pad_playlist .audio.tab_current.over .area,
  843. 841.  - #pad_playlist .audio.rec_source .area,
  844. 842.  - #pad_playlist .audio.rec_source.tt_shown .area,
  845. 843.  - #pad_playlist .audio.rec_source.over .area {
  846. 844.  -   background-color: #E3E8EC;
  847. 845.  - }
  848. 846.  - #pad_playlist .audio.tab_current .area .duration,
  849. 847.  - #pad_playlist .audio.rec_source .area .duration {
  850. 848.  -   color: #738191;
  851. 849.  - }
  852. 850.  - #pad_playlist .audio.current .area,
  853. 851.  - #pad_playlist .audio.current.tt_shown .area,
  854. 852.  - #pad_playlist .audio.current.over .area {
  855. 853.  -   background-color: #5f7fa2 !important;
  856. 854.  - }
  857. 855.  - #pad_playlist .audio.current .title_wrap,
  858. 856.  - #pad_playlist .audio.current .title_wrap a {
  859. 857.  -   color: #fff !important;
  860. 858.  - }
  861. 859.  - #pad_playlist .audio .area .actions {
  862. 860.  -   right: -2px;
  863. 861.  - }
  864. 862.  - #pad_playlist .audio_add_wrap {
  865. 863.  -   margin: 7px 7px 7px 0;
  866. 864.  -   padding: 4px;
  867. 865.  -   opacity: 0.4;
  868. 866.  -   filter: alpha(opacity=40);
  869. 867.  - }
  870. 868.  - #pad_playlist .audio_add {
  871. 869.  -   background: url(/images/icons/audio_icons.png?4) -79px -51px no-repeat;
  872. 870.  -   position: relative;
  873. 871.  -   width: 13px;
  874. 872.  -   height: 12px;
  875. 873.  -   margin: 0px;
  876. 874.  -   cursor: pointer;
  877. 875.  -   overflow: hidden;
  878. 876.  - }
  879. 877.  - #pad_playlist .audio_rec_wrap {
  880. 878.  -   margin: 7px 7px 7px 0;
  881. 879.  -   padding: 4px;
  882. 880.  -   opacity: 0.4;
  883. 881.  -   filter: alpha(opacity=40);
  884. 882.  - }
  885. 883.  - #pad_playlist .rec_source .audio_rec_wrap {
  886. 884.  -   opacity: 1;
  887. 885.  -   filter: alpha(opacity=100);
  888. 886.  - }
  889. 887.  - #pad_playlist .audio.current .audio_add {
  890. 888.  -   background-position: -93px -51px;
  891. 889.  - }
  892. 890.  - #pad_playlist .audio_rec {
  893. 891.  -   background: url(/images/icons/audio_icons.png?4) -202px -51px no-repeat;
  894. 892.  -   position: relative;
  895. 893.  -   width: 12px;
  896. 894.  -   height: 12px;
  897. 895.  -   margin: 0px;
  898. 896.  -   cursor: pointer;
  899. 897.  -   overflow: hidden;
  900. 898.  -   visibility: hidden;
  901. 899.  - }
  902. 900.  - #pad_playlist .audio.rec_source .audio_rec,
  903. 901.  - #pad_playlist .audio.over .audio_rec {
  904. 902.  -   visibility: visible;
  905. 903.  - }
  906. 904.  - #pad_playlist .audio.current .audio_rec {
  907. 905.  -   background-position: -218px -51px;
  908. 906.  - }
  909. 907.  - #pad_playlist .audio_add_wrap.added {
  910. 908.  -   opacity: 1;
  911. 909.  -   filter: alpha(opacity=100);
  912. 910.  - }
  913. 911.  - #pad_playlist .audio_add_wrap.anim {
  914. 912.  -   opacity: 1;
  915. 913.  -   filter: alpha(opacity=100);
  916. 914.  -   display: none;
  917. 915.  - }
  918. 916.  - #pad_playlist .audio.rec_source .audio_add_wrap.anim,
  919. 917.  - #pad_playlist .audio.over .audio_add_wrap.anim,
  920. 918.  - #pad_playlist .audio.tt_shown .audio_add_wrap.anim {
  921. 919.  -   display: block;
  922. 920.  - }
  923. 921.  - #pad_playlist .audio_add_anim_wrap {
  924. 922.  -   width: 13px;
  925. 923.  -   height: 12px;
  926. 924.  -   margin: 0px;
  927. 925.  -   padding: 0px;
  928. 926.  -   position: relative;
  929. 927.  - }
  930. 928.  - #pad_playlist .audio_add_anim {
  931. 929.  -   width: 28px;
  932. 930.  -   height: 12px;
  933. 931.  -   position: absolute;
  934. 932.  -   top: 0px;
  935. 933.  -   left: 0px;
  936. 934.  - }
  937. 935.  - #audio.new .audio_add_anim .audio_add.done {
  938. 936.  -   opacity: 0;
  939. 937.  -   filter: alpha(opacity=0);
  940. 938.  - }
  941. 939.  - #pad_playlist .audio_add_wrap.added .audio_add,
  942. 940.  - #pad_playlist .audio_add_wrap .audio_add.done {
  943. 941.  -   background-position: -166px -51px;
  944. 942.  -   width: 15px;
  945. 943.  - }
  946. 944.  - #pad_playlist .audio.current .audio_add_wrap.added .audio_add,
  947. 945.  - #pad_playlist .audio.current .audio_add_wrap .audio_add.done {
  948. 946.  -   background-position: -184px -51px;
  949. 947.  - }
  950. 948.  - #pad_playlist .duration {
  951. 949.  -   padding: 10px 9px 9px;
  952. 950.  -   cursor: pointer;
  953. 951.  -   max-width: 35px;
  954. 952.  -   overflow: hidden;
  955. 953.  -   -o-text-overflow: ellipsis;
  956. 954.  -   text-overflow: ellipsis;
  957. 955.  - }
  958. 956.  - .font_medium #pad_playlist .duration {
  959. 957.  -   max-width: 40px;
  960. 958.  - }
  961. 959.  - #pad_playlist .audio.over .duration {
  962. 960.  -   color: #8795A5;
  963. 961.  - }
  964. 962.  - #pad_playlist .audio.over.current .duration,
  965. 963.  - #pad_playlist .audio.current .duration {
  966. 964.  -   color: #b1bfcf !important;
  967. 965.  - }
  968. 966.  - #pad_playlist .audio.over .duration,
  969. 967.  - #pad_playlist .audio.rec_source .duration,
  970. 968.  - #pad_playlist .audio.tt_shown .duration {
  971. 969.  -   display: none;
  972. 970.  - }
  973. 971.  - #pad_playlist .audio.rec_source.no_actions .duration,
  974. 972.  - #pad_playlist .audio.tt_shown.no_actions .duration,
  975. 973.  - #pad_playlist .audio.over.no_actions .duration {
  976. 974.  -   display: block;
  977. 975.  - }
  978. 976.  - #pad_playlist .audio .play_btn_wrap {
  979. 977.  -   padding: 9px;
  980. 978.  - }
  981. 979.  - #pad_playlist .audio .play_new {
  982. 980.  -   width: 16px;
  983. 981.  -   margin: 0px;
  984. 982.  - }
  985. 983.  - #pad_playlist .audio.current .play_new {
  986. 984.  -   background:url(/images/icons/audio_icons.png?4) -147px -28px no-repeat;
  987. 985.  - }
  988. 986.  - #pad_playlist .audio.current .play_new.playing {
  989. 987.  -   background-position: -165px -28px;
  990. 988.  - }
  991. 989.  - #pad_playlist .audio .info {
  992. 990.  -   width: 452px;
  993. 991.  - }
  994. 992.  - #pad_playlist .audio .title_wrap {
  995. 993.  -   width: 398px;
  996. 994.  -   padding: 10px 0 9px;
  997. 995.  -   white-space: nowrap;
  998. 996.  -   -o-text-overflow: ellipsis;
  999. 997.  -   text-overflow: ellipsis;
  1000. 998.  -   overflow: hidden;
  1001. 999.  - }
  1002. 1000.  - #pad_playlist .audio .title_wrap b {
  1003. 1001.  -   max-width: 210px;
  1004. 1002.  - }
  1005. 1003.  - .font_medium #pad_playlist .audio .title_wrap {
  1006. 1004.  -   width: 393px;
  1007. 1005.  - }
  1008. 1006.  - #pad_playlist .audio .lyrics {
  1009. 1007.  -   display: none;
  1010. 1008.  - }
  1011. 1009.  - .dd_menu_stype_act.pad {
  1012. 1010.  -   margin-left: 1px;
  1013. 1011.  - }
  1014. 1012.  - .dd_menu_stype_act.pad .dd_menu_header div {
  1015. 1013.  -   width: 90px;
  1016. 1014.  - }
  1017. 1015.  - .font_medium .dd_menu_stype_act.pad .dd_menu_header div {
  1018. 1016.  -   width: 105px;
  1019. 1017.  - }
  1020. 1018.  - #pd {
  1021. 1019.  -   background: #F0F1F2;
  1022. 1020.  - }
  1023. 1021.  - #pd_controls {
  1024. 1022.  -   padding: 12px 0px;
  1025. 1023.  - }
  1026. 1024.  - #pd_play {
  1027. 1025.  -   background: url(/images/icons/audio_icons.png?4) no-repeat scroll 0 -25px transparent;
  1028. 1026.  -   margin: 0px 4px 0px 2px;
  1029. 1027.  -   padding: 0px;
  1030. 1028.  -   width: 22px;
  1031. 1029.  -   height: 22px;
  1032. 1030.  -   cursor: pointer;
  1033. 1031.  - }
  1034. 1032.  - #pd_play.playing {
  1035. 1033.  -   background-position: -72px -25px;
  1036. 1034.  - }
  1037. 1035.  - #pd_play.over {
  1038. 1036.  -   background-position: -24px -25px;
  1039. 1037.  - }
  1040. 1038.  - #pd_play.over.playing {
  1041. 1039.  -   background-position: -96px -25px;
  1042. 1040.  - }
  1043. 1041.  - #pd_play.down,
  1044. 1042.  - #pd_play.over.down {
  1045. 1043.  -   background-position: -48px -25px;
  1046. 1044.  - }
  1047. 1045.  - #pd_play.down.playing,
  1048. 1046.  - #pd_play.over.down.playing {
  1049. 1047.  -   background-position: -120px -25px;
  1050. 1048.  - }
  1051. 1049.  - #pd .ctrl_wrap {
  1052. 1050.  -   cursor: pointer;
  1053. 1051.  -   padding: 4px 3px;
  1054. 1052.  -   -webkit-border-radius: 2px;
  1055. 1053.  -   -khtml-border-radius: 2px;
  1056. 1054.  -   -moz-border-radius: 2px;
  1057. 1055.  -   border-radius: 2px;
  1058. 1056.  -   margin: 2px 1px 1px;
  1059. 1057.  -   opacity: 0.70;
  1060. 1058.  -   filter: alpha(opacity=70);
  1061. 1059.  -   -webkit-transition: background-color 100ms ease-out;
  1062. 1060.  -   -moz-transition: background-color 100ms ease-out;
  1063. 1061.  -   -o-transition: background-color 100ms ease-out;
  1064. 1062.  -   transition: background-color 100ms ease-out;
  1065. 1063.  -   -webkit-transition: opacity 100ms ease-out;
  1066. 1064.  -   -moz-transition: opacity 100ms ease-out;
  1067. 1065.  -   -o-transition: opacity 100ms ease-out;
  1068. 1066.  -   transition: opacity 100ms ease-out;
  1069. 1067.  - }
  1070. 1068.  - #pd #pd_repeat.ctrl_wrap {
  1071. 1069.  -   padding: 2px 3px 3px 4px;
  1072. 1070.  - }
  1073. 1071.  - #pd #pd_prev.ctrl_wrap,
  1074. 1072.  - #pd #pd_next.ctrl_wrap {
  1075. 1073.  -   opacity: 0.83;
  1076. 1074.  -   filter: alpha(opacity=83);
  1077. 1075.  - }
  1078. 1076.  - #pd .ctrl_wrap.on {
  1079. 1077.  -   opacity: 1 !important;
  1080. 1078.  -   filter: alpha(opacity=100) !important;
  1081. 1079.  - }
  1082. 1080.  - #pd #pd_prev.ctrl_wrap.over,
  1083. 1081.  - #pd #pd_next.ctrl_wrap.over {
  1084. 1082.  -   opacity: 1;
  1085. 1083.  -   filter: alpha(opacity=100);
  1086. 1084.  -   background: none;
  1087. 1085.  - }
  1088. 1086.  - #pd .ctrl_wrap.added.over {
  1089. 1087.  -   opacity: 0.70 !important;
  1090. 1088.  -   filter: alpha(opacity=70) !important;
  1091. 1089.  -   cursor: auto;
  1092. 1090.  - }
  1093. 1091.  - #pd .ctrl {
  1094. 1092.  -   background: url(/images/icons/audio_icons.png?4) no-repeat scroll 0 0 transparent;
  1095. 1093.  -   height: 11px;
  1096. 1094.  -   width: 13px;
  1097. 1095.  -   margin: 0;
  1098. 1096.  -   float: left;
  1099. 1097.  - }
  1100. 1098.  - #pd.no_rec #pd_rec {
  1101. 1099.  -   display: none;
  1102. 1100.  - }
  1103. 1101.  - #pd #pd_shuffle.ctrl_wrap,
  1104. 1102.  - #pd #pd_rec.ctrl_wrap {
  1105. 1103.  -   padding: 3px 4px 4px 3px;
  1106. 1104.  - }
  1107. 1105.  - #pd #pd_status.ctrl_wrap {
  1108. 1106.  -   padding-top: 3px;
  1109. 1107.  -   padding-bottom: 5px;
  1110. 1108.  - }
  1111. 1109.  - #pd .ctrl.shuffle {
  1112. 1110.  -   height: 12px;
  1113. 1111.  - }
  1114. 1112.  - #pd .next_prev div.ctrl_wrap {
  1115. 1113.  -   float: left;
  1116. 1114.  - }
  1117. 1115.  - #pd .ctrl.prev {
  1118. 1116.  -   background-position: -3px -52px;
  1119. 1117.  - }
  1120. 1118.  - #pd .ctrl.next {
  1121. 1119.  -   background-position: -18px -52px;
  1122. 1120.  - }
  1123. 1121.  - #pd .extra_ctrls {
  1124. 1122.  -   padding: 12px 0px;
  1125. 1123.  - }
  1126. 1124.  - #pd .ctrl.repeat {
  1127. 1125.  -   background-position: -32px -49px;
  1128. 1126.  -   height: 14px;
  1129. 1127.  - }
  1130. 1128.  - #pd .ctrl.repeat.on {
  1131. 1129.  -   opacity: 1;
  1132. 1130.  -   filter: alpha(opacity=100);
  1133. 1131.  - }
  1134. 1132.  - #pd .ctrl.shuffle {
  1135. 1133.  -   background-position: -50px -51px;
  1136. 1134.  - }
  1137. 1135.  - #pd .ctrl.status {
  1138. 1136.  -   background-position: -66px -51px;
  1139. 1137.  - }
  1140. 1138.  - #pd .ctrl.rec {
  1141. 1139.  -   background-position: -202px -51px;
  1142. 1140.  -   height: 12px;
  1143. 1141.  -   width: 12px;
  1144. 1142.  - }
  1145. 1143.  - #pd_add {
  1146. 1144.  -   display: none;
  1147. 1145.  - }
  1148. 1146.  - #pd .ctrl.add {
  1149. 1147.  -   background-position: -80px -52px;
  1150. 1148.  - }
  1151. 1149.  - #pd .ctrl_wrap.added {
  1152. 1150.  -   padding: 3px 2px 4px;
  1153. 1151.  - }
  1154. 1152.  - #pd .ctrl_wrap.added .ctrl.add {
  1155. 1153.  -   background-position: -166px -51px;
  1156. 1154.  -   width: 15px;
  1157. 1155.  -   height: 12px;
  1158. 1156.  - }
  1159. 1157.  - #pd .info {
  1160. 1158.  -   width: 326px;
  1161. 1159.  -   margin-left: 10px;
  1162. 1160.  - }
  1163. 1161.  - #pd.no_rec .info {
  1164. 1162.  -   width: 345px;
  1165. 1163.  - }
  1166. 1164.  - #pd.add .info {
  1167. 1165.  -   width: 307px;
  1168. 1166.  - }
  1169. 1167.  - #pd.no_rec.add .info {
  1170. 1168.  -   width: 326px;
  1171. 1169.  - }
  1172. 1170.  - #pd.add #pd_add {
  1173. 1171.  -   display: block;
  1174. 1172.  - }
  1175. 1173.  - #pd_vol {
  1176. 1174.  -   margin-left: 11px;
  1177. 1175.  - }
  1178. 1176.  - #pd_vol .audio_volume_line {
  1179. 1177.  -   top: -8px;
  1180. 1178.  - }
  1181. 1179.  - #pd .title_wrap {
  1182. 1180.  -   padding-top: 11px;
  1183. 1181.  -   line-height: 13px;
  1184. 1182.  - }
  1185. 1183.  - #pd .ac_name {
  1186. 1184.  -   white-space: nowrap;
  1187. 1185.  -   overflow: hidden;
  1188. 1186.  -   -o-text-overflow: ellipsis;
  1189. 1187.  -   text-overflow: ellipsis;
  1190. 1188.  -   max-width: 221px;
  1191. 1189.  - }
  1192. 1190.  - #pd.no_rec .ac_name {
  1193. 1191.  -   max-width: 240px;
  1194. 1192.  - }
  1195. 1193.  - .font_medium #pd.add .ac_name {
  1196. 1194.  -   max-width: 196px;
  1197. 1195.  - }
  1198. 1196.  - .font_medium #pd.no_rec.add .ac_name {
  1199. 1197.  -   max-width: 215px;
  1200. 1198.  - }
  1201. 1199.  - #pd.add .ac_name {
  1202. 1200.  -   max-width: 201px;
  1203. 1201.  - }
  1204. 1202.  - #pd.no_rec.add .ac_name {
  1205. 1203.  -   max-width: 220px;
  1206. 1204.  - }
  1207. 1205.  - #pd .performer {
  1208. 1206.  -   font-weight: bold;
  1209. 1207.  -   color: #2B587A;
  1210. 1208.  - }
  1211. 1209.  - #pd .title {
  1212. 1210.  -   color: #627A94;
  1213. 1211.  - }
  1214. 1212.  - #pd .duration {
  1215. 1213.  -   display: inline-block;
  1216. 1214.  -   margin: 0px 66px 0 0;
  1217. 1215.  -   padding: 0px !important;
  1218. 1216.  -   color: #627a94;
  1219. 1217.  -   font-size: 0.9em;
  1220. 1218.  -   margin-top: 1px;
  1221. 1219.  -   cursor: pointer;
  1222. 1220.  -   max-width: 40px;
  1223. 1221.  -   overflow: hidden;
  1224. 1222.  -   -o-text-overflow: ellipsis;
  1225. 1223.  -   text-overflow: ellipsis;
  1226. 1224.  - }
  1227. 1225.  - #pd .shadow div {
  1228. 1226.  -   background: #000;
  1229. 1227.  -   height: 1px;
  1230. 1228.  -   opacity: 0.15;
  1231. 1229.  -   filter: alpha(opacity=15);
  1232. 1230.  -   position: absolute;
  1233. 1231.  -   z-index: 1050;
  1234. 1232.  -   overflow: hidden;
  1235. 1233.  -   width: 627px;
  1236. 1234.  - }
  1237. 1235.  - #pd .shadow .sh0 {
  1238. 1236.  -   background: #FFFFFF;
  1239. 1237.  - }
  1240. 1238.  - #pd .shadow .sh1 {
  1241. 1239.  -   opacity: 0.15;
  1242. 1240.  -   filter: alpha(opacity=15);
  1243. 1241.  -   margin-top: 0px;
  1244. 1242.  - /*  background: #ADBAC7;*/
  1245. 1243.  - }
  1246. 1244.  - #pd .shadow .sh2 {
  1247. 1245.  -   opacity: 0.09;
  1248. 1246.  -   filter: alpha(opacity=9);
  1249. 1247.  -   margin-top: 1px;
  1250. 1248.  - }
  1251. 1249.  - #pd .shadow .sh3 {
  1252. 1250.  -   opacity: 0.04;
  1253. 1251.  -   filter: alpha(opacity=4);
  1254. 1252.  -   margin-top: 2px;
  1255. 1253.  - }
  1256. 1254.  - #pd .shadow .sh4 {
  1257. 1255.  -   opacity: 0.01;
  1258. 1256.  -   filter: alpha(opacity=1);
  1259. 1257.  -   margin-top: 3px;
  1260. 1258.  - }
  1261. 1259.  - #pd_vol.over .ac_slider,
  1262. 1260.  - #pd_vol.down .ac_slider,
  1263. 1261.  - #pd_pr.down .ac_slider {
  1264. 1262.  -   display: block;
  1265. 1263.  - }
  1266. 1264.  - #pd_vol_back_line.ac_load_line {
  1267. 1265.  -   width: 100%;
  1268. 1266.  -   top: -15px;
  1269. 1267.  - }
  1270. 1268.  - #pd_vol_line.ac_progress_line {
  1271. 1269.  -   top: -7px;
  1272. 1270.  -   width: 50%;
  1273. 1271.  - }
  1274. 1272.  - .pd_apps_recent {
  1275. 1273.  -   height: 65px;
  1276. 1274.  -   padding: 10px 0px 10px 12px;
  1277. 1275.  -   position: relative;
  1278. 1276.  - }
  1279. 1277.  - .pd_apps_wrap {
  1280. 1278.  -   height: 65px;
  1281. 1279.  -   padding: 4px 0px 0px 12px;
  1282. 1280.  -   position: relative;
  1283. 1281.  - }
  1284. 1282.  - .pd_apps_row {
  1285. 1283.  -   width: 50px;
  1286. 1284.  -   vertical-align: top;
  1287. 1285.  -   -webkit-border-radius: 5px;
  1288. 1286.  -   -moz-border-radius: 5px;
  1289. 1287.  -   border-radius: 5px;
  1290. 1288.  - }
  1291. 1289.  - .pd_apps_row_cont {
  1292. 1290.  -   overflow: hidden;
  1293. 1291.  -   padding: 6px 0px 6px 0px;
  1294. 1292.  -   margin-right: 12px;
  1295. 1293.  -   position: absolute;
  1296. 1294.  -   height: 50px;
  1297. 1295.  - }
  1298. 1296.  - .pd_apps_row_img {
  1299. 1297.  -   -webkit-border-radius: 5px;
  1300. 1298.  -   -moz-border-radius: 5px;
  1301. 1299.  -   border-radius: 5px;
  1302. 1300.  -   width: 50px;
  1303. 1301.  -   height: 50px;
  1304. 1302.  -   overflow: hidden;
  1305. 1303.  - }
  1306. 1304.  - .pd_apps_cont #pad_content {
  1307. 1305.  -   border: none;
  1308. 1306.  -   padding: 0px;
  1309. 1307.  -   max-height: 400px;
  1310. 1308.  - }
  1311. 1309.  - .pd_apps_cont {
  1312. 1310.  -   border: 1px solid #ADBAC7;
  1313. 1311.  - }
  1314. 1312.  - .pd_apps_footer {
  1315. 1313.  -   background: #F0F1F2;
  1316. 1314.  -   padding: 8px 5px 7px;
  1317. 1315.  -   height: 30px;
  1318. 1316.  - }
  1319. 1317.  - .pd_apps_name {
  1320. 1318.  -   font-weight: bold;
  1321. 1319.  -   color: #47688D;
  1322. 1320.  -   padding-bottom: 3px;
  1323. 1321.  -   white-space: nowrap;
  1324. 1322.  -   -o-text-overflow: ellipsis;
  1325. 1323.  -   text-overflow: ellipsis;
  1326. 1324.  -   overflow: hidden;
  1327. 1325.  - }
  1328. 1326.  - .pd_apps_info {
  1329. 1327.  -   position: absolute;
  1330. 1328.  -   padding: 0px 5px 0px 60px;
  1331. 1329.  -   color: #777777;
  1332. 1330.  -   width: 114px;
  1333. 1331.  - }
  1334. 1332.  - #pd_apps_search {
  1335. 1333.  -   height: 13px;
  1336. 1334.  -   padding: 5px 40px 5px 20px;
  1337. 1335.  -   background: #FFFFFF url(/images/magglass.png) no-repeat 5px 6px;
  1338. 1336.  -   outline: none;
  1339. 1337.  -   width: 140px;
  1340. 1338.  -   border: 1px solid #CFDAE5;
  1341. 1339.  - }
  1342. 1340.  - .pd_apps_row_href {
  1343. 1341.  -   display: block;
  1344. 1342.  -   overflow: hidden;
  1345. 1343.  -   width: 100%;
  1346. 1344.  - }
  1347. 1345.  - .pd_apps_row_href:active {
  1348. 1346.  -   padding-top: 1px;
  1349. 1347.  -   display: block;
  1350. 1348.  -   height: 49px;
  1351. 1349.  - }
  1352. 1350.  - .pd_apps_animation1 {
  1353. 1351.  -   -o-transition:all 400ms cubic-bezier(0.2,0.2,0.2,0.95);
  1354. 1352.  -   -moz-transition:all 400ms cubic-bezier(0.2,0.2,0.2,0.95);
  1355. 1353.  -   -webkit-transition:all 400ms cubic-bezier(0.2,0.2,0.2,0.95);
  1356. 1354.  -   transition:all 400ms cubic-bezier(0.2,0.2,0.2,0.95);
  1357. 1355.  - }
  1358. 1356.  - .pd_apps_recent_vis {
  1359. 1357.  -   margin-left: 420px;
  1360. 1358.  -   opacity: 1;
  1361. 1359.  - }
  1362. 1360.  - .pd_apps_recent_right {
  1363. 1361.  -   position: absolute;
  1364. 1362.  -   border-right: 1px solid #ADBAC7;
  1365. 1363.  -   right: -1px;
  1366. 1364.  -   padding: 10px 0px;
  1367. 1365.  -   top: 6px;
  1368. 1366.  -   z-index: 10;
  1369. 1367.  -   cursor: pointer;
  1370. 1368.  - }
  1371. 1369.  - .pd_apps_recent_bg_right {
  1372. 1370.  -   background: url('/images/pd_apps_sh.png') 0px 0px no-repeat;
  1373. 1371.  -   width: 19px;
  1374. 1372.  -   height: 50px;
  1375. 1373.  - }
  1376. 1374.  - .pd_apps_recent_left {
  1377. 1375.  -   position: absolute;
  1378. 1376.  -   border-left: 1px solid #ADBAC7;
  1379. 1377.  -   left: -1px;
  1380. 1378.  -   padding: 10px 0px;
  1381. 1379.  -   top: 6px;
  1382. 1380.  -   z-index: 10;
  1383. 1381.  -   cursor: pointer;
  1384. 1382.  - }
  1385. 1383.  - .pd_apps_recent_bg_left {
  1386. 1384.  -   background: url('/images/pd_apps_sh.png') 0px -50px no-repeat;
  1387. 1385.  -   width: 19px;
  1388. 1386.  -   height: 50px;
  1389. 1387.  - }
  1390. 1388.  - .pd_apps_cont_right {
  1391. 1389.  -   position: absolute;
  1392. 1390.  -   border-right: 1px solid #ADBAC7;
  1393. 1391.  -   padding: 10px 0px;
  1394. 1392.  -   right: -1px;
  1395. 1393.  -   top: 0px;
  1396. 1394.  -   z-index: 10;
  1397. 1395.  -   cursor: pointer;
  1398. 1396.  - }
  1399. 1397.  - .pd_apps_cont_bg_right {
  1400. 1398.  -   background: url('/images/pd_apps_sh.png?2') 0px -100px no-repeat;
  1401. 1399.  -   width: 19px;
  1402. 1400.  -   height: 50px;
  1403. 1401.  - }
  1404. 1402.  - .pd_apps_cont_left {
  1405. 1403.  -   position: absolute;
  1406. 1404.  -   border-left: 1px solid #ADBAC7;
  1407. 1405.  -   left: -1px;
  1408. 1406.  -   padding: 10px 0px;
  1409. 1407.  -   top: 0px;
  1410. 1408.  -   z-index: 10;
  1411. 1409.  -   cursor: pointer;
  1412. 1410.  - }
  1413. 1411.  - .pd_apps_cont_bg_left {
  1414. 1412.  -   background: url('/images/pd_apps_sh.png?2') 0px -150px no-repeat;
  1415. 1413.  -   width: 19px;
  1416. 1414.  -   height: 50px;
  1417. 1415.  - }
  1418. 1416.  - .pd_apps_ca_more {
  1419. 1417.  -   position: absolute;
  1420. 1418.  -   margin-left: 450px;
  1421. 1419.  -   width: 500px;
  1422. 1420.  - }
  1423. 1421.  - .pd_apps_ca_slice {
  1424. 1422.  -   position: absolute;
  1425. 1423.  -   width: 500px;
  1426. 1424.  - }
  1427. 1425.  - .pd_apps_ca_prev {
  1428. 1426.  -   position: absolute;
  1429. 1427.  -   width: 500px;
  1430. 1428.  - }
  1431. 1429.  - .pd_apps_summary {
  1432. 1430.  -   display: block;
  1433. 1431.  -   background: #F0F1F2;
  1434. 1432.  -   color: #505050;
  1435. 1433.  -   font-weight: bold;
  1436. 1434.  -   padding: 8px 0px 8px 10px;
  1437. 1435.  -   margin-top: 1px;
  1438. 1436.  - }
  1439. 1437.  - .pd_apps_summary:hover {
  1440. 1438.  -   text-decoration: none;
  1441. 1439.  - }
  1442. 1440.  - .pd_apps_header {
  1443. 1441.  -   background: #F0F1F2;
  1444. 1442.  -   color: #505050;
  1445. 1443.  -   padding: 4px 0px 6px 0px;
  1446. 1444.  -   height: 29px;
  1447. 1445.  - }
  1448. 1446.  - .pd_apps_search_wrap {
  1449. 1447.  -   margin: 3px 7px 0px 0px;
  1450. 1448.  - }
  1451. 1449.  - #pd_apps_search_cont {
  1452. 1450.  -   display: none;
  1453. 1451.  -   padding: 10px 0px;
  1454. 1452.  - }
  1455. 1453.  - .pd_game_search_img {
  1456. 1454.  -   width: 40px;
  1457. 1455.  -   height: 40px;
  1458. 1456.  -   -webkit-border-radius: 3px;
  1459. 1457.  -   -moz-border-radius: 3px;
  1460. 1458.  -   border-radius: 3px;
  1461. 1459.  - }
  1462. 1460.  - .pd_game_search_photo {
  1463. 1461.  -   position: absolute;
  1464. 1462.  - }
  1465. 1463.  - .pd_game_search_row {
  1466. 1464.  -   display: block;
  1467. 1465.  -   padding: 5px 10px;
  1468. 1466.  - }
  1469. 1467.  - .pd_game_search_row:hover {
  1470. 1468.  -   text-decoration: none;
  1471. 1469.  -   background: #EDF1F5;
  1472. 1470.  - }
  1473. 1471.  - .pd_game_search_row:active {
  1474. 1472.  -   padding: 6px 10px 4px;
  1475. 1473.  - }
  1476. 1474.  - .pd_game_search_info {
  1477. 1475.  -   padding-left: 50px;
  1478. 1476.  -   height: 38px;
  1479. 1477.  -   padding-top: 2px;
  1480. 1478.  - }
  1481. 1479.  - .pd_game_search_info_str {
  1482. 1480.  -   color: #777;
  1483. 1481.  -   padding: 5px 0px 0px 0px;
  1484. 1482.  - }
  1485. 1483.  - #pd_apps_search_progress {
  1486. 1484.  -   background: url("/images/upload.gif") no-repeat;
  1487. 1485.  -   display: none;
  1488. 1486.  -   height: 23px;
  1489. 1487.  -   margin-left: 411px;
  1490. 1488.  -   margin-top: 12px;
  1491. 1489.  -   position: absolute;
  1492. 1490.  -   width: 32px;
  1493. 1491.  -   z-index: 95;
  1494. 1492.  - }
  1495. 1493.  - #pd_apps_search_close {
  1496. 1494.  -   cursor: pointer;
  1497. 1495.  -   display: none;
  1498. 1496.  -   background: transparent url(/images/icons/input_clear.gif) 6px 6px no-repeat;
  1499. 1497.  -   padding: 2px;
  1500. 1498.  -   width: 19px;
  1501. 1499.  -   height: 19px;
  1502. 1500.  -   margin-left: 424px;
  1503. 1501.  -   margin-top: 4px;
  1504. 1502.  -   opacity: 0.6;
  1505. 1503.  -   filter: alpha(opacity=60);
  1506. 1504.  -   position: absolute;
  1507. 1505.  -   z-index: 100;
  1508. 1506.  - }
  1509. 1507.  - .pd_apps_empty {
  1510. 1508.  -   color: #777;
  1511. 1509.  -   font-size: 1.09em;
  1512. 1510.  -   line-height: 200%;
  1513. 1511.  -   margin: 20px 20px 15px;
  1514. 1512.  -   padding: 50px 0;
  1515. 1513.  -   text-align: center;
  1516. 1514.  -   word-wrap: break-word;
  1517. 1515.  - }
  1518. 1516.  - .pd_game_search_name {
  1519. 1517.  -   color: #2B587A;
  1520. 1518.  - }
  1521. 1519.  - #pd_apps_top_summary {
  1522. 1520.  -   position: absolute;
  1523. 1521.  -   width: 180px;
  1524. 1522.  -   background: none;
  1525. 1523.  - }
  1526. 1524.  - #pd_apps_search_summary {
  1527. 1525.  -   position: absolute;
  1528. 1526.  -   width: 180px;
  1529. 1527.  -   opacity: 0;
  1530. 1528.  -   filter: alpha(opacity=60);
  1531. 1529.  -   margin-top: -15px;
  1532. 1530.  -   background: none;
  1533. 1531.  - }
  1534. 1532.  - .pads_apps_recent_empty {
  1535. 1533.  -   text-align: center;
  1536. 1534.  -   color: #777;
  1537. 1535.  -   font-size: 1.09em;
  1538. 1536.  -   line-height: 200%;
  1539. 1537.  -   padding: 22px 0px;
  1540. 1538.  - }
  1541. ------
  1542. Файл - wkview.js (Старый размер - 55167 | Новый - 0):
  1543. 0.  - var WkView = {
  1544. 1.  -
  1545. 2.  - init: function() {
  1546. 3.  -   if (window.wkLayer) {
  1547. 4.  -     return;
  1548. 5.  -   }
  1549. 6.  -   window.wkLayer = ce('div', {
  1550. 7.  -     id: 'wk_layer'
  1551. 8.  -   });
  1552. 9.  -
  1553. 10.  -   window.wkLayerWrap = ce('div', {
  1554. 11.  -     id: 'wk_layer_wrap',
  1555. 12.  -     className: 'scroll_fix_wrap fixed'
  1556. 13.  -   });
  1557. 14.  -
  1558. 15.  -
  1559. 16.  -   wkLayerWrap.appendChild(window.wkLayer);
  1560. 17.  -
  1561. 18.  -   bodyNode.appendChild(wkLayerWrap);
  1562. 19.  -
  1563. 20.  -   window.wkLayer.style.width = (lastWindowWidth - sbWidth() - 2) + 'px';
  1564. 21.  - },
  1565. 22.  -
  1566. 23.  - showLayer: function() {
  1567. 24.  - //  if (!wkcur.previousLayer) {
  1568. 25.  - //    wkcur.previousLayer = isVisible(layerWrap) || (isVisible(ge('mv_layer_wrap')) && !mvcur.minimized);
  1569. 26.  - //  }
  1570. 27.  - //  layers.fullhide && layers.fullhide(true);
  1571. 28.  -
  1572. 29.  -   debugLog('layerqueue.hide from wkview');
  1573. 30.  -   layerQueue.hide();
  1574. 31.  -
  1575. 32.  -   layers.wrapshow(wkLayerWrap, 0.7);
  1576. 33.  -   layers.fullhide = WkView.hide;
  1577. 34.  -   wkcur.showT = setTimeout(function() {
  1578. 35.  -     layers.wrapshow(wkLayerWrap, 0.7);
  1579. 36.  -     layers.fullhide = WkView.hide;
  1580. 37.  -   }, 0);
  1581. 38.  -   onBodyResize();
  1582. 39.  - },
  1583. 40.  - restoreLayer: function(opts) {
  1584. 41.  -   WkView.showLayer();
  1585. 42.  -   if (wkcur.root) {
  1586. 43.  -     if (opts.myLoc) nav.setLoc(opts.myLoc);
  1587. 44.  -   } else {
  1588. 45.  -     WkView.setLocation();
  1589. 46.  -   }
  1590. 47.  -   if (opts.prevLoc) wkcur.prevLoc = opts.prevLoc;
  1591. 48.  -   WkView.updateSize();
  1592. 49.  - },
  1593. 50.  -
  1594. 51.  - wikiClick: function(obj, ev) {
  1595. 52.  -   if (checkEvent(ev)) {
  1596. 53.  -     return true
  1597. 54.  -   }
  1598. 55.  -   var el = ev.target;
  1599. 56.  -   while(el && el.tagName != 'A') {
  1600. 57.  -     el = el.parentNode;
  1601. 58.  -   }
  1602. 59.  -   if (el && el.tagName == 'A') {
  1603. 60.  -     var href = el.href;
  1604. 61.  -     var m = href.match(/^\/(page[^?]*)(\?.*)?$/);
  1605. 62.  -     if (m) {
  1606. 63.  -       var path = m[1];
  1607. 64.  -       var query = (m[4]) ? q2ajx(m[4].substr(1)) : {};
  1608. 65.  -     } else {
  1609. 66.  -       var m = href.match(/https?:\/\/([a-zA-Z0-9\-_\.]+\.)?(vk\.com|vkontakte\.ru)\/([^?]*)(\?.*)?$/i);
  1610. 67.  -       if (!m || !m[3]) {
  1611. 68.  -         return true;
  1612. 69.  -       }
  1613. 70.  -
  1614. 71.  -       var path = m[3].split('/');
  1615. 72.  -       var query = (m[4]) ? q2ajx(m[4].substr(1)) : {};
  1616. 73.  -     }
  1617. 74.  -
  1618. 75.  -     var params = {};
  1619. 76.  -     switch(path[0]) {
  1620. 77.  -       case 'pages':
  1621. 78.  -         params['oid'] = query.oid || query.o;
  1622. 79.  -         params['id'] = query['id'];
  1623. 80.  -         params['p'] = query['p'];
  1624. 81.  -         break;
  1625. 82.  -       case 'ru':
  1626. 83.  -       case 'en':
  1627. 84.  -         params['p'] = path[1];
  1628. 85.  -         params['global'] = path[0];
  1629. 86.  -         break;
  1630. 87.  -       default:
  1631. 88.  -         switch(path[0].substr(0, 4)) {
  1632. 89.  -           case 'page':
  1633. 90.  -             var query = path[0].substr(4).split('_');
  1634. 91.  -             params['oid'] = query[0];
  1635. 92.  -             params['id'] = query[1];
  1636. 93.  -             break;
  1637. 94.  -           case 'note':
  1638. 95.  -             var query = path[0].substr(4).split('_');
  1639. 96.  -             params['w'] = path[0];
  1640. 97.  -             break;
  1641. 98.  -         }
  1642. 99.  -         break;
  1643. 100.  -     }
  1644. 101.  -     if (params.w || (params.oid && (params.id || params.p))) {
  1645. 102.  -       showWiki(params);
  1646. 103.  -       return cancelEvent(ev);
  1647. 104.  -     }
  1648. 105.  -   }
  1649. 106.  - },
  1650. 107.  -
  1651. 108.  - edit: function() {
  1652. 109.  -   if (!wkcur.canEdit) {
  1653. 110.  -     return true;
  1654. 111.  -   }
  1655. 112.  -   var link = ge('wk_edit_link');
  1656. 113.  -   if (!wkcur.editLang) {
  1657. 114.  -     wkcur.editLang = val(link);
  1658. 115.  -   }
  1659. 116.  -
  1660. 117.  -   val(link, '<img src="images/upload.gif" />');
  1661. 118.  -
  1662. 119.  -   if (wkcur.type == 'wall') {
  1663. 120.  -     if (wkcur.edit) {
  1664. 121.  -       Wall.cancelEdit();
  1665. 122.  -     } else {
  1666. 123.  -       Wall.editPost(wkcur.post, {from: 'wkview'}, function () {
  1667. 124.  -         val(link, wkcur.editLang);
  1668. 125.  -       });
  1669. 126.  -     }
  1670. 127.  -     return true;
  1671. 128.  -   }
  1672. 129.  -
  1673. 130.  -   if (wkcur.edit) {
  1674. 131.  -     if (wkcur.note) {
  1675. 132.  -       showWiki({
  1676. 133.  -         w: 'note' + wkcur.oid + '_' + wkcur.nid
  1677. 134.  -       });
  1678. 135.  -     } else {
  1679. 136.  -       showWiki({
  1680. 137.  -         oid: wkcur.oid,
  1681. 138.  -         id: wkcur.pid,
  1682. 139.  -         p: wkcur.p
  1683. 140.  -       });
  1684. 141.  -     }
  1685. 142.  -     return true;
  1686. 143.  -   }
  1687. 144.  -   wkcur.edit = true;
  1688. 145.  -   var params = {
  1689. 146.  -     act: 'edit',
  1690. 147.  -     oid: wkcur.oid,
  1691. 148.  -     load: 1,
  1692. 149.  -     section: 'edit'
  1693. 150.  -   };
  1694. 151.  -   if (wkcur.note) {
  1695. 152.  -     params['nid'] = wkcur.nid;
  1696. 153.  -     params['note'] = 1;
  1697. 154.  -   } else {
  1698. 155.  -     params['id'] = wkcur.pid;
  1699. 156.  -   }
  1700. 157.  -   ajax.post('wkview.php', params, {
  1701. 158.  -     stat: ['pages.js','wysiwyg.js', 'wysiwyg.css'],
  1702. 159.  -     onDone: function(content, js, info, options) {
  1703. 160.  -       wkcur.wkContent.innerHTML = content;
  1704. 161.  -       eval(js);
  1705. 162.  -       addEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  1706. 163.  -       addEvent(window, 'resize', WkView.onResize);
  1707. 164.  -       val(link, options.lang['pages_view']);
  1708. 165.  -       WkView.onScroll();
  1709. 166.  -       WkView.updateSize();
  1710. 167.  -     },
  1711. 168.  -     onFail: function() {
  1712. 169.  -       val(link, wkcur.editLang);
  1713. 170.  -     }
  1714. 171.  -   });
  1715. 172.  - },
  1716. 173.  -
  1717. 174.  - onScroll: function(ev, resize) {
  1718. 175.  -   switch (wkcur.type) {
  1719. 176.  -     case 'wall':
  1720. 177.  -       return WkView.wallUpdateRepliesOnScroll(resize);
  1721. 178.  -
  1722. 179.  -     case 'likes':
  1723. 180.  -       return WkView.likesOnScroll(resize);
  1724. 181.  -
  1725. 182.  -     case 'history':
  1726. 183.  -       return WkView.historyOnScroll(resize);
  1727. 184.  -   }
  1728. 185.  -
  1729. 186.  -   var y = wkLayerWrap.scrollTop;
  1730. 187.  -   var panel = ge('wk_buttons_panel');
  1731. 188.  -   if (!panel) return;
  1732. 189.  -   var py = getXY(ge('wk_buttons_cont'), true)[1];
  1733. 190.  -   if (!wkcur.bottomSize) {
  1734. 191.  -     wkcur.bottomSize = getSize(panel);
  1735. 192.  -   }
  1736. 193.  -
  1737. 194.  -   var ph = wkcur.bottomSize[1];
  1738. 195.  -
  1739. 196.  -   var wndHeight = window.innerHeight || document.documentElement.clientHeight;
  1740. 197.  -
  1741. 198.  -   if (resize && !wkcur.fixedBottom && wndHeight - ph < py + 20) {
  1742. 199.  -     wkLayerWrap.scrollTop += py + 20 - (wndHeight - ph);
  1743. 200.  -   } else if (wndHeight - ph < py) {
  1744. 201.  -     if (!wkcur.fixedBottom || resize) {
  1745. 202.  -       wkcur.fixedBottom = true;
  1746. 203.  -       setStyle(panel, {
  1747. 204.  -         position: 'fixed',
  1748. 205.  -         top: (wndHeight - ph) + 'px'
  1749. 206.  -       });
  1750. 207.  -       addClass(panel, 'wk_panel_fixed');
  1751. 208.  -     }
  1752. 209.  -   } else {
  1753. 210.  -     if (wkcur.fixedBottom || resize) {
  1754. 211.  -       wkcur.fixedBottom = false;
  1755. 212.  -       setStyle(panel, {
  1756. 213.  -         position: 'static',
  1757. 214.  -         top: '0px'
  1758. 215.  -       });
  1759. 216.  -       removeClass(panel, 'wk_panel_fixed');
  1760. 217.  -     }
  1761. 218.  -   }
  1762. 219.  -
  1763. 220.  -   if (resize && wkcur.fixedBottom) {
  1764. 221.  -     setStyle(panel, {left: getXY(wkcur.wkContent)[0]+'px'})
  1765. 222.  -   }
  1766. 223.  -
  1767. 224.  -   if (!wkcur.editorLayer) {
  1768. 225.  -     wkCont = wkcur.wkContent;//ge('wk_content');
  1769. 226.  -     wkcur.editorLayer = ge('wke_buttons_cont') || geByClass('editor_layer', wkCont)[0];
  1770. 227.  -   } else {
  1771. 228.  -     var pos = getXY(wkcur.editorLayer, true);
  1772. 229.  -     if (pos[1] < 0) {
  1773. 230.  -       if (!wkcur.fixedTop) {
  1774. 231.  -         wkcur.fixedTop = true;
  1775. 232.  -         addClass(wkcur.wkContent, 'wk_top_fixed');
  1776. 233.  -         WkView.updateShadow();
  1777. 234.  -         wkcur.editor.floatPanel = true;
  1778. 235.  -       }
  1779. 236.  -     } else {
  1780. 237.  -       if (wkcur.fixedTop) {
  1781. 238.  -         wkcur.fixedTop = false;
  1782. 239.  -         removeClass(wkcur.wkContent, 'wk_top_fixed');
  1783. 240.  -         wkcur.editorLayer.style.paddingTop = '0px';
  1784. 241.  -         wkcur.editor.floatPanel = false;
  1785. 242.  -       }
  1786. 243.  -     }
  1787. 244.  -   }
  1788. 245.  - },
  1789. 246.  -
  1790. 247.  - updateShadow: function() {
  1791. 248.  -   if (!wkcur.editorLayer) {
  1792. 249.  -     wkCont = wkcur.wkContent;//ge('wk_content');
  1793. 250.  -     wkcur.editorLayer = geByClass('editor_layer', wkCont)[0];
  1794. 251.  -   }
  1795. 252.  -   var toolbox = ge('wke_buttons') || geByClass('editor_toolbar', wkCont)[0];
  1796. 253.  -   if (toolbox) {
  1797. 254.  -     if (wkcur.fixedTop) {
  1798. 255.  -       var size = getSize(toolbox);
  1799. 256.  -       wkcur.editorLayer.style.paddingTop = size[1]+'px';
  1800. 257.  -       ge('wk_top_toolbox_shadow').style.top = (size[1] - 1)+'px';
  1801. 258.  -     }
  1802. 259.  -   }
  1803. 260.  - },
  1804. 261.  -
  1805. 262.  - saveInfo: function(autosave) {
  1806. 263.  -   var params = {
  1807. 264.  -     page: wkcur.p,
  1808. 265.  -     hash: wkcur.hash
  1809. 266.  -   }
  1810. 267.  -   if (wkcur.newEditor) {
  1811. 268.  -     params['Body'] = wkcur.editor.val();
  1812. 269.  -     if (params['Body'] === false) {
  1813. 270.  -       return false;
  1814. 271.  -     }
  1815. 272.  -   } else {
  1816. 273.  -     params['Body'] = wkcur.editor.convertToWiki(true);
  1817. 274.  -   }
  1818. 275.  -   if (wkcur.note) {
  1819. 276.  -     params = extend(params, {
  1820. 277.  -       act: 'save',
  1821. 278.  -       oid: wkcur.oid,
  1822. 279.  -       nid: wkcur.nid,
  1823. 280.  -       wysiwyg: 1,
  1824. 281.  -       note: wkcur.note
  1825. 282.  -     });
  1826. 283.  -   } else {
  1827. 284.  -     params = extend(params, {
  1828. 285.  -       act: 'save',
  1829. 286.  -       oid: wkcur.oid,
  1830. 287.  -       id: wkcur.pid
  1831. 288.  -     });
  1832. 289.  -   }
  1833. 290.  -   if (wkcur.pageTitle) {
  1834. 291.  -     params['title'] = val(wkcur.pageTitle);
  1835. 292.  -     /*if (!params['title']) {
  1836. 293.  -       notaBene(wkcur.pageTitle);
  1837. 294.  -       return false;
  1838. 295.  -     }*/
  1839. 296.  -   }
  1840. 297.  -   if (autosave && wkcur.lockAutoSave) {
  1841. 298.  -     return false;
  1842. 299.  -   }
  1843. 300.  -   wkcur.lockAutoSave = true;
  1844. 301.  -   ajax.post(wkcur.note ? 'wkview.php' : 'al_pages.php', params, {
  1845. 302.  -     onDone: function(text, data) {
  1846. 303.  -       wkcur.lockAutoSave = false;
  1847. 304.  -       wkcur.editor.changed = false;
  1848. 305.  -       if (!autosave) {
  1849. 306.  -         var saveEl = ge('pages_save_info_wysiwyg');
  1850. 307.  -         saveEl.innerHTML = text;
  1851. 308.  -         show(saveEl);
  1852. 309.  -       }
  1853. 310.  -       if (data.nid) {
  1854. 311.  -         wkcur.nid = data.nid;
  1855. 312.  -       }
  1856. 313.  -       if (data.raw) {
  1857. 314.  -         wkcur.wkRaw = data.raw;
  1858. 315.  -       }
  1859. 316.  -       if (data) {
  1860. 317.  -         if (data.created && cur.chooseMedia) {
  1861. 318.  -           nav.setLoc(extend(nav.objLoc, {w:'note'+data.raw}));
  1862. 319.  -           if (!autosave) {
  1863. 320.  -             WkView.hide(false, true);
  1864. 321.  -           }
  1865. 322.  -           cur.chooseMedia('note', data.raw, data);
  1866. 323.  -           return true;
  1867. 324.  -         } else {
  1868. 325.  -           var title = ge('share_note_title'+data['raw']);
  1869. 326.  -           if (title && !autosave) {
  1870. 327.  -             title.innerHTML = data['title'];
  1871. 328.  -           }
  1872. 329.  -           if (data['title']) {
  1873. 330.  -             val('wk_layer_title', data['title']);
  1874. 331.  -           }
  1875. 332.  -           if (wkcur.note && wkcur.toStatus && !autosave) {
  1876. 333.  -             WkView.hide(false, true);
  1877. 334.  -             if (wkcur.reloadOnSave) {
  1878. 335.  -               boxRefreshCoords(boxLoader);
  1879. 336.  -               show(boxLoader);
  1880. 337.  -               show(boxLayerWrap);
  1881. 338.  -               nav.reload({
  1882. 339.  -                 onDone: function() {
  1883. 340.  -                   hide(boxLoader);
  1884. 341.  -                   hide(boxLayerWrap);
  1885. 342.  -                 }
  1886. 343.  -               });
  1887. 344.  -             }
  1888. 345.  -             return true;
  1889. 346.  -           }
  1890. 347.  -         }
  1891. 348.  -       }
  1892. 349.  -       if (autosave) return true;
  1893. 350.  -       setTimeout(function() {
  1894. 351.  -         fadeOut(saveEl, 200);
  1895. 352.  -       }, 1500);
  1896. 353.  -     },
  1897. 354.  -     showProgress: function() {
  1898. 355.  -       !autosave && lockButton(ge('wk_layer_save'));
  1899. 356.  -     },
  1900. 357.  -     hideProgress: function() {
  1901. 358.  -       !autosave && unlockButton(ge('wk_layer_save'));
  1902. 359.  -     },
  1903. 360.  -     onFail: WkView.showError
  1904. 361.  -   })
  1905. 362.  - },
  1906. 363.  -
  1907. 364.  - show: function(title, html, options, script, ev) {
  1908. 365.  -   // var previous = false;
  1909. 366.  -   var arrowOver = window.wkcur && wkcur.arrowOver;
  1910. 367.  -   if (!window.wkcur) {
  1911. 368.  -     this.init();
  1912. 369.  -   } else {
  1913. 370.  -     if (wkcur.shown && !isVisible(wkLayerWrap)) {
  1914. 371.  -       debugLog('hiding old wkview');
  1915. 372.  -       WkView.hide(true, true);
  1916. 373.  -     }
  1917. 374.  -     each (wkcur._hide || [], function (k, hideCallback) {
  1918. 375.  -       if (isFunction(hideCallback)) hideCallback();
  1919. 376.  -     });
  1920. 377.  -     // previous = {
  1921. 378.  -     //   scrollTop: wkLayer.scrollTop,
  1922. 379.  -     //   cont: wkcur.wkCont,
  1923. 380.  -     //   cur: wkcur
  1924. 381.  -     // };
  1925. 382.  -   }
  1926. 383.  -   var hlen = (window.wkcur && wkcur.historyLen) ? wkcur.historyLen : 0;
  1927. 384.  -   if (!window.wkcur || !wkcur.doBack && !options.fromlist) {
  1928. 385.  -     hlen += 1;
  1929. 386.  -   }
  1930. 387.  -
  1931. 388.  -   var toQueue = options.queue;
  1932. 389.  -   if (toQueue) {
  1933. 390.  -     layerQueue.push();
  1934. 391.  -     options.queue = false;
  1935. 392.  -   }
  1936. 393.  -   if ((window.wkcur || {}).shown && wkcur.root) {
  1937. 394.  -     nav.setLoc(wkcur.prevLoc);
  1938. 395.  -   }
  1939. 396.  -
  1940. 397.  -   window.wkcur = {
  1941. 398.  -     historyLen: hlen,
  1942. 399.  -     _hide: [],
  1943. 400.  -     _show: []
  1944. 401.  -   };
  1945. 402.  -
  1946. 403.  -   if (browser.iphone || browser.ipad) {
  1947. 404.  -     cur.wkStartScroll = scrollGetY();
  1948. 405.  -   }
  1949. 406.  -
  1950. 407.  -   if (options.edit) {
  1951. 408.  -     cur._editMode = function() {
  1952. 409.  -       return true;
  1953. 410.  -     }
  1954. 411.  -     if (!window.WkEditor) {
  1955. 412.  -       stManager.add(['wk_editor.js', 'wk_editor.css'], WkView.show.pbind(title, html, options, script, ev));
  1956. 413.  -       return false;
  1957. 414.  -     }
  1958. 415.  -   }
  1959. 416.  -
  1960. 417.  -   cur.cancelTooltip = true;
  1961. 418.  -   if (window.tooltips) {
  1962. 419.  -     tooltips.hideAll();
  1963. 420.  -   }
  1964. 421.  -
  1965. 422.  -   if (!isVisible(wkLayerWrap)) {
  1966. 423.  -     otherList = true;
  1967. 424.  -     addEvent(window, 'resize', WkView.onResize);
  1968. 425.  -     addEvent(wkLayerWrap, 'click', WkView.onClick);
  1969. 426.  -     boxQueue.hideAll();
  1970. 427.  -     WkView.showLayer();
  1971. 428.  -   }
  1972. 429.  -
  1973. 430.  -   wkcur.noLocChange = 0; // do return location
  1974. 431.  -   wkcur.noHistory = options.noLocChange;
  1975. 432.  -
  1976. 433.  -   wkcur.shown = true;
  1977. 434.  -
  1978. 435.  -   if (wkcur.edit) {
  1979. 436.  -     wkcur.edit = false;
  1980. 437.  -     ge('wk_edit_link').innerHTML = wkcur.editLang;
  1981. 438.  -   }
  1982. 439.  -   extend(wkcur, options);
  1983. 440.  -
  1984. 441.  -   if (wkcur.root) {
  1985. 442.  -     cur.nav.push(function(ch, old, nw, opts) {
  1986. 443.  -       nw = nav.toStr(nw);
  1987. 444.  -       if (nw == wkcur.prevLoc) {
  1988. 445.  -         WkView.hide(true);
  1989. 446.  -         return false;
  1990. 447.  -       }
  1991. 448.  -     });
  1992. 449.  -     if (!options.noLocChange && options.myLoc) nav.setLoc(options.myLoc);
  1993. 450.  -   } else {
  1994. 451.  -     WkView.setLocation(options.noLocChange, toQueue);
  1995. 452.  -     if (options.prevLoc) wkcur.prevLoc = options.prevLoc;
  1996. 453.  -   }
  1997. 454.  -
  1998. 455.  -   if (ev && ev.pageX && ev.pageY) {
  1999. 456.  -     extend(wkcur, {oldX: ev.pageX, oldY: ev.pageY, oldT: vkNow()});
  2000. 457.  -   }
  2001. 458.  -
  2002. 459.  -   var colorClass = wkcur.layerLight ? 'wk_light' : 'wk_dark';
  2003. 460.  -
  2004. 461.  -   addClass(wkLayerWrap, colorClass);
  2005. 462.  -   addClass(layerBG, colorClass);
  2006. 463.  -
  2007. 464.  -   var content = html,
  2008. 465.  -       editLink = getLang('global_edit'),
  2009. 466.  -       hideLeft = wkcur.historyLen > 1 ? '' : 'display: none;';
  2010. 467.  -   if (options.type == 'wall') {
  2011. 468.  -     addEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  2012. 469.  -     addEvent(window, 'resize', WkView.onResize);
  2013. 470.  -     WkView.wallBeforeInitPost(options);
  2014. 471.  -   } else if (options.edit) {
  2015. 472.  -     addEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  2016. 473.  -     addEvent(window, 'resize', WkView.onResize);
  2017. 474.  -     editLink = options.lang['pages_view'];
  2018. 475.  -     wkcur.editLang = getLang('global_edit');
  2019. 476.  -   } else {
  2020. 477.  -     if (options) {
  2021. 478.  -       content = '<div class="wk_text wk_wiki_content' + (options.className ? ' '+options.className : '') + '" onclick="return WkView.wikiClick(this, event);">' + content + '</div>';
  2022. 479.  -     }
  2023. 480.  -   }
  2024. 481.  -
  2025. 482.  -   if (wkcur.wkCont) {
  2026. 483.  -     wkcur.wkContent.innerHTML = content;
  2027. 484.  -     ge('wk_layer_title').innerHTML = title;
  2028. 485.  -   } else {
  2029. 486.  -     wkLayer.innerHTML = '<div class="wk_cont">\
  2030. 487.  -   <table cellspacing="0" cellpadding="0" class="wk_cont_t wk_cont_top_t">\
  2031. 488.  -   <tr><td class="sidesh s1"><div class="sidesh_filler"></div></td><td>\
  2032. 489.  -   <table cellspacing="0" cellpadding="0" class="wk_cont_t">\
  2033. 490.  -   <tr><td>\
  2034. 491.  -   <table cellspacing="0" cellpadding="0" class="wk_cont_t">\
  2035. 492.  -   <tr><td colspan="3" class="bottomsh s3"><div></div></td></tr>\
  2036. 493.  -   <tr><td class="sidesh s3"><div class="sidesh_filler"></div></td><td>\
  2037. 494.  -   \
  2038. 495.  -   <div id="wk_box" onclick="wkcur.wkClicked = true;">\
  2039. 496.  -     <div id="wk_loader"></div>\
  2040. 497.  -     <a id="wk_close_link" href="javascript: return false;" class="fl_r wk_close_link" onclick="return WkView.hide(false, true, event);">\
  2041. 498.  -       '+getLang('global_close')+'\
  2042. 499.  -     </a>\
  2043. 500.  -     <div class="fl_r divide wk_edit_divide">|</div>\
  2044. 501.  -     <a class="fl_r wk_edit_link" id="wk_edit_link" onclick="return WkView.edit();">\
  2045. 502.  -       '+editLink+'\
  2046. 503.  -     </a>\
  2047. 504.  -     <div id="wk_summary" class="fl_l"><span class="summary" id="wk_layer_title">'+title+'</span></div>\
  2048. 505.  -     <div id="wk_content">'+content+'</div>\
  2049. 506.  -     <div class="clear"></div>\
  2050. 507.  -   </div>\
  2051. 508.  -   \
  2052. 509.  -   </td><td class="sidesh s3"><div class="sidesh_filler"></div></td></tr>\
  2053. 510.  -   <tr><td colspan="3" class="bottomsh s3"><div></div></td></tr></table>\
  2054. 511.  -   </td></tr>\
  2055. 512.  -   <tr><td colspan="3" class="bottomsh s2"><div></div></td></tr></table>\
  2056. 513.  -   </td><td class="sidesh s1"><div class="sidesh_filler"></div></td></tr>\
  2057. 514.  -   <tr><td colspan="3" class="bottomsh s1"><div></div></td></tr></table>\
  2058. 515.  -   </div>\
  2059. 516.  - <div id="wk_left" style="'+hideLeft+'" class="wk_left no_select"></div>\
  2060. 517.  - <div id="wk_right" class="wk_close no_select"></div>\
  2061. 518.  - <div id="wk_left_arrow" class="no_select"></div>\
  2062. 519.  - <div id="wk_right_arrow" class="no_select"></div>\
  2063. 520.  - <div class="no_select" id="wk_left_nav" style="'+hideLeft+'" '+'onmouseover="WkView.activate(wkcur.wkLeft)" onmouseout="WkView.deactivate(wkcur.wkLeft)" onmousedown="wkcur.wkClicked = true; WkView.back();" onselectstart="return cancelEvent(event);"></div>\
  2064. 521.  - <div class="no_select" id="wk_right_nav" '+'onmouseover="WkView.activate(wkcur.wkRight)" onmouseout="WkView.deactivate(wkcur.wkRight)" onmousedown="wkcur.wkClicked = true; WkView.hide();"></div>\
  2065. 522.  - <div id="wk_left_arrow_bg" class="no_select" onclick="return WkView.navigate(this, event, -1);" onmouseover="WkView.activateArrow(false, event)" onmouseout="WkView.deactivateArrow(false, event)"><div class="wk_arrow_bg_inner"></div></div>\
  2066. 523.  - <div id="wk_right_arrow_bg" class="no_select" onclick="return WkView.navigate(this, event, 1);" onmouseover="WkView.activateArrow(true, event)" onmouseout="WkView.deactivateArrow(true, event)"><div class="wk_arrow_bg_inner"></div></div>';
  2067. 524.  -
  2068. 525.  -     extend(wkcur, {
  2069. 526.  -       wkCont: wkLayer.firstChild,
  2070. 527.  -       wkBox: ge('wk_box'),
  2071. 528.  -
  2072. 529.  -       mvLoader: ge('wk_loader'),
  2073. 530.  -       wkContent: ge('wk_content'),
  2074. 531.  -
  2075. 532.  -       wkLeftNav: ge('wk_left_nav'),
  2076. 533.  -       wkRightNav: ge('wk_right_nav'),
  2077. 534.  -       wkLeft: ge('wk_left'),
  2078. 535.  -       wkRight: ge('wk_right'),
  2079. 536.  -       wkLeftArrow: ge('wk_left_arrow'),
  2080. 537.  -       wkRightArrow: ge('wk_right_arrow'),
  2081. 538.  -       wkLeftArrowBg: ge('wk_left_arrow_bg'),
  2082. 539.  -       wkRightArrowBg: ge('wk_right_arrow_bg')
  2083. 540.  -     });
  2084. 541.  -   }
  2085. 542.  -   toggle('wk_summary', title);
  2086. 543.  -
  2087. 544.  -   if (wkcur.commonClass) {
  2088. 545.  -     addClass(wkcur.wkBox, wkcur.commonClass);
  2089. 546.  -   } else {
  2090. 547.  -     wkcur.wkBox.className = '';
  2091. 548.  -   }
  2092. 549.  -
  2093. 550.  -   if (wkcur.canEdit && !wkcur.toStatus && wkcur.type != 'wall') {
  2094. 551.  -     addClass(wkcur.wkBox, 'wk_view_edit_link');
  2095. 552.  -   } else {
  2096. 553.  -     removeClass(wkcur.wkBox, 'wk_view_edit_link');
  2097. 554.  -   }
  2098. 555.  -
  2099. 556.  -   if (browser.mobile) {
  2100. 557.  -     wkcur.wkYOffset = intval(window.pageYOffset);
  2101. 558.  -     wkcur.wkCont.style.paddingTop = (wkcur.wkYOffset + 10) + 'px';
  2102. 559.  -     wkcur.wkRightNav.style.top = (wkcur.wkYOffset + 10) + 'px';
  2103. 560.  -   }
  2104. 561.  -
  2105. 562.  -   if (script) {
  2106. 563.  -     eval(script);
  2107. 564.  -   }
  2108. 565.  -   WkView.updateSize();
  2109. 566.  -
  2110. 567.  -   removeEvent(document, 'keydown', WkView.onKeyDown);
  2111. 568.  -   addEvent(document, 'keydown', WkView.onKeyDown);
  2112. 569.  -
  2113. 570.  -   options.onLoaded && options.onLoaded();
  2114. 571.  -
  2115. 572.  -   var closeLink = ge('wk_close_link');
  2116. 573.  -   if (closeLink) {
  2117. 574.  -     closeLink.focus();
  2118. 575.  -   }
  2119. 576.  -
  2120. 577.  -   WkView.updateArrows();
  2121. 578.  -
  2122. 579.  -   if (options.type == 'wall') {
  2123. 580.  -     WkView.wallAfterInitPost();
  2124. 581.  -   } else if (options.toScroll) {
  2125. 582.  -     wkLayerWrap.scrollTop = options.toScroll;
  2126. 583.  -     wkcur.toScroll = 0;
  2127. 584.  -   }
  2128. 585.  -
  2129. 586.  -   if (arrowOver !== undefined) {
  2130. 587.  -     WkView.activateArrow(arrowOver);
  2131. 588.  -   }
  2132. 589.  -   if (options.fromlist) {
  2133. 590.  -     WkView.preloadArrow(options.fromlist == 1);
  2134. 591.  -   }
  2135. 592.  -   var _a = window.audioPlayer, aid = currentAudioId();
  2136. 593.  -   if (_a && aid && _a.showCurrentTrack) _a.showCurrentTrack();
  2137. 594.  -
  2138. 595.  -   return false;
  2139. 596.  - },
  2140. 597.  -
  2141. 598.  - hide: function(noLoc, force, ev) {
  2142. 599.  -   if (!window.wkcur || !force && !wkcur.shown) return;
  2143. 600.  -   var doUpdAds = !wkcur.wkRaw.match(/^recom_apps\d+$/) && !wkcur.wkRaw.match(/^app\d+$/);
  2144. 601.  -
  2145. 602.  -   clearTimeout(wkcur.autosaveTimeout);
  2146. 603.  -   clearTimeout(wkcur.showT);
  2147. 604.  -
  2148. 605.  -   /*if (!wkcur.noHistory && !noLoc) {
  2149. 606.  -     wkcur.noHistory = 1;
  2150. 607.  -     wkcur.forceHistoryHide = force;
  2151. 608.  -     __adsUpdate('lazy');
  2152. 609.  -     return history.go(-1);
  2153. 610.  -   }
  2154. 611.  -   if (wkcur.forceHistoryHide) {
  2155. 612.  -     force = wkcur.forceHistoryHide;
  2156. 613.  -     wkcur.forceHistoryHide = false;
  2157. 614.  -   }*/
  2158. 615.  -
  2159. 616.  -   if (!force && wkcur.edit && wkcur.editor) {
  2160. 617.  -     if (wkcur.editor.changed) {
  2161. 618.  -       if (wkcur.note && wkcur.toStatus) {
  2162. 619.  -         WkView.saveInfo();
  2163. 620.  -         return;
  2164. 621.  -       } else {
  2165. 622.  -         var box = showFastBox(wkcur.lang['pages_close_title'], wkcur.lang['pages_close_text'], getLang('box_yes'), function() {
  2166. 623.  -           box.hide();
  2167. 624.  -           WkView.hide(noLoc, true);
  2168. 625.  -         }, getLang('box_no'))
  2169. 626.  -         return;
  2170. 627.  -       }
  2171. 628.  -     }
  2172. 629.  -   }
  2173. 630.  -
  2174. 631.  -   each (wkcur._hide || [], function (k, hideCallback) {
  2175. 632.  -     if (isFunction(hideCallback)) hideCallback();
  2176. 633.  -   });
  2177. 634.  -
  2178. 635.  -   var donthide = false;
  2179. 636.  -   if (isVisible(wkLayerWrap)) {
  2180. 637.  -     setTimeout(layerQueue.pop, 0);
  2181. 638.  -     donthide = layerQueue.count() && layerQueue._layers[layerQueue._layers.length - 1][0] == 'wiki' && !layerQueue._bl;
  2182. 639.  -     if (!donthide) {
  2183. 640.  -       layers.wraphide(wkLayerWrap);
  2184. 641.  -       layers.fullhide = false;
  2185. 642.  -     }
  2186. 643.  -   }
  2187. 644.  -
  2188. 645.  -   if (window.tooltips) {
  2189. 646.  -     tooltips.destroy(this);
  2190. 647.  -   }
  2191. 648.  -
  2192. 649.  -   removeEvent(document, 'keydown', WkView.onKeyDown);
  2193. 650.  -
  2194. 651.  -   wkcur.editorLayer = false;
  2195. 652.  -   removeClass(wkcur.wkContent, 'wk_top_fixed');
  2196. 653.  -   wkcur.fixedTop = wkcur.fixedBottom = false;
  2197. 654.  -
  2198. 655.  -   if (!donthide) {
  2199. 656.  -     var colorClass = wkcur.layerLight ? 'wk_light' : 'wk_dark';
  2200. 657.  -     removeClass(wkLayerWrap, colorClass);
  2201. 658.  -     removeClass(layerBG, colorClass);
  2202. 659.  -
  2203. 660.  -     wkcur.shown = false;
  2204. 661.  -     removeEvent(wkLayerWrap, 'click', WkView.onClick);
  2205. 662.  -     removeEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  2206. 663.  -     wkcur.wkContent.innerHTML = '';
  2207. 664.  -   }
  2208. 665.  -   wkcur.wkClicked = false;
  2209. 666.  -
  2210. 667.  -   wkcur.changeCanvasSize = false;
  2211. 668.  -
  2212. 669.  -   if (wkcur.onHide && isFunction(wkcur.onHide)) {
  2213. 670.  -     wkcur.onHide();
  2214. 671.  -   }
  2215. 672.  -
  2216. 673.  -   cur._editMode = false;
  2217. 674.  -
  2218. 675.  -   if (wkcur.root && noLoc !== true) {
  2219. 676.  -     WkView.backLocation();
  2220. 677.  -   } else if (!wkcur.noLocChange && noLoc !== true) {
  2221. 678.  -     if (noLoc === 2) {
  2222. 679.  -       nav.setLoc(hab.getLoc());
  2223. 680.  -     } else {
  2224. 681.  -       WkView.backLocation();
  2225. 682.  -     }
  2226. 683.  -     if (doUpdAds) {
  2227. 684.  -       __adsUpdate('lazy');
  2228. 685.  -     }
  2229. 686.  -   } else if (doUpdAds) {
  2230. 687.  -     __adsUpdate();
  2231. 688.  -   }
  2232. 689.  -
  2233. 690.  -   if (browser.iphone || browser.ipad) {
  2234. 691.  -     var scroll = scrollGetY();
  2235. 692.  -     if (Math.abs(scroll - cur.wkStartScroll) > 500) {
  2236. 693.  -       scrollToY(cur.wkStartScroll, 0);
  2237. 694.  -     }
  2238. 695.  -   }
  2239. 696.  -   delete wkcur.historyLen;
  2240. 697.  -   var _a = window.audioPlayer, aid = currentAudioId();
  2241. 698.  -   if (_a && aid && _a.showCurrentTrack) _a.showCurrentTrack();
  2242. 699.  -   return false;
  2243. 700.  - },
  2244. 701.  -
  2245. 702.  - cmp: function(id1, id2) {
  2246. 703.  -   var l1 = id1.length, l2 = id2.length;
  2247. 704.  -   if (l1 < l2) {
  2248. 705.  -     return -1;
  2249. 706.  -   } else if (l1 > l2) {
  2250. 707.  -     return 1;
  2251. 708.  -   } else if (id1 < id2) {
  2252. 709.  -     return -1;
  2253. 710.  -   } else if (id1 > id2) {
  2254. 711.  -     return 1;
  2255. 712.  -   }
  2256. 713.  -   return 0;
  2257. 714.  - },
  2258. 715.  -
  2259. 716.  -
  2260. 717.  - onClick: function(e) {
  2261. 718.  -   if (wkcur.wkClicked) {
  2262. 719.  -     wkcur.wkClicked = false;
  2263. 720.  -     return;
  2264. 721.  -   }
  2265. 722.  -   var dx = Math.abs(e.pageX - intval(wkcur.oldX));
  2266. 723.  -   var dy = Math.abs(e.pageY - intval(wkcur.oldY));
  2267. 724.  -   if (dx > 3 || dy > 3) {
  2268. 725.  -     if (vkNow() - intval(wkcur.oldT) > 300) {
  2269. 726.  -       WkView.hide();
  2270. 727.  -     }
  2271. 728.  -   }
  2272. 729.  - },
  2273. 730.  -
  2274. 731.  - onKeyDown: function(e) {
  2275. 732.  -   e = e || window.event;
  2276. 733.  -   // debugLog(e.type, e.returnValue, e.keyCode, e, WkView.edit);
  2277. 734.  -   if (e.returnValue === false) return false;
  2278. 735.  -   if (!cur.pvShown && e.keyCode == KEY.ESC) {
  2279. 736.  -     WkView.hide();
  2280. 737.  -     return cancelEvent(e);
  2281. 738.  -   }
  2282. 739.  -   if (!cur.pvShown && (!wkcur.edit && (e.keyCode == KEY.LEFT || e.keyCode == KEY.RIGHT))) {
  2283. 740.  -     var target = e && e.target || e.srcElement;
  2284. 741.  -     if (target && target.tagName == 'TEXTAREA' || target.tagName == 'INPUT') {
  2285. 742.  -       return true;
  2286. 743.  -     }
  2287. 744.  -     WkView.navigate(null, e, e.keyCode == KEY.RIGHT ? 1 : -1);
  2288. 745.  -     return cancelEvent(e);
  2289. 746.  -   }
  2290. 747.  -   if (WkView.edit) {
  2291. 748.  -     if (e.keyCode == 10 || e.keyCode == 13 && (e.ctrlKey || e.metaKey && browser.mac)) {
  2292. 749.  -       WkView.saveInfo();
  2293. 750.  -     }
  2294. 751.  -     if (cur.updTimeout) return;
  2295. 752.  -     cur.updTimeout = setTimeout(function() {
  2296. 753.  -       WkView.onResize()
  2297. 754.  -       cur.updTimeout = false;
  2298. 755.  -     }, 200);
  2299. 756.  -   }
  2300. 757.  - },
  2301. 758.  -
  2302. 759.  - onResize: function() {
  2303. 760.  -   var dwidth = lastWindowWidth, dheight = lastWindowHeight, sbw = sbWidth();
  2304. 761.  -
  2305. 762.  -   var w = dwidth - sbw - 2 - 120 - 34 - 50, h = dheight - 31 - 28 - 72;
  2306. 763.  -   if (w > 1280) { // less than full hd - not size > 2
  2307. 764.  -     w = 1280;
  2308. 765.  -   } else if (w > 807 && w < 907) { // 1024x768 - not size > 1
  2309. 766.  -     w = 807;
  2310. 767.  -   } else if (w < 604) {
  2311. 768.  -     w = 604;
  2312. 769.  -   }
  2313. 770.  -   if (h < 453) {
  2314. 771.  -     h = 453;
  2315. 772.  -   }
  2316. 773.  -   wkcur.mvWidth = w;
  2317. 774.  -   wkcur.mvHeight = h;
  2318. 775.  -
  2319. 776.  -   var sizeChanged = false, oldverybig = wkcur.mvVeryBig;
  2320. 777.  -   wkcur.mvVeryBig = (w > 1280) ? 2 : (w > 807 ? 1 : false);
  2321. 778.  -   sizeChanged = (oldverybig != wkcur.mvVeryBig);
  2322. 779.  -   WkView.onScroll(false, true);
  2323. 780.  -
  2324. 781.  -   WkView.updateHeight();
  2325. 782.  -   WkView.updateArrows();
  2326. 783.  - },
  2327. 784.  -
  2328. 785.  -
  2329. 786.  - updateArrows: function() {
  2330. 787.  -   var sbw = sbWidth() + 2;
  2331. 788.  -   if (wkcur.wkLeft) {
  2332. 789.  -     wkcur.wkLeft.style.left = '20px';
  2333. 790.  -   }
  2334. 791.  -   var size = getSize(wkcur.wkBox),
  2335. 792.  -       width = size[0],
  2336. 793.  -       height = size[1];
  2337. 794.  -   wkcur.wkLeftNav.style.width = Math.floor((lastWindowWidth - sbw - width - 2) / 2) + 'px';
  2338. 795.  -   wkcur.wkRightNav.style.left = Math.floor((lastWindowWidth - sbw + width + 2) / 2) + 'px';
  2339. 796.  -   wkcur.wkRightNav.style.width = Math.floor((lastWindowWidth - sbw - width - 2) / 2) + 'px';
  2340. 797.  -   if (wkcur.wkClose) {
  2341. 798.  -     wkcur.wkClose.style.left = (lastWindowWidth - sbw - 2 - 37) + 'px';
  2342. 799.  -   }
  2343. 800.  -
  2344. 801.  -   var arrowActions = WkView.getNextWkRaws();
  2345. 802.  -   if (arrowActions[0] || arrowActions[1]) {
  2346. 803.  -     var arrowTop = (wkcur.wkCont.offsetHeight < lastWindowHeight ? wkcur.wkCont.offsetTop + 10 + (height / 2) : lastWindowHeight / 2) - 8;
  2347. 804.  -     if (arrowActions[0]) {
  2348. 805.  -       show(wkcur.wkLeftArrow);
  2349. 806.  -       show(wkcur.wkLeftArrowBg);
  2350. 807.  -
  2351. 808.  -       setStyle(wkcur.wkLeftArrowBg, {left: (lastWindowWidth - sbw - width) / 2 - 90});
  2352. 809.  -       setStyle(wkcur.wkLeftArrow, {left: (lastWindowWidth - sbw - width) / 2 - 52, top: arrowTop});
  2353. 810.  -     } else {
  2354. 811.  -       hide(wkcur.wkLeftArrow, wkcur.wkLeftArrowBg);
  2355. 812.  -     }
  2356. 813.  -
  2357. 814.  -     if (arrowActions[1]) {
  2358. 815.  -       show(wkcur.wkRightArrow);
  2359. 816.  -       show(wkcur.wkRightArrowBg);
  2360. 817.  -       setStyle(wkcur.wkRightArrowBg, {left: (lastWindowWidth - sbw - width) / 2 + width});
  2361. 818.  -       setStyle(wkcur.wkRightArrow, {left: (lastWindowWidth - sbw - width) / 2 + width + 36, top: arrowTop});
  2362. 819.  -     } else {
  2363. 820.  -       hide(wkcur.wkRightArrow, wkcur.wkRightArrowBg);
  2364. 821.  -     }
  2365. 822.  -   } else {
  2366. 823.  -     hide(wkcur.wkLeftArrow, wkcur.wkLeftArrowBg, wkcur.wkRightArrow, wkcur.wkRightArrowBg);
  2367. 824.  -   }
  2368. 825.  - },
  2369. 826.  - getNextWkRaws: function () {
  2370. 827.  -   var wkRawPrevious = wkRawNext = false;
  2371. 828.  -   if (isArray(wkcur.wkRawList) && wkcur.historyLen <= 1 && !wkcur.wkRawLoading) {
  2372. 829.  -     var len = wkcur.wkRawList.length,
  2373. 830.  -         pos = indexOf(wkcur.wkRawList, wkcur.wkRaw);
  2374. 831.  -     if (pos > 0) {
  2375. 832.  -       wkRawPrevious = wkcur.wkRawList[pos - 1];
  2376. 833.  -     }
  2377. 834.  -     if (pos >= 0 && pos < len - 1) {
  2378. 835.  -       wkRawNext = wkcur.wkRawList[pos + 1];
  2379. 836.  -     }
  2380. 837.  -   }
  2381. 838.  -   return [wkRawPrevious, wkRawNext];
  2382. 839.  - },
  2383. 840.  - navigate: function (el, event, delta) {
  2384. 841.  -   if (event && event.type == 'click') {
  2385. 842.  -     wkcur.arrowOver = (delta == 1);
  2386. 843.  -     wkcur.arrowClicked = vkNow();
  2387. 844.  -   }
  2388. 845.  -   var actions = WkView.getNextWkRaws();
  2389. 846.  -   if (delta > 0 && actions[1]) {
  2390. 847.  -     wkcur.wkRawLoading = true;
  2391. 848.  -     addClass(wkcur.wkRightArrow, 'wk_arrow_progress');
  2392. 849.  -     // debugLog(wkcur.wkRightArrow, wkcur.wkRightArrow.className);
  2393. 850.  -     showWiki({w: actions[1]}, false, false, {fromlist: 1, noloader: true, preload: {cache: 1}});
  2394. 851.  -     cancelEvent(event);
  2395. 852.  -   }
  2396. 853.  -   if (delta < 0 && actions[0]) {
  2397. 854.  -     wkcur.wkRawLoading = true;
  2398. 855.  -     addClass(wkcur.wkLeftArrow, 'wk_arrow_progress');
  2399. 856.  -     showWiki({w: actions[0]}, false, false, {fromlist: -1, noloader: true, preload: {cache: 1}});
  2400. 857.  -     cancelEvent(event);
  2401. 858.  -   }
  2402. 859.  - },
  2403. 860.  -
  2404. 861.  - updateHeight: function() {
  2405. 862.  -   window.updateWndVScroll && updateWndVScroll();
  2406. 863.  -
  2407. 864.  -   var h = Math.max(wkcur.wkCont.offsetHeight, lastWindowHeight);
  2408. 865.  -   wkcur.wkLeftNav.style.height = wkcur.wkRightNav.style.height = h + 'px';
  2409. 866.  -
  2410. 867.  -   var boxH = wkcur.wkBox.offsetHeight + 2;
  2411. 868.  -   setStyle(wkcur.wkLeftArrowBg.firstChild, {height: boxH});
  2412. 869.  -   setStyle(wkcur.wkRightArrowBg.firstChild, {height: boxH});
  2413. 870.  - },
  2414. 871.  -
  2415. 872.  - updateSize: function() {
  2416. 873.  -   var size = getSize(wkcur.wkCont);
  2417. 874.  -
  2418. 875.  -   var docEl = document.documentElement,
  2419. 876.  -       ch = window.innerHeight || docEl.clientHeight || bodyNode.clientHeight,
  2420. 877.  -       top = Math.max(positive((ch - size[1] - 5) / 2), 14),
  2421. 878.  -       paddingTop = top + 10,
  2422. 879.  -       paddingBottom = wkLayer.offsetHeight - size[1] + top + 90;
  2423. 880.  -
  2424. 881.  -   wkcur.wkCont.style.top = top + 'px';
  2425. 882.  -   wkcur.wkLeftArrowBg.style.paddingTop = wkcur.wkRightArrowBg.style.paddingTop = paddingTop + 'px';
  2426. 883.  -   wkcur.wkLeftArrowBg.style.paddingBottom = wkcur.wkRightArrowBg.style.paddingBottom = paddingBottom + 'px';
  2427. 884.  -
  2428. 885.  -   onBodyResize();
  2429. 886.  -   WkView.onResize();
  2430. 887.  - },
  2431. 888.  -
  2432. 889.  -
  2433. 890.  - setLocation: function(noLocChange, toQueue) {
  2434. 891.  -   wkcur.prevLoc = {};
  2435. 892.  -   for (var i in nav.objLoc) {
  2436. 893.  -     if (i != 'w' || nav.objLoc[i] != wkcur.wkRaw && toQueue) {
  2437. 894.  -       wkcur.prevLoc[i] = nav.objLoc[i];
  2438. 895.  -     }
  2439. 896.  -   }
  2440. 897.  -   if (noLocChange) {
  2441. 898.  -     return;
  2442. 899.  -   }
  2443. 900.  -
  2444. 901.  -   var nl = extend(nav.objLoc, {'w': wkcur.wkRaw});
  2445. 902.  -   delete(nl.z);
  2446. 903.  -   if (nav.strLoc != nav.toStr(nl)) {
  2447. 904.  -     nav.setLoc(nl);
  2448. 905.  -   }
  2449. 906.  -
  2450. 907.  -   //wkcur.noHistory = 0;
  2451. 908.  - },
  2452. 909.  -
  2453. 910.  - backLocation: function() {
  2454. 911.  -   var loc = hab.getLoc();
  2455. 912.  -   if (wkcur.prevLoc && wkcur.prevLoc != loc) {
  2456. 913.  - //    if (wkcur.previousLayer) {
  2457. 914.  - //      nav.go(wkcur.prevLoc);
  2458. 915.  - //    } else {
  2459. 916.  -       nav.setLoc(wkcur.prevLoc);
  2460. 917.  - //    }
  2461. 918.  - //    if (wkcur.previousLayer && wkcur.prevLoc.z) {
  2462. 919.  - //      zNav({z: wkcur.prevLoc.z});
  2463. 920.  - //    }
  2464. 921.  -   } else {
  2465. 922.  -     var locParts = loc.split('/');
  2466. 923.  -     if (locParts.length > 1) {
  2467. 924.  -       nav.setLoc(locParts[0]);
  2468. 925.  -     }
  2469. 926.  -   }
  2470. 927.  -   layerQueue.noHistory();
  2471. 928.  - },
  2472. 929.  -
  2473. 930.  - showError: function(txt) {
  2474. 931.  -   if (window.wkcur) {
  2475. 932.  -     delete wkcur.wkRawLoading;
  2476. 933.  -     addClass(wkcur.wkRightArrow, 'wk_arrow_progress');
  2477. 934.  -     addClass(wkcur.wkLeftArrow, 'wk_arrow_progress');
  2478. 935.  -   }
  2479. 936.  -   var box = showFastBox({title: getLang('global_error')}, txt, getLang('global_close'));
  2480. 937.  -   setTimeout(box.hide, 2000);
  2481. 938.  -   return true;
  2482. 939.  - },
  2483. 940.  -
  2484. 941.  - wysiwygInit: function() {
  2485. 942.  -   if (browser.ipod || browser.ipad || browser.iphone) return;
  2486. 943.  -   var simpleToolBar = 'bold,italic,gray,underline,strike,left,center,right,marker_list,numeric_list,h1,h2,h3,image,video,audio,link,unlink';
  2487. 944.  -   var extendedToolBar = 'bold,italic,gray,underline,strike,left,center,right,marker_list,numeric_list,h1,h2,h3,image,video,audio,doc,link,unlink,break,';
  2488. 945.  -   extendedToolBar += 'table,table_delete,insert_row_before,insert_row_after,insert_col_before,insert_col_after,delete_row,delete_col,col_width,sub,sup,citate,outdent,indent,pre,character,hider';
  2489. 946.  -   window.editorName = 'pageWysiwyg';
  2490. 947.  -   var editorParams = {
  2491. 948.  -     editorName: editorName,
  2492. 949.  -     replaceElemID: 'pages_html',
  2493. 950.  -     contentCSS: '/css/al/wysiwyg.css',
  2494. 951.  -     html: ge('pages_html').value,
  2495. 952.  -     wiki: ge('pages_body') ? ge('pages_body').value : '',
  2496. 953.  -     height: 326,
  2497. 954.  -     simpleToolBar: simpleToolBar,
  2498. 955.  -     extendedToolBar: extendedToolBar,
  2499. 956.  -     defaultMode: 'simple',
  2500. 957.  -     skinFile: 'pages',
  2501. 958.  -     photoMinSize: { w: 50, h: 50 },
  2502. 959.  -     photoMaxSize: { w: 607, h: 500 },
  2503. 960.  -     userID: 0,
  2504. 961.  -     userName: '',
  2505. 962.  -     groupID: 0,
  2506. 963.  -     oid: wkcur.oid,
  2507. 964.  -     debug: false,
  2508. 965.  -     layer: 1,
  2509. 966.  -     toolWidth: 654,
  2510. 967.  -     width: 608,
  2511. 968.  -     note: wkcur.note ? wkcur.wkRaw : 0,
  2512. 969.  -     onHeightChange: function() {
  2513. 970.  -       WkView.onScroll();
  2514. 971.  -     },
  2515. 972.  -     onChange: WkView.onChange
  2516. 973.  -   };
  2517. 974.  -   window[editorName] = wkcur.editor = new Wysiwyg(editorParams);
  2518. 975.  - },
  2519. 976.  -
  2520. 977.  - onChange: function() {
  2521. 978.  -   if (!wkcur.shown) return false;
  2522. 979.  -   clearTimeout(wkcur.autosaveTimeout);
  2523. 980.  -   wkcur.autosaveTimeout = setTimeout(function() {
  2524. 981.  -     if (wkcur.note && wkcur.toStatus) {
  2525. 982.  -       WkView.saveInfo(true);
  2526. 983.  -     }
  2527. 984.  -   }, 4000);
  2528. 985.  - },
  2529. 986.  -
  2530. 987.  - likeOver: function() {
  2531. 988.  -   var icon = ge('wk_like_icon');
  2532. 989.  -   if (!wkcur.liked) {
  2533. 990.  -     setTimeout(animate.pbind(icon, {opacity: 1}, 200, false), 1);
  2534. 991.  -   } else {
  2535. 992.  -     setStyle(icon, {opacity: 1});
  2536. 993.  -   }
  2537. 994.  -   var linkSize = getSize(ge('wk_like_link'));
  2538. 995.  -   var linkW = linkSize ? linkSize[0] : 20;
  2539. 996.  -
  2540. 997.  -   showTooltip(icon.parentNode, {
  2541. 998.  -     url: 'like.php',
  2542. 999.  -     params: {act: 'a_get_stats', object: wkcur.like_obj || wkcur.wkRaw, from: 'wkview'},
  2543. 1000.  -     slide: 15,
  2544. 1001.  -     shift: [0, 8, 9],
  2545. 1002.  -     ajaxdt: 100,
  2546. 1003.  -     showdt: 400,
  2547. 1004.  -     hidedt: 200,
  2548. 1005.  -     className: 'rich like_tt',
  2549. 1006.  -     init: function (tt) {
  2550. 1007.  -       if (!tt.container) return;
  2551. 1008.  -       var bp = geByClass1('bottom_pointer', tt.container, 'div');
  2552. 1009.  -       var tp = geByClass1('top_pointer', tt.container, 'div');
  2553. 1010.  -       setStyle(bp, {marginLeft: linkW + 2});
  2554. 1011.  -       setStyle(tp, {marginLeft: linkW + 2});
  2555. 1012.  -     }
  2556. 1013.  -   });
  2557. 1014.  - },
  2558. 1015.  -
  2559. 1016.  - likeOut: function() {
  2560. 1017.  -   if (!wkcur.liked) {
  2561. 1018.  -     setTimeout(animate.pbind(ge('wk_like_icon'), {opacity: 0.4}, 200, false), 1);
  2562. 1019.  -   }
  2563. 1020.  - },
  2564. 1021.  -
  2565. 1022.  - like: function() {
  2566. 1023.  -   if (!vk.id) return;
  2567. 1024.  -   var my = !wkcur.liked;
  2568. 1025.  -
  2569. 1026.  -   ajax.post('like.php', {act: 'a_do_' + (my ? '' : 'un') + 'like', object: wkcur.like_obj || wkcur.wkRaw, hash: wkcur.likehash, from: 'wkview'}, {
  2570. 1027.  -     onDone: function(count, title) {
  2571. 1028.  -       return WkView.likeUpdate(my, count, title);
  2572. 1029.  -       wkcur.likes = count;
  2573. 1030.  -       wkcur.liked = my;
  2574. 1031.  -     }
  2575. 1032.  -   });
  2576. 1033.  -   WkView.likeUpdate(my, wkcur.likes + (my ? 1 : -1));
  2577. 1034.  - },
  2578. 1035.  - likeShare: function(hash) {
  2579. 1036.  -   var like_obj = wkcur.like_obj || wkcur.wkRaw,
  2580. 1037.  -       el = ge('like_share_' + like_obj),
  2581. 1038.  -       was = isChecked(el);
  2582. 1039.  -   checkbox(el);
  2583. 1040.  -   ajax.post('like.php', {act: 'a_do_' + (was ? 'un' : '') + 'publish', object: like_obj, hash: hash}, {
  2584. 1041.  -     onDone: WkView.likeUpdate.pbind(true)
  2585. 1042.  -   });
  2586. 1043.  -   var countInput = ge('like_real_count_' + like_obj),
  2587. 1044.  -       count = countInput ? countInput.value : val('like_count' + like_obj),
  2588. 1045.  -       my = hasClass(ge('like_icon' + like_obj), 'my_like');
  2589. 1046.  -
  2590. 1047.  -   WkView.likeUpdate(true, intval(count) + (my ? 0 : 1));
  2591. 1048.  - },
  2592. 1049.  - likeShareCustom: function () {
  2593. 1050.  -   if (vk.id) {
  2594. 1051.  -     showBox('like.php', {act: 'publish_box', object: wkcur.like_obj || wkcur.wkRaw, list: '', from: 'wkview'});
  2595. 1052.  -   }
  2596. 1053.  - },
  2597. 1054.  -
  2598. 1055.  - likeUpdate: function(my, count, title) {
  2599. 1056.  -   count = intval(count);
  2600. 1057.  -
  2601. 1058.  -   var rows = ge('like_table_' + (wkcur.like_obj || wkcur.wkRaw));
  2602. 1059.  -   var titleNode = ge('like_title_' + (wkcur.like_obj || wkcur.wkRaw)),
  2603. 1060.  -       countNode = ge('wk_like_count');
  2604. 1061.  -   var icon = ge('wk_like_icon');
  2605. 1062.  -   var tt = icon.parentNode.tt || {}, opts = clone(tt.opts || {}), newleft = (my ? 0 : -36);
  2606. 1063.  -
  2607. 1064.  -   if (title && titleNode) {
  2608. 1065.  -     val(titleNode, title);
  2609. 1066.  -   }
  2610. 1067.  -   wkcur.likes = count;
  2611. 1068.  -   animateCount(countNode, count);
  2612. 1069.  -
  2613. 1070.  -   wkcur.liked = my;
  2614. 1071.  -   toggleClass(icon, 'my_like', my);
  2615. 1072.  -   if (my) {
  2616. 1073.  -     setStyle(icon, {opacity: 1});
  2617. 1074.  -   }
  2618. 1075.  -   if (count) {
  2619. 1076.  -     var styleName = wkcur.rtl ? 'right' : 'left';
  2620. 1077.  -     if (tt.el && !isVisible(tt.container) && !title) {
  2621. 1078.  -       rows.style[styleName] = newleft + 'px';
  2622. 1079.  -       tooltips.show(tt.el, extend(opts, {showdt: 0}));
  2623. 1080.  -     } else if (rows) {
  2624. 1081.  -       var params = {};
  2625. 1082.  -       params[styleName] = newleft;
  2626. 1083.  -       animate(rows, params, 200);
  2627. 1084.  -     }
  2628. 1085.  -     removeClass(icon, 'no_likes');
  2629. 1086.  -   } else {
  2630. 1087.  -     if (tt.el) tt.hide();
  2631. 1088.  -     addClass(icon, 'no_likes');
  2632. 1089.  -   }
  2633. 1090.  - },
  2634. 1091.  -
  2635. 1092.  - showLikesPage: function(like_obj, published, offset) {
  2636. 1093.  -   cur.likesBox.loadTabContent('like.php', {act: 'a_get_members', object: like_obj, published: published, offset: offset, wall: 1}, published);
  2637. 1094.  - },
  2638. 1095.  -
  2639. 1096.  - extPageSubscribe: function(btn, oid, hash, msg) {
  2640. 1097.  -   var reqOptions = {
  2641. 1098.  -     showProgress: lockButton.pbind(btn),
  2642. 1099.  -     hideProgress: unlockButton.pbind(btn),
  2643. 1100.  -     onDone: function () {
  2644. 1101.  -       showDoneBox(msg, {w: 500, out: 5000});
  2645. 1102.  -       removeClass(btn.parentNode.parentNode.parentNode.parentNode, 'wk_extpage_head_unsubscribed');
  2646. 1103.  -     }
  2647. 1104.  -   };
  2648. 1105.  -   if (oid > 0) {
  2649. 1106.  -     ajax.post('al_friends.php', {act: 'add', mid: oid, hash: hash, from: 'wkview_extpage'}, reqOptions);
  2650. 1107.  -   } else {
  2651. 1108.  -     ajax.post('al_groups.php', {act: 'a_enter', gid: -oid, hash: hash, from: 'wkview_extpage'}, reqOptions);
  2652. 1109.  -   }
  2653. 1110.  - },
  2654. 1111.  -
  2655. 1112.  - wallBeforeInitPost: function (opts) {
  2656. 1113.  -   if (window.tooltips) tooltips.destroyAll();
  2657. 1114.  -
  2658. 1115.  -   if (wkcur.postInited) {
  2659. 1116.  -     return false;
  2660. 1117.  -   }
  2661. 1118.  -   wkcur.pageReplaced = [];
  2662. 1119.  -   var post = wkcur.post,
  2663. 1120.  -       postEl, size, postPlaceholder;
  2664. 1121.  -   while (true) {
  2665. 1122.  -     postEl = ge('post' + post);
  2666. 1123.  -     if (!postEl && cur.onepost && post == (cur.oid + '_' + cur.pid)) {
  2667. 1124.  -       postEl = ge('fw_post');
  2668. 1125.  -     }
  2669. 1126.  -     postEl = postEl || ge('reply_fakebox' + post) || ge('reply_box' + post) || ge('replies' + post) || ge('feedback_row_wall' + post) || (wkcur.hl_reply && (ge('post' + wkcur.hl_reply) || ge('feedback_row_wall_reply' + wkcur.hl_reply))) || ge('feed_rows');
  2670. 1127.  -     if (!postEl) {
  2671. 1128.  -       break;
  2672. 1129.  -     }
  2673. 1130.  -     size = getSize(postEl);
  2674. 1131.  -     postPlaceholder = ce('div', {className: 'wk_wall_post_placeholder', id: 'wk_wall_post_placeholder_' + postEl.id}, {width: size[0], height: size[1]});
  2675. 1132.  -     postEl.parentNode.replaceChild(postPlaceholder, postEl);
  2676. 1133.  -     wkcur.pageReplaced.push([postEl, postPlaceholder]);
  2677. 1134.  -   }
  2678. 1135.  -
  2679. 1136.  -   cur.wallLayer = post;
  2680. 1137.  -
  2681. 1138.  -   if (opts.options.wall_tpl) {
  2682. 1139.  -     extend(window.lang, opts.lang, opts.options.wall_tpl.lang);
  2683. 1140.  -     extend(wkcur, {
  2684. 1141.  -       wallType: opts.options.wall_type,
  2685. 1142.  -       wallTpl: opts.options.wall_tpl,
  2686. 1143.  -       wallMyDeleted: {},
  2687. 1144.  -       tsDiff: opts.options.wall_tpl && opts.options.wall_tpl.abs_timestamp ? Math.round((vkNow() / 1000 - opts.options.wall_tpl.abs_timestamp) / 900.0) * 900 : 0,
  2688. 1145.  -       wallMyOpened: {},
  2689. 1146.  -       wallMyReplied: {},
  2690. 1147.  -       wallMyRepliesCnt: 0
  2691. 1148.  -     });
  2692. 1149.  -     WkView.wallInitUpdates();
  2693. 1150.  -     wkcur.timeUpdateInt = setInterval(function () {Wall.updateTimes(wkcur.wkContent);}, 10000);
  2694. 1151.  -   }
  2695. 1152.  -
  2696. 1153.  -   wkcur._hide.push(WkView.wallDeinitPost);
  2697. 1154.  -
  2698. 1155.  -   wkcur.postInited = true;
  2699. 1156.  - },
  2700. 1157.  - wallAfterInitPost: function () {
  2701. 1158.  -   // debugLog('wall init', clone(wkcur));
  2702. 1159.  -   var post = wkcur.post,
  2703. 1160.  -       rf = ge('reply_field' + post);
  2704. 1161.  -
  2705. 1162.  -   if (rf) {
  2706. 1163.  -     placeholderSetup(rf, {pad: {margin: 0, padding: 0}})
  2707. 1164.  -   }
  2708. 1165.  -   WkView.wallUpdateReplies();
  2709. 1166.  -   if (wkcur.hl_reply) {
  2710. 1167.  -     setTimeout(Wall.highlightReply.pbind('post' + wkcur.hl_reply), 0);
  2711. 1168.  -   } else {
  2712. 1169.  -     setTimeout(function () {
  2713. 1170.  -       wkLayerWrap.scrollTop = wkcur.toScroll || 0;
  2714. 1171.  -       wkcur.toScroll = 0;
  2715. 1172.  -     }, 0);
  2716. 1173.  -   }
  2717. 1174.  - },
  2718. 1175.  - wallDeinitPost: function () {
  2719. 1176.  -   // debugLog('wall deinit', clone(wkcur));
  2720. 1177.  -   if (!wkcur.postInited) {
  2721. 1178.  -     return false;
  2722. 1179.  -   }
  2723. 1180.  -   cur.wallLayer = false;
  2724. 1181.  -   if (wkcur.edit) {
  2725. 1182.  -     Wall.cancelEdit();
  2726. 1183.  -   }
  2727. 1184.  -   each (wkcur.pageReplaced, function () {
  2728. 1185.  -     var postEl = this[0],
  2729. 1186.  -         postPlaceholder = this[1];
  2730. 1187.  -     if (postEl && postPlaceholder) {
  2731. 1188.  -       postPlaceholder.parentNode.replaceChild(postEl, postPlaceholder);
  2732. 1189.  -     }
  2733. 1190.  -   })
  2734. 1191.  -
  2735. 1192.  -   clearInterval(wkcur.updatesCheckInt);
  2736. 1193.  -   clearInterval(wkcur.timeUpdateInt);
  2737. 1194.  -
  2738. 1195.  -   if (window.tooltips) tooltips.destroyAll();
  2739. 1196.  -
  2740. 1197.  -   delete cur.editing;
  2741. 1198.  -   delete wkcur.postInited;
  2742. 1199.  - },
  2743. 1200.  - wallOnEdit: function (post, options) {
  2744. 1201.  -   wkcur.edit = true;
  2745. 1202.  -   val('wk_edit_link', options.lang.pages_view);
  2746. 1203.  -   wkcur.editor = {changed: true};
  2747. 1204.  - },
  2748. 1205.  - wallOnEdited: function (post) {
  2749. 1206.  -   wkcur.edit = false;
  2750. 1207.  -   val('wk_edit_link', wkcur.editLang);
  2751. 1208.  - },
  2752. 1209.  - wallFixPost: function (link, hash, value) {
  2753. 1210.  -   var post = wkcur.post;
  2754. 1211.  -   ajax.post('al_wall.php', {act: 'a_fix_post', post: post, hash: hash, value: value}, {
  2755. 1212.  -     progress: ge('wpe_prg' + post),
  2756. 1213.  -     onDone: function () {
  2757. 1214.  -       val(link, wkcur.lang[value ? 'wall_unfix_post' : 'wall_fix_post']);
  2758. 1215.  -       link.onclick = function () {
  2759. 1216.  -         return WkView.wallFixPost(link, hash, value ? 0 : 1);
  2760. 1217.  -       }
  2761. 1218.  -     }
  2762. 1219.  -   });
  2763. 1220.  -   return false;
  2764. 1221.  - },
  2765. 1222.  - wallPostDelete: function(act, hash) {
  2766. 1223.  -   var post = wkcur.post;
  2767. 1224.  -   if (cur.wallMyDeleted) {
  2768. 1225.  -     cur.wallMyDeleted[post] = 1;
  2769. 1226.  -   }
  2770. 1227.  -   ajax.post('al_wall.php', {act: act, post: post, hash: hash, from: 'wkview'}, {onDone: function(msg, deleted) {
  2771. 1228.  -     var p = ge('wl_post_body');
  2772. 1229.  -     if (!p) return;
  2773. 1230.  -     cur.pgPaused = true;
  2774. 1231.  -     hide('wl_replies_wrap', 'wl_post_actions_wrap', 'wl_reply_form_wrap');
  2775. 1232.  -     var del = p.nextSibling;
  2776. 1233.  -     if (del && hasClass(del, 'wl_post_deleted')) {
  2777. 1234.  -       val(del, msg);
  2778. 1235.  -     } else {
  2779. 1236.  -       p.parentNode.insertBefore(ce('div', {id: 'post_del' + post, innerHTML: msg, className: 'wl_post_deleted'}), p.nextSibling);
  2780. 1237.  -       hide(p);
  2781. 1238.  -     }
  2782. 1239.  -     wkLayerWrap.scrollTop = 0;
  2783. 1240.  -   }, progress: ge('wpe_prg' + post)});
  2784. 1241.  - },
  2785. 1242.  - wallPostRestore: function(hash) {
  2786. 1243.  -   var post = wkcur.post;
  2787. 1244.  -   if (cur.wallMyDeleted) {
  2788. 1245.  -     cur.wallMyDeleted[post] = 0;
  2789. 1246.  -   }
  2790. 1247.  -   ajax.post('al_wall.php', {act: 'restore', post: post, hash: hash, from: 'wkview'}, {onDone: function() {
  2791. 1248.  -     var p = ge('wl_post_body');
  2792. 1249.  -     if (!p || isVisible(p)) return;
  2793. 1250.  -     cur.pgPaused = false;
  2794. 1251.  -     show('wl_replies_wrap', 'wl_post_actions_wrap', 'wl_reply_form_wrap');
  2795. 1252.  -     var del = p.nextSibling;
  2796. 1253.  -     show(p);
  2797. 1254.  -     if (del && hasClass(del, 'wl_post_deleted')) {
  2798. 1255.  -       re(del);
  2799. 1256.  -     }
  2800. 1257.  -   }});
  2801. 1258.  - },
  2802. 1259.  - wallUpdateRepliesOnScroll: function (resize) {
  2803. 1260.  -   if (!wkcur.postInited) return;
  2804. 1261.  -   var wndHeight = window.innerHeight || document.documentElement.clientHeight;
  2805. 1262.  -
  2806. 1263.  -   var moreLink = ge('wl_replies_more_link');
  2807. 1264.  -   if (moreLink && isVisible(moreLink)) {
  2808. 1265.  -     var moreLinkY = getXY(moreLink, true)[1];
  2809. 1266.  -     if (wndHeight + 500 > moreLinkY) {
  2810. 1267.  -       moreLink.onclick();
  2811. 1268.  -     }
  2812. 1269.  -   }
  2813. 1270.  -
  2814. 1271.  -   var replyForm = ge('wl_reply_form');
  2815. 1272.  -   if (!replyForm || hasClass(replyForm, 'wl_post_reply_form_forbidden')) {
  2816. 1273.  -     return;
  2817. 1274.  -   }
  2818. 1275.  -   var formWrap = ge('wl_reply_form_wrap'),
  2819. 1276.  -       formY = getXY(formWrap, true)[1],
  2820. 1277.  -       formSize = getSize(replyForm);
  2821. 1278.  -       formH = formSize[1];
  2822. 1279.  -
  2823. 1280.  -   if (resize && wkcur.fixedBottom === false && wndHeight - formH < formY + 20) {
  2824. 1281.  -     wkLayerWrap.scrollTop += formY + 20 - (wndHeight - formH);
  2825. 1282.  -   } else if (isVisible(formWrap) && wndHeight - formH < formY) {
  2826. 1283.  -     if (!wkcur.fixedBottom || resize) {
  2827. 1284.  -       wkcur.fixedBottom = true;
  2828. 1285.  -       addClass(replyForm, 'wl_reply_form_fixed');
  2829. 1286.  -     }
  2830. 1287.  -     setStyle('wl_reply_form_wrap', {width: formSize[0], height: formSize[1], bottom: bottom});
  2831. 1288.  -     var bottom = Math.min(0, wndHeight - getXY('wl_replies_wrap', true)[1] - formH);
  2832. 1289.  -     setStyle(replyForm, {bottom: bottom});
  2833. 1290.  -   } else {
  2834. 1291.  -     if (wkcur.fixedBottom || resize) {
  2835. 1292.  -       wkcur.fixedBottom = false;
  2836. 1293.  -       removeClass(replyForm, 'wl_reply_form_fixed');
  2837. 1294.  -       setStyle('wl_reply_form_wrap', {width: '', height: ''});
  2838. 1295.  -     }
  2839. 1296.  -   }
  2840. 1297.  -   if (resize && wkcur.fixedBottom) {
  2841. 1298.  -     setStyle(replyForm, {left: getXY(wkcur.wkContent)[0] + 'px'})
  2842. 1299.  -   }
  2843. 1300.  - },
  2844. 1301.  - wallShowMoreReplies: function () {
  2845. 1302.  -   if (wkcur.loadingReplies) {
  2846. 1303.  -     return false;
  2847. 1304.  -   }
  2848. 1305.  -   var newOffset = wkcur.offset + wkcur.loaded,
  2849. 1306.  -       limit = wkcur.limit,
  2850. 1307.  -       repliesWrap = ge('replies' + wkcur.post);
  2851. 1308.  -
  2852. 1309.  -   if (wkcur.count <= newOffset || !repliesWrap) {
  2853. 1310.  -     return false;
  2854. 1311.  -   }
  2855. 1312.  -   wkcur.loadingReplies = true;
  2856. 1313.  -   Wall.moreReplies(wkcur.post, (wkcur.reverse ? -1 : 1) * newOffset, limit, {
  2857. 1314.  -     from: 'wkview',
  2858. 1315.  -     append: true,
  2859. 1316.  -     rev: wkcur.reverse ? 1 : 0,
  2860. 1317.  -     onDone: function (replies, names, data) {
  2861. 1318.  -       // debugLog((wkcur.reverse ? -1 : 1) * newOffset, limit, data);
  2862. 1319.  -       extend(wkcur, {
  2863. 1320.  -         count: data.count,
  2864. 1321.  -         loaded: wkcur.loaded + data.num
  2865. 1322.  -       });
  2866. 1323.  -       WkView.wallUpdateReplies();
  2867. 1324.  -       wkcur.loadingReplies = false;
  2868. 1325.  -     },
  2869. 1326.  -     onFail: function () {
  2870. 1327.  -       wkcur.loadingReplies = false;
  2871. 1328.  -     },
  2872. 1329.  -     showProgress: function () {
  2873. 1330.  -       hide('wl_replies_more_link');
  2874. 1331.  -       show('wl_replies_more_progress');
  2875. 1332.  -     },
  2876. 1333.  -     hideProgress: function () {
  2877. 1334.  -       show('wl_replies_more_link');
  2878. 1335.  -       hide('wl_replies_more_progress');
  2879. 1336.  -     }
  2880. 1337.  -   });
  2881. 1338.  -   return false;
  2882. 1339.  - },
  2883. 1340.  - wallShowPreviousReplies: function (hlReply) {
  2884. 1341.  -   if (wkcur.loadingReplies || wkcur.reverse) {
  2885. 1342.  -     return false;
  2886. 1343.  -   }
  2887. 1344.  -   var maxLimit = 100,
  2888. 1345.  -       newOffset = Math.max(0, wkcur.offset - maxLimit),
  2889. 1346.  -       limit = Math.min(maxLimit, wkcur.offset - newOffset),
  2890. 1347.  -       repliesWrap = ge('replies' + wkcur.post);
  2891. 1348.  -
  2892. 1349.  -   if (limit <= 0 || !repliesWrap) {
  2893. 1350.  -     return false;
  2894. 1351.  -   }
  2895. 1352.  -   wkcur.loadingReplies = true;
  2896. 1353.  -   var prevH = repliesWrap.offsetHeight;
  2897. 1354.  -   Wall.moreReplies(wkcur.post, newOffset, limit, {
  2898. 1355.  -     from: 'wkview',
  2899. 1356.  -     onDone: function (replies, names, data) {
  2900. 1357.  -       extend(wkcur, {
  2901. 1358.  -         count: data.count,
  2902. 1359.  -         offset: data.offset,
  2903. 1360.  -         loaded: wkcur.loaded + data.num
  2904. 1361.  -       });
  2905. 1362.  -       if (hlReply) {
  2906. 1363.  -         wkLayerWrap.scrollTop += repliesWrap.offsetHeight - prevH;
  2907. 1364.  -         setTimeout(Wall.highlightReply.pbind('post' + hlReply), 0);
  2908. 1365.  -       }
  2909. 1366.  -       WkView.wallUpdateReplies();
  2910. 1367.  -       wkcur.loadingReplies = false;
  2911. 1368.  -     },
  2912. 1369.  -     onFail: function () {
  2913. 1370.  -       wkcur.loadingReplies = false;
  2914. 1371.  -     },
  2915. 1372.  -     showProgress: function () {
  2916. 1373.  -       hide('wl_replies_header', 'wl_replies_header_toggler');
  2917. 1374.  -       show('wl_replies_previous_progress');
  2918. 1375.  -     },
  2919. 1376.  -     hideProgress: function () {
  2920. 1377.  -       show('wl_replies_header', 'wl_replies_header_toggler');
  2921. 1378.  -       hide('wl_replies_previous_progress');
  2922. 1379.  -     }
  2923. 1380.  -   });
  2924. 1381.  - },
  2925. 1382.  - wallUpdateReplies: function () {
  2926. 1383.  -   toggle('wl_replies_more_link', wkcur.offset + wkcur.loaded < wkcur.count);
  2927. 1384.  -
  2928. 1385.  -   var header = ge('wl_replies_header'),
  2929. 1386.  -       label = langNumeric(wkcur.count, wkcur.lang.wall_N_replies),
  2930. 1387.  -       hasPrevious = false;
  2931. 1388.  -
  2932. 1389.  -   if (!wkcur.reverse && wkcur.offset > 0) {
  2933. 1390.  -     if (wkcur.offset > 100) {
  2934. 1391.  -       label = langNumeric(100, wkcur.lang.wall_show_n_of_m_last).replace('{count}', wkcur.count);
  2935. 1392.  -     } else {
  2936. 1393.  -       label = langNumeric(wkcur.count, wkcur.lang.wall_show_all_n_replies);
  2937. 1394.  -     }
  2938. 1395.  -     hasPrevious = true;
  2939. 1396.  -   }
  2940. 1397.  -   val('wl_replies_header_label', label);
  2941. 1398.  -   toggleClass(header, 'wl_replies_header_clickable', hasPrevious);
  2942. 1399.  -
  2943. 1400.  -   var repliesWrap = ge('wl_replies_wrap'),
  2944. 1401.  -       form = ge('wl_reply_form');
  2945. 1402.  -   if (wkcur.count && repliesWrap && !isVisible(repliesWrap.firstChild)) {
  2946. 1403.  -     show(repliesWrap.firstChild);
  2947. 1404.  -   }
  2948. 1405.  -   if (form) {
  2949. 1406.  -     var formPlace1 = ge('wl_reply_form_reverse_wrap'),
  2950. 1407.  -         formPlace2 = ge('wl_reply_form_wrap'),
  2951. 1408.  -         formPlace = wkcur.reverse && repliesWrap && isVisible(repliesWrap.firstChild) && formPlace1 || formPlace2;
  2952. 1409.  -
  2953. 1410.  -     toggle(formPlace1, formPlace == formPlace1);
  2954. 1411.  -     toggle(formPlace2, formPlace == formPlace2);
  2955. 1412.  -     toggleClass(form, 'wl_reply_form_reversed', formPlace == formPlace1);
  2956. 1413.  -     if (form.parentNode != formPlace) {
  2957. 1414.  -       formPlace.appendChild(form);
  2958. 1415.  -     }
  2959. 1416.  -   }
  2960. 1417.  -
  2961. 1418.  -   WkView.wallUpdateRepliesOnScroll();
  2962. 1419.  -   WkView.updateSize();
  2963. 1420.  - },
  2964. 1421.  - wallInitUpdates: function () {
  2965. 1422.  -   var key = wkcur.options.add_queue_key;
  2966. 1423.  -   if (!key || !window.Notifier) {
  2967. 1424.  -     return;
  2968. 1425.  -   }
  2969. 1426.  -   var wasKey = wkcur.wallAddQueue,
  2970. 1427.  -       checkCb = function () {
  2971. 1428.  -         if (wkcur.wallAddQueue) Notifier.addKey(wkcur.wallAddQueue, Wall.updated.pbind(true));
  2972. 1429.  -       };
  2973. 1430.  -
  2974. 1431.  -   wkcur.wallAddQueue = key;
  2975. 1432.  -   checkCb();
  2976. 1433.  -   wkcur.updatesCheckInt = setInterval(checkCb, 10000);
  2977. 1434.  - },
  2978. 1435.  - wallCancelEditReply: function () {
  2979. 1436.  -   var post = wkcur.post,
  2980. 1437.  -       rf = ge('reply_field' + post),
  2981. 1438.  -       composer = rf && data(rf, 'composer');
  2982. 1439.  -   if (composer) {
  2983. 1440.  -     Composer.reset(composer);
  2984. 1441.  -   } else {
  2985. 1442.  -     val(rf, '');
  2986. 1443.  -   }
  2987. 1444.  -   Wall.hideEditReply(post);
  2988. 1445.  -   WkView.wallUpdateReplies();
  2989. 1446.  - },
  2990. 1447.  - wallInverseReplies: function () {
  2991. 1448.  -   if (wkcur.loadingReplies) {
  2992. 1449.  -     return false;
  2993. 1450.  -   }
  2994. 1451.  -   wkcur.loadingReplies = true;
  2995. 1452.  -   wkcur.reverse = !wkcur.reverse;
  2996. 1453.  -   wkcur.offset = 0;
  2997. 1454.  -
  2998. 1455.  -   Wall.moreReplies(wkcur.post, wkcur.offset, wkcur.limit, {
  2999. 1456.  -     from: 'wkview',
  3000. 1457.  -     clear: true,
  3001. 1458.  -     rev: wkcur.reverse ? 1 : 0,
  3002. 1459.  -     onDone: function (replies, names, data) {
  3003. 1460.  -       toggleClass('wl_replies_header_toggler', 'wl_replies_header_toggler_inversed', wkcur.reverse);
  3004. 1461.  -       extend(wkcur, {
  3005. 1462.  -         count: data.count,
  3006. 1463.  -         loaded: data.num
  3007. 1464.  -       });
  3008. 1465.  -       WkView.wallUpdateReplies();
  3009. 1466.  -       wkcur.loadingReplies = false;
  3010. 1467.  -     },
  3011. 1468.  -     onFail: function () {
  3012. 1469.  -       wkcur.reverse = !wkcur.reverse;
  3013. 1470.  -       wkcur.loadingReplies = false;
  3014. 1471.  -     },
  3015. 1472.  -     showProgress: function () {
  3016. 1473.  -       hide('wl_replies_header', 'wl_replies_header_toggler');
  3017. 1474.  -       show('wl_replies_previous_progress');
  3018. 1475.  -     },
  3019. 1476.  -     hideProgress: function () {
  3020. 1477.  -       show('wl_replies_header', 'wl_replies_header_toggler');
  3021. 1478.  -       hide('wl_replies_previous_progress');
  3022. 1479.  -     }
  3023. 1480.  -   });
  3024. 1481.  - },
  3025. 1482.  -
  3026. 1483.  - likesInit: function () {
  3027. 1484.  -   re(cur.lSTL);
  3028. 1485.  -   extend(wkcur, {
  3029. 1486.  -     phCache: {},
  3030. 1487.  -     phShown: {},
  3031. 1488.  -     historyLen: 0,
  3032. 1489.  -
  3033. 1490.  -     lSTL: wkLayerWrap.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: ge('wk_box'), onclick: cancelEvent, onmousedown: WkView.likesSTLDown, sc: WkView.likesOnScroll})),
  3034. 1491.  -     lSTLShown: 0,
  3035. 1492.  -     lSTLWas: 0,
  3036. 1493.  -     lSTLWasSet: 0
  3037. 1494.  -   });
  3038. 1495.  -   cur.lSTL = wkcur.lSTL;
  3039. 1496.  -
  3040. 1497.  -   WkView.likesTabInit();
  3041. 1498.  -
  3042. 1499.  -   addEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  3043. 1500.  -   addEvent(window, 'resize', WkView.onResize);
  3044. 1501.  -   onBodyResize();
  3045. 1502.  -
  3046. 1503.  -   if (!cur.wallInited) {
  3047. 1504.  -     Wall.initWallOptions(wkcur.wall_opts);
  3048. 1505.  -   } else {
  3049. 1506.  -     wkcur._oldReplyForm = cur.wallTpl.reply_form;
  3050. 1507.  -     cur.wallTpl.reply_form = wkcur.wall_opts.wall_tpl.reply_form;
  3051. 1508.  -   }
  3052. 1509.  -
  3053. 1510.  -   if (cur.options === undefined) {
  3054. 1511.  -     cur.options = {reply_names: {}};
  3055. 1512.  -   } else if (cur.options.reply_names === undefined) {
  3056. 1513.  -     cur.options.reply_names = {};
  3057. 1514.  -   }
  3058. 1515.  -   extend(cur.options.reply_names, wkcur.reply_names);
  3059. 1516.  -
  3060. 1517.  -   wkcur._hide.push(function () {
  3061. 1518.  -     removeEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  3062. 1519.  -     removeEvent(window, 'resize', WkView.onResize);
  3063. 1520.  -     re(wkcur.lSTL, cur.lSTL);
  3064. 1521.  -     if (wkcur._oldReplyForm) {
  3065. 1522.  -       cur.wallTpl.reply_form = wkcur._oldReplyForm;
  3066. 1523.  -       wkcur._oldReplyForm = false;
  3067. 1524.  -     }
  3068. 1525.  -   });
  3069. 1526.  - },
  3070. 1527.  - likesTabInit: function () {
  3071. 1528.  -   if (wkcur.preload) {
  3072. 1529.  -     ajax.preload('wkview.php', {
  3073. 1530.  -       act: 'show',
  3074. 1531.  -       w: wkcur.wkRaw,
  3075. 1532.  -       offset: wkcur.offset
  3076. 1533.  -     }, wkcur.preload);
  3077. 1534.  -   }
  3078. 1535.  - },
  3079. 1536.  - likesTab: function (tab) {
  3080. 1537.  -   ajax.post('wkview.php', {act: 'show', w: tab + '/' + wkcur.like_obj, part: 1}, {
  3081. 1538.  -     cache: 1,
  3082. 1539.  -     showProgress: setStyle.pbind('wk_likes_tabs_prg', {visibility: 'visible'}),
  3083. 1540.  -     hideProgress: setStyle.pbind('wk_likes_tabs_prg', {visibility: 'hidden'}),
  3084. 1541.  -     onDone: function (title, content, options) {
  3085. 1542.  -       val('wk_likes_title', title);
  3086. 1543.  -       val('wk_likes_content', content);
  3087. 1544.  -       extend(wkcur, options);
  3088. 1545.  -       WkView.likesTabInit();
  3089. 1546.  -
  3090. 1547.  -       var oldTab = geByClass1('summary_tab_sel', ge('wk_likes_tabs')),
  3091. 1548.  -           newTab = ge('wk_likes_tab' + tab);
  3092. 1549.  -       replaceClass(oldTab, 'summary_tab_sel', 'summary_tab');
  3093. 1550.  -       replaceClass(newTab.parentNode, 'summary_tab', 'summary_tab_sel');
  3094. 1551.  -
  3095. 1552.  -       WkView.setLocation();
  3096. 1553.  -       WkView.updateHeight();
  3097. 1554.  -       WkView.likesOnScroll();
  3098. 1555.  -     }
  3099. 1556.  -   });
  3100. 1557.  - },
  3101. 1558.  - likesPreload: function () {
  3102. 1559.  -   ajax.post('wkview.php', {act: 'show', w: wkcur.wkRaw, offset: wkcur.offset}, {cache: 1});
  3103. 1560.  - },
  3104. 1561.  - likesMore: function() {
  3105. 1562.  -   if (isVisible('wk_likes_more_prg')) return;
  3106. 1563.  -   ajax.post('wkview.php', {act: 'show', w: wkcur.wkRaw, offset: wkcur.offset}, {
  3107. 1564.  -     onDone: function(rows, newOffset, needMore, names) {
  3108. 1565.  -       var cnt = ge('wk_likes_rows');
  3109. 1566.  -       if (!cnt) return;
  3110. 1567.  -
  3111. 1568.  -       cnt.appendChild(cf(rows));
  3112. 1569.  -       wkcur.offset = newOffset;
  3113. 1570.  -       if (needMore) {
  3114. 1571.  -         WkView.likesPreload();
  3115. 1572.  -       } else {
  3116. 1573.  -         hide('wk_likes_more_link');
  3117. 1574.  -       }
  3118. 1575.  -       WkView.updateHeight();
  3119. 1576.  -       if (names) {
  3120. 1577.  -         extend(cur.options.reply_names, names);
  3121. 1578.  -       }
  3122. 1579.  -     }, showProgress: function() {
  3123. 1580.  -       hide('wk_likes_more_link');
  3124. 1581.  -       show('wk_likes_more_prg');
  3125. 1582.  -     }, hideProgress: function() {
  3126. 1583.  -       show('wk_likes_more_link');
  3127. 1584.  -       hide('wk_likes_more_prg');
  3128. 1585.  -     }, cache: 1
  3129. 1586.  -   });
  3130. 1587.  - },
  3131. 1588.  - likesBigphOver: function(obj, uid) {
  3132. 1589.  -   if (!wkcur.lang || !wkcur.lang.global_photo_full_size || browser.mobile) return;
  3133. 1590.  -   var o = obj.firstChild,
  3134. 1591.  -       ch = wkcur.phCache[uid];
  3135. 1592.  -   if (o.tagName != 'A' || o.className != 'wk_likes_likerph') {
  3136. 1593.  -     o = obj.insertBefore(ce('a', {className: 'wk_likes_likerph', href: ch && ch._id ? ('/photo' + ch._id + '?all=1') : ('/albums' + uid), innerHTML: '<span class="wk_likes_likerph_label">' + wkcur.lang.global_photo_full_size + '</span>'}), obj.firstChild);
  3137. 1594.  -     o.onclick = WkView.likesBigphClick.pbind(uid);
  3138. 1595.  -     o._uid = uid;
  3139. 1596.  -   }
  3140. 1597.  -
  3141. 1598.  -   clearTimeout(o.hideTO);
  3142. 1599.  -   animate(o, {marginTop: 75}, {duration: 200, transition: Fx.Transitions.easeOutCirc});
  3143. 1600.  -   wkcur.phShown[uid] = o;
  3144. 1601.  -
  3145. 1602.  -   if (!obj.onmouseout) obj.onmouseout = WkView.likesBigphOut.pbind(obj);
  3146. 1603.  - },
  3147. 1604.  - likesBigphOut: function(obj) {
  3148. 1605.  -   var o = obj.firstChild;
  3149. 1606.  -   if (!o || o.tagName != 'A' || o.className != 'wk_likes_likerph') return;
  3150. 1607.  -
  3151. 1608.  -   clearTimeout(o.hideTO);
  3152. 1609.  -   o.hideTO = setTimeout(function() {
  3153. 1610.  -     animate(o, {marginTop: 100}, 200);
  3154. 1611.  -     delete(wkcur.phShown[o._uid]);
  3155. 1612.  -   }, 150);
  3156. 1613.  - },
  3157. 1614.  - likesBigphClick: function(uid, ev) {
  3158. 1615.  -   if (checkEvent(ev) !== false) return;
  3159. 1616.  -
  3160. 1617.  -   var ch = wkcur.phCache[uid]
  3161. 1618.  -       o = wkcur.phShown[uid],
  3162. 1619.  -       obj = domPN(o);
  3163. 1620.  -
  3164. 1621.  -   if (!o || !obj) return;
  3165. 1622.  -   if (ch === undefined) {
  3166. 1623.  -     ch = wkcur.phCache[uid] = 'show';
  3167. 1624.  -     ajax.post('al_photos.php', {act: 'fast_get_photo', oid: uid}, {onDone: function(res) {
  3168. 1625.  -       if (!res) {
  3169. 1626.  -         obj.onmouseover = function() {};
  3170. 1627.  -         re(o);
  3171. 1628.  -         return;
  3172. 1629.  -       }
  3173. 1630.  -       var sh = (wkcur.phCache[uid] == 'show');
  3174. 1631.  -       wkcur.phCache[uid] = res;
  3175. 1632.  -       o.href = '/photo' + res._id + '?all=1';
  3176. 1633.  -       if (sh) WkView.likesBigphClick(uid);
  3177. 1634.  -     }, onFail: function() {
  3178. 1635.  -       obj.onmouseover = function() {};
  3179. 1636.  -       re(o);
  3180. 1637.  -       return true;
  3181. 1638.  -     }});
  3182. 1639.  -   }
  3183. 1640.  -   if (ch == 'show') {
  3184. 1641.  -     return cancelEvent(ev);
  3185. 1642.  -   }
  3186. 1643.  -   if (!ch) return;
  3187. 1644.  -   extend(ch, {
  3188. 1645.  -     jumpTo: {z: 'albums' + uid},
  3189. 1646.  -     queue: 1
  3190. 1647.  -   });
  3191. 1648.  -   return showPhoto(ch._id, 'album' + uid + '_0/rev', ch, ev);
  3192. 1649.  - },
  3193. 1650.  - likesSTLDown: function(e) {
  3194. 1651.  -   e = e || window.event;
  3195. 1652.  -   if (checkEvent(e)) return;
  3196. 1653.  -
  3197. 1654.  -   if (!__afterFocus) {
  3198. 1655.  -     if (wkcur.lSTLWasSet && wkcur.lSTLWas) {
  3199. 1656.  -       var to = wkcur.lSTLWas;
  3200. 1657.  -       wkcur.lSTLWas = 0;
  3201. 1658.  -       wkLayerWrap.scrollTop = to;
  3202. 1659.  -     } else {
  3203. 1660.  -       wkcur.lSTLWas = wkLayerWrap.scrollTop;
  3204. 1661.  -       wkLayerWrap.scrollTop = 0;
  3205. 1662.  -     }
  3206. 1663.  -   }
  3207. 1664.  -   return cancelEvent(e);
  3208. 1665.  - },
  3209. 1666.  - likesOnScroll: function (resize) {
  3210. 1667.  -
  3211. 1668.  -   var st = wkLayerWrap.scrollTop,
  3212. 1669.  -       mx = 200,
  3213. 1670.  -       vis = wkcur.lSTLWas || (st > mx),
  3214. 1671.  -       o = 0;
  3215. 1672.  -
  3216. 1673.  -   wkcur.lSTL.style.marginTop = st + 'px';
  3217. 1674.  -   if (!vis) {
  3218. 1675.  -     if (wkcur.lSTLShown !== 0) {
  3219. 1676.  -       hide(wkcur.lSTL);
  3220. 1677.  -       wkcur.lSTLShown = 0;
  3221. 1678.  -     }
  3222. 1679.  -   } else {
  3223. 1680.  -     if (wkcur.lSTLShown !== 1) {
  3224. 1681.  -       show(wkcur.lSTL);
  3225. 1682.  -       wkcur.lSTLShown = 1;
  3226. 1683.  -     }
  3227. 1684.  -     if (wkcur.lSTLWas && st > 500) {
  3228. 1685.  -       wkcur.lSTLWas = 0;
  3229. 1686.  -     }
  3230. 1687.  -     if (st > mx) {
  3231. 1688.  -       o = (st - mx) / mx;
  3232. 1689.  -       if (wkcur.lSTLWasSet) {
  3233. 1690.  -         wkcur.lSTLWasSet = 0;
  3234. 1691.  -         val(domLC(wkcur.lSTL), getLang('global_to_top'));
  3235. 1692.  -         removeClass(domLC(wkcur.lSTL), 'down');
  3236. 1693.  -       }
  3237. 1694.  -     } else {
  3238. 1695.  -       o = (mx - st) / mx;
  3239. 1696.  -       if (wkcur.lSTLWas) {
  3240. 1697.  -         if (!wkcur.lSTLWasSet) {
  3241. 1698.  -           wkcur.lSTLWasSet = 1;
  3242. 1699.  -           val(domLC(wkcur.lSTL), '');
  3243. 1700.  -           addClass(domLC(wkcur.lSTL), 'down');
  3244. 1701.  -         }
  3245. 1702.  -       }
  3246. 1703.  -     }
  3247. 1704.  -   }
  3248. 1705.  -   setStyle(wkcur.lSTL, {opacity: Math.min(Math.max(o, 0), 1)});
  3249. 1706.  -
  3250. 1707.  -   var bt = lastWindowHeight,
  3251. 1708.  -       objMore = ge('wk_likes_more_link');
  3252. 1709.  -   if (isVisible(objMore) && (bt > getXY(objMore, true)[1])) {
  3253. 1710.  -     objMore.click();
  3254. 1711.  -   }
  3255. 1712.  - },
  3256. 1713.  - likesBlacklistTip: function (el) {
  3257. 1714.  -   showTooltip(el, {
  3258. 1715.  -     text: wkcur.lang.like_block_liker,
  3259. 1716.  -     shift: [13, 1, 1],
  3260. 1717.  -     black: 1
  3261. 1718.  -   });
  3262. 1719.  - },
  3263. 1720.  - likesBlacklist: function (el, oid, event) {
  3264. 1721.  -   if (el.tt && el.tt.destroy) el.tt.destroy();
  3265. 1722.  -   showBox('like.php', {act: 'spam', mid: oid, object: wkcur.like_obj});
  3266. 1723.  -   return cancelEvent(event);
  3267. 1724.  - },
  3268. 1725.  - likesRecache: function(d) {
  3269. 1726.  -   wkcur.offset += d;
  3270. 1727.  -   for (var i in ajaxCache) {
  3271. 1728.  -     if (i.match(new RegExp('^\\/wkview\.php\\#act=show', ''))) {
  3272. 1729.  -       delete(ajaxCache[i]);
  3273. 1730.  -     }
  3274. 1731.  -   }
  3275. 1732.  - },
  3276. 1733.  - likesRemove: function(oid) {
  3277. 1734.  -   re('wk_likes_liker_row' + oid);
  3278. 1735.  -   WkView.likesRecache(-1);
  3279. 1736.  -   WkView.onScroll();
  3280. 1737.  -   if (!domFC(ge('wk_likes_rows'))) {
  3281. 1738.  -     location.reload();
  3282. 1739.  -   }
  3283. 1740.  - },
  3284. 1741.  -
  3285. 1742.  - historyInit: function () {
  3286. 1743.  -   addEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  3287. 1744.  -   addEvent(window, 'resize', WkView.onResize);
  3288. 1745.  -   onBodyResize();
  3289. 1746.  -
  3290. 1747.  -   wkcur._hide.push(function () {
  3291. 1748.  -     removeEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  3292. 1749.  -     removeEvent(window, 'resize', WkView.onResize);
  3293. 1750.  -   });
  3294. 1751.  - },
  3295. 1752.  - historyOnScroll: function () {
  3296. 1753.  -   if (wkcur.loadingHistory) {
  3297. 1754.  -     return false;
  3298. 1755.  -   }
  3299. 1756.  -   var wndHeight = window.innerHeight || document.documentElement.clientHeight;
  3300. 1757.  -
  3301. 1758.  -   var moreLink = ge('wk_history_more_link');
  3302. 1759.  -   if (moreLink && isVisible(moreLink)) {
  3303. 1760.  -     var moreLinkY = getXY(moreLink, true)[1];
  3304. 1761.  -     if (wndHeight + 500 > moreLinkY) {
  3305. 1762.  -       moreLink.onclick();
  3306. 1763.  -     }
  3307. 1764.  -   }
  3308. 1765.  - },
  3309. 1766.  - historyShowMore: function () {
  3310. 1767.  -   if (wkcur.loadingHistory) {
  3311. 1768.  -     return false;
  3312. 1769.  -   }
  3313. 1770.  -   var newOffset = wkcur.offset;
  3314. 1771.  -   wkcur.loadingHistory = true;
  3315. 1772.  -   ajax.post('wkview.php', {act: 'show', w: wkcur.wkRaw, offset: newOffset, part: 1}, {
  3316. 1773.  -     onDone: function (options, rows) {
  3317. 1774.  -       extend(wkcur, options);
  3318. 1775.  -       ge('wk_history_rows').appendChild(cf(rows));
  3319. 1776.  -       setTimeout(WkView.historyOnScroll, 500);
  3320. 1777.  -
  3321. 1778.  -       toggle('wk_history_more_link', wkcur.offset < wkcur.count);
  3322. 1779.  -       toggle('wk_history_empty', wkcur.offset >= wkcur.count && !domFC(ge('wk_history_rows')));
  3323. 1780.  -       toggleClass('wk_history_more', 'wk_history_more_loading', wkcur.offset < wkcur.count && !domFC(ge('wk_history_rows')));
  3324. 1781.  -       wkcur.loadingHistory = false;
  3325. 1782.  -     },
  3326. 1783.  -     onFail: function () {
  3327. 1784.  -       wkcur.loadingHistory = false;
  3328. 1785.  -     },
  3329. 1786.  -     showProgress: function () {
  3330. 1787.  -       hide('wk_history_more_link');
  3331. 1788.  -       show('wk_history_more_progress');
  3332. 1789.  -     },
  3333. 1790.  -     hideProgress: function () {
  3334. 1791.  -       show('wk_history_more_link');
  3335. 1792.  -       hide('wk_history_more_progress');
  3336. 1793.  -     }
  3337. 1794.  -   });
  3338. 1795.  -
  3339. 1796.  -   return false;
  3340. 1797.  - },
  3341. 1798.  -
  3342. 1799.  - activate: function(arrow) {
  3343. 1800.  -   if (arrow && arrow.timeout) {
  3344. 1801.  -     clearTimeout(arrow.timeout);
  3345. 1802.  -     removeAttr(arrow, 'timeout');
  3346. 1803.  -   } else if (isVisible(arrow)) {
  3347. 1804.  -     fadeTo(arrow, 200, vk.pvdark ? 1 : 0.7);
  3348. 1805.  -   }
  3349. 1806.  - },
  3350. 1807.  -
  3351. 1808.  - deactivate: function(arrow) {
  3352. 1809.  -   if (!arrow || !isVisible(arrow) || arrow.timeout) {
  3353. 1810.  -     return;
  3354. 1811.  -   }
  3355. 1812.  -   arrow.timeout = setTimeout(function() {
  3356. 1813.  -     removeAttr(arrow, 'timeout');
  3357. 1814.  -     fadeTo(arrow, 200, 0.4);
  3358. 1815.  -   }, 1);
  3359. 1816.  - },
  3360. 1817.  -
  3361. 1818.  - activateArrow: function (next, event) {
  3362. 1819.  -   var arrow = wkcur[next ? 'wkRightArrow' : 'wkLeftArrow'],
  3363. 1820.  -       bg = wkcur[next ? 'wkRightArrowBg' : 'wkLeftArrowBg'].firstChild;
  3364. 1821.  -
  3365. 1822.  -   if (arrow && arrow.timeout) {
  3366. 1823.  -     clearTimeout(arrow.timeout);
  3367. 1824.  -     removeAttr(arrow, 'timeout');
  3368. 1825.  -   } else if (isVisible(arrow)) {
  3369. 1826.  -     wkcur.arrowOver = next;
  3370. 1827.  -     fadeTo(arrow, 200, vk.pvdark ? 1 : 0.7);
  3371. 1828.  -     fadeTo(bg, 200, 0.15);
  3372. 1829.  -   }
  3373. 1830.  -   WkView.preloadArrow(next);
  3374. 1831.  -   cancelEvent(event);
  3375. 1832.  - },
  3376. 1833.  - preloadArrow: function (next) {
  3377. 1834.  -   var arrow = wkcur[next ? 'wkRightArrow' : 'wkLeftArrow'];
  3378. 1835.  -
  3379. 1836.  -   if (!arrow.cached) {
  3380. 1837.  -     arrow.cached = true;
  3381. 1838.  -     var actions = WkView.getNextWkRaws(),
  3382. 1839.  -         preloadWkRaw = actions[next ? 1 : 0];
  3383. 1840.  -
  3384. 1841.  -     if (preloadWkRaw) {
  3385. 1842.  -       ajax.post('wkview.php', extend({act: 'show', loc: nav.objLoc[0]}, {w: preloadWkRaw}), {cache: 1});
  3386. 1843.  -     }
  3387. 1844.  -   }
  3388. 1845.  - },
  3389. 1846.  - deactivateArrow: function (next, event) {
  3390. 1847.  -   var arrow = wkcur[next ? 'wkRightArrow' : 'wkLeftArrow'],
  3391. 1848.  -       bg = wkcur[next ? 'wkRightArrowBg' : 'wkLeftArrowBg'].firstChild;
  3392. 1849.  -
  3393. 1850.  -   if (!arrow || !isVisible(arrow) || arrow.timeout || (wkcur.arrowClicked && (vkNow() - wkcur.arrowClicked < 100))) {
  3394. 1851.  -     return;
  3395. 1852.  -   }
  3396. 1853.  -
  3397. 1854.  -   delete wkcur.arrowOver;
  3398. 1855.  -   arrow.timeout = setTimeout(function() {
  3399. 1856.  -     removeAttr(arrow, 'timeout');
  3400. 1857.  -     fadeTo(arrow, 200, 0.4);
  3401. 1858.  -     fadeTo(bg, 200, 0);
  3402. 1859.  -   }, 1);
  3403. 1860.  -   cancelEvent(event);
  3404. 1861.  - },
  3405. 1862.  -
  3406. 1863.  - back: function() {
  3407. 1864.  -   if (wkcur.historyLen > 1) {
  3408. 1865.  -     wkcur.doBack = 1;
  3409. 1866.  -     wkcur.historyLen -= 1;
  3410. 1867.  -     history.go(-1);
  3411. 1868.  -     return true;
  3412. 1869.  -   } else {
  3413. 1870.  -     WkView.hide();
  3414. 1871.  -   }
  3415. 1872.  - },
  3416. 1873.  -
  3417. 1874.  -
  3418. 1875.  - _eof: 1};try{stManager.done('wkview.js');}catch(e){}
  3419. ------
Add Comment
Please, Sign In to add comment