PageSourceSearch

https://ifsport.is/js/custom.js

js ifsport.is collected 2026-09-25 06:45:25 UTC 1,739 bytes, 72 lines download raw bytes

1$('.iconExpander').on('click',function(){
2	if($(this).hasClass('show')){
3		$(this).removeClass('show');
4		$('#iconBanner').fadeOut('fast');
5	}else{
6		$(this).addClass('show');
7		$('#iconBanner').fadeIn('fast');
8	}
9	});
10
11$(document).ready(function(){
12	
13	var mapsLocationId = ['rvk','west','nord','south','east'];
14	var mapsLocation = ['Höfuðborgarsvæðið','Vesturland','Norðurland','Suðurland og Suðurnes','Austurland'];
15	$('.maps svg g').hover(function(){
16		var text = mapsLocation[mapsLocationId.indexOf($(this).attr('id'))];
17		$('.maps .mapSection').text(text);
18	}, function(){
19		$('.maps .mapSection').text('veldu landshluta');
20	})
21	
22	
23	$('.youtubelightbox').featherlight({});
24  
25  	$('.slickSlider').slick({
26  		slidesToShow: 1,
27  		slidesToScroll: 1,
28  		dots: false,
29	 	infinite: true,
30	  	speed: 500,
31	  	fade: true,
32	  	cssEase: 'linear',
33	  	autoplay: true,
34  		autoplaySpeed: 4000,
35  		arrows: false
36  	});
37  	
38  	$('#rightSection .randomLogo').slick({
39  		slidesToShow: 1,
40  		slidesToScroll: 1,
41  		dots: false,
42	 	infinite: false,
43	  	speed: 500,
44	  	fade: true,
45	  	cssEase: 'linear',
46	  	adaptiveHeight: false,
47	  	autoplay: true,
48  		autoplaySpeed: 2000,
49  		arrows: false
50  	});
51  	
52  	$('#newsTabs nav-tabs a').click(function (e) {
53	  e.preventDefault()
54	  console.log('pushTab')
55	  $(this).tab('show')
56	});
57	
58	
59	var offset = $("#iconBanner").offset();
60	var sticky = document.getElementById("#iconBanner")
61	
62	$(window).scroll(function() {
63	    if ( $('body').scrollTop() > offset.top){
64	        $('#iconBanner').addClass('fixed');
65	        //$('.main').addClass('main_margintop');
66	    } else {
67	         $('#iconBanner').removeClass('fixed');
68	         //$('.main').removeClass('main_margintop');
69	    }
70	});
71	
72});

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.