PageSourceSearch

https://www.kirchengemeinde-gotha.de/fileadmin/templates/js/main.js?1574844572

js kirchengemeinde-gotha.de collected 2026-10-02 18:46:28 UTC 9,158 bytes, 356 lines download raw bytes

1/* Loading Script */
2$(window).load(function(){
3	$('#loader').fadeOut("slow");
4});
5
6
7/* Font-Symbols in Menu */
8
9$( document ).ready(function() {
10	$('ul .lvl1 a').prepend('<i class="fa fa-home"></i>');
11});
12
13
14
15/* Flickr Carousel */
16$('#flickr_slider').jflickrfeed({
17    limit: 14, // number of images to show
18    qstrings: {
19        id: '13547802@N05' // id of flickr gallery (use idgettr.com to get flickr gallery id)
20    },
21    itemTemplate: '<a href="{{image_b}}" target="_blank"><img src="{{image}}" class="img-responsive" alt="" /></a>'
22}, function(data) {
23    $('#dc_flickr_slider div').hide();
24
25    var owl = $("#flickr_slider");
26    owl.owlCarousel({
27        itemsCustom: [
28            [0, 1],
29            [480, 3],
30            [600, 3],
31            [700, 3],
32            [768, 2],
33            [1000, 3],
34            [1140, 4],
35            [1400, 3],
36            [1600, 3]
37        ],
38        navigation: true,
39        pagination: false
40    });
41
42});
43
44/* Responsive Menu */
45( function( $ ) {
46$( document ).ready(function() {
47$('#cssmenu li.has-sub>a').on('click', function(){
48		$(this).removeAttr('href');
49		var element = $(this).parent('li');
50		if (element.hasClass('open')) {
51			element.removeClass('open');
52			element.find('li').removeClass('open');
53			element.find('ul').slideUp();
54		}
55		else {
56			element.addClass('open');
57			element.children('ul').slideDown();
58			element.siblings('li').children('ul').slideUp();
59			element.siblings('li').removeClass('open');
60			element.siblings('li').find('li').removeClass('open');
61			element.siblings('li').find('ul').slideUp();
62		}
63	});
64
65	$('#cssmenu>ul>li.has-sub>a').append('<span class="holder"></span>');
66
67	(function getColor() {
68		var r, g, b;
69		var textColor = $('#cssmenu').css('color');
70		textColor = textColor.slice(4);
71		r = textColor.slice(0, textColor.indexOf(','));
72		textColor = textColor.slice(textColor.indexOf(' ') + 1);
73		g = textColor.slice(0, textColor.indexOf(','));
74		textColor = textColor.slice(textColor.indexOf(' ') + 1);
75		b = textColor.slice(0, textColor.indexOf(')'));
76		var l = rgbToHsl(r, g, b);
77		if (l > 0.7) {
78			$('#cssmenu>ul>li>a').css('text-shadow', 'none');
79			$('#cssmenu>ul>li>a>span').css('border-color', 'rgba(0, 0, 0, .35)');
80		}
81		else
82		{
83			$('#cssmenu>ul>li>a').css('text-shadow', 'none');
84			$('#cssmenu>ul>li>a>span').css('border-color', 'rgba(255, 255, 255, .35)');
85		}
86	})();
87
88	function rgbToHsl(r, g, b) {
89	    r /= 255, g /= 255, b /= 255;
90	    var max = Math.max(r, g, b), min = Math.min(r, g, b);
91	    var h, s, l = (max + min) / 2;
92
93	    if(max == min){
94	        h = s = 0;
95	    }
96	    else {
97	        var d = max - min;
98	        s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
99	        switch(max){
100	            case r: h = (g - b) / d + (g < b ? 6 : 0); break;
101	            case g: h = (b - r) / d + 2; break;
102	            case b: h = (r - g) / d + 4; break;
103	        }
104	        h /= 6;
105	    }
106	    return l;
107	}
108});
109} )( jQuery );
110
111$(document).ready(function() {
112	$('article .contenttable').cardtable();
113	
114});
115$(document).ready(function() {
116	
117	
118	
119    $("#tweetfeed").owlCarousel({
120        autoPlay: 3000,
121        stopOnHover: true,
122        navigation: true,
123        pagination: false,
124        goToFirstSpeed: 2000,
125        singleItem: true,
126        autoHeight: true,
127        transitionStyle: "fade"
128    });
129
130    $('#tabs li a').click(function(e) {
131        $('#tabs li, #content, .current').removeClass('current');
132        $('#content p').removeClass('fadeInLeft animated');
133        $(this).parent().addClass('current');
134        var currentTab = $(this).attr('href');
135		var tabbedLink = currentTab.split('#');
136        $('#content #'+ tabbedLink[1]).addClass('current');
137        $('#content p').addClass('fadeInLeft animated');
138        e.preventDefault();
139    });
140
141	
142	
143	
144	
145    // Vertical Tab
146    "use strict";
147    $('#verticalTab2').easyResponsiveTabs({
148        type: 'vertical',
149        width: 'auto',
150        fit: true
151    });
152
153    // Prettyphoto
154    "use strict";
155    $("a[class^='prettyPhoto']").prettyPhoto({
156        theme: 'pp_default'
157    });
158
159    // Vertical Tab
160    "use strict";
161    $('#verticalTab').easyResponsiveTabs({
162        type: 'vertical',
163        width: 'auto',
164        fit: true
165    });
166
167    // Vertical Tab
168    "use strict";
169    $('#verticalTab3').easyResponsiveTabs({
170        type: 'horizontal',
171        width: 'auto',
172        fit: true
173    });
174
175    // Clients
176    "use strict";
177    var owl = $("#m-clients");
178    owl.owlCarousel({
179        itemsCustom: [
180            [0, 1],
181            [450, 2],
182            [600, 2],
183            [700, 2],
184            [1000, 3],
185            [1200, 4],
186            [1400, 4],
187            [1600, 4]
188        ],
189        navigation: true,
190        pagination: false
191    });
192
193    // Animated Skills
194    $('.round-skills').appear(function() {
195        options = {
196            img1: 'images/c1.png',
197            img2: 'images/c3.png',
198            speed: 10,
199            percent: 10,
200            limit: 42,
201            onInit: function() {
202                console.log('init');
203            },
204            onProgress: function(p) { /*console.log('progress',p);*/ },
205            onComplete: function(p) {
206                console.log('complete', p);
207            }
208        };
209        myplugin = $('#skill1').cprogress(options);
210    }, {
211        accX: 0,
212        accY: -200
213    });
214
215    $('.round-skills').appear(function() {
216        options = {
217            img1: 'images/c1.png',
218            img2: 'images/c3.png',
219            speed: 10,
220            percent: 10,
221            limit: 68,
222            onInit: function() {
223                console.log('init');
224            },
225            onProgress: function(p) { /*console.log('progress',p);*/ },
226            onComplete: function(p) {
227                console.log('complete', p);
228            }
229        };
230        myplugin = $('#skill2').cprogress(options);
231    }, {
232        accX: 0,
233        accY: -200
234    });
235
236    $('.round-skills').appear(function() {
237        options = {
238            img1: 'images/c1.png',
239            img2: 'images/c3.png',
240            speed: 10,
241            percent: 10,
242            limit: 30,
243            onInit: function() {
244                console.log('init');
245            },
246            onProgress: function(p) { /*console.log('progress',p);*/ },
247            onComplete: function(p) {
248                console.log('complete', p);
249            }
250        };
251        myplugin = $('#skill3').cprogress(options);
252    }, {
253        accX: 0,
254        accY: -200
255    });
256
257    // Testimonials
258    "use strict";
259    $("#testimonials").owlCarousel({
260        navigation: true, // Show next and prev buttons
261        pagination: false,
262        slideSpeed: 300,
263        paginationSpeed: 400,
264        singleItem: true
265    });
266
267	
268	  // news
269    /*"use strict";
270    $("#startlatest").owlCarousel({
271	itemsCustom: [
272            [0, 1],
273            [450, 3],
274            [600, 3],
275            [700, 3],
276            [1000, 3],
277            [1200, 3],
278            [1400, 3],
279            [1600, 3]
280        ],
281        navigation: true,
282        pagination: false
283    });
284
285	*/
286	
287	
288    // Animated Flat Skills
289    "use strict";
290    $('.flat-skills').appear(function() {
291        $("#f-skill1 span").attr('style', 'width:95%;');
292        $("#f-skill2 span").attr('style', 'width:39%;');
293        $("#f-skill3 span").attr('style', 'width:75%;');
294        $("#f-skill4 span").attr('style', 'width:23%;');
295        $("#f-skill5 span").attr('style', 'width:52%;');
296    }, {
297        accX: 0,
298        accY: -200
299    });
300
301    $("html").niceScroll();
302
303    $('#toggle-view li').click(function() {
304        var text = $(this).children('div.panel');
305        if (text.is(':hidden')) {
306            text.slideDown('200');
307            $(this).children('span').addClass('minus-ico');
308            $(this).children('span').removeClass('plus-ico');
309        } else {
310            text.slideUp('200');
311            $(this).children('span').addClass('plus-ico');
312            $(this).children('span').removeClass('minus-ico');
313        }
314    });
315
316});
317
318$(window).load(function() {
319    $('#home-slider').flexslider({
320        animation: "slide",
321        slideshow: true,
322        directionNav: false,
323        slideshowSpeed: 6000,
324        animationSpeed: 1000,
325        controlsContainer: ".slider",
326        controlNav: true,
327        manualControls: ".home-slider-nav li",
328        start: function(slider) {
329            $('body').removeClass('loading');
330        }
331    });
332});
333
334
335/* Animation */
336$('[data-animated]').each(function() {
337    $(this).addClass('animated-out');
338});
339
340$(window).scroll(function() {
341    var scroll = $(window).scrollTop();
342    var height = $(window).height();
343    $('.animated-out[data-animated]').each(function() {
344        var $this = $(this);
345        if (scroll + height >= $this.offset().top) {
346            var delay = parseInt($this.attr('data-animated'));
347            if (isNaN(delay) || 0 === delay) {
348                $this.removeClass('animated-out').addClass('animated-in');
349            } else {
350                setTimeout(function() {
351                    $this.removeClass('animated-out').addClass('animated-in');
352                }, delay);
353            }
354        }
355    });
356});

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.