1/* 2 Version: 1.0 3 Author: BanyanTheme 4 Website: https://banyanthemes.com/ 5*/ 6 7"use strict"; 8 9$(document).ready(function () { 10 $("body").on("click", ".li_bandera", function (e) { 11 12 var sortBySelect = document.querySelector("select.goog-te-combo"); 13 sortBySelect.value = $(this).data('lang'); 14 sortBySelect.dispatchEvent(new Event("change")); 15 }); 16 17 18 19 var fecha = new Date(); 20 var ano = fecha.getFullYear(); 21 22 console.log("%c© "+ano+" Legislaturas Conectadas - Red interactiva.", "color: #4160a0;font-size: 16px;"); 23 /// buscador 24toastr.options = { 25 "closeButton": true, 26 "debug": false, 27 "newestOnTop": true, 28 "progressBar": false, 29 "positionClass": "toast-top-center", 30 "preventDuplicates": false, 31 "onclick": null, 32 "showDuration": "300", 33 "hideDuration": "1000", 34 "timeOut": "5000", 35 "extendedTimeOut": "1000", 36 "showEasing": "swing", 37 "hideEasing": "linear", 38 "showMethod": "fadeIn", 39 "hideMethod": "fadeOut" 40 }; 41 42// $("#search").keyup(function () { 43$("span.icon").click(function(){ 44 45if ($('#search').val().length > 4) { 46 $("#form_search").submit() 47}else{ 48 toastr["info"]("Ingrese al menos 5 caracteres: ", "Atención"); 49} 50 51 52 53// $(this).val() 54// console.log('--------'); 55// console.log($("#search").val()); 56 57// if ($('#search').val().length > 4) { 58 59// var base_url = $(this).data('base_url'); 60// var dato = new FormData(); 61// dato.append('cadena', $("#search").val()); 62 63// $.ajax({ 64// type : "POST", 65// contentType:false, 66// dataType:'json', 67// data: dato, 68// processData:false, 69// cache:false, 70// beforeSend: function () { 71// // $(".preloader").fadeIn(); 72// }, 73// url: $("body").data('base_url') + 'Home/buscador_ajax', 74// success: function (result) { 75 76// console.log('result'); 77// console.log(result); 78// }, 79// error: function (xhr, errmsg, err) { 80// console.log(xhr.status + ": " + xhr.responseText); 81// } 82// }); 83// // $('#search').val($(this).val()); 84// }else{ 85// toastr["info"]("No hemos encontrado resultados para: " +$('#search').val(), "Atención"); 86 //} 87 }); 88 89 90 91 92 93 94 95 96 97 // Page preloader 98 $("#fakeloader").fakeLoader({ 99 timeToHide: 1000, 100 zIndex: "999999", //Default zIndex 101 bgColor: "#ffffff", 102 spinner: "spinner1" 103 }); 104 105 // show body after site load 106 $('body').show(); 107 108 /*mag popup*/ 109 $('.video').magnificPopup({ 110 type: 'iframe', 111 112 113 iframe: { 114 markup: '<div class="mfp-iframe-scaler">' + 115 '<div class="mfp-close"></div>' + 116 '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>' + 117 '<div class="mfp-title">Some caption</div>' + 118 '</div>' 119 }, 120 callbacks: { 121 markupParse: function (template, values, item) { 122 values.title = item.el.attr('title'); 123 } 124 } 125 126 }); 127 128 //counter 129 $('.counter').counterUp({ 130 delay: 10, 131 time: 5000 132 }); 133 134 // Main slider 135 var owl = $('.main-slider'); 136 // var owl = $('.carousel'); 137 138 // Carousel initialization 139 owl.owlCarousel({ 140 items: 1, 141 loop: true, 142 margin: 0, 143 autoplay: true, 144 autoplayTimeout: 3000, 145 animateIn: 'fadeIn', 146 animateOut: 'slideOutLeft', 147 autoplayHoverPause: true 148 }); 149 150 // add animate.css class(es) to the elements to be animated 151 function setAnimation(_elem, _InOut) { 152 // Store all animationend event name in a string. 153 // cf animate.css documentation 154 var animationEndEvent = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend'; 155 156 _elem.each(function () { 157 var $elem = $(this); 158 var $animationType = 'animated ' + $elem.data('animation-' + _InOut); 159 160 $elem.addClass($animationType).one(animationEndEvent, function () { 161 $elem.removeClass($animationType); // remove animate.css Class at the end of the animations 162 }); 163 }); 164 } 165 166 // Fired after current slide has been changed 167 owl.on('changed.owl.carousel', function (event) { 168 169 var $currentItem = $('.item', owl).eq(event.item.index); 170 var $elemsToanim = $currentItem.find("[data-animation-in]"); 171 setAnimation($elemsToanim, 'in'); 172 }) 173 174 175 //Testimonial Carousel 176 $(".team-members").owlCarousel({ 177 178 items: 3, 179 loop: true, 180 margin: 10, 181 autoplay: true, 182 autoplayTimeout: 2000, 183 autoplayHoverPause: true, 184 responsiveClass: true, 185 responsive: { 186 320: { 187 items: 1, 188 }, 189 480: { 190 items: 2, 191 }, 192 768: { 193 items: 3, 194 } 195 } 196 }); 197 198 //clients slider Carousel
199 $(".clients-slider").owlCarousel({ 200 items: 5, 201 loop: true, 202 margin: 10, 203 autoplay: true, 204 autoplayTimeout: 2000, 205 autoplayHoverPause: true, 206 responsiveClass: true, 207 responsive: { 208 320: { 209 items: 1, 210 }, 211 480: { 212 items: 2, 213 }, 214 768: { 215 items: 4, 216 } 217 } 218 }); 219 220 //Testimonial slider Carousel 221 $(".testimonial-slider").owlCarousel({ 222 items: 1, 223 loop: true, 224 margin: 10, 225 autoplay: true, 226 autoplayTimeout: 2000, 227 autoplayHoverPause: true, 228 }); 229 230 //About Us slider Carousel 231 $(".about-us-slider").owlCarousel({ 232 items: 1, 233 loop: true, 234 margin: 10, 235 autoplay: true, 236 autoplayTimeout: 2000, 237 autoplayHoverPause: true, 238 }); 239 240 //clients slider Carousel 241 $(".portfolio-slider-2").owlCarousel({ 242 items: 4, 243 loop: true, 244 margin: 0, 245 autoplay: true, 246 autoplayTimeout: 2000, 247 autoplayHoverPause: true, 248 responsiveClass: true, 249 responsive: { 250 320: { 251 items: 1, 252 }, 253 480: { 254 items: 2, 255 }, 256 768: { 257 items: 4, 258 } 259 } 260 }); 261 262 //Sticky menu 263 $(".bussiness-main-menu-1x").sticky({ 264 topSpacing: 0 265 }); 266 267 268 269 270 new WOW().init(); 271 272 // Add Bar Charts 273 // var ctx = document.getElementById("myChart"); 274 // var myChart = new Chart(ctx, { 275 // type: 'bar', 276 // data: { 277 // labels: ["2014", "2015", "2016", "2017", "2018"], 278 // datasets: [{ 279 // label: ' Yearly Statistics', 280 // data: [1, 2, 1.5, 2, 3], 281 // backgroundColor: [ 282 // 'rgba(3, 61, 117, 1)', 283 // 'rgba(3, 61, 117, 1)', 284 // 'rgba(3, 61, 117, 1)', 285 // 'rgba(3, 61, 117, 1)', 286 // 'rgba(3, 61, 117, 1)' 287 // ], 288 // borderColor: [ 289 // 'rgba(3, 61, 117,1)', 290 // 'rgba(3, 61, 117, 1)', 291 // 'rgba(3, 61, 117, 1)', 292 // 'rgba(3, 61, 117, 1)', 293 // 'rgba(3, 61, 117, 1)' 294 // ], 295 // borderWidth: 1 296 // }] 297 // }, 298 // options: { 299 // scales: { 300 // yAxes: [{ 301 // ticks: { 302 // beginAtZero:true 303 // } 304 // }] 305 // } 306 // } 307 // }); 308 309 310 311 312 313 314 315}); // End load document
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.