Hormold

VK Change (#1355590797)

Dec 15th, 2012
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 23.29 KB | None | 0 0
  1. Файл - page.css:
  2. различия невозможно определить в SWF файлах.
  3. Файл - feed.js:
  4. 721.  -         if (!(params.sort = intval(cur.searchSortMenu && cur.searchSortMenu.val()))) {
  5. 722.  -           delete params.sort;
  6. 723.  -         }
  7. 771.  -     var feedBar = ge('feed_bar'),
  8. 772.  -         curSection = cur.section,
  9. 773.  -         curTopTab = 'news',
  10. 774.  +     var curTopTab = 'news',
  11. 776.  -         curTab, newTab;
  12. 777.  -
  13. 778.  -     if (from >= 2 && newSection == cur.section) {
  14. 779.  -       curSection = cur.prevSection || cur.section;
  15. 780.  -     }
  16. 781.  -     if (curSection == 'search') {
  17. 782.  -       curTab = 'news';
  18. 783.  -     } else if (curSection == 'articles_search') {
  19. 784.  -       curTab = 'articles';
  20. 785.  -     } else {
  21. 786.  -       curTab = curSection || '';
  22. 787.  -     }
  23. 788.  -
  24. 789.  -     if (newSection == 'search') {
  25. 790.  -       newTab = 'news';
  26. 791.  -     } else if (newSection == 'articles_search') {
  27. 792.  -       newTab = 'articles';
  28. 793.  -     } else {
  29. 794.  -       newTab = newSection || '';
  30. 795.  -     }
  31. 796.  -     // debugLog('set section', from, curTab, newTab);
  32. 797.  +         curTabEl = geByClass1('feed_tab_' + cur.section);
  33. 802.  +       case 'photos':
  34. 803.  +       case 'recommended':
  35. 806.  -       case 'articles':
  36. 807.  -       case 'articles_search':
  37. 808.  -         curTopTab = 'custom';
  38. 809.  -         break
  39. 810.  -       case 'notifications':
  40. 811.  -         curTopTab = 'notifications';
  41. 812.  -         break;
  42. 813.  -
  43. 814.  +       case 'articles': curTopTab = 'custom'; break
  44. 815.  +       case 'notifications': curTopTab = 'notifications'; break;
  45. 818.  +       case 'articles_search':
  46. 819.  +       case 'search': curTopTab = 'search'; break;
  47. 824.  +       case 'photos':
  48. 825.  +       case 'recommended':
  49. 828.  -       case 'articles':
  50. 829.  +       case 'articles':newTopTab = 'custom'; break
  51. 830.  +       case 'notifications': newTopTab = 'notifications'; break;
  52. 831.  +       case 'owner': newTopTab = 'owner'; break;
  53. 832.  +       case 'source': newTopTab = 'source'; break;
  54. 834.  -         newTopTab = 'custom';
  55. 835.  -         break
  56. 836.  -
  57. 837.  -       case 'notifications':
  58. 838.  -         newTopTab = 'notifications';
  59. 839.  -         break;
  60. 840.  -
  61. 841.  -       case 'owner':
  62. 842.  -         newTopTab = 'owner';
  63. 843.  -         break;
  64. 844.  -
  65. 845.  -       case 'source':
  66. 846.  -         newTopTab = 'source';
  67. 847.  -         break;
  68. 848.  +       case 'search': newTopTab = 'search'; break;
  69. 850.  -
  70. 851.  -     var curTabEl = curTab && curTab != newTab && geByClass1('feed_tab_' + curTab, feedBar, 'div');
  71. 852.  -         newTabEl = newTab && geByClass1('feed_tab_' + newTab, feedBar, 'div');
  72. 853.  -
  73. 854.  -     // debugLog('replace old', curTabEl, debugEl(curTabEl));
  74. 855.  -     curTabEl && replaceClass(curTabEl, 'summary_tab_sel', 'summary_tab');
  75. 856.  -     // debugLog('replace new', newTabEl, debugEl(newTabEl));
  76. 857.  -     newTabEl && replaceClass(newTabEl, 'summary_tab', 'summary_tab_sel');
  77. 859.  -     // debugLog(curTopTab, newTopTab, from);
  78. 875.  -
  79. 876.  -       toggle('feed_news_bar', newTopTab == 'news');
  80. 877.  -       toggle('feed_custom_bar', newTopTab == 'custom');
  81. 878.  -       toggle('feed_search_bar', newTopTab == 'news' || inArray(newSection, ['articles_search', 'articles', 'notifications']));
  82. 879.  -       toggleClass('feed_search_bar', 'fl_r', newTopTab == 'custom');
  83. 880.  -       toggleClass('feed_search_bar', 'fl_l', newTopTab != 'custom');
  84. 881.  +       toggle('feed_form_toggler', newTopTab == 'news' || newSection == 'articles' || newTopTab == 'search');
  85. 882.  +       feed.toggleSearchForm(false, newTopTab != 'search', !newSection.indexOf('articles'));
  86. 883.  +       hide('feed_custom_bar', 'feed_news_bar');
  87. 884.  +       switch (newTopTab) {
  88. 885.  +         case 'custom':
  89. 886.  +         case 'search':
  90. 887.  +           show('feed_' + newTopTab + '_bar'); break;
  91. 888.  +         default:
  92. 889.  +           show('feed_news_bar');
  93. 890.  +           if (cur.onFeedBarShow) cur.onFeedBarShow();
  94. 891.  +       }
  95. 893.  -
  96. 894.  -     toggleClass('feed_bar', 'feed_bar_extended_search', newSection == 'search');
  97. 895.  -
  98. 897.  -       var topTabEl = ge('feedtab_custom'),
  99. 898.  -           topTabLabel = geByClass1('tab_word', topTabEl),
  100. 899.  -           topTabLink = geByTag1('a', topTabEl);
  101. 900.  -
  102. 901.  -       if (newTabEl) {
  103. 902.  -         val(topTabLabel, val(geByTag1('nobr', newTabEl)));
  104. 903.  -       }
  105. 904.  -       if (topTabLink) {
  106. 905.  -         topTabLink.onmousedown = function (event) {
  107. 906.  +       val(geByClass1('tab_word', ge('feedtab_custom')), val(geByTag1('nobr', geByClass1('feed_tab_' + newSection))));
  108. 907.  +       var topLink = geByTag1('a', ge('feedtab_custom'));
  109. 908.  +       if (topLink) {
  110. 909.  +         topLink.onmousedown = function (event) {
  111. 912.  -         topTabLink.href = '/feed?section=' + newSection;
  112. 913.  +         topLink.href = '/feed?section=' + newSection;
  113. 919.  -       Feed.searchUpdate();
  114. 921.  -
  115. 922.  +     curTabEl && replaceClass(curTabEl, 'summary_tab_sel', 'summary_tab');
  116. 929.  -
  117. 930.  +     curTabEl = geByClass1('feed_tab_' + cur.section);
  118. 931.  +     curTabEl && replaceClass(curTabEl, 'summary_tab', 'summary_tab_sel');
  119. 939.  -     toggle('feed_search_sort', newSection == 'search');
  120. 943.  -
  121. 944.  -     if (newSection == 'search' && !cur.searchSortMenu) {
  122. 945.  -       Feed.initUi();
  123. 946.  -     }
  124. 999.  -       Feed.searchUpdate();
  125. 1042.  -     Feed.applyUi();
  126. 1195.  -       Feed.searchUpdate();
  127. 1204.  -     var loadCb = inArray(cur.section, ['comments', 'photos', 'search', 'articles_search']) ? false : feed.onLocalTabLoad;
  128. 1205.  +     var loadCb = inArray(cur.section, ['comments', 'photos']) ? false : feed.onLocalTabLoad;
  129. 1210.  -     // debugLog('local tab load', content);
  130. 1295.  +   },
  131. 1296.  +   toggleSearchForm: function (fire, on, articles) {
  132. 1297.  +     if (articles === undefined) {
  133. 1298.  +       articles = cur.section == 'articles' || cur.section == 'articles_search';
  134. 1299.  +     }
  135. 1300.  +     if (on === undefined) {
  136. 1301.  +       on = !isVisible('feed_nosearch_bar');
  137. 1302.  +     }
  138. 1303.  +     if (fire && on && articles) {
  139. 1304.  +       feed.switchSection('articles');
  140. 1305.  +       return;
  141. 1306.  +     }
  142. 1307.  +     toggle('feed_nosearch_bar', on);
  143. 1308.  +     toggle('feed_search_bar', !on);
  144. 1309.  +     if (fire) {
  145. 1310.  +       if (on) {
  146. 1311.  +         show(articles ? 'feed_custom_bar' : 'feed_news_bar');
  147. 1312.  +       } else {
  148. 1313.  +         elfocus('feed_search')
  149. 1314.  +       }
  150. 1315.  +     }
  151. 1316.  +     val('feed_form_toggler', getLang(on ? 'news_switch_to_search' : (articles ? 'news_switch_to_articles' : 'feed_add_post')));
  152. 1940.  -   },
  153. 1941.  -   searchPreloadExtended: function () {
  154. 1942.  -     if (cur.feedSearchExtendedLoaded || cur.feedSearchExtendedPreloaded) {
  155. 1943.  -       return false;
  156. 1944.  -     }
  157. 1945.  -     cur.feedSearchExtendedPreloaded = true;
  158. 1946.  -     ajax.post('al_feed.php', {act: 'a_get_search_extended'}, {cache: 1});
  159. 1947.  -   },
  160. 1948.  -   searchToggleExtended: function (enabled) {
  161. 1949.  -     if (cur.feedSearchExtendedLoaded || !enabled) {
  162. 1950.  -       toggle('feed_search_extform', enabled);
  163. 1951.  -       return;
  164. 1952.  -     }
  165. 1953.  -     ajax.post('al_feed.php', {act: 'a_get_search_extended'}, {
  166. 1954.  -       stat: ['ui_controls.css', 'ui_controls.js'],
  167. 1955.  -       progress: ge('feed_progress'),
  168. 1956.  -       cache: 1,
  169. 1957.  -       onDone: function (html, js) {
  170. 1958.  -         cur.feedSearchExtendedLoaded = true;
  171. 1959.  -         val('feed_search_extform', html);
  172. 1960.  -         show('feed_search_extform');
  173. 1961.  -         eval(js);
  174. 1962.  -       }
  175. 1963.  -     });
  176. 1964.  -   },
  177. 1965.  -   searchAppendTag: function (tag, pattern, nosubmit) {
  178. 1966.  -     if (!trim(tag) && !pattern) {
  179. 1967.  -       return;
  180. 1968.  -     }
  181. 1969.  -     var text = val('feed_search');
  182. 1970.  -     try {
  183. 1971.  -       text = text.replace(pattern || new RegExp('(^|\\s)' + tag + '(\\s|$)', 'i'), ' ');
  184. 1972.  -     } catch (e) {};
  185. 1973.  -     text += ' ' + tag + ' ';
  186. 1974.  -     text = text.replace(/\s{2,}/g, ' ').replace(/^\s+/, '');
  187. 1975.  -     val('feed_search', text);
  188. 1976.  -     if (trim(text).length && !nosubmit) {
  189. 1977.  -       Feed.switchSearch();
  190. 1978.  -     }
  191. 1979.  -     Feed.searchUpdate();
  192. 1980.  -   },
  193. 1981.  -   searchUnchooseGeoPoint: function () {
  194. 1982.  -     var map = ge('feed_searchext_map'),
  195. 1983.  -         x = ge('feed_searchext_map_delete_wrap');
  196. 1984.  -
  197. 1985.  -     removeClass(map, 'feed_searchext_map_selected');
  198. 1986.  -     setStyle(map, {background: ''});
  199. 1987.  -     x && x.tt && x.tt.hide && x.tt.hide();
  200. 1988.  -     Feed.searchAppendTag('', /near:[0-9\.,\-\+]+/);
  201. 1989.  -   },
  202. 1990.  -   searchChooseGeoPoint: function () {
  203. 1991.  -     var params = {act: 'a_choose_place_box', search: 1},
  204. 1992.  -         text = val('feed_search'),
  205. 1993.  -         currentPointMatches = text.match(/near\:(\-?\d{1,3}(?:\.\d+)?)\,(\-?\d{1,3}(?:\.\d+)?)(\+{0,4})/);
  206. 1994.  -
  207. 1995.  -     if (currentPointMatches) {
  208. 1996.  -       params.lat = floatval(currentPointMatches[1]);
  209. 1997.  -       params.lon = floatval(currentPointMatches[2]);
  210. 1998.  -       params.zoom = [8, 11, 14, 17, 20][(currentPointMatches[3] || '').length]
  211. 1999.  -     }
  212. 2000.  -     showBox('al_places.php', params);
  213. 2001.  -     cur.chooseGeoPoint = function (lat, lon, zoom) {
  214. 2002.  -       var num = 0;
  215. 2003.  -       each([8, 11, 14, 17, 20], function (k, zoomLevel) {
  216. 2004.  -         if (zoom <= zoomLevel) {
  217. 2005.  -           return false;
  218. 2006.  -         }
  219. 2007.  -         num = k;
  220. 2008.  -       });
  221. 2009.  -       boxQueue.hideLast();
  222. 2010.  -       var postfix = (new Array(num + 1)).join('+');
  223. 2011.  -       var mult = Math.pow(10, 10);
  224. 2012.  -       lat = Math.round(lat * mult) / mult;
  225. 2013.  -       lon = Math.round(lon * mult) / mult;
  226. 2014.  -
  227. 2015.  -       var map = ge('feed_searchext_map');
  228. 2016.  -       addClass(map, 'feed_searchext_map_selected');
  229. 2017.  -       setStyle(map, {
  230. 2018.  -         background: 'url(//maps.googleapis.com/maps/api/staticmap?center='+lat+','+lon+'&zoom='+zoom+'&size='+(window.devicePixelRatio >= 2 ? '260x160' : '130x80')+'&sensor=false)'
  231. 2019.  -       });
  232. 2020.  -       Feed.searchAppendTag('near:' + lat + ',' + lon + postfix, /near:[0-9\.,\-\+]+/);
  233. 2021.  -     };
  234. 2022.  -   },
  235. 2023.  -   searchChooseFilter: function (filter, item) {
  236. 2024.  -     var uiDropdown;
  237. 2025.  -     switch (filter) {
  238. 2026.  -       case 'type':
  239. 2027.  -         uiDropdown = cur.uiSearchPostType; break;
  240. 2028.  -       case 'has':
  241. 2029.  -         uiDropdown = cur.uiSearchPostAttach; break;
  242. 2030.  -       case 'likes':
  243. 2031.  -         uiDropdown = cur.uiSearchPostLikes; break;
  244. 2032.  -
  245. 2033.  -       default: return false;
  246. 2034.  -     }
  247. 2035.  -     var sel = (uiDropdown.selectedItems() || [])[0];
  248. 2036.  -
  249. 2037.  -     Feed.searchAppendTag(sel && intval(sel[0]) ? (filter + ':' + (sel[3] || sel[0])) : '', new RegExp(filter + ':' + '[\\S]+', 'g'));
  250. 2038.  -   },
  251. 2039.  -   searchExcludeOnChange: function (input, nosubmit) {
  252. 2040.  -     var exclude = trim(val(input));
  253. 2041.  -     if (!exclude) {
  254. 2042.  -       return false;
  255. 2043.  -     }
  256. 2044.  -     var words = trim(exclude).split(/[\s\,\.\/\!\@\#\$\%\^\&\*\(\)\-\=\:\~\;\'\"\|\}\{\+]+/),
  257. 2045.  -         len = words.length,
  258. 2046.  -         newTag = len > 0 && ('-' + words.join(' -')) || '';
  259. 2047.  -
  260. 2048.  -     Feed.searchAppendTag(newTag, /(?:\s|^)\-\S+/g, nosubmit);
  261. 2049.  -   },
  262. 2050.  -   searchUrlOnChange: function (fromTooltip) {
  263. 2051.  -     var urlMatches = (val('feed_searchext_link') || '').match(urlInactiveExp),
  264. 2052.  -         newTag = '';
  265. 2053.  -
  266. 2054.  -     if (urlMatches) {
  267. 2055.  -       var url = urlMatches[4] + (urlMatches[5] || ''),
  268. 2056.  -           domain = urlMatches[4],
  269. 2057.  -           newTag = radioBtns.feed_searchext_domain.val ? ('domain:' + domain) : ('url:' + url);
  270. 2058.  -     }
  271. 2059.  -     Feed.searchAppendTag(newTag, cur.feedSearchPrevLinkTag);
  272. 2060.  -     cur.feedSearchPrevLinkTag = newTag;
  273. 2061.  -
  274. 2062.  -     if (fromTooltip) {
  275. 2063.  -       elfocus('feed_searchext_link');
  276. 2064.  -     }
  277. 2065.  -   },
  278. 2066.  -   searchContentOnChange: function () {
  279. 2067.  -     var urlMatches = (val('feed_searchext_content') || '').match(urlInactiveExp),
  280. 2068.  -         domainMatches = urlMatches && urlMatches[4].match(/(^|\.|\/\/)vkontakte\.ru|vk\.com/),
  281. 2069.  -         mediaMatches = domainMatches && urlMatches[5].match(/(?:#(photo)|^\/(photo|video|album|page|audio|wall)|z=(album|photo|video)|w=(page|wall))(-?\d+_)?(\d+)(?:\?reply=(\d+))?$/),
  282. 2070.  -         newTag = '';
  283. 2071.  -
  284. 2072.  -     if (mediaMatches) {
  285. 2073.  -       var mediaType = mediaMatches[1] || mediaMatches[2] || mediaMatches[3] || mediaMatches[4],
  286. 2074.  -           mediaID = mediaMatches[5] + (mediaMatches[7] || mediaMatches[6]),
  287. 2075.  -           newTag = 'copy:' + mediaType + mediaID;
  288. 2076.  -     }
  289. 2077.  -     Feed.searchAppendTag(newTag, /copy\:\S+/);
  290. 2078.  -   },
  291. 2079.  -   searchUpdate: function () {
  292. 2080.  -     toggle('feed_query_reset', trim(val('feed_search')));
  293. 2081.  -   },
  294. 2082.  -   searchClickOutside: function (event) {
  295. 2083.  -     if (val('feed_search') || !hasClass('feed_bar', 'feed_bar_extended_search') || isChecked('feed_search_extended_checkbox')) {
  296. 2084.  -       return;
  297. 2085.  -     }
  298. 2086.  -     removeClass('feed_bar', 'feed_bar_extended_search');
  299. 2087.  -   },
  300. 2088.  -   searchReset: function () {
  301. 2089.  -     val('feed_search', '');
  302. 2090.  -     removeClass('feed_bar', 'feed_bar_extended_search');
  303. 2091.  -     each ([cur.uiSearchPostType, cur.uiSearchPostAttach, cur.uiSearchPostLikes], function () {
  304. 2092.  -       this.val(0);
  305. 2093.  -     });
  306. 2094.  -     each(['feed_searchext_exclude', 'feed_searchext_link', 'feed_searchext_content'], function () {
  307. 2095.  -       val(this, '');
  308. 2096.  -     });
  309. 2097.  -     Feed.searchUnchooseGeoPoint();
  310. 2098.  -     Feed.searchUpdate();
  311. 2099.  -     Feed.switchSection('news');
  312. 2101.  -
  313. 2127.  -         // debugLog(onBeforeReplace, options, rows.length, js);
  314. 2129.  -         if (window.tooltips) tooltips.destroyAll(ge('feed_rows'));
  315. 2130.  +         if (window.tooltips) tooltips.destroyAll();
  316. 2166.  -         hide('feed_menu_toggle', 'feed_edit_hidden', 'feed_search_sort');
  317. 2167.  +         hide('feed_menu_toggle', 'feed_edit_hidden');
  318. 2185.  -       addEvent(searchEl, 'focus', function (e) {
  319. 2186.  +       var tmp = function () {
  320. 2188.  -         removeEvent(searchEl, 'focus', arguments.callee);
  321. 2189.  -       });
  322. 2190.  +         removeEvent(searchEl, 'focus', tmp);
  323. 2191.  +       };
  324. 2192.  +       addEvent(searchEl, 'focus', tmp);
  325. 2194.  -
  326. 2195.  -     addEvent(searchEl, 'keydown focus', function (e) {
  327. 2196.  -       if (e.type == 'focus') {
  328. 2197.  -         addClass('feed_bar', 'feed_bar_extended_search');
  329. 2198.  -         return;
  330. 2199.  -       }
  331. 2200.  +     addEvent(searchEl, 'keydown', function (e) {
  332. 2213.  -       setTimeout(Feed.searchUpdate, 0);
  333. 2222.  +       fullPostHeight: 50,
  334. 2223.  +       emptyPostheight: 24,
  335. 2293.  -         toggle('feed_search_sort', cur.section == 'search');
  336. 2319.  -         feed.switchSearch(changed.q, !(changed.section || '').indexOf('articles'));
  337. 2320.  +         feed.switchSearch(changed.q, !changed.section.indexOf('articles'));
  338. 2337.  +     WallUpload.preinit();
  339. 2351.  -         removeEvent(document, 'click', Feed.searchClickOutside);
  340. 2356.  -     var _a = window.audioPlayer,
  341. 2357.  -         aid = currentAudioId();
  342. 2358.  +     var _a = window.audioPlayer, aid = currentAudioId();
  343. 2379.  -     addEvent(document, 'click', Feed.searchClickOutside);
  344. 2382.  -     cur.searchSortMenu = new DropdownMenu(cur.options.search_sorts, {
  345. 2383.  -       target: ge('feed_search_sort_dd'),
  346. 2384.  -       onSelect: function (e) {
  347. 2385.  -         feed.switchSection('search')
  348. 2386.  -       },
  349. 2387.  -       fadeSpeed: 0
  350. 2388.  -     });
  351. 2389.  -
  352. 2394.  -   },
  353. 2395.  -   applyUi: function () {
  354. 2396.  -     debugLog('apply ui');
  355. 2397.  -     if (!cur.searchSortMenu) return;
  356. 2398.  -     cur.searchSortMenu.setOptions({title: cur.search_sort[1]});
  357. 2399.  -     cur.searchSortMenu.value = cur.search_sort[0];
  358. 2400.  -     val('feed_search_sort_dd', cur.search_sort[1].replace(/\s+/g, '&nbsp;'));
  359. 2479.  -     return false;
  360. 2491.  -     this.resultList.style.width = this.resultListShadow.style.width = resultContainer.style.width = '273px';
  361. 2492.  +     this.resultList.style.width = this.resultListShadow.style.width = resultContainer.style.width = '230px';
  362. 2512.  -             if (self.currentTerm === term) self.showSelectList(term, data);
  363. 2513.  +             if (self.currentTerm == term) self.showSelectList(term, data);
  364. 2519.  -       clearTimeout(cur.requestTimeout);
  365. 2520.  -       delete self.currentTerm;
  366. 2549.  -     return false;
  367. ------
  368. Файл - docs.js:
  369. 219.  -   var thumb = item[8];
  370. 220.  -   if (thumb) {
  371. 221.  -     ext = '<a class="docs_item_thumb" href="'+url+'" ext="'+ext+'" onmouseover="Docs.showFileTT(this, '+oid+', '+id+')" onclick="return Docs.downloadItem('+oid+', '+id+');"><img class="docs_item_thumb_img" src="'+thumb+'"></a>';
  372. 222.  -   } else {
  373. 223.  -     ext = '<a class="docs_item_icon" href="'+url+'" ext="'+ext+'" onclick="return Docs.downloadItem('+oid+', '+id+');">'+ext+'</a>';
  374. 224.  -   }
  375. 444.  -   var icon = geByClass1('docs_item_icon', item) || geByClass1('docs_item_thumb', item);
  376. 445.  +   var icon = geByClass('docs_item_icon', item)[0];
  377. 447.  -   var ext = trim(icon.getAttribute('ext'));
  378. 448.  +   var ext = trim(icon.innerHTML);
  379. 455.  - },
  380. 456.  -
  381. 457.  - showFileTT: function(obj, oid, did) {
  382. 458.  -   var item = ge('docs_file_'+oid+'_'+did);
  383. 459.  -   if (!item) return false;
  384. 460.  -   var icon = geByClass1('docs_item_icon', item) || geByClass1('docs_item_thumb', item);
  385. 461.  -   var href = icon.href;
  386. 462.  -   var ext = trim(icon.getAttribute('ext'));
  387. 463.  -   if (ext == 'gif') {
  388. 464.  -     var img = new vkImage();
  389. 465.  -     img.src = href;
  390. 466.  -     img.onload = function() {
  391. 467.  -       var el = obj.parentNode;
  392. 468.  -       if (cur.prevTT && cur.prevTT != el && cur.prevTT.tt) {
  393. 469.  -         cur.prevTT.tt.hide();
  394. 470.  -       }
  395. 471.  -       clearTimeout(el.hidetimer);
  396. 472.  -       el.hidetimer = false;
  397. 473.  -       cur.prevTT = el;
  398. 474.  -       showTooltip(el, {
  399. 475.  -         content: '<div class="docs_tt_preview"><img style="max-width: 300px; max-height: 350px;" src="'+href+'" align="center"/></div>',
  400. 476.  -         shift: [0,-6,-4],
  401. 477.  -         slide: 15,
  402. 478.  -         className: 'wall_tt docs_tt',
  403. 479.  -         hasover: false,
  404. 480.  -         nohideover: true,
  405. 481.  -         showdt: 0
  406. 482.  -       });
  407. 483.  -     }
  408. 484.  -     stManager.add(['tooltips.js', 'tooltips.css']);
  409. 485.  -   }
  410. 486.  -
  411. ------
  412. Файл - docs.css:
  413. 167.  -   background: #E1E7ED url('/images/icons/darr.gif') 8px 7px no-repeat;
  414. 168.  -   width: 30px;
  415. 169.  +   background: #E1E7ED url('/images/icons/darr.gif') 6px 7px no-repeat;
  416. 170.  +   width: 27px;
  417. 175.  -   padding: 3px 0px 0px 20px;
  418. 176.  +   padding: 3px 0px 0px 17px;
  419. 179.  - }
  420. 180.  - .docs_item_thumb_img {
  421. 181.  -   position: absolute;
  422. 182.  -   width: 50px;
  423. 183.  -   border-radius:3px;
  424. 184.  -   -moz-border-radius:3px;
  425. 192.  -   padding: 2px 60px 0px 60px;
  426. 193.  +   padding: 2px 54px 0px 54px;
  427. 386.  -  
  428. 387.  +   display: block;
  429. 388.  + }
  430. 389.  + .docs_more_progress #docs_more_text {
  431. 390.  +   display: none;
  432. 391.  + }
  433. 392.  + .docs_links {
  434. 393.  +   color: #2B587A;
  435. 394.  + }
  436. 395.  + .docs_example {
  437. 396.  +   padding: 8px 0px 0px;
  438. 397.  +   color: #888888;
  439. 398.  + }
  440. 399.  +
  441. 400.  +
  442. 401.  + #docs_search_bar .tdd_control {
  443. 402.  +   padding-right: 35px;
  444. 403.  + }
  445. 404.  + .docs_filter_sep {
  446. 405.  +   margin: 5px 0px 5px 0px;
  447. 406.  +   border-bottom: 1px solid #DAE2E8;
  448. 407.  +   height: 1px;
  449. 408.  + }
  450. 409.  +
  451. 410.  + /* Choose */
  452. 411.  + .docs_choose_close {
  453. 412.  +   padding: 16px 20px 0px;
  454. 413.  + }
  455. 414.  + .docs_choose_header {
  456. 415.  +   font-size: 1.2em;
  457. 416.  +   color: #45688E;
  458. 417.  +   font-weight: bold;
  459. 418.  +   padding: 16px 20px 0px;
  460. 419.  + }
  461. 420.  + #docs_choose_upload_area {
  462. 421.  +   background: #eff1f3;
  463. 422.  +   padding: 16px;
  464. 423.  +   text-align: center;
  465. 424.  +   color: #738392;
  466. 425.  +   font-size: 1.18em;
  467. 426.  +   line-height: 16px;
  468. 427.  +   display: block;
  469. 428.  +   margin: 15px 0px 12px;
  470. 429.  + }
  471. 430.  + #docs_choose_upload_area:hover {
  472. 431.  +   background: #e9edf1;
  473. 432.  +   text-decoration: none;
  474. 433.  + }
  475. 434.  + .docs_choose_upload_area_drop {
  476. 435.  +   display: none;
  477. 436.  + }
  478. 437.  + #docs_choose_upload_area_label {
  479. 438.  +   padding: 3px 0px 3px 27px;
  480. 439.  +   background: url('/images/doc.png') left 0px no-repeat;
  481. 440.  + }
  482. 441.  + .docs_choose_upload_area_enter .docs_choose_upload_area_upload {
  483. 442.  +   display: none;
  484. 443.  + }
  485. 444.  + .docs_choose_rows {
  486. 445.  +   padding: 0px 0px;
  487. 446.  + }
  488. 447.  + #docs_choose_more {
  489. 448.  +   display: block;
  490. 449.  +   background: #F7F7F7;
  491. 450.  +   text-align: center;
  492. 451.  +   padding: 18px;
  493. 452.  +   color: #738392;
  494. 453.  + }
  495. 454.  + #docs_choose_more:hover {
  496. 455.  +   text-decoration: none;
  497. 456.  +   background: #e9edf1;
  498. 457.  +   border-top: 1px solid #e6eaee;
  499. 458.  +   margin-top: -1px;
  500. 459.  + }
  501. 460.  +
  502. 461.  + .dropbox_over .docs_choose_upload_area_upload,
  503. 462.  + .docs_choose_upload_area_enter .docs_choose_upload_area_upload {
  504. 463.  +   display: none;
  505. 464.  + }
  506. 465.  + .dropbox_over .docs_choose_upload_area_drop,
  507. 466.  + .docs_choose_upload_area_enter .docs_choose_upload_area_drop {
  508. 467.  +   display: block;
  509. 468.  +   padding: 13px;
  510. 469.  +   border: 1px dashed #A3B6C9;
  511. 470.  +   background: #FFFFFF;
  512. 471.  + }
  513. 472.  + .docs_choose_act {
  514. 473.  +   font-size: 0.8em;
  515. 474.  +   font-weight: normal;
  516. 475.  + }
  517. 476.  +
  518. 477.  + .docs_choose_icon {
  519. 478.  +   width: 50px;
  520. 479.  +   height: 35px;
  521. 480.  +   overflow: hidden;
  522. 481.  + }
  523. 482.  + .docs_choose_photo {
  524. 483.  +   width: 44px;
  525. 484.  +   -webkit-border-radius: 3px;
  526. 485.  +   -moz-border-radius: 3px;
  527. 486.  +   border-radius: 3px;
  528. 487.  + }
  529. 488.  + .docs_choose_info {
  530. 489.  +   padding: 2px 0px 0px 10px;
  531. 490.  +   width: 542px;
  532. 491.  + }
  533. 492.  + .docs_choose_link {
  534. 493.  +   font-weight: bold;
  535. 494.  + }
  536. 495.  + .docs_choose_date {
  537. 496.  +   color: #999999;
  538. 497.  +   display: block;
  539. 498.  +   margin-top: 2px;
  540. 499.  + }
  541. 500.  + .docs_choose_def_icon {
  542. 501.  +   padding: 3px 0px 0px 17px;
  543. 502.  +   background: #E1E7ED url('/images/icons/darr.gif') 6px 7px no-repeat;
  544. 503.  +   width: 27px;
  545. 504.  +   height: 17px;
  546. 505.  +   border-radius: 3px;
  547. 506.  +   -moz-border-radius: 3px;
  548. 507.  +   color: #6A839E;
  549. 508.  +   display: block;
  550. 509.  + }
  551. 510.  +
  552. 511.  + .docs_choose_def_icon:hover {
  553. 512.  +   text-decoration: none;
  554. 513.  + }
  555. 514.  + .docs_choose_row {
  556. 515.  +   cursor: pointer;
  557. 516.  +   height: 34px;
  558. 517.  +   padding: 8px 20px 8px 20px;
  559. 518.  +   border-bottom: 1px solid #eeeeee;
  560. 519.  + }
  561. 520.  + .docs_choose_over_row {
  562. 521.  +   background: #EDF1F5;
  563. 522.  +   border-bottom: 1px solid #e6eaee;
  564. 523.  +   border-top: 1px solid #e6eaee;
  565. 524.  +   margin-top: -1px;
  566. 525.  + }
  567. 526.  + .docs_choose_attach {
  568. 527.  +   display: none;
  569. 528.  +   padding: 5px 0px;
  570. 529.  +   margin: 2px 0px;
  571. 530.  +   -webkit-border-radius: 3px;
  572. 531.  +   -moz-border-radius: 3px;
  573. 532.  +   border-radius: 3px;
  574. 533.  +   color: #93a2b3;
  575. 534.  + }
  576. 535.  + .docs_choose_over_row .docs_choose_attach {
  577. 536.  +   display: block;
  578. 537.  + }
  579. 538.  + .docs_choose_attach:hover {
  580. 539.  +   text-decoration: none;
  581. 540.  + }
  582. 541.  + .docs_choose_over_row .docs_choose_def_icon {
  583. 542.  +   background: #dbe1e9 url('/images/icons/darr.gif') 6px 7px no-repeat;
  584. 543.  + }
  585. 544.  + .docs_choose_over_row .docs_choose_date {
  586. 545.  +   color: #93a2b3;
  587. 546.  + }
  588. 547.  +
  589. ------
Advertisement
Add Comment
Please, Sign In to add comment