\B;i0ÇD[L4;i=mDÚ“Accept-Encoding,User-AgentšŒÕ4Z=5‹š­‘± KEY: https://nextviagem.com/wp-content/themes/rktravel/js/main.js HTTP/1.1 200 OK Date: Thu, 11 Dec 2025 21:14:52 GMT Server: Apache Last-Modified: Tue, 10 Jul 2018 14:48:16 GMT Accept-Ranges: bytes Content-Length: 4841 Vary: Accept-Encoding,User-Agent Connection: close Content-Type: application/javascript ; (function() { 'use strict'; // iPad and iPod detection var isiPad = function() { return (navigator.platform.indexOf("iPad") != -1); }; var isiPhone = function() { return ( (navigator.platform.indexOf("iPhone") != -1) || (navigator.platform.indexOf("iPod") != -1) ); }; // Main Menu Superfish var mainMenu = function() { $('#fh5co-primary-menu').superfish({ delay: 0, animation: { opacity: 'show' }, speed: 'fast', cssArrows: true, disableHI: true }); }; //Date Picker $('#date-start, #date-end').datepicker(); [].slice.call(document.querySelectorAll('select.cs-select')).forEach(function(el) { new SelectFx(el); }); // Parallax var parallax = function() { if (!isiPad() || !isiPhone()) { $(window).stellar(); } }; // Offcanvas and cloning of the main menu var offcanvas = function() { var $clone = $('#fh5co-menu-wrap').clone(); $clone.attr({ 'id': 'offcanvas-menu' }); $clone.find('> ul').attr({ 'class': '', 'id': '' }); $('#fh5co-page').prepend($clone); // click the burger $('.js-fh5co-nav-toggle').on('click', function() { if ($('body').hasClass('fh5co-offcanvas')) { $('body').removeClass('fh5co-offcanvas'); } else { $('body').addClass('fh5co-offcanvas'); } // event.preventDefault(); }); $('#offcanvas-menu').css('height', $(window).height()); $(window).resize(function() { var w = $(window); $('#offcanvas-menu').css('height', w.height()); if (w.width() > 769) { if ($('body').hasClass('fh5co-offcanvas')) { $('body').removeClass('fh5co-offcanvas'); } } }); } // Click outside of the Mobile Menu var mobileMenuOutsideClick = function() { $(document).click(function(e) { var container = $("#offcanvas-menu, .js-fh5co-nav-toggle"); if (!container.is(e.target) && container.has(e.target).length === 0) { if ($('body').hasClass('fh5co-offcanvas')) { $('body').removeClass('fh5co-offcanvas'); } } }); }; // Animations var contentWayPoint = function() { var i = 0; $('.animate-box').waypoint(function(direction) { if (direction === 'down' && !$(this.element).hasClass('animated')) { i++; $(this.element).addClass('item-animate'); setTimeout(function() { $('body .animate-box.item-animate').each(function(k) { var el = $(this); setTimeout(function() { el.addClass('fadeInUp animated'); el.removeClass('item-animate'); }, k * 50, 'easeInOutExpo'); }); }, 100); } }, { offset: '85%' }); }; var stickyBanner = function() { var $stickyElement = $('.sticky-banner'); var sticky; if ($stickyElement.length) { sticky = new Waypoint.Sticky({ element: $stickyElement[0], offset: 0 }) } }; var addClasseSubmenu = function() { $('.sf-menu .sub-menu').addClass('fh5co-sub-menu'); } var bannerHome = function() { $('.one-time').slick({ dots: false, arrows: true, infinite: true, speed: 300, slidesToShow: 1, autoplay: true, autoplaySpeed: 3000, }); } var preencher = function(){ var titulo = $('.titlepacote').text(); $('.destino input').val(titulo); } var maskData = function(){ $('.datainicio').mask("00/00/0000"); $('.datafim').mask("00/00/0000"); } var cotas = function(){ $('.box_cotas select').change(function(){ var total = 0; $('.box_cotas option').each(function() { if($(this).is(':selected')){ total += parseFloat($(this).val()); } }); $('.valor_cotas').text('R$ '+total+',00'); $('.form_cotas_valor').val(total+'.00'); }); } // Document on load. $(function() { mainMenu(); parallax(); offcanvas(); mobileMenuOutsideClick(); contentWayPoint(); stickyBanner(); addClasseSubmenu(); bannerHome(); preencher(); maskData(); cotas(); }); }());