PageSourceSearch

https://www.marathon-reise-service.de/typo3conf/ext/sitepackage/Re…/JavaScript/smoothscroll.js?1714140952

js marathon-reise-service.de collected 2026-10-06 13:21:38 UTC 3,837 bytes, 140 lines download raw bytes

1(function($) {
2  "use strict"; // Start of use strict
3	
4	$(function () { objectFitImages() });
5	
6var a = {
7	initialize: function() {
8		this.event();this.navbarSticky();this.logoSmall();
9	},
10	event : function(){},
11	
12	navbarSticky : function(){
13	var sticky = function(el, limit, scrolltop){
14		if( scrolltop > limit + 100 ) el.addClass('navsmall sticked').removeClass('in');;
15		if( scrolltop > limit + 240 ) el.addClass('in fixed-top');
16		if( scrolltop == 0 ) el.removeClass('navsmall sticked').removeClass('in fixed-top');
17		}//sticky()
18
19		if( $('.sticky-fade')[0] ){
20			var _limit = $('.sticky-fade').outerHeight(),
21					_scrollTop = $(window).scrollTop();
22						sticky($('.sticky-fade'), _limit, _scrollTop);
23				$(window).on('scroll',function(){
24					_scrollTop = $(window).scrollTop();
25					sticky($('.sticky-fade'), _limit, _scrollTop);
26				});
27		}
28	},
29	
30	logoSmall : function(){
31	var small = function(el, limit, scrolltop){
32		if( scrolltop > limit ) el.addClass('mini');
33		if( scrolltop == 0 ) el.removeClass('mini');
34		}//sticky()
35
36		if( $('.logo-sticky')[0] ){
37			var _limit = $('.logo-sticky').outerHeight(),
38					_scrollTop = $(window).scrollTop();
39						small($('.logo-sticky'), _limit, _scrollTop);
40				$(window).on('scroll',function(){
41					_scrollTop = $(window).scrollTop();
42					small($('.logo-sticky'), _limit, _scrollTop);
43				});
44		}
45	}
46};
47
48	// Initialize
49	$(document).ready(function(){ a.initialize() });
50
51
52/**	counter	*/
53$(document).ready(function () {
54    var observer = new IntersectionObserver(function (entries, observer) {
55    entries.forEach(function (entry) {
56        if (entry.isIntersecting) {
57        $(entry.target).prop("logo-slide", 0).animate(
58           {'width':'100%'},1000
59        );
60        // Stop observing the element to prevent duplicate animations
61        observer.unobserve(entry.target);
62        }
63    });
64    });
65    // Observe each .counterup element
66    $(".logo-slideimg").each(function () {
67    observer.observe(this);
68    });
69});
70
71	
72/**	counter	*/
73$(document).ready(function () {
74// code from https://code.mukto.info/counter-up-with-a-simple-jquery/
75    // Create new intersection observer
76    var observer = new IntersectionObserver(function (entries, observer) {
77    entries.forEach(function (entry) {
78        // If the element is in view, start counter animation
79        if (entry.isIntersecting) {
80        $(entry.target).prop("Counter", 0).animate(
81            {
82            Counter: $(entry.target).text(),
83            },
84            {
85            duration: 1000,
86            easing: "swing",
87            step: function (now) {
88                $(entry.target).text(Math.ceil(now));
89            },
90            }
91        );
92        // Stop observing the element to prevent duplicate animations
93        observer.unobserve(entry.target);
94        }
95    });
96    });
97
98    // Observe each .counterup element
99    $(".counterup").each(function () {
100    observer.observe(this);
101    });
102});
103
104/**	console log	
105$(document).ready(function(){
106    $('.dropdown-toggle').on('click', function(){
107      $('.dropdown-menu').addClass('d-none');
108    });  
109  })
110	
111/**	console log		
112  $(document).ready(function(){
113    $('.dropdown-toggle').on('click', function(){
114      console.log("TEST");
115    });  
116  })
117*/	
118/**	toogler	
119$('.navbar-nav>li>a').click(function(){
120    $('.offcanvas').offcanvas('hide');
121});	
122*/	
123
124/**	Bootstrap 5 Offcavas MouseOver	
125$(document).ready(function() {
126      $('.dropdown').hover(function() {
127        $(this).addClass('show');
128        $(this).find('.dropdown-menu').addClass('show');
129      }, function() {
130        $(this).removeClass('show');
131        $(this).find('.dropdown-menu').removeClass('show');
132      });
133});
134*/
135	
136
137})(jQuery);
138
139
140

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.