1jQuery(document).ready(function($){ 2 3 /* 4 Función Desplegable cajas (cajas.inc) 5 */ 6 $('.cajadesp.cajacerr textarea.form').width('90%'); 7 $('.cajadesp.cajacerr table.caja_anid').hide(); 8 $('.cajadesp.cajacerr .cajadesp').hide(); 9 $('.cajadesp.cajacerr').hide(); 10 11 $('.cajadesp').prev().css('cursor','pointer').bind('click', function(event){ 12 $(this).next().children('table.caja_anid').show(); 13 $(this).next().slideToggle(); 14 15 if ($(this).find('.fa').hasClass("fa-caret-up")) { 16 $(this).find('.fa').addClass("fa-caret-down"); 17 $(this).find('.fa').removeClass("fa-caret-up"); 18 } 19 else{ 20 $(this).find('.fa').addClass("fa-caret-up"); 21 $(this).find('.fa').removeClass("fa-caret-down"); 22 } 23 }); 24 25 /* 26 Función Desplegable menú navegacion (navegacion.inc) 27 */ 28 $('.submenu_navegacion').prev().css('cursor','pointer').on('click', function(event){ 29 $(this).next().slideToggle(); 30 var tam = $('.submenu_navegacion').size(); 31 for (i=0;i<tam;i++) 32 if ($('.submenu_navegacion')[i]!=$(this).next()[0]) 33 $($('.submenu_navegacion')[i]).slideUp(); 34 }); 35 36 /* 37 Para que si la url tiene ancla despliegue la caja correspondiente al #nombre_ancla 38 */ 39 if (window.location.hash != '') { 40 $('.cajadesp').hide(); 41 $(window.location.hash).next().show(); 42 } 43 44 /** 45 * El siguiente código es el evento para plegar y desplegar cajas. Se despliega el siguiente elemento al que 46 * tiene la clase desple (que es donde se hace click) 47 **/ 48 //$("#").next().hide(); 49 $('.desple').click(function() { 50 $(this).next().slideToggle(); 51 }); 52 53 /* 54 Función Desplegable menú navegación (navegacion.inc) --> solo visible en pantallas inferiores a 600px 55 */ 56 $('.btn-wr').click(function(){ 57 $(this).siblings('ul#navegacion').slideToggle('slow'); 58 59 if ($(this).find('.fa').hasClass("fa-bars")) { 60 $(this).find('.fa').addClass("fa-times"); 61 $(this).find('.fa').removeClass("fa-bars"); 62 } 63 else{ 64 $(this).find('.fa').addClass("fa-bars"); 65 $(this).find('.fa').removeClass("fa-times"); 66 } 67 }); 68 69 /* 70 Función Desplegable menú solapas (botones.inc) --> solo visible en pantallas inferiores a 600px 71 */ 72 $('#solapas').prev().css('cursor','pointer').on('click', function(event){ 73 $(this).next().slideToggle(); 74 $(this).toggleClass('mdesp'); 75 }); 76 77});
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.