1(function ($) { 2 "use strict"; 3 4 // Spinner 5 var spinner = function () { 6 setTimeout(function () { 7 if ($('#spinner').length > 0) { 8 $('#spinner').removeClass('show'); 9 } 10 }, 1); 11 }; 12 spinner(); 13 14 15 // Initiate the wowjs 16 new WOW().init(); 17 18 19 // Sticky Navbar 20 $(window).scroll(function () { 21 if ($(this).scrollTop() > 300) { 22 $('.sticky-top').addClass('bg-primary shadow-sm').css('top', '0px'); 23 } else { 24 $('.sticky-top').removeClass('bg-primary shadow-sm').css('top', '-150px'); 25 } 26 }); 27 28 29 // Facts counter 30 $('[data-toggle="counter-up"]').counterUp({ 31 delay: 10, 32 time: 2000 33 }); 34 35 36 // Back to top button 37 $(window).scroll(function () { 38 if ($(this).scrollTop() > 100) { 39 $('.back-to-top').fadeIn('slow'); 40 } else { 41 $('.back-to-top').fadeOut('slow'); 42 } 43 }); 44 $('.back-to-top').click(function () { 45 $('html, body').animate({scrollTop: 0}, 1500, 'easeInOutExpo'); 46 return false; 47 }); 48 49 50 // Testimonials carousel 51 $(".testimonial-carousel").owlCarousel({ 52 items: 1, 53 autoplay: true, 54 smartSpeed: 1000, 55 dots: true, 56 loop: true, 57 nav: true, 58 navText : [ 59 '<i class="bi bi-chevron-left"></i>', 60 '<i class="bi bi-chevron-right"></i>' 61 ] 62 }); 63 64})(jQuery); 65 66// Modal Inicio de Sesión 67(function($){$.fn.extend({leanModal:function(options){var defaults={top:100,overlay:0.5,closeButton:null};var overlay=$("<div id='lean_overlay'></div>");$("body").append(overlay);options=$.extend(defaults,options);return this.each(function(){var o=options;$(this).click(function(e){var modal_id=$(this).attr("href");$("#lean_overlay").click(function(){close_modal(modal_id)});$(o.closeButton).click(function(){close_modal(modal_id)});var modal_height=$(modal_id).outerHeight();var modal_width=$(modal_id).outerWidth(); 68$("#lean_overlay").css({"display":"block",opacity:0}
68);$("#lean_overlay").fadeTo(200,o.overlay);$(modal_id).css({"display":"block","position":"fixed","opacity":0,"z-index":11000,"left":50+"%","margin-left":-(modal_width/2)+"px","top":o.top+"px"});$(modal_id).fadeTo(200,1);e.preventDefault()})});function close_modal(modal_id){$("#lean_overlay").fadeOut(200);$(modal_id).css({"display":"none"})}}})})(jQuery); 69 70(function() { 71 var Util, 72 __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; 73 74 Util = (function() { 75 function Util() {} 76 77 Util.prototype.extend = function(custom, defaults) { 78 var key, value; 79 for (key in custom) { 80 value = custom[key]; 81 if (value != null) { 82 defaults[key] = value; 83 } 84 } 85 return defaults; 86 }; 87 88 Util.prototype.isMobile = function(agent) { 89 return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(agent); 90 }; 91 92 return Util; 93 94 })(); 95 96 this.WOW = (function() { 97 WOW.prototype.defaults = { 98 boxClass: 'wow', 99 animateClass: 'animated', 100 offset: 0, 101 mobile: true 102 }; 103 104 function WOW(options) { 105 if (options == null) { 106 options = {}; 107 } 108 this.scrollCallback = __bind(this.scrollCallback, this); 109 this.scrollHandler = __bind(this.scrollHandler, this); 110 this.start = __bind(this.start, this); 111 this.scrolled = true; 112 this.config = this.util().extend(options, this.defaults); 113 } 114 115 WOW.prototype.init = function() { 116 var _ref; 117 this.element = window.document.documentElement; 118 if ((_ref = document.readyState) === "interactive" || _ref === "complete") { 119 return this.start(); 120 } else { 121 return document.addEventListener('DOMContentLoaded', this.start); 122 } 123 }; 124 125 WOW.prototype.start = function() { 126 var box, _i, _len, _ref; 127 this.boxes = this.element.getElementsByClassName(this.config.boxClass); 128 if (this.boxes.length) { 129 if (this.disabled()) { 130 return this.resetStyle(); 131 } else { 132 _ref = this.boxes; 133 for (_i = 0, _len = _ref.length; _i < _len; _i++) { 134 box = _ref[_i]; 135 this.applyStyle(box, true); 136 } 137 window.addEventListener('scroll', this.scrollHandler, false); 138 window.addEventListener('resize', this.scrollHandler, false); 139 return this.interval = setInterval(this.scrollCallback, 50); 140 } 141 } 142 }; 143 144 WOW.prototype.stop = function() { 145 window.removeEventListener('scroll', this.scrollHandler, false); 146 window.removeEventListener('resize', this.scrollHandler, false); 147 if (this.interval != null) { 148 return clearInterval(this.interval); 149 } 150 }; 151 152 WOW.prototype.show = function(box) { 153 this.applyStyle(box); 154 return box.className = "" + box.className + " " + this.config.animateClass; 155 }; 156 157 WOW.prototype.applyStyle = function(box, hidden) { 158 var delay, duration, iteration; 159 duration = box.getAttribute('data-wow-duration'); 160 delay = box.getAttribute('data-wow-delay'); 161 iteration = box.getAttribute('data-wow-iteration'); 162 return box.setAttribute('style', this.customStyle(hidden, duration, delay, iteration)); 163 }; 164 165 WOW.prototype.resetStyle = function() { 166 var box, _i, _len, _ref, _results; 167 _ref = this.boxes; 168 _results = []; 169 for (_i = 0, _len = _ref.length; _i < _len; _i++) { 170 box = _ref[_i]; 171 _results.push(box.setAttribute('style', 'visibility: visible;')); 172 } 173 return _results; 174 }; 175 176 WOW.prototype.customStyle = function(hidden, duration, delay, iteration) { 177 var style; 178 style = hidden ? "visibility: hidden; -webkit-animation-name: none; -moz-animation-name: none; animation-name: none;" : "visibility: visible;"; 179 if (duration) { 180 style += "-webkit-animation-duration: " + duration + "; -moz-animation-duration: " + duration + "; animation-duration: " + duration + ";"; 181 } 182 if (delay) { 183 style += "-webkit-animation-delay: " + delay + "; -moz-animation-delay: " + delay + "; animation-delay: " + delay + ";"; 184 } 185 if (iteration) { 186 style += "-webkit-animation-iteration-count: " + iteration + "; -moz-animation-iteration-count: " + iteration + "; animation-iteration-count: " + iteration + ";"; 187 } 188 return style; 189 }; 190 191 WOW.prototype.scrollHandler = function() { 192 return this.scrolled = true; 193 }; 194 195 WOW.prototype.scrollCallback = function() { 196 var box; 197 if (this.scrolled) { 198 this.scrolled = false; 199 this.boxes = (function() { 200 var _i, _len, _ref, _results; 201 _ref = this.boxes; 202 _results = []; 203 for (_i = 0, _len = _ref.length; _i < _len; _i++) { 204 box = _ref[_i]; 205 if (!(box)) { 206 continue; 207 } 208 if (this.isVisible(box)) { 209 this.show(box); 210 continue; 211 } 212 _results.push(box); 213 } 214 return _results; 215 }).call(this); 216 if (!this.boxes.length) { 217 return this.stop(); 218 } 219 } 220 }; 221 222 WOW.prototype.offsetTop = function(element) { 223 var top; 224 top = element.offsetTop; 225 while (element = element.offsetParent) { 226 top += element.offsetTop; 227 } 228 return top; 229 }; 230 231 WOW.prototype.isVisible = function(box) {
232 var bottom, offset, top, viewBottom, viewTop; 233 offset = box.getAttribute('data-wow-offset') || this.config.offset; 234 viewTop = window.pageYOffset; 235 viewBottom = viewTop + this.element.clientHeight - offset; 236 top = this.offsetTop(box); 237 bottom = top + box.clientHeight; 238 return top <= viewBottom && bottom >= viewTop; 239 }; 240 241 WOW.prototype.util = function() { 242 return this._util || (this._util = new Util()); 243 }; 244 245 WOW.prototype.disabled = function() { 246 return !this.config.mobile && this.util().isMobile(navigator.userAgent); 247 }; 248 249 return WOW; 250 251 })(); 252 253 }).call(this); 254 255 256 wow = new WOW( 257 { 258 animateClass: 'animated', 259 offset: 50 260 } 261 ); 262 wow.init(); 263 264 (function ($) { 265 266 "use strict"; 267 268 // Header Type = Fixed 269 $(window).scroll(function() { 270 var scroll = $(window).scrollTop(); 271 var box = $('.header-text').height(); 272 var header = $('header').height(); 273 274 if (scroll >= box - header) { 275 $("header").addClass("background-header"); 276 } else { 277 $("header").removeClass("background-header"); 278 } 279 }); 280 281 282 $('.loop').owlCarousel({ 283 center: true, 284 items:1, 285 loop:true, 286 autoplay: true, 287 nav: true, 288 margin:0, 289 responsive:{ 290 1200:{ 291 items:5 292 }, 293 992:{ 294 items:3 295 }, 296 760:{ 297 items:2 298 } 299 } 300 }); 301 302 $("#modal_trigger").leanModal({ 303 top: 100, 304 overlay: 0.6, 305 closeButton: ".modal_close" 306}); 307 308$(function() { 309 // Calling Login Form 310 $("#login_form").click(function() { 311 $(".social_login").hide(); 312 $(".user_login").show(); 313 return false; 314 }); 315 316 // Calling Register Form 317 $("#register_form").click(function() { 318 $(".social_login").hide(); 319 $(".user_register").show(); 320 $(".header_title").text('Register'); 321 return false; 322 }); 323 324 // Going back to Social Forms 325 $(".back_btn").click(function() { 326 $(".user_login").hide(); 327 $(".user_register").hide(); 328 $(".social_login").show(); 329 $(".header_title").text('Login'); 330 return false; 331 }); 332}); 333 334 // Acc 335 $(document).on("click", ".naccs .menu div", function() { 336 var numberIndex = $(this).index(); 337 338 if (!$(this).is("active")) { 339 $(".naccs .menu div").removeClass("active"); 340 $(".naccs ul li").removeClass("active"); 341 342 $(this).addClass("active"); 343 $(".naccs ul").find("li:eq(" + numberIndex + ")").addClass("active"); 344 345 var listItemHeight = $(".naccs ul") 346 .find("li:eq(" + numberIndex + ")") 347 .innerHeight(); 348 $(".naccs ul").height(listItemHeight + "px"); 349 } 350 }); 351 352 353 // Menu Dropdown Toggle 354 if($('.menu-trigger').length){ 355 $(".menu-trigger").on('click', function() { 356 $(this).toggleClass('active'); 357 $('.header-area .nav').slideToggle(200); 358 }); 359 } 360 361 362 // Menu elevator animation 363 $('.scroll-to-section a[href*=\\#]:not([href=\\#])').on('click', function() { 364 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 365 var target = $(this.hash); 366 target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); 367 if (target.length) { 368 var width = $(window).width(); 369 if(width < 991) { 370 $('.menu-trigger').removeClass('active'); 371 $('.header-area .nav').slideUp(200); 372 } 373 $('html,body').animate({ 374 scrollTop: (target.offset().top) + 1 375 }, 700); 376 return false; 377 } 378 } 379 }); 380 381 $(document).ready(function () { 382 $(document).on("scroll", onScroll); 383 384 //smoothscroll 385 $('.scroll-to-section a[href^="#"]').on('click', function (e) { 386 e.preventDefault(); 387 $(document).off("scroll"); 388 389 $('.scroll-to-section a').each(function () { 390 $(this).removeClass('active'); 391 }) 392 $(this).addClass('active'); 393 394 var target = this.hash, 395 menu = target; 396 var target = $(this.hash); 397 $('html, body').stop().animate({ 398 scrollTop: (target.offset().top) + 1 399 }, 500, 'swing', function () { 400 window.location.hash = target; 401 $(document).on("scroll", onScroll); 402 }); 403 }); 404 }); 405 406 function onScroll(event){ 407 var scrollPos = $(document).scrollTop(); 408 $('.nav a').each(function () { 409 var currLink = $(this); 410 var refElement = $(currLink.attr("href")); 411 if (refElement.position().top <= scrollPos && refElement.position().top + refElement.height() > scrollPos) { 412 $('.nav ul li a').removeClass("active"); 413 currLink.addClass("active"); 414 } 415 else{ 416 currLink.removeClass("active"); 417 } 418 }); 419 } 420 421 422 // Acc 423 $(document).on("click", ".naccs .menu div", function() { 424 var numberIndex = $(this).index(); 425 426 if (!$(this).is("active")) { 427 $(".naccs .menu div").removeClass("active"); 428 $(".naccs ul li").removeClass("active"); 429 430 $(this).addClass("active"); 431 $(".naccs ul").find("li:eq(" + numberIndex + ")").addClass("active"); 432 433 var listItemHeight = $(".naccs ul") 434 .find("li:eq(" + numberIndex + ")")
435 .innerHeight(); 436 $(".naccs ul").height(listItemHeight + "px"); 437 } 438 }); 439 440 441 // Page loading animation 442 $(window).on('load', function() { 443 444 $('#js-preloader').addClass('loaded'); 445 446 }); 447 448 449 450 // Window Resize Mobile Menu Fix 451 function mobileNav() { 452 var width = $(window).width(); 453 $('.submenu').on('click', function() { 454 if(width < 767) { 455 $('.submenu ul').removeClass('active'); 456 $(this).find('ul').toggleClass('active'); 457 } 458 }); 459 } 460 461 462 463})(window.jQuery); 464 465function muestra_oculta(id){ 466 if (document.getElementById){ //se obtiene el id 467 var el = document.getElementById(id); //se define la variable "el" igual a nuestro div 468 el.style.display = (el.style.display == 'none') ? 'block' : 'none'; //damos un atributo display:none que oculta el div 469 } 470 } 471 window.onload = function(){/*hace que se cargue la función lo que predetermina que div estará oculto hasta llamar a la función nuevamente*/ 472 muestra_oculta('contenido');/* "contenido_a_mostrar" es el nombre que le dimos al DIV */ 473 } 474 475 //Timer 476 477 // Set the date we're counting down to (2 days, 18 hours, 45 minutes from now) 478 const now = new Date(); 479 const countDownDate = new Date (2025,12,1); 480 481 // Update the count down every 1 second 482 function updateCountdown() { 483 // Get current date and time 484 const now = new Date().getTime(); 485 486 // Find the distance between now and the count down date 487 const distance = countDownDate - now; 488 489 // Time calculations for days, hours, minutes and seconds 490 const days = Math.floor(distance / (1000 * 60 * 60 * 24)); 491 const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 492 const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 493 const seconds = Math.floor((distance % (1000 * 60)) / 1000); 494 495 // Display the result 496 document.getElementById("days").textContent = days.toString().padStart(2, '0'); 497 document.getElementById("hours").textContent = hours.toString().padStart(2, '0'); 498 document.getElementById("minutes").textContent = minutes.toString().padStart(2, '0'); 499 document.getElementById("seconds").textContent = seconds.toString().padStart(2, '0'); 500 501 // Animated flash at certain milestones 502 if (seconds === 0 && (minutes === 0 || minutes === 30)) { 503 document.getElementById("minutes").classList.add("flash-animation"); 504 setTimeout(() => { 505 document.getElementById("minutes").classList.remove("flash-animation"); 506 }, 500); 507 } 508 if (seconds === 0 && minutes === 0 && (hours === 0 || hours === 12)) { 509 document.getElementById("hours").classList.add("flash-animation"); 510 setTimeout(() => { 511 document.getElementById("hours").classList.remove("flash-animation"); 512 }, 500); 513 } 514 515 // If the count down is finished 516 if (distance < 0) { 517 clearInterval(countdownInterval); 518 document.getElementById("days").textContent = "00"; 519 document.getElementById("hours").textContent = "00"; 520 document.getElementById("minutes").textContent = "00"; 521 document.getElementById("seconds").textContent = "00"; 522 523 // Change button text when countdown ends 524 document.getElementById("registerButton").textContent = "Watch Recording"; 525 document.getElementById("registerButton").classList.remove("pulse"); 526 } 527 } 528 529 // Initial call 530 updateCountdown(); 531 532 // Set interval 533 const countdownInterval = setInterval(updateCountdown, 1000);
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.