Hormold

VK Change (#1380106829)

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