1jQuery(document).ready(function($){ 2 3/*--- Menú ---*/ 4 5$('ul.nav li.dropdown').hover(function() { 6 $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn(500); 7}, function() { 8 $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut(500); 9}); 10 11/*--- Buscador Menu ---*/ 12$('#btn-buscar').click(function(){ 13 $('#buscar').toggleClass('dib'); 14}); 15 16/*--- Mosaico y Listado ---*/ 17$('.i-listado').on('click', function(event) { 18 event.preventDefault(); 19 $('.mosaico').addClass('novisible'); 20 $('.mosaico').removeClass('visible'); 21 $('.listado').removeClass('novisible'); 22 $('.listado').addClass('visible'); 23}); 24 25$('.i-mosaico').on('click', function(event) { 26 event.preventDefault(); 27 $('.mosaico').addClass('visible'); 28 $('.mosaico').removeClass('novisible'); 29 $('.listado').removeClass('visible'); 30 $('.listado').addClass('novisible'); 31}); 32 33if(document.URL.indexOf("listado") >= 0){ 34 $('.mosaico').addClass('novisible'); 35 $('.mosaico').removeClass('visible'); 36 $('.listado').removeClass('novisible'); 37 $('.listado').addClass('visible'); 38} else if (document.URL.indexOf("mosaico") >= 0) { 39 $('.mosaico').addClass('visible'); 40 $('.mosaico').removeClass('novisible'); 41 $('.listado').removeClass('visible'); 42 $('.listado').addClass('novisible'); 43} else { 44 $('.mosaico').addClass('visible'); 45 $('.mosaico').removeClass('novisible'); 46 $('.listado').removeClass('visible'); 47 $('.listado').addClass('novisible'); 48} 49 50/*$(function() { 51 $(".open-bt").click(function() { 52 $("#menu-main").addClass("open-menu"); 53 $("#menu-launcher").addClass("close-bar"); 54 $("section").addClass("section-open-menu"); 55 }); 56 $("section").click(function() { 57 $("#menu-main").removeClass("open-menu"); 58 $("#menu-launcher").removeClass("close-bar"); 59 $("body").removeClass("body-open-menu"); 60 }); 61 $("#menu-main").click(function() { 62 $("#menu-main").removeClass("open-menu"); 63 $("#menu-launcher").removeClass("close-bar"); 64 $("body").removeClass("body-open-menu"); 65 }); 66});*/ 67 68$('.menu-icono').click(function(e) { 69 e.stopPropagation(); 70 $(".menu-nav").toggleClass('open'); 71 $(".menu-select").toggleClass('open'); 72 $(".body").toggleClass('open'); 73 $(".menu-icono").toggleClass('open'); 74}); 75 76/* --- Smooth Scroll --- */ 77 78 // Select all links with hashes 79 $('a[href*="#"]') 80 // Remove links that don't actually link to anything 81 .not('[href="#"]') 82 .not('[href="#0"]') 83 .click(function(event) { 84 // On-page links 85 if ( 86 location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') 87 && 88 location.hostname == this.hostname 89 ) { 90 // Figure out element to scroll to 91 var target = $(this.hash); 92 target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); 93 // Does a scroll target exist? 94 if (target.length) { 95 // Only prevent default if animation is actually gonna happen 96 event.preventDefault(); 97 $('html, body').animate({ 98 scrollTop: target.offset().top 99 }, 1000, function() { 100 // Callback after animation 101 // Must change focus! 102 var $target = $(target); 103 $target.focus(); 104 if ($target.is(":focus")) { // Checking if the target was focused 105 return false; 106 } else { 107 $target.attr('tabindex','-1'); // Adding tabindex for elements not focusable 108 $target.focus(); // Set focus again 109 }; 110 }); 111 } 112 } 113 }); 114 115/* --- Sliders --- */ 116 117$('.bxslider').bxSlider({ 118 mode: 'horizontal', 119 captions: false, 120 controls: false, 121 auto: true, 122 pager: false, 123 adaptiveHeight: true, 124 pause: 6000, 125 speed: 800, 126}); 127 128/* --- Scroll Reveal --- */ 129 130 window.sr = ScrollReveal(); 131 sr.reveal('.sr-box', { easing: 'ease-in-out', distance: '50px', origin: 'bottom', scale: 1, duration: 500, reset: false }, 100); 132 sr.reveal('.sr-item', { easing: 'ease-in-out', scale: 1, duration: 1500, reset: false }, 100); 133 134});
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.