PageSourceSearch

https://song-story.ru/wp-content/themes/basic/js/functions.js?ver=1

js song-story.ru collected 2026-10-02 11:23:27 UTC 1,323 bytes, 54 lines download raw bytes

1jQuery(document).ready(function ($) {
2
3// toTop button 
4	$(window).scroll(function () {
5		if ( $(this).scrollTop() !== 0 ) $('#toTop').fadeIn();
6		else $('#toTop').fadeOut();
7	});
8	$('#toTop').click(function () {
9		$('body,html').animate({scrollTop: 0}, 500);
10	});
11
12
13// responsive menu
14	var $window = $(window),
15		$nav = $('.topnav nav'),
16		$button = $('#mobile-menu');
17
18	$button.on('click', function () {
19		$nav.slideToggle();
20	});
21
22	$window.on('resize', function () {
23		if ($window.width() >= 1024) {
24			$nav.show();
25		}
26	});
27
28// mobile sub-menus
29	var $sub_menus = $nav.find('.sub-menu');
30	$nav.find('.open-submenu').on( 'click', function () {
31		$(this).parent().toggleClass('submenu-opened');
32		$(this).siblings('.sub-menu').toggleClass('closed');
33	});
34	set_sub_menu_classes( $window.width() );
35	$window.on('resize', function () {
36		set_sub_menu_classes( $window.width() );
37	});
38	function set_sub_menu_classes( w ){
39		if ( w < 1024 ) {
40			$sub_menus.addClass('closed');
41		} else {
42			$sub_menus.removeClass('closed');
43			$nav.find('.submenu-opened').removeClass('submenu-opened');
44		}
45	}
46
47
48// social buttons
49	$('.psb').click(function () {
50		window.open($(this).attr("href"), 'displayWindow', 'width=700,height=400,left=200,top=100,location=no, directories=no,status=no,toolbar=no,menubar=no');
51		return false;
52	});
53
54});

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.