1/* 2 * Ribosome sripts 3 */ 4 5jQuery(document).ready(function() { 6 7 jQuery(".search-top-bar #btn-search").hide(); 8 9 jQuery(".toggle-search").click(function() { 10 jQuery(".wrapper-search-top-bar").toggle(); 11 jQuery(".wrapper-search-top-bar .txt-search").focus(); 12 }); 13 14 jQuery(".boton-menu-movil").click(function() { 15 jQuery("#menu-movil").toggle(); 16 }); 17 18 jQuery(".boton-menu-movil-sin-top-bar").click(function() { 19 jQuery("#menu-movil").toggle(); 20 }); 21 22 jQuery(".ir-arriba").click(function() { 23 jQuery('html, body').animate({ scrollTop: 0 }, 'fast'); 24 }); 25 26 // Mostrar/Ocultar botón 'Volver arriba' 27 if (jQuery('.ir-arriba').length) { // Comprobamos que exista el div (se ha podido desactivar en las opciones) 28 var refScroll = jQuery('#main'); 29 var refScroll_offset = refScroll.offset(); 30 31 jQuery(window).on('scroll', function() { 32 if(jQuery(window).scrollTop() > refScroll_offset.top) { 33 jQuery(".ir-arriba").show(500); 34 } else { 35 jQuery(".ir-arriba").hide(); 36 } 37 }); 38 } 39 40 // Colapsar y expandir menús en dispositivos móviles 41 jQuery('.menu-movil-enlaces li.menu-item-has-children').addClass('submenu-toggle'); 42 jQuery('.menu-movil-enlaces li.menu-item-has-children').addClass('submenu-colapsado'); 43 44 jQuery('li.submenu-toggle').click(function(e) { 45 var menu_id = jQuery(this).attr('id'); 46 47 if (jQuery('li#' + menu_id).hasClass('submenu-colapsado')){ 48 49 jQuery('li#' + menu_id).toggleClass('submenu-expandido'); 50 jQuery('li#' + menu_id + ' > ul').toggle(); 51 52 }else{ 53 54 jQuery('li#' + menu_id).toggleClass('submenu-colapsado'); 55 jQuery('li#' + menu_id + ' > ul').toggle(); 56 57 } 58 59 e.stopPropagation(); 60 61 }); 62 63});
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.