PageSourceSearch

https://static.coolreceptes.ru/plugins/s29_functions/topmenu/topmenu.js

js coolreceptes.ru collected 2026-09-26 06:51:50 UTC 1,249 bytes, 38 lines download raw bytes

1
2$(function () {
3	let $topMenu = $('#s29TopMenu');
4	let $topMenuMain = $topMenu.find('.s29_menu.s29_main');
5	let $topMenuSubmenuContainer = $topMenu.find('.s29_submenuContainer');
6	let $topMenuBack = $topMenuSubmenuContainer.find('button.s29_back');
7	let $topMenuSubmenus = $topMenuSubmenuContainer.find('.s29_menu.s29_sub');
8	let $topMenuPlaceholder = $topMenuMain.children('.s29_placeholder');
9	let $topMenuRight = $topMenuMain.children('.s29_right');
10	
11	function topMenuEnterSubmenu()
12	{
13		let code = $(this).data('code');
14		let $submenu = $topMenu.find('.s29_menu.s29_sub[data-code="' + code + '"]');
15		$topMenuSubmenus.hide();
16		$submenu.css('display', 'table');
17		$topMenuMain.fadeOut({ complete: () => $topMenuSubmenuContainer.fadeIn() });
18	}
19	
20	function topMenuGoBack()
21	{
22		$topMenuSubmenuContainer.fadeOut({ complete: () => $topMenuMain.fadeIn() });
23	}
24	
25	function topMenuAdjust()
26	{
27		$topMenuRight.show().css('display', 'table-cell');
28		if ($topMenuPlaceholder.width() < 1)
29			$topMenuRight.hide();
30		$topMenuMain.addClass('s29_visible');
31	}
32	
33	$topMenuMain.children('button').click(topMenuEnterSubmenu);
34	$topMenuBack.click(topMenuGoBack);
35	
36	$(window).resize(topMenuAdjust);
37	topMenuAdjust();
38});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.