1jQuery(function($){ 2 3 resizeWindow(); 4 5 $(window).resize(resizeWindow); 6 7 // overlay fade 8 $(window).bind('pageshow', function(event) { 9 if ($('#overlay').length) { 10 $('#overlay').queue(function(next) { 11 var $overlay = $(this); 12 $overlay.stop().fadeOut(600); 13 }); 14 } 15 }); 16 17 // mobile 18 $('#mobile_toggle').on('click tap', function() { 19 $('#mobile_toggle .hamburger').toggleClass('open'); 20 if ($('#mobile_nav').hasClass('open')) { 21 $('#mobile_nav').removeClass('open').fadeOut(300, function() { 22 $(this).css('z-index', '-1'); 23 }); 24 } else { 25 $('#mobile_nav').css('z-index', '9998').fadeIn(300, function() { 26 $(this).addClass('open'); 27 }); 28 } 29 }); 30 31 // home: about 32 if ($('.certifications .owl-carousel').length) { 33 $('.certifications .owl-carousel').owlCarousel({ 34 35 dots: false, 36 nav: true, 37 loop: true, 38 autoplay: true, 39 autoplayTimeout: 2000, 40 autoplayHoverPause: false, 41 autoplaySpeed: 600, 42 responsive: { 43 0: { 44 items: 1, 45 autoplay: false 46 }, 47 480: { 48 items: 2 49 }, 50 768: { 51 items: 3 52 }, 53 1024: { 54 items: 4 55 }, 56 1200: { 57 items: 6 58 } 59 } 60 }); 61 } 62 63 // about: testimonials 64 if ($('#about .testimonials .owl-carousel').length) { 65 $('#about .testimonials .owl-carousel').owlCarousel({ 66 items: 1, 67 dots: false, 68 nav: true, 69 loop: true, 70 autoHeight: false, 71 autoplay: true, 72 autoplayTimeout: 4000 73 }); 74 } 75 76 // careers: application 77 $('#resume_upload').on('click tap', function() { 78 $('#Field7').trigger('click'); 79 }); 80 $('#Field7').on('change', function(e){ 81 if (e.target.files && e.target.files[0]) { 82 var reader = new FileReader(); 83 reader.readAsDataURL(e.target.files[0]); 84 var fileName = e.target.files[0].name; 85 $('#resume_name').text(fileName); 86 } 87 }); 88 if ($('#careers .apply .formwrap form').length) { 89 $('#careers .apply .formwrap form').validate({ 90 debug: false, 91 rules: { 92 Field1: { required: true }, 93 Field2: { required: true, email: true }, 94 Field4: { required: true }, 95 Field9: { required: true }, 96 Field6: { required: true } 97 } 98 }); 99 } 100 101}); 102 103function resizeWindow() { 104 105 var ww = jQuery(window).width(); 106 var hh = jQuery('#header').outerHeight(); 107 108 if (jQuery(ww > 1200).length) { 109 jQuery('#padtop').css('height', 0); 110 } else { 111 jQuery('#padtop').css('height', hh); 112 } 113 114} 115
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.