Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Файл - page.js:
- различия невозможно определить в SWF файлах.
- Файл - page.css:
- различия невозможно определить в SWF файлах.
- Файл - im.css:
- 806. - margin-right: 2px;
- 807. + margin-right: 4px;
- 928. - padding: 6px 0 0 5px;
- 929. + padding: 6px 0 0 3px;
- 1020. - padding: 4px 20px 4px 20px;
- 1021. + padding: 5px 20px 4px 20px;
- 1023. - height: 15px;
- 1024. - line-height: 15px;
- 1025. + height: 14px;
- 1026. + line-height: 1.27em;
- 1028. - }
- 1029. - #im_filter::-webkit-input-placeholder {
- 1030. - padding: 0 2px;
- 1031. - }
- 1032. - #im_filter:moz-input-placeholder {
- 1033. - padding: 0 2px;
- 1034. - }
- 1035. - #im_filter_out .input_back_content {
- 1036. - height: 15px;
- 1037. - line-height: 15px;
- 1531. - width: 328px;
- 1532. + width: 330px;
- 1534. - padding: 3px 25px 3px 3px;
- 1535. + padding: 3px 23px 3px 3px;
- 1892. - }
- 1893. - #im_rcemoji {
- 1894. - width: 400px;
- 1895. - }
- 1896. - .im_rc_emojibtn {
- 1897. - display: inline-block;
- 1898. - *display: block;
- 1899. - zoom: 1;
- 1900. - padding: 3px 3px;
- 1901. - }
- 1902. - .im_rc_emojibtn:hover {
- 1903. - background: #D5DDE5;
- 1904. - text-decoration: none;
- 1905. - -webkit-border-radius: 2px;
- 1906. - -khtml-border-radius: 2px;
- 1907. - -moz-border-radius: 2px;
- 1908. - border-radius: 2px;
- 1909. - }
- 1910. - .im_rc_emojibtn:active {
- 1911. - background: #C9D2DB;
- 1912. - }
- 1913. - .im_rcem_cont {
- 1914. - width: 156px;
- 1915. - overflow: hidden;
- 1916. - padding: 1px 0px 0px 4px;
- 1917. - }
- 1918. - .im_peer_multi .im_rcem_cont {
- 1919. - width: 134px;
- ------
- Файл - im.js:
- различия невозможно определить в SWF файлах.
- Файл - feed.js:
- 721. - if (!(params.sort = intval(cur.searchSortMenu && cur.searchSortMenu.val()))) {
- 722. - delete params.sort;
- 723. - }
- 771. - var feedBar = ge('feed_bar'),
- 772. - curSection = cur.section,
- 773. - curTopTab = 'news',
- 774. + var curTopTab = 'news',
- 776. - curTab, newTab;
- 777. -
- 778. - if (from >= 2 && newSection == cur.section) {
- 779. - curSection = cur.prevSection || cur.section;
- 780. - }
- 781. - if (curSection == 'search') {
- 782. - curTab = 'news';
- 783. - } else if (curSection == 'articles_search') {
- 784. - curTab = 'articles';
- 785. - } else {
- 786. - curTab = curSection || '';
- 787. - }
- 788. -
- 789. - if (newSection == 'search') {
- 790. - newTab = 'news';
- 791. - } else if (newSection == 'articles_search') {
- 792. - newTab = 'articles';
- 793. - } else {
- 794. - newTab = newSection || '';
- 795. - }
- 796. - // debugLog('set section', from, curTab, newTab);
- 797. + curTabEl = geByClass1('feed_tab_' + cur.section);
- 802. + case 'photos':
- 803. + case 'recommended':
- 806. - case 'articles':
- 807. - case 'articles_search':
- 808. - curTopTab = 'custom';
- 809. - break
- 810. - case 'notifications':
- 811. - curTopTab = 'notifications';
- 812. - break;
- 813. -
- 814. + case 'articles': curTopTab = 'custom'; break
- 815. + case 'notifications': curTopTab = 'notifications'; break;
- 818. + case 'articles_search':
- 819. + case 'search': curTopTab = 'search'; break;
- 824. + case 'photos':
- 825. + case 'recommended':
- 828. - case 'articles':
- 829. + case 'articles':newTopTab = 'custom'; break
- 830. + case 'notifications': newTopTab = 'notifications'; break;
- 831. + case 'owner': newTopTab = 'owner'; break;
- 832. + case 'source': newTopTab = 'source'; break;
- 834. - newTopTab = 'custom';
- 835. - break
- 836. -
- 837. - case 'notifications':
- 838. - newTopTab = 'notifications';
- 839. - break;
- 840. -
- 841. - case 'owner':
- 842. - newTopTab = 'owner';
- 843. - break;
- 844. -
- 845. - case 'source':
- 846. - newTopTab = 'source';
- 847. - break;
- 848. + case 'search': newTopTab = 'search'; break;
- 850. -
- 851. - var curTabEl = curTab && curTab != newTab && geByClass1('feed_tab_' + curTab, feedBar, 'div');
- 852. - newTabEl = newTab && geByClass1('feed_tab_' + newTab, feedBar, 'div');
- 853. -
- 854. - // debugLog('replace old', curTabEl, debugEl(curTabEl));
- 855. - curTabEl && replaceClass(curTabEl, 'summary_tab_sel', 'summary_tab');
- 856. - // debugLog('replace new', newTabEl, debugEl(newTabEl));
- 857. - newTabEl && replaceClass(newTabEl, 'summary_tab', 'summary_tab_sel');
- 859. - // debugLog(curTopTab, newTopTab, from);
- 875. -
- 876. - toggle('feed_news_bar', newTopTab == 'news');
- 877. - toggle('feed_custom_bar', newTopTab == 'custom');
- 878. - toggle('feed_search_bar', newTopTab == 'news' || inArray(newSection, ['articles_search', 'articles', 'notifications']));
- 879. - toggleClass('feed_search_bar', 'fl_r', newTopTab == 'custom');
- 880. - toggleClass('feed_search_bar', 'fl_l', newTopTab != 'custom');
- 881. + toggle('feed_form_toggler', newTopTab == 'news' || newSection == 'articles' || newTopTab == 'search');
- 882. + feed.toggleSearchForm(false, newTopTab != 'search', !newSection.indexOf('articles'));
- 883. + hide('feed_custom_bar', 'feed_news_bar');
- 884. + switch (newTopTab) {
- 885. + case 'custom':
- 886. + case 'search':
- 887. + show('feed_' + newTopTab + '_bar'); break;
- 888. + default:
- 889. + show('feed_news_bar');
- 890. + if (cur.onFeedBarShow) cur.onFeedBarShow();
- 891. + }
- 893. -
- 894. - toggleClass('feed_bar', 'feed_bar_extended_search', newSection == 'search');
- 895. -
- 897. - var topTabEl = ge('feedtab_custom'),
- 898. - topTabLabel = geByClass1('tab_word', topTabEl),
- 899. - topTabLink = geByTag1('a', topTabEl);
- 900. -
- 901. - if (newTabEl) {
- 902. - val(topTabLabel, val(geByTag1('nobr', newTabEl)));
- 903. - }
- 904. - if (topTabLink) {
- 905. - topTabLink.onmousedown = function (event) {
- 906. + val(geByClass1('tab_word', ge('feedtab_custom')), val(geByTag1('nobr', geByClass1('feed_tab_' + newSection))));
- 907. + var topLink = geByTag1('a', ge('feedtab_custom'));
- 908. + if (topLink) {
- 909. + topLink.onmousedown = function (event) {
- 912. - topTabLink.href = '/feed?section=' + newSection;
- 913. + topLink.href = '/feed?section=' + newSection;
- 918. - Feed.searchReset();
- 919. + val('feed_search', '');
- 921. -
- 922. + curTabEl && replaceClass(curTabEl, 'summary_tab_sel', 'summary_tab');
- 929. -
- 930. + curTabEl = geByClass1('feed_tab_' + cur.section);
- 931. + curTabEl && replaceClass(curTabEl, 'summary_tab', 'summary_tab_sel');
- 939. - toggle('feed_search_sort', newSection == 'search');
- 943. -
- 944. - if (newSection == 'search' && !cur.searchSortMenu) {
- 945. - Feed.initUi();
- 946. - }
- 999. - Feed.searchUpdate();
- 1042. - Feed.applyUi();
- 1195. - Feed.searchUpdate();
- 1204. - var loadCb = inArray(cur.section, ['comments', 'photos', 'search', 'articles_search']) ? false : feed.onLocalTabLoad;
- 1205. + var loadCb = inArray(cur.section, ['comments', 'photos']) ? false : feed.onLocalTabLoad;
- 1210. - // debugLog('local tab load', content);
- 1295. + },
- 1296. + toggleSearchForm: function (fire, on, articles) {
- 1297. + if (articles === undefined) {
- 1298. + articles = cur.section == 'articles' || cur.section == 'articles_search';
- 1299. + }
- 1300. + if (on === undefined) {
- 1301. + on = !isVisible('feed_nosearch_bar');
- 1302. + }
- 1303. + if (fire && on && articles) {
- 1304. + feed.switchSection('articles');
- 1305. + return;
- 1306. + }
- 1307. + toggle('feed_nosearch_bar', on);
- 1308. + toggle('feed_search_bar', !on);
- 1309. + if (fire) {
- 1310. + if (on) {
- 1311. + show(articles ? 'feed_custom_bar' : 'feed_news_bar');
- 1312. + } else {
- 1313. + elfocus('feed_search')
- 1314. + }
- 1315. + }
- 1316. + val('feed_form_toggler', getLang(on ? 'news_switch_to_search' : (articles ? 'news_switch_to_articles' : 'feed_add_post')));
- 1940. - },
- 1941. - searchPreloadExtended: function () {
- 1942. - if (cur.feedSearchExtendedLoaded || cur.feedSearchExtendedPreloaded) {
- 1943. - return false;
- 1944. - }
- 1945. - cur.feedSearchExtendedPreloaded = true;
- 1946. - ajax.post('al_feed.php', {act: 'a_get_search_extended'}, {cache: 1});
- 1947. - },
- 1948. - searchToggleExtended: function (enabled) {
- 1949. - if (cur.feedSearchExtendedLoaded || !enabled) {
- 1950. - toggle('feed_search_extform', enabled);
- 1951. - return;
- 1952. - }
- 1953. - ajax.post('al_feed.php', {act: 'a_get_search_extended'}, {
- 1954. - stat: ['ui_controls.css', 'ui_controls.js'],
- 1955. - progress: ge('feed_progress'),
- 1956. - cache: 1,
- 1957. - onDone: function (html, js) {
- 1958. - cur.feedSearchExtendedLoaded = true;
- 1959. - val('feed_search_extform', html);
- 1960. - show('feed_search_extform');
- 1961. - eval(js);
- 1962. - }
- 1963. - });
- 1964. - },
- 1965. - searchAppendTag: function (tag, pattern, nosubmit) {
- 1966. - if (!trim(tag) && !pattern) {
- 1967. - return;
- 1968. - }
- 1969. - var text = val('feed_search');
- 1970. - try {
- 1971. - text = text.replace(pattern || new RegExp('(^|\\s)' + tag + '(\\s|$)', 'i'), ' ');
- 1972. - } catch (e) {};
- 1973. - text += ' ' + tag + ' ';
- 1974. - text = text.replace(/\s{2,}/g, ' ').replace(/^\s+/, '');
- 1975. - val('feed_search', text);
- 1976. - if (trim(text).length && !nosubmit) {
- 1977. - Feed.switchSearch();
- 1978. - }
- 1979. - Feed.searchUpdate();
- 1980. - },
- 1981. - searchUnchooseGeoPoint: function () {
- 1982. - var map = ge('feed_searchext_map'),
- 1983. - x = ge('feed_searchext_map_delete_wrap');
- 1984. -
- 1985. - removeClass(map, 'feed_searchext_map_selected');
- 1986. - setStyle(map, {background: ''});
- 1987. - x && x.tt && x.tt.hide && x.tt.hide();
- 1988. - Feed.searchAppendTag('', /near:[0-9\.,\-\+]+/);
- 1989. - },
- 1990. - searchChooseGeoPoint: function () {
- 1991. - var params = {act: 'a_choose_place_box', search: 1},
- 1992. - text = val('feed_search'),
- 1993. - currentPointMatches = text.match(/near\:(\-?\d{1,3}(?:\.\d+)?)\,(\-?\d{1,3}(?:\.\d+)?)(\+{0,4})/);
- 1994. -
- 1995. - if (currentPointMatches) {
- 1996. - params.lat = floatval(currentPointMatches[1]);
- 1997. - params.lon = floatval(currentPointMatches[2]);
- 1998. - params.zoom = [8, 11, 14, 17, 20][(currentPointMatches[3] || '').length]
- 1999. - }
- 2000. - showBox('al_places.php', params, {dark: 1});
- 2001. - cur.chooseGeoPoint = function (lat, lon, zoom) {
- 2002. - var num = 0;
- 2003. - each([8, 11, 14, 17, 20], function (k, zoomLevel) {
- 2004. - if (zoom <= zoomLevel) {
- 2005. - return false;
- 2006. - }
- 2007. - num = k;
- 2008. - });
- 2009. - boxQueue.hideLast();
- 2010. - var postfix = (new Array(num + 1)).join('+');
- 2011. - var mult = Math.pow(10, 10);
- 2012. - lat = Math.round(lat * mult) / mult;
- 2013. - lon = Math.round(lon * mult) / mult;
- 2014. -
- 2015. - var map = ge('feed_searchext_map');
- 2016. - addClass(map, 'feed_searchext_map_selected');
- 2017. - setStyle(map, {
- 2018. - background: 'url(//maps.googleapis.com/maps/api/staticmap?center='+lat+','+lon+'&zoom='+zoom+'&size='+(window.devicePixelRatio >= 2 ? '260x160' : '130x80')+'&sensor=false)'
- 2019. - });
- 2020. - Feed.searchAppendTag('near:' + lat + ',' + lon + postfix, /near:[0-9\.,\-\+]+/);
- 2021. - };
- 2022. - },
- 2023. - searchChooseFilter: function (filter, item) {
- 2024. - var uiDropdown;
- 2025. - switch (filter) {
- 2026. - case 'type':
- 2027. - uiDropdown = cur.uiSearchPostType; break;
- 2028. - case 'has':
- 2029. - uiDropdown = cur.uiSearchPostAttach; break;
- 2030. - case 'likes':
- 2031. - uiDropdown = cur.uiSearchPostLikes; break;
- 2032. -
- 2033. - default: return false;
- 2034. - }
- 2035. - var sel = (uiDropdown.selectedItems() || [])[0];
- 2036. -
- 2037. - Feed.searchAppendTag(sel && intval(sel[0]) ? (filter + ':' + (sel[3] || sel[0])) : '', new RegExp(filter + ':' + '[\\S]+', 'g'));
- 2038. - },
- 2039. - searchExcludeOnChange: function (input, nosubmit) {
- 2040. - var exclude = trim(val(input));
- 2041. - if (!exclude) {
- 2042. - return false;
- 2043. - }
- 2044. - var words = trim(exclude).split(/[\s\,\.\/\!\@\#\$\%\^\&\*\(\)\-\=\:\~\;\'\"\|\}\{\+]+/),
- 2045. - len = words.length,
- 2046. - newTag = len > 0 && ('-' + words.join(' -')) || '';
- 2047. -
- 2048. - Feed.searchAppendTag(newTag, /(?:\s|^)\-\S+/g, nosubmit);
- 2049. - },
- 2050. - searchUrlOnChange: function (fromTooltip) {
- 2051. - var urlMatches = (val('feed_searchext_link') || '').match(urlInactiveExp),
- 2052. - newTag = '';
- 2053. -
- 2054. - if (urlMatches) {
- 2055. - var url = urlMatches[4] + (urlMatches[5] || ''),
- 2056. - domain = urlMatches[4],
- 2057. - newTag = radioBtns.feed_searchext_domain.val ? ('domain:' + domain) : ('url:' + url);
- 2058. - }
- 2059. - Feed.searchAppendTag(newTag, cur.feedSearchPrevLinkTag);
- 2060. - cur.feedSearchPrevLinkTag = newTag;
- 2061. -
- 2062. - if (fromTooltip) {
- 2063. - elfocus('feed_searchext_link');
- 2064. - }
- 2065. - },
- 2066. - searchContentOnChange: function () {
- 2067. - var urlMatches = (val('feed_searchext_content') || '').match(urlInactiveExp),
- 2068. - domainMatches = urlMatches && urlMatches[4].match(/(^|\.|\/\/)vkontakte\.ru|vk\.com/),
- 2069. - mediaMatches = domainMatches && urlMatches[5].match(/(?:#(photo)|^\/(photo|video|album|page|audio|wall)|z=(album|photo|video)|w=(page|wall))(-?\d+_)?(\d+)(?:\?reply=(\d+))?$/),
- 2070. - newTag = '';
- 2071. -
- 2072. - if (mediaMatches) {
- 2073. - var mediaType = mediaMatches[1] || mediaMatches[2] || mediaMatches[3] || mediaMatches[4],
- 2074. - mediaID = mediaMatches[5] + (mediaMatches[7] || mediaMatches[6]),
- 2075. - newTag = 'copy:' + mediaType + mediaID;
- 2076. - }
- 2077. - Feed.searchAppendTag(newTag, /copy\:\S+/);
- 2078. - },
- 2079. - searchUpdate: function () {
- 2080. - toggle('feed_query_reset', trim(val('feed_search')));
- 2081. - },
- 2082. - searchClickOutside: function (event) {
- 2083. - if (val('feed_search') || !hasClass('feed_bar', 'feed_bar_extended_search') || isChecked('feed_search_extended_checkbox')) {
- 2084. - return;
- 2085. - }
- 2086. - removeClass('feed_bar', 'feed_bar_extended_search');
- 2087. - },
- 2088. - searchReset: function () {
- 2089. - val('feed_search', '');
- 2090. - removeClass('feed_bar', 'feed_bar_extended_search');
- 2091. - each ([cur.uiSearchPostType, cur.uiSearchPostAttach, cur.uiSearchPostLikes], function () {
- 2092. - this.val(0);
- 2093. - });
- 2094. - each(['feed_searchext_exclude', 'feed_searchext_link', 'feed_searchext_content'], function (k, input) {
- 2095. - val(input, '');
- 2096. - });
- 2097. - Feed.searchUnchooseGeoPoint();
- 2098. - Feed.searchUpdate();
- 2099. - Feed.switchSection('news');
- 2101. -
- 2127. - // debugLog(onBeforeReplace, options, rows.length, js);
- 2129. - if (window.tooltips) tooltips.destroyAll(ge('feed_rows'));
- 2130. + if (window.tooltips) tooltips.destroyAll();
- 2166. - hide('feed_menu_toggle', 'feed_edit_hidden', 'feed_search_sort');
- 2167. + hide('feed_menu_toggle', 'feed_edit_hidden');
- 2185. - addEvent(searchEl, 'focus', function (e) {
- 2186. + var tmp = function () {
- 2188. - removeEvent(searchEl, 'focus', arguments.callee);
- 2189. - });
- 2190. + removeEvent(searchEl, 'focus', tmp);
- 2191. + };
- 2192. + addEvent(searchEl, 'focus', tmp);
- 2194. -
- 2195. - addEvent(searchEl, 'keydown focus', function (e) {
- 2196. - if (e.type == 'focus') {
- 2197. - addClass('feed_bar', 'feed_bar_extended_search');
- 2198. - return;
- 2199. - }
- 2200. + addEvent(searchEl, 'keydown', function (e) {
- 2213. - setTimeout(Feed.searchUpdate, 0);
- 2222. + fullPostHeight: 50,
- 2223. + emptyPostheight: 24,
- 2293. - toggle('feed_search_sort', cur.section == 'search');
- 2319. - feed.switchSearch(changed.q, !(changed.section || '').indexOf('articles'));
- 2320. + feed.switchSearch(changed.q, !changed.section.indexOf('articles'));
- 2337. + WallUpload.preinit();
- 2351. - removeEvent(document, 'click', Feed.searchClickOutside);
- 2356. - var _a = window.audioPlayer,
- 2357. - aid = currentAudioId();
- 2358. + var _a = window.audioPlayer, aid = currentAudioId();
- 2379. - addEvent(document, 'click', Feed.searchClickOutside);
- 2382. - cur.searchSortMenu = new DropdownMenu(cur.options.search_sorts, {
- 2383. - target: ge('feed_search_sort_dd'),
- 2384. - onSelect: function (e) {
- 2385. - feed.switchSection('search')
- 2386. - },
- 2387. - fadeSpeed: 0
- 2388. - });
- 2389. -
- 2394. - },
- 2395. - applyUi: function () {
- 2396. - debugLog('apply ui');
- 2397. - if (!cur.searchSortMenu) return;
- 2398. - cur.searchSortMenu.setOptions({title: cur.search_sort[1]});
- 2399. - cur.searchSortMenu.value = cur.search_sort[0];
- 2400. - val('feed_search_sort_dd', cur.search_sort[1].replace(/\s+/g, ' '));
- 2479. - return false;
- 2491. - this.resultList.style.width = this.resultListShadow.style.width = resultContainer.style.width = '273px';
- 2492. + this.resultList.style.width = this.resultListShadow.style.width = resultContainer.style.width = '230px';
- 2512. - if (self.currentTerm === term) self.showSelectList(term, data);
- 2513. + if (self.currentTerm == term) self.showSelectList(term, data);
- 2519. - clearTimeout(cur.requestTimeout);
- 2520. - delete self.currentTerm;
- 2549. - return false;
- ------
- Файл - places.js:
- изменений не найденно.
- Файл - places.css:
- 87. - padding: 12px 16px 12px 20px;
- 88. + padding: 12px 5px 12px 20px;
- 92. - width: 335px;
- 93. + width: 510px;
- 107. - }
- 108. - .choose_map_controls_text {
- 109. - padding: 0 20px;
- 110. - line-height: 25px;
- 471. - }
- 472. - .place_search_bar .summary_tab_sel {
- 473. - padding: 0px;
- 474. - }
- 475. - .places_provider_switcher {
- 476. - padding: 0px;
- 477. - margin: 2px 4px 0px 4px;
- ------
Advertisement
Add Comment
Please, Sign In to add comment