1(function( $ ) { 2 'use strict'; 3 /** 4 * All of the code for your public-facing JavaScript source 5 * should reside in this file. 6 * 7 * Note: It has been assumed you will write jQuery code here, so the 8 * $ function reference has been prepared for usage within the scope 9 * of this function. 10 * 11 * This enables you to define handlers, for when the DOM is ready: 12 * 13 * $(function() { 14 * 15 * }); 16 * 17 * When the window is loaded: 18 * 19 * $( window ).load(function() { 20 * 21 * }); 22 * 23 * ...and/or other possibilities. 24 * 25 * Ideally, it is not considered best practise to attach more than a 26 * single DOM-ready or window-load handler for a particular page. 27 * Although scripts in the WordPress core, Plugins and Themes may be 28 * practising this, we should strive to set a better example in our own work. 29 */ 30 $(document).ready(function($) { 31 $(document).on("click",".gfield_radio input",function() { 32 $(".gfield_radio input").each(function() { 33 $(this).removeClass("active"); 34 $(this).siblings('label').removeClass("active"); 35 }); 36 $(this).addClass("active"); 37 $(this).siblings('label').addClass("active"); 38 jQuery(".gf_page_steps > div.gf_step_active .gf_step_label").css({ 39 'color': '#0063A6', 40 'font-weight': '400', 41 'font-family': 'Roboto Condensed' 42 }); 43 jQuery(".gf_step_label").addClass("active-step"); 44 }); 45 if ($(window).width() > 768) { 46 $(document).on("click",".isolation-form input.button",function() { 47 $('html, body').animate({ 48 scrollTop: $(".isolation-form").offset().top 49 }, 980); 50 }); 51 } 52 53 jQuery("#cms-hero-block .btn-services").click(function() { 54 let pos = jQuery("#tabs-panel-section").offset().top - 50; 55 jQuery('html, body').animate({ 56 scrollTop: pos 57 }, 1000); 58 }); 59 60 var equalheight = function(container){ 61 var currentTallest = 0, 62 currentRowStart = 0, 63 rowDivs = new Array(), 64 $el, 65 topPosition = 0; 66 jQuery(container).each(function() { 67 $el = jQuery(this); 68 jQuery($el).height('auto'); 69 var topPostion = $el.position().top; 70 var currentDiv = 0; 71 if (currentRowStart != topPostion) { 72 for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { 73 rowDivs[currentDiv].height(currentTallest); 74 } 75 rowDivs.length = 0; // empty the array 76 currentRowStart = topPostion; 77 currentTallest = $el.height(); 78 rowDivs.push($el); 79 } else { 80 rowDivs.push($el); 81 currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest); 82 } 83 for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { 84 rowDivs[currentDiv].height(currentTallest); 85 } 86 }); 87 } 88 $(window).load(function() { 89 equalheight('.stable-cell-line div#custom_service_info p.vc_custom_heading'); 90 equalheight('.stable-cell-line div#custom_service_info h4.vc_custom_heading'); 91 equalheight('.exosome-services-row1 div#custom_service_info h4.vc_custom_heading'); 92 equalheight('.exosome-services-row1 div#custom_service_info p.vc_custom_heading'); 93 equalheight('.crispr-servives div#custom_service_info p.vc_custom_heading'); 94 equalheight('.crispr-servives div#custom_service_info h4.vc_custom_heading'); 95 equalheight('.custom-rna-service div#custom_service_info h4.vc_custom_heading'); 96 equalheight('.custom-rna-service div#custom_service_info p.vc_custom_heading'); 97 equalheight('.custom-rna-service div#custom_service_info h4.vc_custom_heading'); 98 equalheight('.exosome-services-row2 div#custom_service_info h4.vc_custom_heading'); 99 equalheight('.exosome-services-row2 div#custom_service_info p.vc_custom_heading'); 100 }); 101 102 setTimeout(function() { 103 function updateCheckedOption() { 104 $('li.gchoice').removeClass('checked-optn-bg'); 105 var checkedRadio = $('li.gchoice input[type="radio"]:checked'); 106 if (checkedRadio.length > 0) { 107 checkedRadio.closest('li.gchoice').addClass('checked-optn-bg'); 108 } 109 } 110 $(document).on('click', 'li.gchoice input[type="radio"]', function(){ 111 updateCheckedOption(); 112 }); 113 $("#gform_submit_button_11").on('click', function(){ 114 updateCheckedOption(); 115 }); 116 jQuery(document).on('gform_post_render', function(event, formId){ 117 if (formId === 11) { 118 updateCheckedOption(); 119 } 120 }); 121 updateCheckedOption(); 122 }, 500); 123 }); 124 125 $(window).scroll(function() { 126 $('.find-div').each(function(index, elem) { 127 var s = jQuery(window).scrollTop(); 128 var n = $(elem).offset().top; //624 129 var h = $(this).outerHeight(true); 130 if (s > (n - 80) && h < ((n - 80) + h)) { 131 var elemId = $(elem).attr('id'); 132 $("ul#sticky-menu-id li a.active-li").parent().removeClass('current'); 133 $("ul#sticky-menu-id li a").removeClass("active-li"); 134 $("ul#sticky-menu-id li a[href='#" + elemId + "']").addClass("active-li"); 135 $("ul#sticky-menu-id li a.active-li[href='#" + elemId + "']").parent().addClass('current'); 136 } 137 }); 138 }); 139 $(document).on('click', 'ul#sticky-menu-id li a', function(){ 140 var elemId = $(this).attr('href'); 141 var n = $(elemId).offset().top - 55; 142 $('html, body').animate({ 143 scrollTop: n 144 }, 550, 'linear'); 145 }); 146 147 $(document).ready(function($) { 148 $(".blocks_what_new").slick({ 149 dots: false, 150 infinite: true, 151 speed: 500, 152 slidesToShow: 3, 153 slidesToScroll: 1, 154 autoplay: true, 155 autoplaySpeed: 4000, 156 cssEase: "ease-in-out", 157 responsive: [ 158 { 159 breakpoint: 993, 160 settings: { 161 slidesToShow: 2, 162 slidesToScroll: 2 163 } 164 }, 165 { 166 breakpoint: 768, 167 settings: { 168 slidesToShow: 1, 169 slidesToScroll: 1 170 } 171 } 172 ] 173 }); 174 }); 175 $(document).ready(function($) { 176 var maxHt = Math.max.apply(null, $(".blocks_what_new_single .aio-icon-box > .aio-ibd-block").map(function() { return $(this).height(); }).get()); 177 $("<style type='text/css'> .blocks_what_new_single .aio-icon-box > .aio-ibd-block{ height:" + (maxHt + 0) + "px;} </style>").appendTo("head"); 178 }); 179 180 $(document).ready(function() { 181 jQuery(document).on('click', '#algoliaAutocomplete button.aa-SubmitButton', function(event){ 182 jQuery('.search-header-container #algoliaAutocomplete .aa-InputWrapper').addClass('toogleShow'); 183 event.stopPropagation(); 184 }) 185 186 // 187 $(document).on("click", function (event) { 188 // Hide the target div 189 if((event.target?.type != 'search' && jQuery('.aa-Panel.productC
189olumn1').length == 0) && jQuery('.aa-SourceNoResults').length == 0 ){ 190 jQuery('.search-header-container #algoliaAutocomplete .aa-InputWrapper').removeClass('toogleShow'); 191 } 192 }); 193 }); 194 195})( jQuery );
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.