PageSourceSearch

https://www.pemphigus.org/wp-content/themes/elevation_theme/assets…/carousel__sponsors_events.js?ver=7.1

js pemphigus.org collected 2026-09-24 21:49:02 UTC 4,265 bytes, 102 lines download raw bytes

1var jQ = jQuery.noConflict();
2jQ(document).ready(function(){
3    
4  function sameheight1($object){
5    var Box1 = 0;
6      jQ($object).each(function(){  
7        if(jQ(this).height() > Box1){  
8          Box1 = jQ(this).height();  
9        }
10    });    
11    jQ($object).height(Box1);
12  }  
13  /*Start function Slider Wrap into Item--------------*/
14    function itemswrap($path, $number, $wrap){
15      var divgallry = jQ($path);
16      for(var i = 0; i < divgallry.length; i+=$number) {
17        divgallry.slice(i, i+$number).wrapAll($wrap);
18      }    
19    }
20    function itemsunwrap($path){
21      jQ($path).unwrap();
22    }
23    
24    function bulletsWrap($sliderID){
25      var indicatorsProduct= jQ($sliderID + " .carousel-item").size();  
26      var row = jQ('<li data-target="'+$sliderID+'"></li>');
27      
28      for (var i=0; i<indicatorsProduct; i++) {
29          jQ($sliderID + ' .carousel-indicators').append(row.clone());
30      }
31      var counterProduct=-1;
32      jQ($sliderID + " .carousel-indicators li").each(function(){
33      counterProduct++;
34          var self=jQ(this);
35          self.attr('data-slide-to', counterProduct);
36      });  
37  
38      jQ($sliderID + " .carousel-indicators li").first().addClass('active');
39    }
40  
41  jQ("#carousel__sponsors_events").swiperight(function() {  
42    jQ(this).carousel('prev');  
43  });  
44  jQ("#carousel__sponsors_events").swipeleft(function() {  
45    jQ(this).carousel('next');  
46  }); 
47  /*END function Slider Wrap into Item----------------------------*/
48
49  function myOrientResizeFunction(){          
50     // Large devices (desktops, 992px and up)
51     if (jQ(window).width() >= 1199.98){
52
53      itemsunwrap('#carousel__sponsors_events .row-vList .single-sponsor');
54      itemsunwrap('#carousel__sponsors_events .carousel-item .single-sponsor');
55      
56      itemswrap("#carousel__sponsors_events .single-sponsor", 4, '<div class="row-vList"></div>');
57      itemswrap("#carousel__sponsors_events .row-vList", 1, '<div class="carousel-item"></div>');
58        
59    } else if (jQ(window).width() > 991.98) {
60      
61      itemsunwrap('#carousel__sponsors_events .row-vList .single-sponsor');
62      itemsunwrap('#carousel__sponsors_events .carousel-item .single-sponsor');
63      //sameheight1("#carousel__sponsors_events .single-sponsor ");
64      itemswrap("#carousel__sponsors_events .single-sponsor", 3, '<div class="row-vList"></div>');
65      itemswrap("#carousel__sponsors_events .row-vList", 1, '<div class="carousel-item"></div>');
66
67
68    } else if (jQ(window).width() > 767.98) {
69
70      itemsunwrap('#carousel__sponsors_events .row-vList .single-sponsor');
71      itemsunwrap('#carousel__sponsors_events .carousel-item .single-sponsor');
72      //sameheight1("#carousel__sponsors_events .single-sponsor ");
73      itemswrap("#carousel__sponsors_events .single-sponsor", 2, '<div class="row-vList"></div>');
74      itemswrap("#carousel__sponsors_events .row-vList", 1, '<div class="carousel-item"></div>');
75    } else if (jQ(window).width() > 575.98) {
76
77      itemsunwrap('#carousel__sponsors_events .row-vList .single-sponsor');
78      itemsunwrap('#carousel__sponsors_events .carousel-item .single-sponsor');
79      //sameheight1("#carousel__sponsors_events .single-sponsor ");
80      itemswrap("#carousel__sponsors_events .single-sponsor", 2, '<div class="row-vList"></div>');
81      itemswrap("#carousel__sponsors_events .row-vList", 1, '<div class="carousel-item"></div>');
82    } else{
83      
84      itemsunwrap('#carousel__sponsors_events .row-vList .single-sponsor');
85      itemsunwrap('#carousel__sponsors_events .carousel-item .single-sponsor');
86      //sameheight1("#carousel__sponsors_events .single-sponsor ");
87      itemswrap("#carousel__sponsors_events .single-sponsor", 1, '<div class="row-vList"></div>');
88      itemswrap("#carousel__sponsors_events .row-vList", 1, '<div class="carousel-item"></div>');
89    }
90
91    jQ('#carousel__sponsors_events li').remove();
92      bulletsWrap('#carousel__sponsors_events');
93    jQ('#carousel__sponsors_events .carousel-item').first().addClass('active');
94    
95
96  } myOrientResizeFunction();
97
98    jQ(window).resize(function(){
99      myOrientResizeFunction();
100    });
101
102});

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.