1function equalHeight(group) { 2 tallest = 0; 3 group.each(function() { 4 thisHeight = $(this).height(); 5 if(thisHeight > tallest) { 6 tallest = thisHeight; 7 } 8 }); 9 group.height(tallest); 10}; 11 12 13/* 14 * Igualar el alto de las columnas y la sección de contenido principal 15 */ 16/* 17 * Se utiliza $(window).load porque $(document).ready toma la altura antes que el motor de renderizado 18 * aplique los cambios Javascript a las imágenes, lo que provoca una altura incorrecta del documento. 19 */ 20$(window).load( 21 function() { 22 equalHeight($('#content-area, .region-sidebar-second')); 23 24 equalHeight($('.enlace-menu')); 25 } 26); 27 28$(document).ready( 29 function() { 30 $('.row').each(function() { 31 equalHeight($(this).find('.item').not($('#agenda .item'))); 32 }); 33 } 34); 35 36 37/* 38 * Banners columnas 39 */ 40/* 41$(document).ready(function() { 42 $('.imagen-sin-hover').each(function() { 43 $(this).hover( 44 function() { 45 $(this).stop().animate({opacity: 0.5}, 0); 46 }, 47 function() { 48 $(this).stop().animate({opacity: 1.0}, 0); 49 }); 50 }); 51}); 52*/ 53 54/* 55 * Secciones (servicios y páginas de información general) 56 */ 57$(document).ready( 58 function() { 59 $('.seccion .titulo').click( 60 function() { 61 $(this).siblings('.seccion .cuerpo').toggle(); 62 } 63 ); 64 } 65); 66 67/* 68 * Redimensionar texto 69 * Adaptado de: 70 * http://www.shopdev.co.uk/blog/text-resizing-with-jquery/ 71 * http://drupal.org/project/text_resize 72 */ 73/* 74$(document).ready(function() { 75 current_font_size = $.cookie('current_font_size'); 76 77 if (!current_font_size) { 78 current_font_size = $('html').css('font-size'); 79 } 80 81 current_font_size_num = parseFloat(current_font_size, 16); 82 83 $('html').css('font-size', current_font_size_num + 'px'); 84 85 $('#text_resize_reset').click(function() { 86 current_font_size_num = 16; 87 $('html').css('font-size', current_font_size_num + 'px'); 88 $.cookie('current_font_size', current_font_size_num, {path: '/'}); 89 }); 90 $('#text_resize_decrease').click(function() { 91 current_font_size_num = current_font_size_num * 0.9; 92 $('html').css('font-size', current_font_size_num + 'px'); 93 $.cookie('current_font_size', current_font_size_num, {path: '/'}); 94 }); 95 $('#text_resize_increase').click(function() { 96 current_font_size_num = current_font_size_num * 1.1; 97 $('html').css('font-size', current_font_size_num + 'px'); 98 $.cookie('current_font_size', current_font_size_num, {path: '/'}); 99 }); 100}); 101*/ 102 103$(document).ready(function() { 104 $('.imagen-con-hover').each(function() { 105 $(this).hover( 106 function() { 107 $(this).find('.imagen-normal').addClass('imagen-oculta').removeClass('imagen-normal'); 108 $(this).find('.imagen-hover').addClass('imagen-normal').removeClass('imagen-hover'); 109 }, 110 function() { 111 $(this).find('.imagen-normal').addClass('imagen-hover').removeClass('imagen-normal'); 112 $(this).find('.imagen-oculta').addClass('imagen-normal').removeClass('imagen-oculta'); 113 } 114 ); 115 }); 116}); 117 118$(document).ready(function() { 119 var min_height = $(window).height() - $('.simplemenu-block').height() - $('#header-wrapper').height() - $('#page-bottom').height() - $('#footer-bottom').height() - 35; 120 if ($('#main-wrapper').height() < min_height) { 121 $('#main-wrapper').height(min_height); 122 } 123}); 124 125/* 126 * Efecto tÃtulos de banners 127 */ 128 129$(document).ready(function() { 130 $('.sidebar .banner-normal').each(function() { 131 $(this).hover( 132 function() { 133 $('img', this).stop().animate({opacity: 0.55}, 0); 134 $('.titulo', this).css('color', '#222222'); 135 }, 136 function() { 137 $('img', this).stop().animate({opacity: 1}, 0); 138 $('.titulo', this).css('color', '#FFFFFF'); 139 } 140 ); 141 }); 142}); 143 144$(document).ready(function() { 145 $('.banner-destacado').each(function() { 146 $(this).hover( 147 function() { 148 $('img', this).stop().animate({opacity: 0.8}, 0); 149 }, 150 function() { 151 $('img', this).stop().animate({opacity: 1}, 0); 152 } 153 ); 154 }); 155}); 156 157 158/* 159 * Efecto tÃtulos de noticias y eventos (bloque contenido destacado) 160 */ 161 162$(document).ready(function() { 163 $('.noticia-teaser, .bloque-contenido-destacado .view-content').each(function() { 164 $(this).hover( 165 function() { 166 $('.fondo-titulo', this).stop().animate({opacity: 0.8}, 0); 167 }, 168 function() { 169 $('.fondo-titulo', this).stop().animate({opacity: 0.5}, 0); 170 } 171 ); 172 }); 173}); 174 175/* 176 * Corte de palabras 177 */ 178 179$(document).ready(function() { 180 Hyphenator.run(); 181}); 182 183/* 184 * Menu principal 185 */ 186 187var menu_hover_institucion = "#389FB1"; 188var menu_hover_estudios = "#E18A22"; 189var menu_hover_investigacion = "#238546"; 190var menu_hover_extension = "#8C73C6"; 191var menu_hover_bienestar = "#60AB1E"; 192var menu_hover_actualidad = "#096A75"; 193 194 195 196 197 198var _enlace_background_color = null; 199var _enlace_border_color = null; 200var _enlace_html = null; 201 202var _enlace_seleccionado; 203 204var navigation_bottom_color = null; 205var enlace_background_color = null; 206var enlace_border_color = null; 207var enlace_html = null; 208 209var s = null; 210var t = null; 211 212$(document).ready(function() { 213 navigation_bottom_color = $('#navigation-bottom .section').css('background-color'); 214 215 $('#menu-principal .menu').hover( 216 function() { 217 _enlace_background_color = $(this).css('background-color'); 218 _enlace_border_color = $(this).css('border-bottom-color'); 219 _enlace_html = $(this).find('.subenlaces-menu').html(); 220 221 _enlace_seleccionado = $(this); 222 223 s = setTimeout(function() { 224 $('#navigation .enlace-seleccionado').removeClass('enlace-seleccionado').css('border-bottom-color', enlace_border_color).css('background-color', ''); 225 enlace_background_color = _enlace_border_color; 226 enlace_border_color = _enlace_border_color; 227 enlace_html = _enlace_html; 228 $(_enlace_seleccionado).addClass('enlace-seleccionado'); 229 $(_enlace_seleccionado).css('border-bottom-color', enlace_background_color); 230 $(_enlace_seleccionado).css('background-color', enlace_background_color); 231 $('#navigation-bottom .section').css('background-color', enlace_background_color); 232 $('#navigation-bottom .section').html('<div class="subenlaces-menu">' + enlace_html + '</div>'); 233 }, 400); 234 }, 235 function() { 236 clearTimeout(s); 237 }); 238 239 $('#navigation-bottom').hover( 240 function() { 241 clearTimeout(t); 242 }, 243 function() { 244 }); 245 246 $('#navigation-wrapper').hover( 247 function() { 248 }, 249 function() { 250 t = setTimeout(function() { 251 $('#navigation .enlace-seleccionado').removeClass('enlace-seleccionado').css('border-bottom-color', enlace_border_color).css('background-color', ''); 252 $('#navigation-bottom .section').css('background-color', navigation_bottom_color); 253 $('#navigation-bottom .section').html(''); 254 }, 400); 255 }); 256 257 258});
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.