1/* 2 * Translated default messages for the jQuery validation plugin. 3 * Locale: ES (Spanish; Español) 4 */ 5jQuery.extend(jQuery.validator.messages, { 6 required: "Este campo es obligatorio.", 7 remote: "Por favor, rellena este campo.", 8 email: "Por favor, escribe una dirección de correo válida.", 9 url: "Por favor, escribe una URL válida.", 10 date: "Por favor, escribe una fecha válida.", 11 dateISO: "Por favor, escribe una fecha (ISO) válida.", 12 number: "Por favor, escribe un número válido.", 13 digits: "Por favor, escribe sólo dÃgitos.", 14 creditcard: "Por favor, escribe un número de tarjeta válido.", 15 equalTo: "Por favor, escribe el mismo valor de nuevo.", 16 extension: "Por favor, escribe un valor con una extensión aceptada.", 17 maxlength: jQuery.validator.format("Por favor, no escribas más de {0} caracteres."), 18 minlength: jQuery.validator.format("Por favor, no escribas menos de {0} caracteres."), 19 rangelength: jQuery.validator.format("Por favor, escribe un valor entre {0} y {1} caracteres."), 20 range: jQuery.validator.format("Por favor, escribe un valor entre {0} y {1}."), 21 max: jQuery.validator.format("Por favor, escribe un valor menor o igual a {0}."), 22 min: jQuery.validator.format("Por favor, escribe un valor mayor o igual a {0}."), 23 nifES: "Por favor, escribe un NIF válido.", 24 nieES: "Por favor, escribe un NIE válido.", 25 cifES: "Por favor, escribe un CIF válido." 26}); 27 28var long_text_active = false; 29 30jQuery(function($) { 31 32 33 jQuery( document ).ready(function() { 34 jQuery('.sbi_item').each(function(){ 35 jQuery(this).find('.sbi_photo').slice(1).hide(); 36 }); 37 }); 38 39 if (jQuery('.mega-menu-item-189').children().length == 1) jQuery('.mega-menu-item-189').remove() 40 41 if (jQuery('.mega-menu-item-190').children().length == 1) jQuery('.mega-menu-item-190').remove() 42 43 $('.mega-menu-item-137').on('open_panel', function() { 44 if (jQuery('.mega-menu-item-137>ul.mega-sub-menu')[0].childNodes.length == 3) { 45 jQuery('.mega-menu-item-137>ul.mega-sub-menu').attr('style', 'width: 600px !important'); 46 jQuery('.mega-menu-item-137>ul.mega-sub-menu li.mega-menu-columns-1-of-3').attr('style', 'width: 50% !important'); 47 } 48 }); 49 50 $('.mega-menu-item-137').on('open_panel', function() { 51 52 if (jQuery('.mega-menu-item-137>ul.mega-sub-menu')[0].childNodes.length == 1) { 53 jQuery('.mega-menu-item-137>ul.mega-sub-menu').attr('style', 'width: 300px !important'); 54 jQuery('.mega-menu-item-137>ul.mega-sub-menu li').attr('style', 'width: 100% !important'); 55 } 56 }); 57 58 $('.mega-menu-item-181').on('open_panel', function() { 59 console.log('REY', jQuery('.mega-menu-item-181>ul.mega-sub-menu')[0].childNodes.length) 60 if (jQuery('.mega-menu-item-181>ul.mega-sub-menu')[0].childNodes.length == 3) { 61 jQuery('.mega-menu-item-181>ul.mega-sub-menu').attr('style', 'width: 600px !important'); 62 jQuery('.mega-menu-item-181>ul.mega-sub-menu li.mega-menu-columns-2-of-6').attr('style', 'width: 50% !important'); 63 } 64 }); 65 66 $('.mega-menu-item-181').on('open_panel', function() { 67 68 if (jQuery('.mega-menu-item-181>ul.mega-sub-menu')[0].childNodes.length == 1) { 69 jQuery('.mega-menu-item-181>ul.mega-sub-menu').attr('style', 'width: 300px !important'); 70 jQuery('.mega-menu-item-181>ul.mega-sub-menu li').attr('style', 'width: 100% !important'); 71 } 72 }); 73 74 75 76 77 var width = screen.width; 78 if (width < 768) { 79 jQuery('.long-description-listing-text').css('height', '100%'); 80 jQuery('.long-description-text').css('height', '100%'); 81 } else { 82 var element1 = jQuery('.long-description-text')[0]; 83 var element2 = jQuery('.long-description-listing-text')[0]; 84 if (element1 && (element1.offsetHeight < element1.scrollHeight || 85 element1.offsetWidth < element1.scrollWidth)) { 86 var h = parseInt(jQuery('.long-description-text').css("line-height")); 87 jQuery('.long-description').css('height', h * 10); 88 long_text_active = true; 89 jQuery('.view-more-2').show(); 90 } 91 92 if (element2 && (element2.offsetHeight < element2.scrollHeight || 93 element2.offsetWidth < element2.scrollWidth)) {
94 var h = parseInt(jQuery('.long-description-text').css("line-height")); 95 jQuery('.long-description').css('height', h * 10); 96 jQuery('.view-more-2').show(); 97 long_text_active = true; 98 } 99 } 100 101 jQuery('.main-categories .sub-categories').toggle(); 102 jQuery('.main-categories .sub-categories-toggle').html(' -'); 103 var media_manager_id = 0; 104 105 jQuery(document).on('click', '.collection_media_manager', function(e) { 106 console.log(this.id) 107 media_manager_id = this.id 108 e.preventDefault(); 109 var image_frame; 110 if (image_frame) { 111 image_frame.open(); 112 } 113 // Define image_frame as wp.media object 114 image_frame = wp.media({ 115 title: 'Select Media', 116 multiple: false, 117 library: { 118 type: 'image', 119 } 120 }); 121 122 image_frame.on('close', function() { 123 // On close, get selections and save to the hidden input 124 // plus other AJAX stuff to refresh the image preview 125 var selection = image_frame.state().get('selection'); 126 var gallery_ids = new Array(); 127 var my_index = 0; 128 selection.each(function(attachment) { 129 gallery_ids[my_index] = attachment['id']; 130 my_index++; 131 }); 132 var ids = gallery_ids.join(","); 133 console.log(jQuery('#term_meta\\[' + media_manager_id + '\\]')); 134 jQuery('#term_meta\\[' + media_manager_id + '\\]').val(ids); 135 console.log(ids, media_manager_id); 136 Refresh_Image(ids, media_manager_id); 137 }); 138 139 image_frame.on('open', function() { 140 // On open, get the id from the hidden input 141 // and select the appropiate images in the media manager 142 var selection = image_frame.state().get('selection'); 143 var ids = jQuery('#' + this.id).val() ? jQuery('#' + this.id).val().split(',') : []; 144 ids.forEach(function(id) { 145 var attachment = wp.media.attachment(id); 146 attachment.fetch(); 147 selection.add(attachment ? [attachment] : []); 148 }); 149 }); 150 image_frame.open(); 151 }); 152 153 // Ajax request to refresh the image preview 154 function Refresh_Image(the_id, element_id) { 155 var data = { 156 action: 'collection_get_image', 157 id: the_id 158 }; 159 160 jQuery.get(ajaxurl, data, function(response) { 161 162 if (response.success === true) { 163 jQuery('#' + element_id + '-preview').attr("src", response.data.image[0]) 164 } 165 }); 166 } 167 if (window.location.href.indexOf('chars') > 0) { 168 jQuery('.filter-button').show() 169 jQuery('.categories-filter').show() 170 var url = new URL(window.location.href); 171 var s = url.searchParams.get("s"); 172 var chars = url.searchParams.get("chars"); 173 174 var arr = chars.split(','); 175 arr.forEach(function(char) { 176 console.log('#chars-' + char); 177 jQuery('#char-' + char).css('color', 'red'); 178 jQuery('#char-' + char).parent().show() 179 }); 180 } 181 182}); 183 184 185function setChar(char, path, country) { 186 var url = new URL(window.location.href); 187 var s = url.searchParams.get("s"); 188 189 190 191 if (window.location.href.indexOf('/page/') > 0) { 192 var idx1 = window.location.href.indexOf('/page/'); 193 } else { 194 var idx1 = window.location.href.indexOf('?'); 195 } 196 var newUrl = '' 197 if (country.length > 0) newUrl = '/' + country 198 console.log('country', country) 199 if (path) { 200 newUrl = newUrl + '/productos/' + path + '/' 201 } else { 202 newUrl = newUrl + '/' 203 } 204 console.log('newurl', newUrl) 205 206 if (s) { 207 newUrl = newUrl + '?s=' + s + '&chars=' + char; 208 } else { 209 newUrl = newUrl + '?chars=' + char; 210 } 211 212 213 window.location.href = newUrl; 214 215 console.log(newUrl); 216 217 return false; 218} 219 220function cleanChars() { 221 var url = new URL(window.location.href); 222 var s = url.searchParams.get("s"); 223 224 225 226 if (window.location.href.indexOf('/page/') > 0) { 227 var idx1 = window.location.href.indexOf('/page/'); 228 } else { 229 var idx1 = window.location.href.indexOf('?'); 230 } 231 232 if (s) { 233 var newUrl = window.location.href.slice(0, idx1) + '?s=' + s; 234 } else { 235 var newUrl = window.location.href.slice(0, idx1); 236 } 237 238 window.location.href = newUrl; 239 240} 241 242var image_path = '/wp-content/uploads/2019/12/' 243 244 245/* 246function viewMoreExt() { 247 var element1 = jQuery('.long-description-text')[0]; 248 var element2 = jQuery('.long-description-listing-text')[0]; 249 var changed = false;
250 console.log(long_text_active) 251 if (long_text_active) { 252 jQuery('.long-description').css('height', '100%'); 253 jQuery('.view-more-close').show(); 254 jQuery('.view-more-2').hide(); 255 long_text_active = false; 256 } else { 257 var h = parseInt(jQuery('.long-description-text').css("line-height")); 258 jQuery('.long-description').css('height', h * 10); 259 jQuery('.view-more-2').show(); 260 jQuery('.view-more-close').hide(); 261 long_text_active = true; 262 } 263} 264*/ 265jQuery(document).ready(function() { 266 jQuery('.view-more-2').click(function(e) { 267 e.preventDefault(); 268 jQuery('div.long-description').css('height', 'inherit'); 269 jQuery('div.long-description-text').css('height', 'inherit'); 270 jQuery('.view-more-close').show(); 271 jQuery('.view-more-2').hide(); 272 }); 273 274 jQuery('.view-more-close').click(function(e) { 275 e.preventDefault(); 276 jQuery('div.long-description').css('height', '300px'); 277 jQuery('div.long-description-text').css('height', '300px'); 278 jQuery('.view-more-2').show(); 279 jQuery('.view-more-close').hide(); 280 }); 281});
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.