jQuery( document ).ready(function($) {
const swiper = new Swiper('.swiper', {
effect: 'fade',
// If we need pagination
pagination: {
el: '.swiper-pagination',
},
// Navigation arrows
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
// And if we need scrollbar
scrollbar: {
el: '.swiper-scrollbar',
},
});
if ($('article.post-1041').length) {
$("article.post-1041 a").attr("href", "https://primero.avature.net/en_GB/careers/SearchJobs/?1802=%5B96332%5D&listFilterMode=1&jobRecordsPerPage=10&")
$("article.post-1041 a").attr('target', '_blank');
}
if ($('article.post-1034').length) {
$("article.post-1034 a").attr("href", "https://primero.avature.net/en_GB/careers/SearchJobs/?1802=%5B96333%5D&listFilterMode=1&jobRecordsPerPage=10&")
$("article.post-1034 a").attr('target', '_blank');
}
jQuery('.print-as-pdf-btn').click(function () {
window.print();
return false;
});
$('.w-filter-item-values').hide();
$('.news-filters button.w-filter-item-title').click(function(){
$(this).toggleClass('filter-open');
var newsFilterWrapper = $(this).parent();
if($(this).hasClass('filter-open')){
$('.w-filter-item-values',newsFilterWrapper).show(300);
}else{
$('.w-filter-item-values',newsFilterWrapper).hide(300);
}
});
$('#henderson').click(function(){
$('.henderson.w-html').show();
$('.osborne-park.w-html').hide();
});
$('#osborne-park').click(function(){
$('.henderson.w-html').hide();
$('.osborne-park.w-html').show();
});
$('#montreal').click(function(){
$('.houston.w-html').hide();
$('.montreal.w-html').show();
});
$('#houston').click(function(){
$('.houston.w-html').show();
$('.montreal.w-html').hide();
});
if($('.proj_textRow1-temp').find('.wp-video').length !== 0){
$('.proj_textRow1-temp').addClass('content-with-video');
}
});