PageSourceSearch

https://www.baustoffe-frajo.de/perisoft_temp/contao_files/theme/js/main.js

js baustoffe-frajo.de collected 2026-10-07 21:25:10 UTC 3,875 bytes, 133 lines download raw bytes

1// var gaProperty = 'UA-120790053-1';
2// var disableStr = 'ga-disable-' + gaProperty;
3// if (document.cookie.indexOf(disableStr + '=true') > -1) {
4//   window[disableStr] = true;
5// }
6// function gaOptout() {
7//   document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/';
8//   window[disableStr] = true;
9// }
10
11// 	(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
12//   (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
13//   m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
14//   })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
15
16//   ga('create', 'UA-120790053-1', 'auto');
17//   ga('set', 'anonymizeIp', true);
18//   ga('send', 'pageview');
19
20var head = document.getElementsByTagName('head')[0];
21
22// Save the original method
23var insertBefore = head.insertBefore;
24
25// Replace it!
26head.insertBefore = function(newElement, referenceElement) {
27
28    if (newElement.href && newElement.href.indexOf('https://fonts.googleapis.com/css?family=Roboto') === 0) {
29
30        console.info('Prevented Roboto from loading!');
31        return;
32    }
33
34    insertBefore.call(head, newElement, referenceElement);
35}
36;
37
38
39$(document).ready(function() {
40    $('.mod_dlh_googlemaps .dlh_googlemap #confirm-googlemaps a[href="#"]').click(function(e){
41        e.preventDefault();
42    });
43    
44    $(window).scroll(function() {   
45			var scroll = $(window).scrollTop();
46
47	     	  var windowPos = $(window).scrollTop(); // get the offset of the window from the top of page
48			  var windowHeight = $(window).height(); // get the height of the window
49			  var docHeight = $(document).height();
50
51			  if(windowPos>50){
52			  	$('#header').addClass('scrolled-header');
53			  }else{
54			  	$('#header').removeClass('scrolled-header');
55			  }
56    });
57
58    $('.burger,.custom-burger').click(function(){
59        $('.navigation').toggleClass('show-nav');
60    });
61    $('#header a[href^="#"],.v-button a[href^="#"]').click(function(e){
62        e.preventDefault();
63        var $href = $(this).attr('href');
64        var $offset = $('#header').outerHeight();
65        if($($href).length){
66            if($('.navigation').hasClass('show-nav')){
67                $('.burger,.custom-burger').click();
68            }
69            $('html, body').animate({ scrollTop: $($href+'').offset().top - $offset}, 500, 'linear');
70
71        }
72
73    });
74    $('a.u-scroll-page').click(function(e){
75        var $href = $(this).attr('href');
76        var $id = $href.split('#')[1];
77        if($('#'+$id).length){
78            $href = '#'+$id;
79            e.preventDefault();
80
81            var $offset = $('#header').outerHeight();
82            if($($href).length){
83                $('html, body').animate({ scrollTop: $($href+'').offset().top - $offset}, 500, 'linear');
84            }
85            if($('.navigation').hasClass('show-nav')){
86                $('.burger,.custom-burger').click();
87            }
88        }
89
90
91    });
92
93    $('.single-counter-container').viewportChecker(
94        {
95            callbackFunction: function (elem, action) {
96                $(elem).find('.counter-timer').countTo();
97            }
98        }
99    );
100    $('.v-submit-form-button a').click(function(e){
101        e.preventDefault();
102        $('.widget-submit button').click();
103    });
104
105    $(window).click(function() {
106        if($('.navigation').hasClass('show-nav')){
107            $('.navigation').removeClass('show-nav');
108        }
109    });
110
111
112    $('#header').click(function(event){
113        event.stopPropagation();
114    });
115
116
117
118});
119
120$(window).load(function(){
121    $('.lazy').lazy();
122    console.log('loaded');
123    paddingHeader();
124});
125
126$(window).resize(function(){
127    paddingHeader();
128});
129
130function paddingHeader() {
131    var $header_height = $('#header').outerHeight();
132    $('body').css('padding-top',$header_height);
133}

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.