PageSourceSearch

https://eeb2.eu/swfiles/includes/pagecomps_2.js

js eeb2.eu collected 2026-09-26 02:35:19 UTC 6,274 bytes, 176 lines download raw bytes

1$(document).ready(function(){
2  if($('.s-comp7 .s-form input.s-datepicker').length){
3    $('.s-comp7 .s-form input.s-datepicker').datepicker({disableTouchKeyboard: true, todayHighlight: true,  container: 'body'});
4  }
5});
6
7$(document).ready(function(){
8  if($('.s-comp22 .s-form input.s-datepicker').length){
9    $('.s-comp22 .s-form input.s-datepicker').datepicker({autoclose: true, disableTouchKeyboard: true, format:'dd/mm/yyyy', startView: 2, todayHighlight: false, weekStart: 1,  container: 'body'});
10  }
11});
12
13$(document).ready(function(){
14  $('.s-comp6 .s-tile .s-img-bg img').each(function() {
15    var parentImg = $(this).parent();
16    var parentBg = parentImg.css('background-size');
17    if (parentBg === 'cover' || parentBg === 'contain') {
18      $(this).css('opacity', '0');
19    }
20  });
21});
22$(window).load(function () {
23  var ellipsis;
24  var ellipsis = 'true'; var clampLines = 5; 
25  if (ellipsis === 'true') {
26    var currentID = 0;
27    $('.s-comp6 .s-desc').each(function(){
28        $(this).attr('id', 'desc6' + currentID);
29        var clampText = $('#desc6'+ currentID)[0];
30        clamp(clampText, clampLines);
31        currentID++;
32    });
33  }
34});
35
36$('document').ready(function(){
37  $('.accordion-alt .panel').each(function(i){
38    $(this).find('.panel-title a').attr('href','#panelnr-'+i);
39    $(this).find('div:nth-child(2)').attr('id','panelnr-'+i);
40  });
41});
42
43$(document).ready(function(){
44  $('.s-comp38 .s-tile .s-img-bg img').each(function() {
45    var parentImg = $(this).parent();
46    var parentBg = parentImg.css('background-size');
47    if (parentBg === 'cover' || parentBg === 'contain') {
48      $(this).css('opacity', '0');
49    }
50  });
51});
52$(window).load(function () {
53  var ellipsis;
54  var ellipsis = 'true'; var clampLines = 3; 
55  if (ellipsis === 'true') {
56    var currentID = 0;
57    $('.s-comp38 .s-desc').each(function(){
58        $(this).attr('id', 'desc38' + currentID);
59        var clampText = $('#desc38'+ currentID)[0];
60        clamp(clampText, clampLines);
61        currentID++;
62    });
63  }
64});
65
66$(document).ready(function(){
67  $('.s-comp40 .s-tile .s-img-bg img').each(function() {
68    var parentImg = $(this).parent();
69    var parentBg = parentImg.css('background-size');
70    if (parentBg === 'cover' || parentBg === 'contain') {
71      $(this).css('opacity', '0');
72    }
73  });
74});
75$(window).load(function () {
76  var ellipsis;
77  var ellipsis = 'true'; var clampLines = 3; 
78  if (ellipsis === 'true') {
79    var currentID = 0;
80    $('.s-comp40 .s-desc').each(function(){
81        $(this).attr('id', 'desc40' + currentID);
82        var clampText = $('#desc40'+ currentID)[0];
83        clamp(clampText, clampLines);
84        currentID++;
85    });
86  }
87});
88
89$(document).ready(function(){
90
91    $('.s-comp43 .flexslider.s-thumbnails .slides > li, .s-comp43 .flexslider.s-slider.slide-cover .slides > li, .s-comp43 .flexslider.s-slider.slide-contain .slides > li').each(function() {
92        var imgSrc = $(this).find('img').attr('src');
93        $(this).css('background', 'url("' + imgSrc + '")');
94        $(this).find('img').hide();
95        $(this).css('background-position', 'initial');
96    });
97
98    // Fade in background images
99
100    setTimeout(function() {
101        $('.s-comp43 .flexslider.s-slider .slides > li').each(function() {
102            $(this).addClass('fadeIn');
103        });
104    }, 200);
105
106  $(".s-comp43 div.flexslider.mainslider").addClass(function(index) {return "mainslider-id" + index;});
107  $(".s-comp43 div.flexslider.lightslider").addClass(function(index) {return "lightslider-id" + index;});
108  $(".s-comp43 div.flexslider.thumbslider").addClass(function(index) {return "thumbslider-id" + index;});
109  $(".s-comp43 div.flexslider.s-thumbnails").addClass(function(index) {return "thumbslider-id" + index;});
110
111  $('.s-comp43 div.flexslider .s-content-onslider').each(function(){
112    $(this).closest('.s-comp43 div.flexslider').prepend(this);
113    $(this).wrapInner('<div class="row"></div>');
114  });
115
116  if ( $('.s-comp43 div.flexslider.s-thumbnails').length ){
117    $('.s-comp43 div.flexslider.s-thumbnails .s-slider-content').hide();
118  }
119
120  $('.flexslider.lightslider').each(function(i){
121    $(this).find('ul.slides li > a').attr('rel','prettyPhoto[gal'+ i +']');
122  });
123
124});
125$(window).load(function(){
126  
127  if($('.s-comp43 .mainslider').length){
128    $('.s-comp43 .mainslider').flexslider({
129      animation: 'slide', animationLoop: true, smoothHeight: true, slideshow: true, slideshowSpeed:6000, pauseOnAction: true, after: function(slider) { if (!slider.playing) { slider.play();}}, touch: false, controlNav: true, directionNav: true,prevText: '',nextText: '', 
130      easing: "swing"
131    });
132  }  // Thumbnails
133
134  if($('.s-comp43 .flexslider.s-thumbnails').length){
135
136    $('.s-comp43 .flexslider.s-thumbnails').each(function(index){
137
138      var c1 = '.s-comp43 .flexslider.s-thumbnails.thumbslider-id'+index;
139      var c2 = '.s-comp43 .s-slider.thumbslider.thumbslider-id'+index;
140
141      console.log(c1);
142      console.log(c2);
143
144      $(c1).flexslider({
145        animation: 'slide', directionNav: true, itemWidth:250, itemMargin:0, 
146        easing: "swing",
147        controlNav: false,
148        animationLoop: false,
149        slideshow: false,
150        asNavFor: c2
151      });      // Thumbnail Slider
152        
153        $(c2).flexslider({
154          animation: 'slide', direction: 'horizontal', animationLoop: true, slideshow: false, 
155          sync: c1
156        });
157
158    }); 
159  }  // Lightbox Slider
160
161    if($('.s-comp43 .lightslider').length){
162      $('.s-comp43 .lightslider').flexslider({
163        animation: 'slide', animationLoop: true, smoothHeight: true, slideshow: true, slideshowSpeed:7000, pauseOnAction: true, after: function(slider) { if (!slider.playing) { slider.play();}}, touch: false, directionNav: true,prevText: '',nextText: '', 
164        easing: "swing",
165        init: function(){
166          $(".s-comp43 .lightslider .clone a").removeAttr("rel"); 
167        }
168      });
169    }
170
171  if(($('.s-comp43 .flexslider.thumbslider').length) || ($('.s-comp43 .mainslider').length) || ($('.s-comp43 .lightslider').length)){
172    $('.s-comp43 .flex-direction-nav li a').html("");
173  }
174
175});  
176

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.