PageSourceSearch

https://birdlifemalta.org/wp-content/themes/birdlife/js/scripts.js?ver=1.0.0

js birdlifemalta.org collected 2026-10-02 03:57:35 UTC 1,413 bytes, 132 lines download raw bytes

1// DOM Ready
2
3$(function() {
4
5
6
7	// SVG fallback
8
9	// toddmotto.com/mastering-svg-use-for-a-retina-web-fallbacks-with-png-script#update
10
11	if (!Modernizr.svg) {
12
13		var imgs = document.getElementsByTagName('img');
14
15		for (var i = 0; i < imgs.length; i++) {
16
17			if (/.*\.svg$/.test(imgs[i].src)) {
18
19				imgs[i].src = imgs[i].src.slice(0, -3) + 'png';
20
21			}
22
23		}
24
25	}
26
27
28
29	  $(document).ready(function() {
30
31		$("#lightGallery").lightGallery({
32
33			loop:true,
34
35			auto:true,
36
37			pause:5000
38
39		});
40
41		$("#lightGallery2").lightGallery({
42
43			loop:true,
44
45			auto:true,
46
47			pause:5000
48
49		});
50
51	});
52
53
54
55
56
57
58
59
60
61	$('#tabs')
62
63    .tabs()
64
65    .addClass('ui-tabs-vertical ui-helper-clearfix');
66
67
68
69
70
71if (Modernizr.touch)
72
73{
74
75
76
77}
78
79else
80
81{
82
83	$(window).scroll(function() {
84
85        var scroll = $(window).scrollTop();
86
87
88
89        if (scroll >= 80) {
90
91			$('.header').removeClass('full-menu').addClass("min-menu");
92
93        } else {
94
95			$('.header').removeClass('min-menu').addClass("full-menu");
96
97        }
98
99
100
101		if (scroll >= 190) {
102
103			$('.tagline').removeClass('position-a').addClass("position-b");
104
105        } else {
106
107			$('.tagline').removeClass('position-b').addClass("position-a");
108
109        }
110
111
112
113		//if (scroll >= 1000) {
114
115		//	$('.donate, .member').removeClass('position-a').addClass("position-b");
116
117        //} else {
118
119		//	$('.donate, .member').removeClass('position-b').addClass("position-a");
120
121        //}
122
123    });
124
125}
126
127
128
129
130
131});
132

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.