1 $(document).ready(function() { 2 jQuery.easing.def = "easeInOutQuint"; 3 4 var mainMenuItem = $('.navbar-collapse ul.navbar-panel > li > a'); 5 $(".submenu-wrapper").slideUp(0); 6 7 mainMenuItem.click(function() { 8 var target = $(this.hash); 9 var menuOption = $(this); 10 console.log(target); 11 12 if (target.length != "0") { 13 if (!menuOption.hasClass('active-menu')) { 14 //Subimos el que este seleccionado 15 $(".submenu-wrapper").slideUp(350, function() { 16 $(".submenu-open").removeClass('submenu-open'); 17 mainMenuItem.removeClass('active-menu'); 18 19 //Bajamos el clickado 20 menuOption.addClass('active-menu'); 21 $(".submenu-wrapper").find(target).addClass('submenu-open'); 22 $(".submenu-wrapper").slideDown(350); 23 }); 24 } else { 25 $(".submenu-wrapper").slideUp(350, function() { 26 $(".submenu-open").removeClass('submenu-open'); 27 menuOption.removeClass('active-menu'); 28 }); 29 } 30 } 31 }); 32 33 var subMenuClose = $('.submenu-close-btn'); 34 subMenuClose.click(function() { 35 $(".submenu-wrapper").slideUp(350, function() { 36 $(".submenu-open").removeClass('submenu-open'); 37 mainMenuItem.removeClass('active-menu'); 38 }); 39 }); 40 41 var centradoVertical = $('.vertical'); 42 centradoVertical.height(centradoVertical.closest('div.row').outerHeight()); 43 44 $('.form-control').click(function() { 45 $(this).closest('div.form-group').addClass('focused'); 46 $('input.form-control').blur(function() { 47 if (!$(this).closest('div.form-group').find('input').val()) { 48 $(this).closest('div.form-group').removeClass('focused'); 49 } 50 }); 51 $('select.form-control').blur(function() { 52 if ($(this).closest('div.form-group').find('select').val()=="0" || $(this).closest('div.form-group').find('select').val()=="") { 53 $(this).closest('div.form-group').removeClass('focused'); 54 } 55 }); 56 }); 57 $('.form-control').each(function() { 58 if ($(this).val()) { 59 $(this).closest('div.form-group').addClass('focused'); 60 } else { 61 $(this).closest('div.form-group').removeClass('focused'); 62 } 63 }); 64 65 var buscadorWrapper = $('.container-fluid.buscador'); 66 var buscadorTrigger = $('.search-open-btn'); 67 buscadorTrigger.click(function() { 68 $(this).removeClass('active'); 69 buscadorWrapper.addClass('active'); 70 }); 71 72 //var buscadorWrapperClose = $('.container-fluid.buscador > span.icon-cross'); 73 var buscadorWrapperClose = $('.container-fluid.buscador > .close-btn'); 74 buscadorWrapperClose.click(function() { 75 buscadorWrapper.removeClass('active'); 76 }); 77 78 /*var serviciosWrapper = $('.container-fluid.servicios'); 79 var serviciosTrigger = $('.container-fluid.servicios').find('.row [class*=col-] .icon'); 80 serviciosTrigger.hover( 81 function() { 82 serviciosWrapper.css('background-image','url("../ProyectoWeb/img/servicios_' + serviciosTrigger.index(this) + '.jpg")'); 83 serviciosTrigger.removeClass('active'); 84 $(this).addClass('active'); 85 }, function() { 86 // No hacer nada 87 } 88 );*/ 89 90}); 91 92 /* --------------------------------------------- 93 Davide code 94 --------------------------------------------- */ 95 96/* $('.js-isotope').masonry({ 97 // options 98 itemSelector: '.item', 99 columnWidth: 200 100});*/ 101 102/*$('.js-isotope').isotope({ 103 // options 104 itemSelector: '.item' 105 // layoutMode: 'fitRows' 106});*/ 107 108// make equal heights in columns 109 /*function equalHeight(group) { 110 var tallest = 0; 111 group.each(function() { 112 var thisHeight = $(this).height(); 113 if(thisHeight > tallest) { 114 tallest = thisHeight; 115 } 116 }); 117 group.height(tallest); 118 }//equalHeight*/ 119 120 //equal-heights 121 122 123 /*equalHeight($('.news .equal-height')); 124 equalHeight($('.documentacion .equal-height')); 125 equalHeight($('.map-viewer-component .equal-height')); 126 equalHeight($('.special-services .equal-height')); 127 equalHeight($('.other-services .equal-height')); 128 129 $('.card').click(function() { 130 $('.card').not(this).removeClass('open').css('margin-bottom', '0px'); 131 var iheight = $(this).find('.info-block2').height(); 132 $(this).toggleClass('open'); 133 }); 134 135 $('.info-block2').click(function(e) { 136 e.stopPropagation(); 137 return false; 138 console.log('ok'); 139 });*/ 140 141 $('.close-btn').click(function(e) { 142 $('.card').removeClass('open'); 143 }); 144 145 146 147 $('.single-utilities-links .dropdown-btn').click(function(){ 148 $('.has-dropdown').toggleClass('open'); 149 }); 150 151 152// Buscador 153 $('.navbar .icon-search').click(function(){ 154 $('.buscador').addClass('active'); 155 }); 156 157 $('.buscador .icon-cross').click(function(){ 158 $('.buscador').removeClass('active'); 159 }); 160 161 162 /* --------------------------------------------- 163 ENDS Davide 164 --------------------------------------------- */ 165 166 $(window).load(function() { 167 }); 168 169 $(window).scroll(function() { 170 if ($(this).scrollTop() >= 80){ 171 $('body').addClass('sticky'); 172 } else { 173 $('body').removeClass('sticky'); 174 } 175}); 176 177 $(window).resize(function() { 178 /*$('.news .equal-height').css('height', 'auto'); 179 $('.documentacion .equal-height').css('height', 'auto'); 180 $('.map-viewer-component .equal-height').css('height', 'auto'); 181 $('.special-services .equal-height').css('height', 'auto'); 182 $('.other-services .equal-height').css('height', 'auto'); 183 equalHeight($('.news .equal-height')); 184 equalHeight($('.documentacion .equal-height')); 185 equalHeight($('.map-viewer-component .equal-height')); 186 equalHeight($('.special-services .equal-height')); 187 equalHeight($('.other-services .equal-height'));*/ 188 });
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.