1var searchVal="";var newsCategoryVal="";var newsSectorVal="";var newsLocationVal="";var newsPerPage="";var newsPaged="";var newsExcludeId="";var insightCategoryVal="";var insightSectorVal="";var insightLocationVal="";var insightPerPage="";var insightPaged="";var insightExcludeId="";var caseStudyPerPage="";var caseStudyPaged="";var caseStudyExcludeId="";var caseStudyCategory="";var peoplePerPage="";var peoplePaged="";var peopleLocation="";var peopleSector="";var peoplePosition="";jQuery(document).ready(function(){jQuery(document).on("keyup","#search_main .search__form__input input",function(){searchVal=jQuery(this).val();filterSearch("filter")}) 2jQuery("body.page-template-template-campaign, body.page-template-template-boiler,body.page-template-front-page").removeClass("page");jQuery("body.search.search-results").removeClass("search search-results");if(jQuery(".hidden_pagination_links .prev_posts_link a").length>0){var link1=jQuery(".hidden_pagination_links .prev_posts_link a").attr("href");jQuery(".results__pagination .pagination__prev").attr("href",link1)} 3if(jQuery(".hidden_pagination_links .next_posts_link a").length>0){var link1=jQuery(".hidden_pagination_links .next_posts_link a").attr("href");jQuery(".results__pagination .pagination__next").attr("href",link1)} 4jQuery(".hidden_pagination_links").remove();jQuery(document).on("submit","#search_main form",function(event){event.preventDefault()});jQuery(document).on("change",".contact__form .contact__name",function(){if(jQuery(".gfield.contact_name").length>0){var val1=jQuery(this).val();jQuery(".gfield.contact_name input").val(val1)}}) 5jQuery(document).on("change",".contact__form .contact__email",function(){if(jQuery(".gfield.contact_name").length>0){var val1=jQuery(this).val();jQuery(".gfield.contact_email input").val(val1)}}) 6jQuery(document).on("change",".contact__form .contact__privacy",function(){if(jQuery(".gfield.contact_privacy_terms").length>0){var val1=jQuery(this).is(":checked");jQuery(".gfield.contact_privacy_terms input").prop("checked",val1)}}) 7jQuery(document).on("change",".contact__form .contact__newsletter",function(){if(jQuery(".gfield.contact_join_newsletter").length>0){var val1=jQuery(this).is(":checked");jQuery(".gfield.contact_join_newsletter input").prop("checked",val1)}}) 8jQuery(document).on("click",".contact__form .topics .topics__item",function(){var topics="";jQuery(".contact__form .topics .topics__item.active").each(function(){if(topics!="") 9topics+=", ";topics+=jQuery(this).text()}) 10if(jQuery(".gfield.contact_category").length>0){var val1=jQuery(this).val();jQuery(".gfield.contact_category input").val(topics)}}) 11jQuery(document).on("click",".contact__form .contact__submit.btn",function(){jQuery(".gform_wrapper .gform_footer .gform_button").click()});jQuery(".copy_to_clipboard").on('click',function(){var $temp=jQuery("<input>");var $url=jQuery(this).attr('data-href');jQuery("body").append($temp);$temp.val($url).select();document.execCommand("copy");$temp.remove()}) 12newsPerPage=jQuery("[name=news_post_per_page]").val();newsPaged=jQuery("[name=news_paged]").val();newsExcludeId=jQuery("[name=news_exclude_id]").val();insightPerPage=jQuery("[name=insight_post_per_page]").val();insightPaged=jQuery("[name=insight_paged]").val();insightExcludeId=jQuery("[name=insight_exclude_id]").val();caseStudyPerPage=jQuery("[name=case_study_post_per_page]").val();caseStudyPaged=jQuery("[name=case_study_paged]").val();caseStudyExcludeId=jQuery("[name=case_study_exclude_id]").val();caseStudyCategory=jQuery("[name=case_study_category]").val();peoplePerPage=jQuery("[name=people_post_per_page]").val();peoplePaged=jQuery("[name=people_paged]").val();jQuery("#news_archive_filter").on("click",function(e){e.preventDefault();newsCategoryVal=jQuery("#news_archive_category").val();newsSectorVal=jQuery("#news_archive_sector").val();newsLocationVal=jQuery("#news_archive_location").val();newsPaged=1;jQuery("input[name=news_paged]").val(newsPaged);filterNews("filter")}) 13jQuery("#news_archive_load_more").on("click",function(){newsPaged=jQuery("[name=news_paged]").val();newsPaged=parseInt(newsPaged)+1;jQuery("[name=news_paged]").val(newsPaged);filterNews("loadmore")}) 14jQuery("#insight_archive_filter").on("click",function(e){e.preventDefault();insightCategoryVal=jQuery("#insight_archive_category").val();
14insightSectorVal=jQuery("#insight_archive_sector").val();insightLocationVal=jQuery("#insight_archive_location").val();insightPaged=1;jQuery("input[name=insight_paged]").val(insightPaged);filterInsight("filter")}) 15jQuery("#insight_archive_load_more").on("click",function(){insightPaged=jQuery("[name=insight_paged]").val();insightPaged=parseInt(insightPaged)+1;jQuery("[name=insight_paged]").val(insightPaged);filterInsight("loadmore")}) 16jQuery("#case_study_archive_load_more").on("click",function(){caseStudyPaged=jQuery("[name=case_study_paged]").val();caseStudyPaged=parseInt(caseStudyPaged)+1;jQuery("[name=case_study_paged]").val(caseStudyPaged);filterCaseStudy("loadmore")}) 17jQuery("#people_archive_filter").on("click",function(e){e.preventDefault();peopleLocation=jQuery("#peopleLocationFilter").val();peopleSector=jQuery("#peopleSectorFilter").val();peoplePosition=jQuery("#peoplePositionFilter").val();peoplePaged=1;if(peopleLocation!=""||peopleSector!=""||peoplePosition!=""){jQuery("input[name=people_paged]").val(peoplePaged);jQuery(".people_default_row").slideUp();filterPeople("filter");jQuery(".people_filter_list").show()}else{jQuery(".people_filter_list").hide();jQuery(".people_default_row").slideDown()}}) 18setTimeout(function(){jQuery("body.custom_search").removeAttr("style")},1000);showBackToTopArrow();if(jQuery(".enable_back_to_top_div .back_to_top_arrow").length>0){jQuery(".enable_back_to_top_div .back_to_top_arrow").on("click",function(){var id1=jQuery(this).attr("data-id");if(id1!=undefined&&id1!=""&&id1!=null&&jQuery("#"+id1).length>0){jQuery("body, html").animate({scrollTop:jQuery("#"+id1).offset().top-120},1000)}else{jQuery("body, html").animate({scrollTop:0},1000)}})} 19if(jQuery(".contact__submit.btn").length>0){jQuery(".contact__submit.btn").on("click",function(){var contact_name="";var contact_email="";var contact_category="";var contact_consent1="";var contact_consent2="";try{if(jQuery(".contact__form__field.contact__name").length>0){contact_name=jQuery(".contact__form__field.contact__name").val()} 20if(jQuery(".contact__form__field.contact__email").length>0){contact_email=jQuery(".contact__form__field.contact__email").val()} 21if(jQuery(".topics .topics__item.active").length>0){jQuery(".topics .topics__item.active").each(function(){if(contact_category!=""){contact_category+=", "} 22contact_category+=jQuery(this).text()})} 23if(jQuery(".contact__privacy:checked").length>0){contact_consent1="true"} 24if(jQuery(".contact__newsletter:checked").length>0){contact_consent2="true"} 25jsonObj={"action":"submit_contact_data","contact_name":contact_name,"contact_email":contact_email,"contact_category":contact_category,"contact_consent1":contact_consent1,"contact_consent2":contact_consent2};jQuery.ajax({url:ajaxurl,data:jsonObj,type:"POST",async:!0,beforeSend:function(xhr){console.log("ajax start")},success:function(data){if(data.data.replace(/(\r\n\t|\n|\r\t)/gm,"").replace(" ","")=="false"){console.log("contact info not submitted");return!1}else{console.log("contact info submitted")}},error:function(xhr){console.log(xhr)}})}catch(error){}})}}) 26jQuery(window).on("scroll",function(){showBackToTopArrow()}) 27function showBackToTopArrow(){if(jQuery(".enable_back_to_top_div").length>0){if(jQuery(window).scrollTop()>150){jQuery(".enable_back_to_top_div").addClass("show")}else{jQuery(".enable_back_to_top_div").removeClass("show")}}} 28function filterNews(type){var currentPostCount=jQuery("#news_post_grid > div").length;jsonObj={"action":"filter_news","perpage":newsPerPage,"paged":newsPaged,"category":newsCategoryVal,"sector":newsSectorVal,"location":newsLocationVal,"exclude_id":newsExcludeId,"currentPostCount":currentPostCount,"type":type};jQuery.ajax({url:ajaxurl,data:jsonObj,type:"POST",async:!0,beforeSend:function(xhr){console.log("ajax start")},success:function(data){if(data.data.replace(/(\r\n\t|\n|\r\t)/gm,"").replace(" ","")=="false"&&type!='loadmore'){jQuery("#news_post_grid .news_grid_item").remove();jQuery("#news_post_grid").html("<div class='no_found news_grid_item col-12'>Result not found!!</div>");jQuery(".news_load_more").hide();return!1}else if(type=='loadmore'){jQuery("#news_post_grid").append(data.data)}else{jQuery("#news_post_grid .news_grid_item").remove();jQuery("#news_post_grid").append(data.data)} 29setTimeout(function(){var total=jQuery("#total_post_count").val();var current=jQuery("#current_post_count").val();var c_total=jQuery("#news_post_grid .news_grid_item").length;if(total!=''&¤t!=''){if(parseInt(total)==c_total){jQuery(".news_load_more").hide()}else{jQuery(".news_load_more").show()}} 30jQuery("#total_post_count").remove();jQuery("#current_post_count").remove()},1000)},error:function(xhr){console.log(xhr);jQuery(".news_load_more").hide()}})} 31function filterInsight(type){var currentPostCount=jQuery("#insight_post_grid > div").length;jsonObj={"action":"filter_insight","perpage":insightPerPage,"paged":insightPaged,"category":insightCategoryVal,"sector":insightSectorVal,"location":insightLocationVal,"exclude_id":insightExcludeId,"currentPostCount":currentPostCount,"type":type};jQuery.ajax({url:ajaxurl,data:jsonObj,type:"POST",async:!0,beforeSend:function(xhr){console.log("ajax start")},success:function(data){if(data.data.replace(/(\r\n\t|\n|\r\t)/gm,"").replace(" ","")=="false"&&type!='loadmore'){jQuery("#insight_post_grid .insight_grid_item").remove();jQuery("#insight_post_grid").html("<div class='no_found insight_grid_item col-12'>Result not found!!</div>");jQuery(".insight_load_more").hide();return!1}else if(type=='loadmore'){jQuery("#insight_post_grid").append(data.data)}else{jQuery("#insight_post_grid .insight_grid_item").remove();jQuery("#insight_post_grid").append(data.data)} 32setTimeout(function(){var total=jQuery("#total_post_count").val();var current=jQuery("#current_post_count").val();var c_total=jQuery("#insight_post_grid .insight_grid_item").length;if(total!=''&¤t!=''){if(parseInt(total)==c_total){jQuery(".insight_load_more").hide()}else{jQuery(".insight_load_more").show()}} 33jQuery("#total_post_count").remove();jQuery("#current_post_count").remove()},1000)},error:function(xhr){console.log(xhr);jQuery(".insight_load_more").hide()}})} 34function filterPeople(type){var currentPostCount=jQuery("#people_filter_list > div").length;jsonObj={"action":"filter_people","perpage":peoplePerPage,"paged":peoplePaged,"position":peoplePosition,"sector":peopleSector,"location":peopleLocation,"currentPostCount":currentPostCount,"type":type};jQuery.ajax({url:ajaxurl,data:jsonObj,type:"POST",async:!0,beforeSend:function(xhr){console.log("ajax start")},success:function(data){if(data.data.replace(/(\r\n\t|\n|\r\t)/gm,"").replace(" ","")=="false"&&type!='loadmore'){jQuery("#people_filter_list .people_grid_item").remove();
34jQuery("#people_filter_list").html("<div class='no_found people_grid_item col-12'>Result not found!!</div>");jQuery(".people_load_more").hide();return!1}else if(type=='loadmore'){jQuery("#people_filter_list").append(data.data)}else{jQuery("#people_filter_list .people_grid_item").remove();jQuery("#people_filter_list").html(data.data)} 35setTimeout(function(){var total=jQuery("#total_post_count").val();var current=jQuery("#current_post_count").val();var c_total=jQuery("#people_filter_list .people_grid_item").length;if(total!=''&¤t!=''){if(parseInt(total)==c_total){jQuery(".people_load_more").hide()}else{jQuery(".people_load_more").show()}} 36jQuery("#total_post_count").remove();jQuery("#current_post_count").remove()},1000)},error:function(xhr){console.log(xhr);jQuery(".people_load_more").hide()}})} 37function filterCaseStudy(type){var currentPostCount=jQuery("#case_study_post_grid > div").length;jsonObj={"action":"filter_case_study","perpage":caseStudyPerPage,"category":caseStudyCategory,"paged":caseStudyPaged,"exclude_id":caseStudyExcludeId,"currentPostCount":currentPostCount,"type":type};jQuery.ajax({url:ajaxurl,data:jsonObj,type:"POST",async:!0,beforeSend:function(xhr){console.log("ajax start")},success:function(data){if(data.data.replace(/(\r\n\t|\n|\r\t)/gm,"").replace(" ","")=="false"&&type!='loadmore'){jQuery("#case_study_post_grid .case_study_grid_item").remove();jQuery("#case_study_post_grid").html("<div class='no_found case_study_grid_item col-12'>Result not found!!</div>");jQuery(".case_study_load_more").hide();return!1}else if(type=='loadmore'){jQuery("#case_study_post_grid").append(data.data)}else{jQuery("#case_study_post_grid .case_study_grid_item").remove();jQuery("#case_study_post_grid").append(data.data)} 38setTimeout(function(){var total=jQuery("#total_post_count").val();var current=jQuery("#current_post_count").val();var c_total=jQuery("#case_study_post_grid .case_study_grid_item").length;if(total!=''&¤t!=''){if(parseInt(total)==c_total){jQuery(".case_study_load_more").hide()}else{jQuery(".case_study_load_more").show()}} 39jQuery("#total_post_count").remove();jQuery("#current_post_count").remove()},1000)},error:function(xhr){console.log(xhr);jQuery(".case_study_load_more").hide()}})} 40function filterSearch(type){jsonObj={"action":"filter_news","searchText":searchVal,"type":type};jQuery.ajax({url:ajaxurl,data:jsonObj,type:"POST",async:!0,beforeSend:function(xhr){console.log("ajax start")},success:function(data){if(data.data.replace(/(\r\n\t|\n|\r\t)/gm,"").replace(" ","")=="false"&&type!='loadmore'){jQuery("#search_main > .recent .recent__item").remove();jQuery("#search_main > .recent").html("<div class='no_found'>Result not found!!</div>");return!1}else if(type=='loadmore'){jQuery("#search_main > .recent").append(data.data)}else{jQuery("#search_main > .recent .recent__item").remove();jQuery("#search_main > .recent").append(data.data)}},error:function(xhr){console.log(xhr)}})}
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.