1/* global Modernizr:true */ 2/* global ScrollMagic:true */ 3/* global Linear:true */ 4/* global WOW:true */ 5/* global cobioscience_vars:true */ 6/* global tribe_ev:true */ 7/* //global console:true */ 8// @codekit-append 'partials/mobile-menu.js'; 9// @codekit-append 'partials/main-menu.js'; 10// @codekit-append 'partials/general.js'; 11// @codekit-append 'partials/shortcodes.js'; 12// @codekit-append 'partials/calendar.js'; 13// @codekit-append 'partials/company.js'; 14// @codekit-append 'partials/background.js'; 15// @codekit-append 'partials/scrollmagic.js'; 16jQuery(document).ready((function(e){ 17// Setup strict mode 18!function(){"use strict"; 19/* --------------------------------------------------------- */ 20/* !Mobile menu */ 21/* --------------------------------------------------------- */ 22function t(){ 23/* 24 if( $menu_toggle.hasClass('is-active') ) { 25 $menu.stop().css({ 26 left: 0 27 }); 28 } else { 29 var w = $menu.outerwidth()+5; 30 $menu.stop().css({ 31 left: '-' + w + 'px' 32 }); 33 } 34*/}function a(){i.addClass("animating active"); 35/* 36 $menu_overlay.stop().show(); 37 $menu_overlay.animate( { 38 opacity: 1 39 }, 500, 'linear', function() { 40 // Animation complete. 41 }); 42 $menu.addClass('animating active'); 43*/}function n(){ 44/* 45 $menu_overlay.animate( { 46 opacity: 0 47 }, 500, 'linear', function() { 48 $menu_overlay.hide(); 49 }); 50*/ 51i.removeClass("active"),setTimeout((function(){i.removeClass("animating")}),1e3)}var i=e("#mobile-header"),o=e("#menu-toggle"),s=e("#mobile-menu__overlay"),c=e("#mobile-menu");c.find("a").click((function(t){if(e(t.target).is("i"))return!1;o.removeClass("is-active"),n()})),s.click((function(e){e.preventDefault(),o.removeClass("is-active"),n()})),o.click((function(t){t.preventDefault(),e(this).hasClass("is-active")?(e(this).removeClass("is-active"),n()):(e(this).addClass("is-active"),a())})),c.find(".mobile-submenu-toggle").click((function(t){if(t.preventDefault(),e(t.target).is("i")){var a=e(this).parent(),n=a.next();a.hasClass("show-sub")?(a.removeClass("show-sub"),n.slideUp()):(a.addClass("show-sub"),n.slideDown())}})), 52/* 53 $('.menu-item-has-children').click( function(e) { 54 e.preventDefault(); 55 if( $(this).hasClass('active') ) { 56 $(this).removeClass('active'); 57 hide_submenu( $(this) ); 58 } else { 59 $(this).addClass('active'); 60 show_submenu( $(this) ); 61 } 62 }); 63*/ 64e(window).resize((function(){}))}()})),jQuery(document).ready((function(e){ 65// Setup strict mode 66!function(){"use strict"; 67/* --------------------------------------------------------- */ 68/* !Main menu */ 69/* --------------------------------------------------------- */function t(){Modernizr.mq("(min-width: 992px)")&&e(".menu-item-has-children").each((function(){if(!e(this).hasClass("active")){var t=e(this).find(".sub-menu-wrap__inner"),a=t.outerHeight();t.stop().css("marginTop","-"+a+"px")}}))}function a(t){t.addClass("active");var a=t.find(".sub-menu-wrap"),n=t.find(".sub-menu-wrap__inner");e(".sub-menu-wrap").css("zIndex","99"),a.css("zIndex","100"),n.stop().animate({marginTop:0},1e3,"easeOutExpo",(function(){ 70// Animation complete. 71}))}function n(e){e.removeClass("active");var t=e.find(".sub-menu-wrap__inner"),a=t.outerHeight();t.stop().animate({marginTop:-+a+"px"},1e3,"easeOutExpo",(function(){ 72// Animation complete. 73}))}e(".menu-item-has-children > a").hover((function(){a(e(this).parent())}),(function(){ 74//hide_submenu( $(this) ); 75})),e(".menu-item-has-children").hover((function(){}),(function(){n(e(this))})),e(window).resize((function(){t()})),t()}()})),jQuery(document).ready((function(e){ 76// Setup strict mode 77!function(){"use strict"; 78/* --------------------------------------------------------- */ 79/* !Sponsors */ 80/* --------------------------------------------------------- */ 81//function t(){e(".sponsor-group__rotator__contents").each((function(){var t=e(this),a,n=t.find(".sponsor.active").outerHeight();t.stop().css({height:n+"px"})}))}function a(e){var t=e.parents(".sponsor-group__rotator__contents"),a=t.find(".sponsor"),n=e.outerHeight();a.stop().removeClass("active").fadeOut(),e.stop().addClass("active").fadeIn(),t.stop().animate({height:n+"px"},500,"easeOutExpo",(function(){ 82// Animation complete. 83//}))}var n;e("#site-main").fitVids(),new WOW({offset:100,// default 84//mobile:!0,// default 85//live:!0}).init(), 86/* --------------------------------------------------------- */ 87/* !Search Form */ 88/* --------------------------------------------------------- */ 89e("#site-header").find(".search-field").focus((function(){var t;e(this).parent(".search-form").addClass("active")})),e("#site-header").find(".search-field").blur((function(){var t;e(this).parent(".search-form").removeClass("active")}
89)),e(".sponsor-group__rotator__contents").each((function(){var t;a(e(this).find(".sponsor:first-child"))})),e(".sponsor-group__rotator__contents").length&&setInterval((function(){e(".sponsor-group__rotator__contents").each((function(t){var n=e(this).find(".active"),i;(i=n.next().length?n.next():e(this).find(".sponsor:first-child"))!==n&&setTimeout((function(){a(i)}),100*t)}))}),5e3),e(window).resize((function(){t()}))}()})),jQuery(document).ready((function(e){ 90// Setup strict mode 91!function(){"use strict"; 92/* --------------------------------------------------------- */ 93/* !Rotator */ 94/* --------------------------------------------------------- */function t(){e(".meta4-rotator").each((function(){var t=e(this).find(e(".meta4-rotator__slide.active")),a=e(this).find(".meta4-rotator__content"),n=t.outerHeight();a.stop().css({height:n+"px"})}))}function a(e){var t=e.parents(".meta4-rotator"),a=t.find(".meta4-rotator__content"),n=t.find(".meta4-rotator__toggles a"),i=t.find(".meta4-rotator__slide"),o=t.find(".meta4-rotator__slide.active"),s=t.find(e.attr("href")),c;!e.hasClass("active")&&s.length&&(o.length&&(c=o.outerHeight(),a.css({height:c+"px"}),s.css({position:"absolute"})),n.removeClass("active"),e.addClass("active"),s.stop().show(),c=s.outerHeight(),s.hide(),i.stop().removeClass("active").fadeOut(),s.stop().addClass("active").fadeIn(),a.stop().animate({height:c+"px"},500,"easeOutExpo",(function(){a.removeAttr("style"),s.css({position:"relative"})})))} 95/* --------------------------------------------------------- */ 96/* !Accordion */ 97/* --------------------------------------------------------- */ 98function n(e){e.removeClass("active"),e.next().slideUp(1e3,"easeInOutQuint")}function i(t){var a;t.parents(".cobioscience-accordion").find(".cobioscience-accordion__heading").not(t).each((function(){n(e(this))})),t.addClass("active"),t.next().slideDown(1e3,"easeInOutQuint")} 99/* --------------------------------------------------------- */ 100/* !Team */ 101/* --------------------------------------------------------- */ 102function o(t){var a;e(".fw-team__large").each((function(){e(this).stop().fadeOut()})),t.find(".fw-team__large").stop().fadeIn(),e(".fw-team__overlay").show()}function s(){e(".fw-team__large").stop().fadeOut(),e(".fw-team__overlay").hide()} 103/* --------------------------------------------------------- */ 104/* !Content Block Group */ 105/* --------------------------------------------------------- */ 106function c(e){var t;e.parents(".meta4-content-block-group").find(".meta4-content-block").removeClass("active").addClass("disabled"),e.removeClass("disabled").addClass("active")}function r(e){var t;e.parents(".meta4-content-block-group").find(".meta4-content-block").removeClass("active disabled")}e(".meta4-rotator .meta4-rotator__toggles a").click((function(t){t.preventDefault(),a(e(this))})),e(".meta4-rotator").each((function(){var t=e(this).find(e(".meta4-rotator__toggles a.init"));t.length>0?t.removeClass("init"):t=e(this).find(e(".meta4-rotator__toggles a:first-child")),a(t)})),e(window).resize((function(){t()})),e(".cobioscience-accordion__heading").click((function(t){t.preventDefault(),e(this).hasClass("active")?n(e(this)):i(e(this))})),e(".cobioscience-accordion__heading").hover((function(){var t=e(this).parents(".cobioscience-accordion"),a=e(this).parents(".cobioscience-accordion__section");t.find(".cobioscience-accordion__section").addClass("disabled"),a.removeClass("disabled")}),(function(){var t;e(this).parents(".cobioscience-accordion").find(".cobioscience-accordion__section").removeClass("disabled")})),e(".fw-team__small .fw-btn__link").click((function(t){t.preventDefault(),o(e(this).parents(".fw-team"))})),e(".fw-team__large .fw-btn__link").click((function(e){e.preventDefault(),s()})),e(".fw-team__overlay").click((function(e){e.preventDefault(),s()})), 107/* --------------------------------------------------------- */ 108/* !Carousel */ 109/* --------------------------------------------------------- */ 110e(".meta4-carousel").each((function(){var t=e(this),a=parseInt(t.data("delay")),n=0!==a;t.owlCarousel({center:!1,loop:!0,nav:!0,navClass:["cobioscience-prev","cobioscience-next"],navText:['<i class="far fa-angle-left"></i>','<i class="far fa-angle-right"></i>'],dots:!1,autoplay:n,autoplayTimeout:1e3*a,smartSpeed:500,responsive:{0:{items:1,margin:20},768:{items:2,margin:20},1200:{items:3,margin:20}}})})),e(".meta4-content-block-group .meta4-content-block.no-link .fw-btn__link").click((function(t){var a;t.preventDefault(),c(e(this).parents(".meta4-content-block"))})),e(".meta4-content-block-group .meta4-content-block__back").click((function(t){var a;t.preventDefault(),r(e(this).parents(".meta4-content-block"))}))}()})),jQuery(document).ready((function(e){ 111// Setup strict mode 112!function(){"use strict"; 113/* --------------------------------------------------------- */ 114/* !Calendar */ 115/* --------------------------------------------------------- */ 116function t(t){a=t;var n=e(".meta4-calendar"),i=n.find(".calendar-events__main"),o=n.find(".meta4-rotator__toggles a"),s=n.find('.meta4-rotator__toggles a[data-filter="'+t+'"]'); 117//if( !$curr_filter.hasClass('active') ) { 118o.removeClass("active"),s.addClass("active"),n.find(".cobioscience-events-daynum__date").removeClass("active"),n.find(".cobioscience-events-daynum__date."+t).each((function(){if(e(this).addClass("active"),!cobioscience_vars.is_calendar_page){var a=e(this).data("link")+"&filter="+t;e(this).attr("href",a)}})),i.find(".calendar-events__list__group").hide(),i.find(".calendar-events__list__group."+t).show(), 119//$main.find('.calendar-events__list__group.'+filter).not('.date-is-past').show(); 120i.find(".calendar-events__list__event").hide(),i.find(".calendar-events__list__event."+t).show()}var a="";e(".meta4-calendar .meta4-rotator__toggles a").click((function(a){a.preventDefault(),t(e(this).data("filter"))})),e(".meta4-calendar .meta4-rotator__toggles a.active").length&&t(e(".meta4-calendar .meta4-rotator__toggles a.active").data("filter")),cobioscience_vars.is_calendar_page&&(e(tribe_ev.events).on("tribe_ev_monthView_AjaxStart",(function(){var t;e(".meta4-calendar").length&&e(".meta4-calendar .calendar-events__main .calendar-events__secondary").stop().animate({opacity:0}
120,500,"linear",(function(){ 121// Animation complete. 122}))})),e(tribe_ev.events).on("tribe_ev_monthView_ajaxSuccess",(function(){if(e(".meta4-calendar").length){var n=e(".meta4-calendar .calendar-events__main .calendar-events__secondary"),i,o={action:"coboscience_events",month:e("#tribe-events-header").data("date"),security:cobioscience_vars.security};e.post(cobioscience_vars.ajaxurl,o,(function(e){n.html(e),""!==a&&t(a),n.stop().animate({opacity:1},500,"linear",(function(){ 123// Animation complete. 124}))}))}}))) 125/* 126 $( 'body' ).on( 'click', '.cobioscience-events-daynum__date', function(e) { 127 if ( cobioscience_vars.is_calendar_page ) { 128 129 } 130 }); 131*/}()})),jQuery(document).ready((function(e){ 132// Setup strict mode 133!function(){"use strict"; 134/* --------------------------------------------------------- */ 135/* !Company filter */ 136/* --------------------------------------------------------- */function t(e){var t=e.parents(".meta4-company-list"),a=t.find(".meta4-company-list__industry").children("span"),n=e.val(),i=e.children("option:selected").text();t.find(".meta4-company-list__post").show(),a.text(i),""!==n&&t.find(".meta4-company-list__post").not("."+n).hide()}e(".meta4-company-list__filter select").change((function(a){a.preventDefault(),t(e(this))}))}()})),jQuery(document).ready((function(e){ 137// Setup strict mode 138!function(){"use strict"; 139/* --------------------------------------------------------- */ 140/* !Add Vegas */ 141/* --------------------------------------------------------- */function t(e){e.find(".custom-bg-slideshow").vegas({timer:!1,overlay:e.data("vegas-overlay"),delay:e.data("vegas-delay"),transitionDuration:e.data("vegas-transitionDuration"),transition:e.data("vegas-transition"),slides:e.data("vegas-slides")})} 142/* --------------------------------------------------------- */ 143/* !Add Parallax */ 144/* --------------------------------------------------------- */function a(e){var t=new ScrollMagic.Controller({globalSceneOptions:{triggerHook:"onEnter",duration:"200%"}}),a=e.parent()[0],n=e[0];new ScrollMagic.Scene({triggerElement:a}).setTween(n,{y:e.data("parallax")+"%",ease:Linear.easeNone}).addTo(t)} 145/* --------------------------------------------------------- */ 146/* !Loop through and setup all custom backgrounds */ 147/* --------------------------------------------------------- */e(".custom-bg").each((function(){e(this).data("vegas-slides")&&t(e(this)),e(this).data("parallax")&&a(e(this))}))}()})),jQuery(document).ready((function(e){ 148// Setup strict mode 149!function(){"use strict";var t=new ScrollMagic.Controller; 150/** 151 * Page featured 152 * 153 * @since 1.0 154 * @return void 155 */if(e("#page-featured").length)var a=new ScrollMagic.Scene({triggerElement:"#page-featured",duration:"200%",triggerHook:"onLeave"}).setTween("#page-featured__background__image",{y:"200%",ease:Linear.easeNone}).addTo(t); 156/* 157 var site_header_scene = new ScrollMagic.Scene({ 158 triggerElement: '#site-header', 159 triggerHook: 'onLeave' 160 }) 161 .setPin('#site-header') 162 .setClassToggle("#site-header", "fixed") 163 .addTo(controller); 164 165 var mobile_menu_scene = new ScrollMagic.Scene({ 166 triggerElement: '#mobile-icon-menu', 167 triggerHook: 'onLeave' 168 }) 169 .setPin('#mobile-icon-menu') 170 .setClassToggle("#mobile-icon-menu", "fixed") 171 .addTo(controller); 172*/ 173/* 174 function add_cta_parallax( $block ) { 175 176 var element = $block[0], 177 element_parallax = $block.children('.custom-bg')[0]; 178 179 new ScrollMagic.Scene({ 180 triggerElement: element, 181 duration: '200%', 182 triggerHook: 'onLeave' 183 }) 184 .setTween( element_parallax, { y: '200%', ease: Linear.easeNone } ) 185 .addTo( controller ); 186 } 187 188 $('.cta-block').each( function() { 189 add_cta_parallax( $(this) ); 190 }); 191*/}()}));
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.