PageSourceSearch

https://omdesky.ir/themes/custom-38eb/js/custom.js?v=1.02123

js omdesky.ir collected 2026-09-30 11:19:21 UTC 1,287 bytes, 56 lines download raw bytes

1if (typeof $ == 'undefined')
2	var $ = jQuery;
3
4$(function(){
5	/* loading */
6	$('.loading').fadeOut();
7
8	/* header */
9	var header = $('.header');
10	var headerHeight = header.outerHeight();
11	$('body').css({'padding-top': headerHeight});
12
13
14	var lastScrollTop = 40;
15	
16	$(window).scroll(function() {
17
18		var st = $(this).scrollTop();
19
20		if (st > lastScrollTop) {
21			$('.header-menu').slideUp(200);
22			$('.header-search-mobile').slideUp(200);
23			header.addClass('scrolled');
24		} else {
25			$('.header-menu').slideDown(200);
26			$('.header-search-mobile').slideDown(200);
27			header.removeClass('scrolled');
28		}
29		lastScrollTop = st;
30	});
31
32	/* back to top */
33	$('.footer-to-top-button').on('click', function(e) {
34		e.preventDefault();
35		$('html, body').animate({scrollTop:0}, '1000');
36	});
37
38	/* megaMenu */
39	$('.navbar-mega-container').hover(function(e) {
40		$('.mega-menu-title').addClass('hovered');
41		$('.navbar-mega-context').show();
42	},
43	function() {
44		$('.navbar-mega-context').hide();
45		$('.mega-menu-title').removeClass('hovered');
46	});
47
48	/* progress */
49	$('.products-offers-progress > span').css({"animation": "progress 6s linear infinite"});
50
51	//  compare
52    $('.store-compare-product-add').on('click', function() {
53
54        $('.store-compare-quicksearch-query-input').focus();
55    });
56});

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.