PageSourceSearch

https://www.selwo.es/etc.clientlibs/parques-reunidos-catalog/clien…-1cba18262891e1f00f3db071dc821232-lc.min.js

js selwo.es collected 2026-09-24 19:38:04 UTC 5,455 bytes, 115 lines download raw bytes

1$(document).ready(function(){   
2    var url = window.location.href; 
3    var title = $("#titleComponentCC27").text();
4    var descItem = $(".access_funnel .desc");
5
6    $(".cc27_funnelaccess").each(function(){        
7        if($(this).hasClass("white-background")){   
8            $(this).children(".cc27").addClass("container");     
9        }
10        var mode = $("#editionCC27").text();
11 
12        if(mode=="false"){
13            var sticky = $(this).find("#stickyCC27").text();
14            if( sticky == "true"){         
15                $(this).children(".cc27").addClass("sticky");
16                $(this).children(".cc27").css('border-top','0.5px solid #979797');
17                $(this).css('border-top','unset');
18                $(this).children(".cc27").removeClass('container'); 
19                var stickyHeight =  $(".cc27").outerHeight();
20                $(".footer").css("padding-bottom",stickyHeight + "px");            
21            }
22        }
23        var numButtons1 = $('.button1 .cmp-button__text',this).text().length;
24        var numButtons2 = $('.button2 .cmp-button__text',this).text().length;
25        if(numButtons2 == 0) {
26            $('.button2',this).hide();
27        }else if(numButtons1 == 0) {
28            $('.button1',this).hide();
29        } else if(numButtons1 > 0 && numButtons2 > 0) {
30            $('.desc',this).hide();
31        }
32        //Ocultando partes que no estan visibles
33        var prices = $('.prices .price p',this).text().trim().length;
34        var initialPrices = $('.prices .initialPrice p',this).text().trim().length;
35        var titleText = $('.desc .text p',this).text().trim().length;
36        if(prices == 0) {
37            $('.prices .price',this).hide();
38        }else if(initialPrices == 0){
39            $('.prices .initialPrice',this).hide();
40        }
41        if(titleText == 0 && prices == 0 && initialPrices == 0) {
42            $('.desc',this).hide();
43        }
44        if(titleText > 0 && (prices == 0 && initialPrices == 0) && (numButtons1 > 0 || numButtons2 > 0)) {
45            $('.desc .text p',this).text(function(){
46                return $(this).text().trim().length > 102 ? $(this).text().substr(0, 102) : $(this).text();
47            });
48        }else if(titleText > 0 && (prices > 0 || initialPrices > 0) && (numButtons1 > 0 || numButtons2 > 0)) {
49            $('.desc .text p',this).text(function(){
50                return $(this).text().trim().length > 30 ? $(this).text().substr(0, 30) : $(this).text();
51            });
52        }
53        if(titleText == 0 && prices == 0 && initialPrices == 0 && numButtons1 > 0 && numButtons2 == 0 ) {
54            //$('.desc',this).hide();
55            $('.dark-solid,.dark-outline,.border-solid,.border-outline',this).addClass('oneButton');
56        }else if(titleText == 0 && prices == 0 && initialPrices == 0 && numButtons1 == 0 && numButtons2 > 0 ) {
57            $('.desc',this).hide();
58            $('.dark-solid,.dark-outline,.border-solid,.border-outline',this).addClass('oneButton');
59        }
60        if(titleText <= 0 && $(window).width() <= 768){
61            //Quitado de esta funcionalidad a peticion del cliente en JSMGRPR-60162
62            //$('.cc27_funnelaccess .access_funnel .desc').remove();
63            /*$('.cc27_funnelaccess .access_funnel .buttons').css({
64                'width': '100%',
65                'margin': '0 auto',
66            });*/
67            $('.cc27_funnelaccess .access_funnel').css('padding', '5px');
68
69            if(numButtons1 >= 18 || numButtons2 >= 18){
70                $('.cc27_funnelaccess .access_funnel .buttons .button1.ca01_button.button .border-solid').css('height','auto');
71                var alturaBoton1 = $('.cc27_funnelaccess .access_funnel .buttons .button1.ca01_button.button .border-solid').outerHeight();
72                var alturaBoton2 = $('.cc27_funnelaccess .access_funnel .buttons .button2.ca01_button.button .border-solid').outerHeight();
73                var greaterHeight = Math.max(alturaBoton1, alturaBoton2);
74                
75                $('.cc27_funnelaccess .access_funnel .buttons .button1.ca01_button.button .border-solid').css('height', greaterHeight);
76                $('.cc27_funnelaccess .access_funnel .buttons .button2.ca01_button.button .border-solid').css('height', greaterHeight);
77            }
78        }
79    })   
80    $(".cc27_funnelaccess .ca01_button .cmp-button").click(function(ev){
81     //   ev.preventDefault();    impide el target_blank del evento    
82        var labelCTA = $(this).text();
83        var link = $(this).attr("href");
84        dataLayer.push({
85            'category': 'Interaccion',
86            'action': title,
87            'label': labelCTA,
88            'event': 'eventga',
89            'urlmodule': url,
90            'Gate': namePark,
91        });
92       // setTimeout(function() {window.location = link}, 500);
93       // return false;
94    });
95
96    descItem.each(function(item, element) {
97        if($(this).children().length == 0) {
98            $(this).hide();
99        }
100    })
101
102    const displaySticky = () => {
103        if ($(window).width() <= 1025 && ('.sticky-button').length) {
104            $('.cc27_funnelaccess').css('display', 'none');
105        }
106    }
107    /*displaySticky();
108    const displaySticky = () => {
109        const classStycky = document.querySelectorAll('.sticky-button');
110        if ($(window).width() <= 1025 && classStycky.length) {
111            classStycky.css('display', 'none');
112        }
113    }
114    displaySticky();*/
115}) 

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.