PageSourceSearch

https://www.belli36rooms.com/templates/template_1/js/carousel.js

js belli36rooms.com collected 2026-10-06 00:23:08 UTC 1,947 bytes, 59 lines download raw bytes

1$(document).ready(function(){
2    var contatipocarousel = $('.carouselslide .carousel-showmanymoveone').length;
3    if(contatipocarousel > 0){
4        $('.carouselslide .carousel-showmanymoveone').each(function(){
5            var idcarousel = $(this).attr('id');
6            generacopiaslide(idcarousel);
7            
8            $('#'+idcarousel).carousel({ interval: 4000});
9        });
10        
11        /** Effetti swipe sul carousel **/
12        $(".carousel").swiperight(function(){ $(this).carousel('prev'); });
13        $(".carousel").swipeleft(function(){ $(this).carousel('next'); });
14    }
15    
16});
17
18function generacopiaslide(idcarousel){
19    var countcarousel = 1;
20
21    var numerocarousel = $('#'+idcarousel+'.carousel-showmanymoveone .item').length;
22
23    $('#'+idcarousel+'.carousel-showmanymoveone .item').each(function(){
24        
25        var contanumerofoto = $('#'+idcarousel+'.carousel-showmanymoveone [name="countNC"]').val();
26        var numerofoto = contanumerofoto;
27        
28        if(contanumerofoto == 2){
29            if(countcarousel == numerocarousel){
30                numerofoto++;
31            }
32        }
33        else if(contanumerofoto == 3){
34            if(countcarousel == numerocarousel || countcarousel == numerocarousel-1){
35                numerofoto++;
36            }
37        }      
38        else if(contanumerofoto == 4){
39            if(countcarousel == numerocarousel || countcarousel == numerocarousel-1 || countcarousel == numerocarousel-2){
40                numerofoto++;
41            }
42        }      
43        countcarousel++;
44        
45        var itemToClone = $(this);
46
47        for (var i=1; i<numerofoto; i++) {
48          itemToClone = itemToClone.next();
49
50          if (!itemToClone.length) {
51            itemToClone = $(this).siblings(':first');
52          }
53
54          itemToClone.children(':first-child').clone()
55            .addClass("cloneditem-"+(i))
56            .appendTo($(this));
57        }
58    });
59}

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.