1jQuery(document).ready(function(jQuery) { 2 3 4 // Menu navegables con el teclado tabulador + Enlaces del menu padre clicable 5 // Es necesario añadir theme_menu_tree() y theme_menu_link() en el template 6 7 jQuery('.primary-menu ul li a').focus( function () { 8 jQuery(this).siblings('.dropdown-menu').show(); 9 }) 10 11 jQuery('.secundary-menu ul li a').focus( function () { 12 jQuery(this).siblings('.dropdown-menu').show(); 13 }) 14 15 jQuery('nav').superfish(); 16 17 18 //Página comunidad-pacto-galicia tabla bloque de comunidade en la segunda pestaña 19 20 var table_comunidade = document.getElementById('block-views-comunidade-block-1'); 21 if ((jQuery("#block-views-comunidade-block-1").length > 0)){ 22 jQuery(".node-p-xina-pesta-as .nav-tabs li:nth-child(2) a").click(function() { 23 jQuery( "#block-views-comunidade-block-1" ).show(); 24 }); 25 26 jQuery(".node-p-xina-pesta-as .nav-tabs li:nth-child(1) a").click(function() { 27 jQuery( "#block-views-comunidade-block-1" ).hide(); 28 }); 29 jQuery(".node-p-xina-pesta-as .nav-tabs li:nth-child(3) a").click(function() { 30 jQuery( "#block-views-comunidade-block-1" ).hide(); 31 }); 32 } 33 34 /* CONTROLANDO EL USO DE TECLAS EN PORTADA */ 35 if(jQuery('.divPlay').length>0) { 36 pausarIniciarCarrusel(); 37 } 38 39 40 jQuery('.divPlay').click(function() { 41 pausarIniciarCarrusel(80); 42 }); 43 44 45 // PULSAR TECLA PAUSA/INICIAR 46 var keycode=0; 47 function pausarIniciarCarrusel(ekeycode) { 48 49 // Pausando carrusel 50 if (ekeycode == 80 && keycode!=80) { 51 keycode=80; 52 jQuery('#views-bootstrap-carousel-1').carousel('pause'); 53 jQuery('.play').addClass('repause'); 54 jQuery('.play').removeClass('replay'); 55 56 // Iniciando carrusel tras pausa 57 } else if(ekeycode == 80 && keycode==80) { 58 keycode=0; 59 jQuery('#views-bootstrap-carousel-1').carousel('next'); 60 jQuery('#views-bootstrap-carousel-1').carousel({ pause:null }); 61 jQuery('.play').addClass('replay'); 62 jQuery('.play').removeClass('repause'); 63 64 65 // Seguinte item 66 } else if(ekeycode == 39) { 67 keycode=0; 68 jQuery('#views-bootstrap-carousel-1').carousel('next'); 69 jQuery('.play').addClass('replay'); 70 jQuery('.play').removeClass('repause'); 71 72 // Anterior item 73 } else if(ekeycode == 37) { 74 keycode=0; 75 jQuery('#views-bootstrap-carousel-1').carousel('prev'); 76 jQuery('.play').addClass('replay'); 77 jQuery('.play').removeClass('repause'); 78 79 } 80 } 81 82 83});
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.