PageSourceSearch

https://www.coam.org/wp-content/themes/coam/assets-sys/js/funciones-sys.js?ver=0.0.1

js coam.org collected 2026-09-24 08:42:54 UTC 2,543 bytes, 61 lines download raw bytes

1jQuery(document).ready(function($) {
2
3    setTimeout(function(){
4
5        /* CAMBIAR LOS ENLACES DE VISADOS EN LA PAGINA https://www.coam.org/visado/preguntas-frecuentes/*/
6        if(jQuery('.page-id-23072').length > 0){
7            
8            jQuery('.elementor-accordion a').each(function() {
9                var $this = jQuery(this);
10                var enlace = $this.attr('href');
11                if(enlace=="https://www.coam.org/es/servicios/visado/precios-visado"){
12                    
13                    $this.attr('href','https://www.coam.org/cat_visados/precios-de-visado/');
14
15                }else{
16                    if (enlace && enlace.includes('https://www.coam.org/es/servicios/visado/')) {
17                        enlace = enlace.replaceAll('/', '-')
18                            .replace('-es-', '/visados/')
19                            .replace('https:--www.coam.org', 'https://www.coam.org');
20                        
21                        
22                        
23                        $this.attr('href', enlace)
24                            .text(enlace)
25                            .removeAttr('target');
26                    }
27                }
28                
29            });
30            
31        }
32        /*fin cambiar enlaces en la pagina https://www.coam.org/visado/preguntas-frecuentes/ */
33
34        if(jQuery('.reemplazar_urls').length > 0){
35            
36            jQuery('.elementor-accordion a').each(function(index, el) {
37                jQuery(this).removeAttr('target');
38                var enlace=jQuery(this).attr('href');
39                if (typeof enlace !== 'undefined'){
40                    enlace=enlace.replace('/es/servicios/visado/impresos/','/visados/servicios-visado-impresos-');
41                    enlace=enlace.replace('/es/servicios/visado/','/visados/servicios-visado-');
42                    enlace=enlace.replace('-ayuda/impresos','-ayuda-impresos');
43                    jQuery(this).attr('href',enlace);
44                }                    
45            });
46        }
47    },500);
48
49    jQuery(document).on('click','#btn-volver-atras',function(){
50        history.back();
51    });
52    /*PINTA DE COLOR NARANJA EL ITEM ACTUALIDAD DEL MENU PRINCIPAL*/
53    setTimeout(function(){
54        
55        if(jQuery('.elementor-page-21355').length > 0 || jQuery('.elementor-page-21378').length > 0 || jQuery('.elementor-page-20972').length > 0 || jQuery('.elementor-page-21347').length > 0 ){
56            jQuery('.menu-item-1784 a').attr('style', 'color: #e6562c');
57        }
58
59    }, 500);
60
61});

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.