var customSlideAdvancerHome; /* $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') || location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top }, 1000); return false; } } }); */ jQuery(document).ready(function($) { $('.language-hover-to-expand a').addClass('top-level'); $('.language-hover-to-expand').append('
'); $(".mobile-menu-toggle").click(function(e) { e.preventDefault(); if (!($("a.mobile-menu-toggle").hasClass('is-active'))) { $("a.mobile-menu-toggle").addClass('is-active'); } else { $("a.mobile-menu-toggle.is-active").removeClass('is-active'); } if (!($(".mobile-toggle-nav").hasClass("visibile"))) { $(".mobile-toggle-nav").addClass("visibile vis"); } else { $(".mobile-toggle-nav").removeClass("visibile vis"); } }); $('#site-scroll-top').on('click', 'a', function(event){ event.preventDefault(); $('html, body').animate({ scrollTop: $( $.attr(this, 'href') ).offset().top }, 500); }); $('#light-slider-main-banner').lightSlider({ gallery:true, item:1, auto:true, pauseOnHover:true, loop:true, slideMargin:0, enableDrag: false, currentPagerPosition:'left', }); $('#testimonial-nav > .tab-link').click(function() { var tab = $('#tab-' + $(this).attr('tab')); if (tab.length) { // Hide active tab & selected style: $('.tab-content.current').removeClass('current'); $('#testimonial-nav .current').removeClass('current'); // Show clicked tab content tab.addClass('current'); $(this).addClass('current'); tab.show("slide", { direction: "down" }, 1000); $(this).show("puff", {}, 10); } }); // starting index var currTab = 0; // count of all tabs var totalTabs = $("#testimonial-nav > .tab-link").length; // function to pass to setInterval function cycle() { // simulate click on current tab $("#testimonial-nav > .tab-link").eq(currTab).click(); // increment counter currTab++; // reset if we're at the last one if (currTab == totalTabs) { currTab = 0; } } // go! var i = setInterval(cycle, 10000); $('.post-in-category-tech-center .single-blog-article > .entry a:has(img)').attr('rel', 'image-lightbox'); /* * windowSize * call this function to get windowSize any time */ function windowSize() { windowHeight = window.innerHeight ? window.innerHeight : $(window).height(); windowWidth = window.innerWidth ? window.innerWidth : $(window).width(); } //Init Function of init it wherever you like... windowSize(); $(window).resize(function() { windowSize(); if (windowWidth < 768) { $('.post-in-category-tech-center .single-blog-article > .entry a:has(img)').removeAttr('rel', 'image-lightbox'); $('.post-in-category-tech-center .single-blog-article > .entry a:has(img)').addClass('lightbox-disabled'); } else { $('.post-in-category-tech-center .single-blog-article > .entry a:has(img)').attr('rel', 'image-lightbox'); $('.post-in-category-tech-center .single-blog-article > .entry a:has(img)').removeClass('lightbox-disabled'); } }); //BETH ADDITIONS 1.27.17 $("[rel='tooltip']").tooltip(); $('.thumbnail').hover( function(){ $(this).find('.caption').fadeIn(200); }, function(){ $(this).find('.caption').fadeOut(200); } ); $("#falcon-host-corner-slider").cornerSlider({ elemToPresent : "#falcon-host-show-cta", directionEffect : "right", speedEffect : 300, right : 20, bottom : 20, cookieMinutesToExpiry : 15, }); $('ul.tabs li').click(function(){ var tab_id = $(this).attr('data-tab'); $('ul.tabs li').removeClass('current'); $('.tab-content').removeClass('current'); $(this).addClass('current'); $("#"+tab_id).addClass('current'); }) /* $('.mobile-menu-toggle').on('click', function(e) { e.preventDefault(); if(!$('.mobile-toggle-nav').hasClass('visible')) { $('.mobile-menu-toggle').addClass('is-active'); } else { $('.mobile-menu-toggle').removeClass('is-active'); } return false; }); */ /* $('.mobile-menu-toggle').on('click', function(e) { e.preventDefault(); if(!$('.mobile-toggle-nav').hasClass('visible')) { $(this).addClass('is-active'); } if($('.mobile-toggle-nav').hasClass('visible')) { $(this).removeClass('is-active'); $('.mobile-toggle-nav.visible').removeClass('visible'); } });*/ //CONTACT US - Slide down reveal hidden maps var hiddenContent = $( "div#hiddenMaps" ); $( "a.showMaps" ).click( function( event ){ event.preventDefault(); if (hiddenContent.is( ":visible" )){ hiddenContent.slideUp( 300 ); $( "a.showMaps span" ).text( "VIEW" ); } else { hiddenContent.slideDown( 300 ); $( "a.showMaps span" ).text( "CLOSE" ); } } ); //Google Maps - prevent initial zoom scroll $('.cs-map').addClass('scrolloff'); $('.map-overlay').on("mouseup",function(){ $('.cs-map').addClass('scrolloff'); }); $('.map-overlay').on("mousedown",function(){ $('.cs-map').removeClass('scrolloff'); }); $(".cs-map").mouseleave(function () { $('.cs-map').addClass('scrolloff'); }); //Home globe space-dots parallax section $.fn.moveIt = function(){ var $window = $(window); var instances = []; $(this).each(function(){ instances.push(new moveItItem($(this))); }); window.onscroll = function(){ var scrollTop = $window.scrollTop(); instances.forEach(function(inst){ inst.update(scrollTop); }); } } var moveItItem = function(el){ this.el = $(el); this.speed = parseInt(this.el.attr('data-scroll-speed')); }; moveItItem.prototype.update = function(scrollTop){ var pos = scrollTop / this.speed; this.el.css('transform', 'translateY(' + -pos + 'px)'); }; $(function(){ $('[data-scroll-speed]').moveIt(); }); //image greyscale filter hover $(function(){ $('#tribune-quote a').on('mouseenter mouseleave', function(){ $( '#tribune-quote' ).find( '.grey-image' ).toggleClass('color-image'); }); }); $(function(){ $('#rackspace-quote a').on('mouseenter mouseleave', function(){ $( '#rackspace-quote' ).find( '.grey-image' ).toggleClass('color-image'); }); }); $(function(){ $('#cardinal-quote a').on('mouseenter mouseleave', function(){ $( '#cardinal-quote' ).find( '.grey-image' ).toggleClass('color-image'); }); }); // Falcon Host slider var customSlideAdvancer = function () { var numSlides = $('#falcon-slider .slideshow-container .slide').length; var currentSlide = $('#falcon-slider .slideshow-container .slide.active'); var slideIndex = $('#falcon-slider .slideshow-container .slide').index(currentSlide) + 1; var prevSlide = slideIndex - 1; if (prevSlide < 1) {prevSlide = 6;} var nextSlide = slideIndex + 1; if (nextSlide > numSlides) {nextSlide = 1;} $('.slider-section, #falcon-slider .slideshow-container .slide.active, #falcon-slider .tooltip-container .tooltip.active').each(function() { $(this).removeClass('active'); }); $("#falcon-slider .slideshow-container .slide:nth-child(" + nextSlide + ")").addClass('active'); $("#falcon-slider .tooltip-container .tooltip:nth-child(" + nextSlide + ")").addClass('active'); $("#slider-top-bar-red span:nth-child(" + nextSlide + ")").addClass("active"); } if (/falcon-host/.test(window.location.href)) { var slideTimer = setInterval(customSlideAdvancer, 10000); } //general slide nav $('#falcon-slider nav.anim-arrows .anim-arrows-prev').click(function() { var numSlides = $('#falcon-slider .slideshow-container .slide').length; var currentSlide = $('#falcon-slider .slideshow-container .slide.active'); var slideIndex = $('#falcon-slider .slideshow-container .slide').index(currentSlide) + 1; var prevSlide = slideIndex - 1; if (prevSlide < 1) {prevSlide = 6;} var nextSlide = slideIndex + 1; if (nextSlide > numSlides) {nextSlide = 1;} $('.slider-section, #falcon-slider .slideshow-container .slide.active, #falcon-slider .tooltip-container .tooltip.active').each(function() { $(this).removeClass('active'); }); $("#falcon-slider .slideshow-container .slide:nth-child(" + prevSlide + ")").addClass('active'); $("#falcon-slider .tooltip-container .tooltip:nth-child(" + prevSlide + ")").addClass('active'); $("#slider-top-bar-red span:nth-child(" + prevSlide + ")").addClass("active"); clearInterval(slideTimer); slideTimer = setInterval(customSlideAdvancer, 10000); }); $('#falcon-slider nav.anim-arrows .anim-arrows-next').click(function() { var numSlides = $('#falcon-slider .slideshow-container .slide').length; var currentSlide = $('#falcon-slider .slideshow-container .slide.active'); var slideIndex = $('#falcon-slider .slideshow-container .slide').index(currentSlide) + 1; var prevSlide = slideIndex - 1; if (prevSlide < 1) {prevSlide = 6;} var nextSlide = slideIndex + 1; if (nextSlide > numSlides) {nextSlide = 1;} $('.slider-section, #falcon-slider .slideshow-container .slide.active, #falcon-slider .tooltip-container .tooltip.active').each(function() { $(this).removeClass('active'); }); $("#falcon-slider .slideshow-container .slide:nth-child(" + nextSlide + ")").addClass('active'); $("#falcon-slider .tooltip-container .tooltip:nth-child(" + nextSlide + ")").addClass('active'); $("#slider-top-bar-red span:nth-child(" + nextSlide + ")").addClass("active"); clearInterval(slideTimer); slideTimer = setInterval(customSlideAdvancer, 10000); }); // Calling specific slides $('#falcon-prevent-trigger').click(function() { $('.slider-section, #falcon-slider .slideshow-container .slide.active, #falcon-slider .tooltip-container .tooltip.active').each(function() { $(this).removeClass('active'); }); $(this).addClass("active"); $('#falcon-slider .slideshow-container .slide-1, #falcon-slider .tooltip-container .tooltip-1').addClass('active'); clearInterval(slideTimer); slideTimer = setInterval(customSlideAdvancer, 10000); }); $('#falcon-detect-trigger').click(function() { $('.slider-section, #falcon-slider .slideshow-container .slide.active, #falcon-slider .tooltip-container .tooltip.active').each(function() { $(this).removeClass('active'); }); $(this).addClass("active"); $('#falcon-slider .slideshow-container .slide-2, #falcon-slider .tooltip-container .tooltip-2').addClass('active'); clearInterval(slideTimer); slideTimer = setInterval(customSlideAdvancer, 10000); }); $('#falcon-investigate-trigger').click(function() { $('.slider-section, #falcon-slider .slideshow-container .slide.active, #falcon-slider .tooltip-container .tooltip.active').each(function() { $(this).removeClass('active'); }); $(this).addClass("active"); $('#falcon-slider .slideshow-container .slide-3, #falcon-slider .tooltip-container .tooltip-3').addClass('active'); clearInterval(slideTimer); slideTimer = setInterval(customSlideAdvancer, 10000); }); $('#falcon-dashboards-trigger').click(function() { $('.slider-section, #falcon-slider .slideshow-container .slide.active, #falcon-slider .tooltip-container .tooltip.active').each(function() { $(this).removeClass('active'); }); $(this).addClass("active"); $('#falcon-slider .slideshow-container .slide-4, #falcon-slider .tooltip-container .tooltip-4').addClass('active'); clearInterval(slideTimer); slideTimer = setInterval(customSlideAdvancer, 10000); }); $('#falcon-adversaries-trigger').click(function() { $('.slider-section, #falcon-slider .slideshow-container .slide.active, #falcon-slider .tooltip-container .tooltip.active').each(function() { $(this).removeClass('active'); }); $(this).addClass("active"); $('#falcon-slider .slideshow-container .slide-5, #falcon-slider .tooltip-container .tooltip-5').addClass('active'); clearInterval(slideTimer); slideTimer = setInterval(customSlideAdvancer, 10000); }); $('#falcon-events-trigger').click(function() { $('.slider-section, #falcon-slider .slideshow-container .slide.active, #falcon-slider .tooltip-container .tooltip.active').each(function() { $(this).removeClass('active'); }); $(this).addClass("active"); $('#falcon-slider .slideshow-container .slide-6, #falcon-slider .tooltip-container .tooltip-6').addClass('active'); clearInterval(slideTimer); slideTimer = setInterval(customSlideAdvancer, 10000); }); //jQuery to enable touch swipe navigation on the slideshow, requires jQuery cjSwipe plugin $('#falcon-slider .slideshow-container').cjSwipe('on', function(swipedRight) { $('#falcon-slider .slideshow-container').stop(true, true); if (swipedRight) { $('#falcon-slider .slideshow-container').backstretch("next"); $('#falcon-slider .tooltip-container').backstretch("next"); clearInterval(slideTimer); slideTimer = setInterval(customSlideAdvancer, 10000); } else { $('#falcon-slider .slideshow-container').backstretch("prev"); $('#falcon-slider .tooltip-container').backstretch("prev"); clearInterval(slideTimer); slideTimer = setInterval(customSlideAdvancer, 10000); } }); if ($("#why-cs-sticky-nav")) { $(window).scroll(function() { if ($(this).scrollTop() > 346 ) { $("#why-cs-sticky-nav").show(); $('#inner-banner-nav').hide(); if (screen.width > 736) { $('#sticky-nav-cushion').show(); } } else { $('#sticky-nav-cushion').hide(); $('#why-cs-sticky-nav').hide(); $('#inner-banner-nav').show(); } }); } //jQuery for page scrolling feature - requires jQuery Easing plugin $(function() { $('#why-cs-sticky-nav ul li a').bind('click', function(event) { var $anchor = $(this); $('html, body').stop().animate({ scrollTop: ($($anchor.attr('href')).offset().top - 134) }, 1500, 'easeInOutExpo'); event.preventDefault(); }); $('#arch-interactive-graphic-wrap a.interactive-icon').bind('click', function(event) { var $anchor = $(this); $('html, body').stop().animate({ scrollTop: ($($anchor.attr('href')).offset().top - 104) }, 1500, 'easeInOutExpo'); event.preventDefault(); }); $('#why-cs-intro-banner #inner-banner-nav a').bind('click', function(event) { var $anchor = $(this); $('html, body').stop().animate({ scrollTop: ($($anchor.attr('href')).offset().top - 268) }, 1500, 'easeInOutExpo'); event.preventDefault(); var activeTabName = $anchor.attr('href'); if ($anchor.attr('href') == '#detect-undetectable') { $('#why-cs-sticky-nav>ul>li.active').removeClass('active'); $('#why-cs-sticky-nav ul li.detect-undetectable').addClass('active'); } else if ($anchor.attr('href') == '#instant-visibility-div') { $('#why-cs-sticky-nav>ul>li.active').removeClass('active'); $('#why-cs-sticky-nav ul li.instant-visibility').addClass('active'); } else if ($anchor.attr('href') == '#lower-cost-div') { $('#why-cs-sticky-nav>ul>li.active').removeClass('active'); $('#why-cs-sticky-nav ul li.lower-cost').addClass('active'); } else if ($anchor.attr('href') == '#reduce-complexity-div') { $('#why-cs-sticky-nav>ul>li.active').removeClass('active'); $('#why-cs-sticky-nav ul li.reduce-complexity').addClass('active'); } else if ($anchor.attr('href') == '#managed-hunting-div') { $('#why-cs-sticky-nav>ul>li.active').removeClass('active'); $('#why-cs-sticky-nav ul li.managed-hunting').addClass('active'); } else if ($anchor.attr('href') == '#integrated-intel-div') { $('#why-cs-sticky-nav>ul>li.active').removeClass('active'); $('#why-cs-sticky-nav ul li.integrated-intel').addClass('active'); } }); $('#falcon-platform-banner #inner-banner-nav a').bind('click', function(event) { var $anchor = $(this); $('html, body').stop().animate({ scrollTop: ($($anchor.attr('href')).offset().top - 134) }, 1500, 'easeInOutExpo'); event.preventDefault(); var activeTabName = $anchor.attr('href'); if ($anchor.attr('href') == '#falcon-host-div') { $('#why-cs-sticky-nav>ul>li.active').removeClass('active'); $('#why-cs-sticky-nav ul li.falcon-host-nav').addClass('active'); } else if ($anchor.attr('href') == '#falcon-intelligence-div') { $('#why-cs-sticky-nav>ul>li.active').removeClass('active'); $('#why-cs-sticky-nav ul li.falcon-intelligence-nav').addClass('active'); } else if ($anchor.attr('href') == '#falcon-dns-div') { $('#why-cs-sticky-nav>ul>li.active').removeClass('active'); $('#why-cs-sticky-nav ul li.falcon-dns-nav').addClass('active'); } }); }); $('#why-cs-sticky-nav ul li a').click(function() { var $anchor = $(this); $('html, body').stop().animate({ scrollTop: ($($anchor.attr('href')).offset().top - 134) }, 1500, 'easeInOutExpo'); event.preventDefault(); var activeTabName = $anchor.attr('href'); $('#why-cs-sticky-nav>ul>li.active').removeClass('active'); $(this).parentElement.addClass('active'); }); $('#why-cs-sticky-nav>ul>li').click(function(){ if ($(this).hasClass('active')) { $(this).removeClass('active'); } else { $('#why-cs-sticky-nav>ul>li.active').removeClass('active'); $(this).addClass('active'); } }); /* adversary cards */ /* $('#china-card-container, #iran-card-container, #russia-card-container').flip({ axis: 'y', trigger: 'click', }); */ /*** Services page - CS Advantage ***/ $('#cs-advantage-expandable .single-service-wrapper').mouseenter(function() { $(this).find('.back').toggle(); $(this).find('.front').toggle(); }).mouseleave(function() { $(this).find('.front').toggle(); $(this).find('.back').toggle(); }); /*** Services Proactive Services Tabs ***/ $('#what-service-tabs-block #tab-1').click(function(){ $("#what-service-tabs-block .tab-row-wrap .tab-wrapper.selected").removeClass("selected"); $(this).addClass("selected"); $('#tab-content-2, #tab-content-3').hide(); $('#tab-content-1').show(); $('#what-service-tabs-block').removeClass('bg-blue-img bg-red-img').addClass('bg-green-img'); }); $('#what-service-tabs-block #tab-2').click(function() { $("#what-service-tabs-block .tab-row-wrap .tab-wrapper.selected").removeClass("selected"); $(this).addClass("selected"); $('#tab-content-1, #tab-content-3').hide(); $('#tab-content-2').show(); $('#what-service-tabs-block').removeClass('bg-green-img bg-red-img').addClass('bg-blue-img'); }); $('#what-service-tabs-block #tab-3').click(function() { $("#what-service-tabs-block .tab-row-wrap .tab-wrapper.selected").removeClass("selected"); $(this).addClass("selected"); $('#tab-content-1, #tab-content-2').hide(); $('#tab-content-3').show(); $('#what-service-tabs-block').removeClass('bg-green-img bg-blue-img').addClass('bg-red-img'); }); /* modals */ $('a.multi-trigger-modal-trigger, a#modal-trigger, a#modal-close, #modal-overlay').click(function(){ $(window).scrollTop(0); $('#modal-wrapper').toggle(); var url = $('#video-modal-frame').attr('src'); $('#video-modal-frame').attr('src', ''); $('#video-modal-frame').attr('src', url); }); $('a#modal-trigger-secondary, a#modal-close-secondary, #modal-overlay-secondary').click(function(){ $(window).scrollTop(0); $('#modal-wrapper-secondary').toggle(); var url = $('#video-modal-frame-secondary').attr('src'); $('#video-modal-frame-secondary').attr('src', ''); $('#video-modal-frame-secondary').attr('src', url); }); $('a.modal-trigger, a.modal-close, .modal-overlay').click(function() { $(window).scrollTop(0); $(this).closest('.live-demo-wrapper').find('.modal-wrapper').toggle(); }); $('a#modal-transcript-trigger, #modal-transcript-close, #modal-transcript-overlay').click(function() { $(window).scrollTop(0); $('#modal-transcript-wrapper').toggle(); }); function isScrolledIntoView(elem) { var $elem = $(elem); var $window = $(window); var docViewTop = $window.scrollTop(); var docViewBottom = docViewTop + $window.height(); var elemTop = $elem.offset().top; var elemBottom = elemTop + $elem.height(); return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop)); } if (/proactive-services/.test(window.location.href)) { var is_chrome = navigator.userAgent.indexOf('Chrome') > -1; var is_explorer = navigator.userAgent.indexOf('MSIE') > -1; var is_firefox = navigator.userAgent.indexOf('Firefox') > -1; var is_safari = navigator.userAgent.indexOf("Safari") > -1; var is_opera = navigator.userAgent.toLowerCase().indexOf("op") > -1; if ((is_chrome)&&(is_safari)) {is_safari=false;} if ((is_chrome)&&(is_opera)) {is_chrome=false;} if ((is_safari)) { $('div.tab-row').addClass('is-safari'); } } function detectmob() { if( navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Windows Phone/i) ) { return true; } else { return false; } } var mobilecheck = detectmob(); if (!(mobilecheck)) { $('#homepage-video-bg').append(''); $('#about-us-video-banner').prepend(''); } /* if (/blog/.test(window.location.href)) { $('#top-bar').append(' |'); } $('#top-bar .cs-search-icon.desktop.blog').click(function(){ $('#___gcse_0').toggle(); }); */ //prettyPhoto lightbox - Tech Center Blog Images $("a[rel^='image-lightbox']").prettyPhoto({ animation_speed: 'fast', theme: 'light_square', show_title: false, //horizontal_padding: 20, allow_resize: true, //default_width: 580, //default_height: 400, social_tools: false, deeplinking:false, }); // Home page slider customSlideAdvancerHome = function () { var numSlides = $('#homepage-slider .slideshow-container .slide').length; var currentSlide = $('#homepage-slider .slideshow-container .slide.active'); var slideIndex = $('#homepage-slider .slideshow-container .slide').index(currentSlide) + 1; var prevSlide = slideIndex - 1; if (prevSlide < 1) {prevSlide = 2;} var nextSlide = slideIndex + 1; if (nextSlide > numSlides) {nextSlide = 1;} $('#homepage-slider .slideshow-container .slide.active').each(function() { $(this).addClass('hide-left'); }); $("#homepage-slider .slideshow-container .slide:nth-child(" + nextSlide + ")").addClass('active'); $('#homepage-slider .slide-trigger').each(function() { $(this).removeClass("active"); }); $("#homepage-slider .slide-trigger:nth-child(" + nextSlide + ")").addClass('active'); setTimeout(function(){ $('#homepage-slider .slideshow-container .slide.hide-left').each(function() { $(this).addClass("hidden"); $(this).removeClass("hide-left"); $(this).removeClass("active"); }); }, 800); setTimeout(function() { $('#homepage-slider .slideshow-container .slide.hidden').each(function() { $(this).removeClass('hidden'); }); }, 1000); } if ($('#homepage-slider').hasClass('slider')) { var slideTimer = setInterval(customSlideAdvancerHome, 10000); } // Calling specific homepage slides $('#homepage-slider .slide-trigger').click(function() { var selectedSlideIndex = $('#homepage-slider .slide-trigger').index(this) + 1; $('#homepage-slider .slide-trigger').each(function() { $(this).removeClass("active"); }); $(this).addClass("active"); // show selected slide $('#homepage-slider .slideshow-container .slide.hide-left').hide().attr('style', 'transform: initial; -webkit-transform: initial; display: initial;').removeClass('hide-left').removeClass('active'); var currentSlide = $('#homepage-slider .slideshow-container .slide.active'); var currentSlideIndex = $('#homepage-slider .slideshow-container .slide').index(currentSlide) + 1; if (!(currentSlideIndex == selectedSlideIndex)) { $('#homepage-slider .slideshow-container .slide.slide-right').each(function() { $(this).removeClass('slide-right'); }); $('#homepage-slider .slideshow-container .slide.active').each(function() { $(this).addClass('hide-left'); }); $("#homepage-slider .slideshow-container .slide:nth-child(" + selectedSlideIndex + ")").addClass('active'); setTimeout(function(){ $('#homepage-slider .slideshow-container .slide.hide-left').each(function() { $(this).addClass("hidden"); $(this).removeClass("hide-left"); $(this).removeClass("active"); }); }, 800); setTimeout(function() { $('#homepage-slider .slideshow-container .slide.hidden').each(function() { $(this).removeClass('hidden'); }); }, 1000); } clearInterval(slideTimer); slideTimer = setInterval(customSlideAdvancerHome, 10000); }); /* FALCON ARCHITECTURE GRAPHIC */ $('#arch-interactive-graphic-wrap .interactive-icon-wrap').hover(function() { $(this).find('img.icon.no-hover').hide(); $(this).find('img.icon.hover').show(); $(this).find('.hover-info').show(); if ($(this).hasClass('cloud')) { $('#arch-interactive-graphic-wrap img#cloud-no-hover').hide(); $('#arch-interactive-graphic-wrap img#cloud-hover').show(); } }, function() { $(this).find('.hover-info').hide(); $(this).find('img.icon.no-hover').show(); $(this).find('img.icon.hover').hide(); if ($(this).hasClass('cloud')) { $('#arch-interactive-graphic-wrap img#cloud-hover').hide(); $('#arch-interactive-graphic-wrap img#cloud-no-hover').show(); } }); /* EVENT TRACKING */ $('#modal-trigger.home-page-video').click(function() { ga('send', { hitType: 'event', eventCategory: 'Videos', eventAction: 'clicked video link', eventLabel: 'Home Page Video', }); }); $('#homepage-falcon-stop-breaches').click(function() { ga('send', { hitType: 'event', eventCategory: 'CTA click', eventAction: 'followed CTA', eventLabel: 'See Falcon Stop Breaches homepage', }); }); $('a#explore-the-platform-homepage').click(function() { ga('send', { hitType: 'event', eventCategory: 'CTA click', eventAction: 'followed CTA', eventLabel: 'Explore the Platform homepage', }); }); $('.home-promo-bar a.ransomware-crowdcast').click(function() { ga('send', { hitType: 'event', eventCategory: 'CTA click', eventAction: 'followed CTA from promo-bar', eventLabel: 'Ransomware CrowdCast', }); }); $('#footer-cta a.see-demo').click(function(){ ga('send', { hitType: 'event', eventCategory: 'CTA click', eventAction: 'followed CTA in footer', eventLabel: 'See Demo from Footer', }); }); $('#footer-cta a.request-info').click(function(){ ga('send', { hitType: 'event', eventCategory: 'CTA click', eventAction: 'followed CTA in footer', eventLabel: 'Request Info from Footer', }); }); $('#footer-cta a.experienced-a-breach').click(function() { ga('send', { hitType: 'event', eventCategory: 'CTA click', eventAction: 'followed CTA in footer', eventLabel: 'Experienced A Breach from Footer', }); }); $('a#experienced-a-breach-slideout').click(function() { ga('send', { hitType: 'event', eventCategory: 'CTA click', eventAction: 'Slideout Experienced A Breach click', eventLabel: 'Experienced a Breach', }); }); $('a#request-info-menu-bar').click(function() { ga('send', { hitType: 'event', eventCategory: 'CTA click', eventAction: 'Top menu click', eventLabel: 'Request Info', }); }); $('a#see-demo-menu-bar').click(function() { ga('send', { hitType: 'event', eventCategory: 'CTA click', eventAction: 'Top menu click', eventLabel: 'See Demo', }); }); $('a#see-demo-page-attend-webinar').click(function() { ga('send', { hitType: 'event', eventCategory: 'CTA click', eventAction: 'See demo page CTA click', eventLabel: 'Attend Webinar', }); }); $('a#see-demo-page-falcon-tour').click(function() { ga('send', { hitType: 'event', eventCategory: 'CTA click', eventAction: 'See demo page CTA click', eventLabel: 'Falcon Tour', }); }); $('a#see-demo-page-request-demo').click(function() { ga('send', { hitType: 'event', eventCategory: 'CTA click', eventAction: 'See demo page CTA click', eventLabel: 'Request Demo', }); }); $('#menu-item-17183').addClass('request-info-button'); //jQuery for page scrolling feature - requires jQuery Easing plugin $(function() { $('nav .padded-nav-option a, a#amtso-trigger, a#csa-star-trigger, a#soc-trigger, a#hipaa-trigger, a#pci-forensics-trigger, a#ffiec-trigger, a#pci-css-trigger, a#nist-trigger, a#nsa-cira-trigger, a#av-comparatives-trigger').bind('click', function(event) { var $anchor = $(this); $('html, body').stop().animate({ scrollTop: ($($anchor.attr('href')).offset().top - 134) }, 1500, 'easeInOutExpo'); event.preventDefault(); }); }); $('#embed-infographic-trigger').click(function() { $('#embed-infographic-box').show(); $('#hide-embed-infographic-trigger').show(); $(this).hide(); ga('send', { hitType: 'event', eventCategory: 'Blog Embed Button', eventAction: 'button clicked', eventLabel: 'Ransomware Infographic Embed Button Clicked' }); }); $('#ransomware-infographic-pdf-download-link').click(function() { ga('send', { hitType: 'event', eventCategory: 'Blog PDF', eventAction: 'PDF download', eventLabel: 'Ransomware Infographic PDF Downloaded' }); }); $('a#falcon-host-tab-cta').click(function() { ga('send', { hitType: 'event', eventCategory: 'CTA Click', eventAction: 'follow CTA', eventLabel: 'Falcon Host Corner CTA' }); }); $('#home-page-banner-bottom a#homepage-promo-leftlink').click(function() { ga('send', { hitType: 'event', eventCategory: 'Homepage Fall 2016 CTA Click', eventAction: 'follow CTA in red bar', eventLabel: 'Left Home Page Promo Link', }); }); $('#home-page-banner-bottom a#homepage-promo-rightlink').click(function() { ga('send', { hitType: 'event', eventCategory: 'Homepage Fall 2016 CTA Click', eventAction: 'follow CTA in red bar', eventLabel: 'Right Home Page Promo Link', }); }); $('#home-page-banner-top a#main-cta-button').click(function() { ga('send', { hitType: 'event', eventCategory: 'Homepage Fall 2016 CTA Click', eventAction: 'follow CTA in main white section', eventLabel: 'main imac section CTA button' }); }); $('#hide-embed-infographic-trigger').click(function() { $('#embed-infographic-box').hide(); $('#embed-infographic-trigger').show(); $(this).hide(); }); if ($('#home-page-banner')) { $('#home-page-banner').parent().attr('id', 'home-page-banner-parent'); } function checkFooterOffset() { /* to restore stickiness of sticky footer, delete the next 3 lines and uncomment the if statements in this function */ $('#stickyfooterwrapper').addClass('unstuck'); $('#site-scroll-top').addClass('footer-unstuck'); $('#stickyfooterwrapper').show(); /* if($('#stickyfooterwrapper').offset().top + $('#stickyfooterwrapper').height() >= $('#footer-lower').offset().top - 10) { $('#stickyfooterwrapper').addClass('unstuck'); $('#site-scroll-top').addClass('footer-unstuck'); } if($(document).scrollTop() + window.innerHeight < $('#footer-lower').offset().top) { if (!($('#stickyfooterwrapper').hasClass('error'))) { $('#stickyfooterwrapper').removeClass('unstuck'); $('#site-scroll-top').removeClass('footer-unstuck'); } } if ($('body').hasClass('home') || (/see-demo/.test(window.location.href)) || (/request-a-demo/.test(window.location.href)) || (/request-information/.test(window.location.href) || (/malquery-request/.test(window.location.href)))) { $('#stickyfooterwrapper').addClass('unstuck'); $('#stickyfooterwrapper').show(); } */ } /* Sticky Footer Form */ $('#stickyfooter-see-demo').click(function() { if ($(window).width() > 875) { $('#stickyfooterwrapper').addClass('expanded'); $('#footer-form-modal-wrap').show(); $('#stickyfooter-see-demo').hide(); $('#close-footer-form').show(); $('iframe#footer-form-frame').addClass('show'); } else { window.location.href = '/resources/free-trials/try-falcon-prevent/?ctm_source=Website&ctm_medium=Website_Banner&ctm_campaign=mobile-footer-click'; } }); $('#close-footer-form').click(function() { $('#footer-form-modal-wrap').hide(); $('#stickyfooterwrapper').removeClass('expanded'); $('#stickyfooter-see-demo').show(); $('iframe#footer-form-frame').removeClass('show'); $(this).hide(); var url = $('#footer-form-frame').attr('src'); $('#footer-form-frame').attr('src', ''); $('#footer-form-frame').attr('src', url); checkFooterOffset(); }); }); function isScrolledIntoView(elem) { var docViewTop = $(window).scrollTop(); var docViewBottom = docViewTop + $(window).height(); var elemTop = $(elem).offset().top; var elemBottom = elemTop + $(elem).height(); return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop)); } function detectfirefox() { var browser = navigator.userAgent.toLowerCase(); if(browser.indexOf('firefox') > -1) { return true; } else { return false; } } function detectmob() { if( navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Windows Phone/i) ) { return true; } else { return false; } } var firefox = detectfirefox(); var mobilecheck = detectmob(); if ($(window).width() > 875) { $(document).scroll(function() { function checkFooterOffset() { /* to restore stickiness of sticky footer, delete the next 3 lines and uncomment the if statements in addition to the variables below this function */ $('#stickyfooterwrapper').addClass('unstuck'); $('#site-scroll-top').addClass('footer-unstuck'); $('#stickyfooterwrapper').show(); /* if($('#stickyfooterwrapper').offset().top + $('#stickyfooterwrapper').height() >= $('#footer-lower').offset().top - 10) { $('#stickyfooterwrapper').addClass('unstuck'); $('#site-scroll-top').addClass('footer-unstuck'); } if($(document).scrollTop() + window.innerHeight < $('#footer-lower').offset().top) { if (!($('#stickyfooterwrapper').hasClass('error'))) { $('#stickyfooterwrapper').removeClass('unstuck'); $('#site-scroll-top').removeClass('footer-unstuck'); } } if ($('body').hasClass('home') || (/see-demo/.test(window.location.href)) || (/request-a-demo/.test(window.location.href)) || (/request-information/.test(window.location.href) || (/malquery-request/.test(window.location.href)))) { $('#stickyfooterwrapper').addClass('unstuck'); $('#stickyfooterwrapper').show(); } */ } /* var scrollBottom = $(document).height() - $(window).height() - $(window).scrollTop(); var y = $(this).scrollTop(); var body = document.body, html = document.documentElement; var height = Math.max( body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight ); var scrollTrigger = 500; if (height < 2000) {scrollTrigger = 20;} if ($('div#error-page-marker').hasClass('error')) { scrollTrigger= -1; } if (y > scrollTrigger) { if (!(/falcon-tour/.test(window.location.href))) { $('#stickyfooterwrapper').show(); } } else { if (!($('#stickyfooterwrapper').hasClass('expanded'))) { $('#stickyfooterwrapper').hide(); } } if ($('div#error-page-marker').hasClass('error')) { $('#stickyfooterwrapper').show(); } */ checkFooterOffset(); }); jQuery(document).ready(function() { $('#stickyfooter-see-demo').click(function() { if ($(window).width() > 875) { $('#stickyfooterwrapper').addClass('expanded'); $('#footer-form-modal-wrap').show(); $('#stickyfooter-see-demo').hide(); $('#close-footer-form').show(); $('iframe#footer-form-frame').addClass('show'); } else { window.location.href = '/resources/free-trials/try-falcon-prevent/?ctm_source=Website&ctm_medium=Website_Banner&ctm_campaign=mobile-footer-click'; } }); $('#close-footer-form').click(function() { $('#footer-form-modal-wrap').hide(); $('#stickyfooterwrapper').removeClass('expanded'); $('#stickyfooter-see-demo').show(); $('iframe#footer-form-frame').removeClass('show'); $(this).hide(); var url = $('#footer-form-frame').attr('src'); $('#footer-form-frame').attr('src', ''); $('#footer-form-frame').attr('src', url); }); if ($('div#experience-57e96baac2d2f')) { $('#stickyfooterwrapper').hide(); } }); } else { $(document).ready(function() { $('#stickyfooterwrapper').addClass('unstuck'); $('#stickyfooterwrapper').show(); $('#stickyfooter-see-demo').attr('href', '/resources/free-trials/try-falcon-prevent/?ctm_source=Website&ctm_medium=Website_Banner&ctm_campaign=mobile-footer-click'); $('iframe#footer-form-frame').removeClass('show'); $('#footer-form-modal-wrap').hide(); }); } (function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e