PageSourceSearch

https://syri.net/public/syri/js/scripts.js?v=2.1.38333739

js syri.net collected 2026-09-24 18:58:30 UTC 1,956 bytes, 77 lines download raw bytes

1// Document Ready
2$(document).ready(function() {
3
4	if($(window).width()>1420){
5		$(window).scroll(function() {
6			if ($(this).scrollTop() > 200){  
7				$('.topp').addClass("sticky");
8				$('.logo').addClass("sticky");
9			}
10			else{
11				$('.topp').removeClass("sticky");
12				$('.logo').removeClass("sticky");
13			}
14		});
15	}
16
17
18	$('.searchi').click(function(e){
19		$('.search-holder').fadeIn(400);
20		$('.form-control.search').focus();
21		$('.close-search').click(function(){
22			$('.search-holder').fadeOut(400);
23			$('.form-control.search').val('');
24		});
25		e.stopPropagation();
26	});	
27	$('body').click(function(e){
28	 	if (!$(e.target).is('.form-control.search')) {
29			$('.search-holder').fadeOut(400);
30			$('.form-control.search').val('');
31        }
32	});
33
34	if($(window).width()<768){
35		var toggle = document.querySelector(".c-hamburger");
36	    toggleHandler(toggle);
37
38	    function toggleHandler(toggle) {
39			if(toggle){
40				toggle.addEventListener( "click", function(e) {
41					e.preventDefault();
42					(this.classList.contains("is-active") === true) ? this.classList.remove("is-active") : this.classList.add("is-active");
43						$('header ul.main-nav').toggleClass('mobile');
44						$('body').toggleClass('mobile');
45				});
46			}
47	    }
48		
49	    $(window).scroll(function (event) {
50		    var scroll = $(window).scrollTop();
51		    if(scroll >= 320)
52		    	$('header').addClass('hija');
53		    else
54		    	$('header').removeClass('hija');
55		});
56
57	}
58
59	$("div.lazy").lazyload({
60		effect : "fadeIn",
61		effectspeed:1200
62	});
63	$("div.lazy-sport").lazyload({
64		effect : "fadeIn",
65		container: $('#sporti'),
66		effectspeed:1200
67	});
68
69	var userAgent = navigator.userAgent || navigator.vendor || window.opera;
70
71	  if( userAgent.match( /iPad/i ) || userAgent.match( /iPhone/i ) || userAgent.match( /iPod/i ) )
72	  {
73	    $('.aspect-ratio iframe').css('width','calc(100% - 24px) !important');
74
75	  }
76
77});

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.