PageSourceSearch

https://therapiezentrum-feiser.de/files/1902235/style/js/nw.js

js therapiezentrum-feiser.de collected 2026-10-09 23:18:17 UTC 5,534 bytes, 144 lines download raw bytes

1jQuery(document).ready(function($){
2
3  $(function(){
4  
5  /* Fade-Out Languages Höhe Content
6  ----------------------------------------- */
7    $(window).scroll(function(){
8      if ($(window).scrollTop() > 50 ) {
9          $('.languages').fadeOut('slow');
10      } else if ($(window).scrollTop() < 100) {
11          $('.languages').fadeIn('slow');
12      }
13    });
14
15    
16    /* Lightbox
17    ------------------------------------------ */
18
19    if(document.getElementById('lightbox')){
20      $( function(){
21      
22        var overlayOn = function()
23              {
24                $( '<div id="imagelightbox-overlay"></div>' ).appendTo( 'body' );
25                $(".meanmenu-reveal").hide();
26              },
27            overlayOff = function()
28              {
29                $( '#imagelightbox-overlay' ).remove();
30                $(".meanmenu-reveal").show();
31              },
32            activityIndicatorOn = function()
33              {
34                $( '<div id="imagelightbox-loading"><div></div></div>' ).appendTo( 'body' );
35              },
36            activityIndicatorOff = function()
37              {
38                $( '#imagelightbox-loading' ).remove();
39              },
40            captionOn = function()
41              {
42                var description = $( 'a[href="' + $( '#imagelightbox' ).attr( 'src' ) + '"] img' ).attr( 'alt' );
43                if( description.length > 0 && description != "/" )
44                  $( '<div id="imagelightbox-caption">' + description + '</div>' ).appendTo( 'body' );
45              },
46            captionOff = function()
47              {
48                $( '#imagelightbox-caption' ).remove();
49              },
50            closeButtonOff = function()
51              {
52                $( '#imagelightbox-close' ).remove();
53              },
54            closeButtonOn = function( instance )
55              {
56                $( '<a href="#" id="imagelightbox-close">Close</a>' ).appendTo( 'body' ).on( 'click touchend', function(){ $( this ).remove(); instance.quitImageLightbox(); return false; });
57              };
58
59            // ARROWS
60
61            arrowsOn = function( instance, selector )
62            {
63              var $arrows = $( '<button type="button" class="imagelightbox-arrow imagelightbox-arrow-left"></button><button type="button" class="imagelightbox-arrow imagelightbox-arrow-right"></button>' );
64
65              $arrows.appendTo( 'body' );
66
67              $arrows.on( 'click touchend', function( e )
68              {
69                e.preventDefault();
70
71                var $this = $( this ),
72                  $target = $( selector + '[href="' + $( '#imagelightbox' ).attr( 'src' ) + '"]' ),
73                  index = $target.index( selector );
74
75                if( $this.hasClass( 'imagelightbox-arrow-left' ) )
76                {
77                  index = index - 1;
78                  if( !$( selector ).eq( index ).length )
79                    index = $( selector ).length;
80                }
81                else
82                {
83                  index = index + 1;
84                  if( !$( selector ).eq( index ).length )
85                    index = 0;
86                }
87
88                instance.switchImageLightbox( index );
89                return false;
90              });
91            },
92            arrowsOff = function()
93            {
94              $( '.imagelightbox-arrow' ).remove();
95            };
96
97            if($('ul').find('.lightbox').length) {
98              $('.lightbox').each(function() {
99                $(this).on('click', function() {
100                  var randomNumber = Math.random().toString(36).slice(-8);
101                    
102                  $(this).closest('ul').attr('rel', randomNumber);
103
104                  var newRel = $(this).closest('ul').attr('rel');
105                  var selectorF = 'ul[rel="' + newRel + '"] a';
106                  var instanceF = $( selectorF ).off().imageLightbox(
107                    {
108                      onStart: function() { overlayOn(); closeButtonOn( instanceF ); arrowsOn( instanceF, selectorF ); },
109                      onEnd: function() { overlayOff(); arrowsOff(); captionOff(); closeButtonOff(); activityIndicatorOff(); },
110                      onLoadStart: function() { captionOff(); activityIndicatorOn(); },
111                      onLoadEnd: function() { $( '.imagelightbox-arrow' ).css( 'display', 'block' ); captionOn(); activityIndicatorOff(); }
112                    }
113                  );
114                });
115              });
116            } 
117            else {
118              var selectorF = 'a.lightbox';
119              var instanceF = $( selectorF ).off().imageLightbox(
120                {
121                  onStart: function() { overlayOn(); closeButtonOn( instanceF ); arrowsOn( instanceF, selectorF ); },
122                  onEnd: function() { overlayOff(); arrowsOff(); captionOff(); closeButtonOff(); activityIndicatorOff(); },
123                  onLoadStart: function() { captionOff(); activityIndicatorOn(); },
124                  onLoadEnd: function() { $( '.imagelightbox-arrow' ).css( 'display', 'block' ); captionOn(); activityIndicatorOff(); }
125                }
126              );
127            }
128      
129      });
130    }
131    
132    
133    /* Lightbox
134    ------------------------------------------ */
135
136    if(document.getElementById('rslides')){
137      jQuery( function(){
138        jQuery(".rslides").responsiveSlides();
139      });
140    };
141    
142    
143  });
144});

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.