PageSourceSearch

https://www.cirsa.com/wp-content/themes/cirsaTheme/assets/js/search.js?v=1790281855

js cirsa.com collected 2026-09-24 21:43:29 UTC 5,581 bytes, 220 lines download raw bytes

1//Buscador CASINOS por TAXONOMIAS
2$('#busqueda-casinos').submit(function (e) {
3  e.preventDefault();
4
5  //Capturamos el contenido del select
6  var pais = $('#selected-paises').val();
7  var provincia = $('#selected-provincias').val();
8  var ciudad = $('#selected-ciudades').val();
9
10
11  var dataForm = '';
12  dataForm += "&pais=" + pais + "&provincia=" + provincia + "&ciudad=" + ciudad;
13
14  // En este punto ejecutamos la consulta de ajax
15  var data = 'action=searchCasinos' + dataForm;
16
17  $.ajax({
18    type: 'POST',
19    cache: false,
20    url: ajaxurl,
21    data: data,
22    dataType: 'json',
23    beforeSend: function () {
24      $(".loading").show();
25    },
26    success: function (response) {
27      
28      if (response.status == 'ok') {
29        $(".loading").hide();
30        if(response.html){
31          $('.content-items').html(response.html);
32        }else{
33          $('.content-items').html('');
34        }
35       
36        var pais = $('#selected-paises').val();
37        var provincia = $('#selected-provincias').val();
38        var ciudad = $('#selected-ciudades').val();
39
40        if (
41          (pais != '' && pais != undefined) ||
42          (provincia != '' && provincia != undefined) ||
43          (ciudad != '' && ciudad != undefined)
44        ) {
45          $('#limpiar-filtros-casinos').show();
46        }
47
48        dataLayer.push({
49          'event': 'ffiltroCasinos'
50        });
51
52      }
53    },
54    error: function () {
55      $(".loading").hide();
56    }
57  });
58});
59
60//Buscador SALAS por TAXONOMIAS
61$('#busqueda-salas').submit(function (e) {
62  e.preventDefault();
63
64  //Capturamos el contenido del select
65  var pais = $('#selected-paises').val();
66  var provincia = $('#selected-provincias').val();
67  var ciudad = $('#selected-ciudades').val();
68
69  var dataForm = '';
70  dataForm += "&pais=" + pais + "&provincia=" + provincia + "&ciudad=" + ciudad;
71
72  // En este punto ejecutamos la consulta de ajax
73  var data = 'action=searchSalas' + dataForm;
74
75  $.ajax({
76    type: 'POST',
77    cache: false,
78    url: ajaxurl,
79    data: data,
80    dataType: 'json',
81    beforeSend: function () {
82      $(".loading").show();
83    },
84    success: function (response) {
85
86      if (response.status == 'ok') {
87        $(".loading").hide();
88        if(response.html){
89          $('.content-items').html(response.html);
90        }else{
91          $('.content-items').html('');
92        }
93
94        var pais = $('#selected-paises').val();
95        var provincia = $('#selected-provincias').val();
96        var ciudad = $('#selected-ciudades').val();
97
98        
99        if (
100          (pais != '' && pais != undefined) ||
101          (provincia != '' && provincia != undefined) ||
102          (ciudad != '' && ciudad != undefined)
103        ) {
104          $('#limpiar-filtros-casinos').show();
105        }
106
107        dataLayer.push({
108          'event': 'filtroSalas'
109        });
110      }
111    },
112    error: function () {
113      $(".loading").hide();
114    }
115  });
116});
117
118//Buscador MAQUINAS por TAXONOMIAS
119$('#busqueda-maquinas').submit(function (e) {
120  e.preventDefault();
121
122  //Capturamos el contenido del select
123  var pais = $('#selected-paises').val();
124  var provincia = $('#selected-provincias').val();
125  var ciudad = $('#selected-ciudades').val();
126
127  var dataForm = '';
128  dataForm += "&pais=" + pais + "&provincia=" + provincia + "&ciudad=" + ciudad;
129
130  // En este punto ejecutamos la consulta de ajax
131  var data = 'action=searchMaquinas' + dataForm;
132
133  $.ajax({
134    type: 'POST',
135    cache: false,
136    url: ajaxurl,
137    data: data,
138    dataType: 'json',
139    beforeSend: function () {
140      $(".loading").show();
141    },
142    success: function (response) {
143
144      if (response.status == 'ok') {
145        $(".loading").hide();
146        if(response.html){
147          $('.content-items').html(response.html);
148        }else{
149          $('.content-items').html('');
150        }
151
152        var pais = $('#selected-paises').val();
153        var provincia = $('#selected-provincias').val();
154        var ciudad = $('#selected-ciudades').val();
155        
156        if (
157          (pais != '' && pais != undefined) ||
158          (provincia != '' && provincia != undefined) ||
159          (ciudad != '' && ciudad != undefined)
160        ) {
161          $('#limpiar-filtros-casinos').show();
162        }
163
164        dataLayer.push({
165          'event': 'filtroMaquinas'
166        });
167      }
168    },
169    error: function () {
170      $(".loading").hide();
171    }
172  });
173});
174
175//Buscador PRENSA por texto y fechas
176$('#busqueda-prensa').submit(function (e) {
177  e.preventDefault();
178
179  // Captura los valores de los campos de entrada
180  var catSeleccionada = $('input[type="hidden"]').val();
181  var texto = $('#fartículo').val();
182  var desde = $('.calendar[placeholder="Desde"]').val();
183  var hasta = $('.calendar[placeholder="Hasta"]').val();
184
185  var dataForm = '';
186  var dataForm = '&texto=' + texto + '&desde=' + desde + '&hasta=' + hasta + '&catSeleccionada=' + catSeleccionada;
187
188  // En este punto ejecutamos la consulta de ajax
189  var data = 'action=searchPrensa' + dataForm;
190
191  $.ajax({
192    type: 'POST',
193    cache: false,
194    url: ajaxurl,
195    data: data,
196    dataType: 'json',
197    beforeSend: function () {
198      $(".loading").show();
199    },
200    success: function (response) {
201
202      if (response.status == 'ok') {
203        $(".loading").hide();
204       
205
206        if(response.html){
207          $('#contenido-respuesta-prensa').html(response.html);
208        }else{
209          $('#contenido-respuesta-prensa').html('');
210        }
211        dataLayer.push({
212          'event': 'busquedaPrensa'
213        });
214      }
215    },
216    error: function () {
217      $(".loading").hide();
218    }
219  });
220});

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.