« All News

Global AMD Script

$(document).ready(function() {
/* console.log(‘Jobs move 1’);
setTimeout(function() {
$(‘.job’).each(function() {
console.log(‘Jobs move’);
var $job = $(this);
var $jobTitle = $job.find(‘.jobTitle’);
var $anchor = $jobTitle.find(‘a’);
var $locationType = $job.find(‘.child.locationtype’);
$locationType.insertAfter($anchor);
});
}, 1500);*/

/** Multiple design changes on results page ***/
function brandlogoreplace() {
$(‘.job’).each(function() {
var brandType = ”;
var brandName = $(this).find(‘.first’).text();
var brandNameAlt = brandName.toLowerCase().replace(/\s/g, “”);

if ($(window).width() > 1024) {
if (brandName == ‘Allstate’) {
brandType = ‘https://cdn-static.findly.com/wp-content/uploads/sites/3526/2025/01/10011050/Allstate-Gray-Logo-DT.png’;
} else if (brandName == ‘Direct Auto’) {
brandType = ‘https://cdn-static.findly.com/wp-content/uploads/sites/3526/2025/01/10011100/Direct-Auto-Gray-Logo-Desktop.png’;
} else if (brandName == ‘Arity’) {
brandType = ‘https://cdn-static.findly.com/wp-content/uploads/sites/3526/2025/01/10011057/Arity-Gray-Logo-Desktop.png’;
} else if (brandName == ‘National General’) {
brandType = ‘https://cdn-static.findly.com/wp-content/uploads/sites/3526/2025/01/10011105/National-General-Gray-Logo-Desktop.png’;
} else if (brandName == ‘Integon’) {
brandType = ‘https://cdn-static.findly.com/wp-content/uploads/sites/3526/2025/01/10011103/Integon-Gray-Logo-Desktop.png’;
}
}
if ($(window).width() < 1024) { if (brandName == 'Allstate') { brandType = 'https://cdn-static.findly.com/wp-content/uploads/sites/3526/2024/12/27201646/Allstate-Gray-Logo-MB%402x-1.png'; } else if (brandName == 'Direct Auto') { brandType = 'https://cdn-static.findly.com/wp-content/uploads/sites/3526/2024/12/27201702/Direct-Auto-Gray-Logo-MB%402x-1.png'; } else if (brandName == 'Arity') { brandType = 'https://cdn-static.findly.com/wp-content/uploads/sites/3526/2024/12/27201655/Arity-Gray-Logo-MB%402x-1.png'; } else if (brandName == 'National General') { brandType = 'https://cdn-static.findly.com/wp-content/uploads/sites/3526/2024/12/27201723/National-General-Gray-Logo-MB%402x-1.png'; } else if (brandName == 'Integon') { brandType = 'https://cdn-static.findly.com/wp-content/uploads/sites/3526/2024/12/27201713/Integon-Gray-Logo-MB%402x.png'; } } if (brandType != '') { $(this).find('.first').html('‘ + brandName + ‘ Logo‘);
}

/*** Location text replace ***/
var locnamefull = $(this).find(‘.joblist-location > .location’).text();
if (locnamefull.indexOf(‘United States of America’) >= 0) {
$(‘.joblist-location > .location’).text(function () {
return $(this).text().replace(‘United States of America’, ‘USA’);
});
}
if (locnamefull.indexOf(‘United Kingdom’) >= 0) {
$(‘.joblist-location > .location’).text(function () {
return $(this).text().replace(‘United Kingdom’, ‘UK’);
});
}

var entryname = $(this).find(‘.job-innerwrap > div:nth-child(9)’).text();
$(this).find(‘.job-innerwrap > div:nth-child(9)’).addClass(‘derp’);
if (entryname.indexOf(‘Entry Level Professional’) >= 0) {
$(‘.job-innerwrap > .av_one_sixth:nth-child(9)’).text(function () {
return $(this).text().replace(‘Entry Level Professional’, ‘Early Career Professional’);
});
}

});
}
CWS.add_filter(‘search_results_last_page_number’, function(num_pages) {
brandlogoreplace();
return num_pages; // always return the original criteria
});

$(document).ready(function() {
/*** EJD Country text change (in multiple places) ***/
if ($(“body.ejd-page”)[0]) {
var countryname = $(‘#gtm-jobdetail-country’).text();
if (countryname.indexOf(“United States of America”) >= 0) {
$(“#gtm-jobdetail-country”).text(function () {
return $(this).text().replace(“United States of America”, “United States”);
});
}
}
/*** Early Career change ***/
if ($(“body.job-results”)[0]) {
earlytagreplace();
$(“.checkbox-entry-level-professional label”).text(‘Early Career Professional’);
$(‘.checkbox-entry-level-professional’).on(‘click touchstart’, function(){
setTimeout(function() {
earlytagreplace();
}, 500);
});
}

function earlytagreplace() {
$(‘#search-filters button[data-tag-value=”Entry%20Level%20Professional”]’).attr(‘aria-label’,’Early Career Professional. Remove from search’).text(function () {
return $(this).text().replace(“Entry Level”, “Early Career”);
});
}
});

$(document).ready(function() {

$(‘#cws-adv-search-btn, body.ejd-page a.button.apply-btn’).attr(‘onclick’, “_scLV(this.innerText,1,’o’);”);
//$(‘#cws-adv-search-btn’).attr(‘onclick’, “_scLV(this.innerText,1,’o’);”);
$(‘.av-social-link-linkedin a’).attr(‘onclick’, “ProcessMetrics(‘SocialIcons’, [‘linkedin-share’]);”);
$(‘.av-social-link-facebook a’).attr(‘onclick’, “ProcessMetrics(‘SocialIcons’, [‘facebook-share’]);”);
$(‘.av-social-link-mail a’).attr(‘onclick’, “ProcessMetrics(‘SocialIcons’, [’email-share’]);”);

/* mobile menu */
$(‘.has-sub-menu’).on(‘click’, function(){
let thisClick = $(this);
$(‘.ubermenu-has-submenu-flyout’).each(function(){
let thisMenuItem = $(this);
setTimeout(function(){
if(thisClick.next(‘.ubermenu-submenu’).hasClass(‘visible_sublist’)){
//if(thisMenuItem.find(‘.ubermenu-submenu’).hasClass(‘visible_sublist’)){
//console.log(‘has2!!’)
thisClick.addClass(‘sub-menu-opened’);
}else{
//console.log(‘hasnot2!!’)
thisClick.removeClass(‘sub-menu-opened’);
}
},200);
});
});
/* END mobile menu */

/*
— commenting below setInterval function to update class ‘brandnew’ on job search result page
— as its not working/reflecting on frontend
— might be section/selector has been replaced in recent devlopment
— if require, please use CWS filter functons instead of setInterval
**
function updateClass() {
$(‘#widget-jobsearch-results-list .flex_column.av_one_sixth:nth-child(4)’).addClass(‘brandnew’);
}
var intervalId = setInterval(updateClass, 2000);
var iterations = 0;
var maxIterations = 5;
function checkAndClearInterval() {
iterations++;
if (iterations >= maxIterations) {
//console.log(‘Clearing interval after ‘ + maxIterations + ‘ iterations.’);
clearInterval(intervalId);
}
}
setInterval(checkAndClearInterval, 1000);
*/
});

$(document).ready(function(){
setTimeout(function(){
$(‘.search-top-banner .search-submit-btn’).insertAfter(‘#cws-search-form-new’);
},1000);

// Hide .location-wrapper by default
$(‘.location-wrapper.location-wrapper.with_geo,.search-checkbox-container+.w-form-row-label’).hide();

// Handle checkbox click event
$(‘input[name=”location_type”]’).on(‘click’, function () {
var val = $(‘input[name=”location_type”]:checked’).map(function () {
return this.value;
}).get();

if (val.length > 1 || (val.length === 1 && val[0] !== ‘Fully Remote’)) {
// Show .location-wrapper if more than one option is selected or an option other than ‘Fully Remote’ is selected
$(‘.location-wrapper.location-wrapper.with_geo,.search-checkbox-container+.w-form-row-label’).show();
} else {
// Hide .location-wrapper if only ‘Fully Remote’ is selected
$(‘.location-wrapper.location-wrapper.with_geo,.search-checkbox-container+.w-form-row-label’).hide();
}
});

/* $(‘.location-wrapper.location-wrapper.with_geo’).hide();
val = [];
$(‘input[name=”location_type”]:checked’).each(function(i){
val[i] = $(this).val();

});
console.log(val.length);
if(val.length>1){
$(‘.location-wrapper.location-wrapper.with_geo’).show();
}
if(val.length==1) {
$(‘.location-wrapper.location-wrapper.with_geo’).hide();
if(val[0]==’Fully Remote’){
$(‘.location-wrapper.location-wrapper.with_geo’).hide();
}
else {
$(‘.location-wrapper.location-wrapper.with_geo’).show();
}
}

$(‘input[name=”location_type”]’).on(‘click’, function () {
$(‘.location-wrapper.location-wrapper.with_geo’).hide();
val = [];
$(‘input[name=”location_type”]:checked’).each(function(i){
val[i] = $(this).val();

});
console.log(val.length);
if(val.length>1){
$(‘.location-wrapper.location-wrapper.with_geo’).show();
}
if(val.length==1) {
$(‘.location-wrapper.location-wrapper.with_geo’).hide();
if(val[0]==’Fully Remote’){
$(‘.location-wrapper.location-wrapper.with_geo’).hide();
}
else {
$(‘.location-wrapper.location-wrapper.with_geo’).show();
}
}
});*/

});
$(document).ready(function() {
$(‘.jd-description p’).filter(function() {
return $.trim($(this).text()) === ”;
}).remove();
});
/*
— eommenting below setInterval function, as ‘.brandnew’ element already removed and not exisit anymore
— if require, please use CWS filter instead of setInterval
**
$(document).ready(function() {
if ($(‘#widget-jobsearch-results-list’).length > 0) {
console.log(‘job-innerwrap elements found.’);
if (window.innerWidth < 768) { console.log('Script executed on screens narrower than 768 pixels.'); var intervalId = setInterval(function() { $('.job').each(function() { console.log('job-innerwrap child4'); var arityCell = $(this).find('.brandnew'); $(this).prepend(arityCell); }); }, 1000); var iterations = 0; var maxIterations = 5; var checkAndClearInterval = function() { iterations++; if (iterations >= maxIterations) {
//console.log(‘Clearing interval after ‘ + maxIterations + ‘ iterations.’);
clearInterval(intervalId);
}
};
setInterval(checkAndClearInterval, 1000);
} else {
console.log(‘Script not executed on screens wider than 768 pixels.’);
}
} else {
console.log(‘No #widget-jobsearch-results-list element found.’);
}
});
*/

/* AA fixes */

$(‘.roles-section .avia_textblock h3, .career-area-btm-cta .avia_textblock h3, .rollover-box, .video-carousel h2, .transcript-text a, .image-overlay-inside, .av-masonry-container .av-masonry-item-with-image’).each(function() {
$(this).attr(‘tabindex’, ‘0’);
});
$(‘.blog-pad article’).each(function() {
// Find the text of .slide-entry-title a within the current article
var labelText = $(this).find(‘.slide-entry-title a’).text();

// Find the closest a.slide-image within the current article
var slideImageLink = $(this).closest(‘article’).find(‘a.slide-image’);

// Add an aria-label attribute to the slideImageLink with the labelText
slideImageLink.attr(‘aria-label’, labelText);
});
$(document).on(“click keypress”, “#toggleAdvSearch”, function (e) {
if ((e.type === “click”) || (e.type === “keypress” && e.keyCode === 13) ) {
$(this).toggleClass(‘open’);
}
});
$(document).ready(function() {
$(‘.social-follow a[title=”Facebook”]’).attr(‘href’ , ‘https://www.facebook.com/Allstate’);
$(‘.social-follow a[title=”Instagram”]’).attr(‘href’ , ‘https://www.instagram.com/allstate/’);
$(‘.social-follow a[title=”Twitter”]’).attr(‘href’ , ‘https://twitter.com/allstate’);
// Check if .altru-widget-container is present
if ($(‘.altru-widget-container’).length) {
// Find the .whowesec element
const whowesec = $(‘.whowesec’);

// Find the .jd-content element
const jdContent = $(‘.jd-content’);

// Insert the .whowesec element after the .jd-content element
jdContent.after(whowesec);
}
});

$(document).ready(function() {
$(‘body.arity .whowearecontent p’).html(‘Founded by The Allstate Corporation in 2016, Arity is a data and analytics company focused on improving transportation. We collect and analyze enormous amounts of data, using predictive analytics to build solutions with a single goal in mind: to make transportation smarter, safer and more useful for everyone.

At the heart of that mission are the people that work here—the dreamers, doers, and difference-makers that call this place home. As part of that team, your work will showcase both your intelligence and your creativity as you tackle real problems and put your talents towards transforming transportation. That’s because at Arity, we believe work and life shouldn’t be at odds with one another. After all, we know that your unique qualities give you a unique perspective. We don’t just want you to see yourself here. We want you to be yourself here.’);

$(‘body.arity .whowearelogo img’).attr(‘src’,’https://cdn-static.findly.com/wp-content/uploads/sites/2995/2023/10/12185012/Arity_Logo_R_Large_Navy_RGB_300px.png’);
$(‘#widget_job_search_full-7 #cws-search-form’).attr(‘id’ , ‘cws-search-form-new’);
$(‘.sidebar-search #toggleAdvSearch .avia_iconbox_title’).text(‘Filters’);
$(‘.date-radio-wrap input:first-child’).remove();
$(‘.date-label-wrap label:first-child’).remove();
$(‘label[for=”posted-date-2″]’).text(‘Past 7 days’);
$(‘label[for=”posted-date-3″]’).text(‘Past 30 days’);
$(‘label[for=”posted-date-4″]’).text(‘Any date’);
if ($(‘#posted-date-4’).is(‘:checked’)) {
$(‘label[for=”posted-date-4″]’).css(‘color’, ‘#0e1941’);
}
$(‘input[name=”date”]’).change(function() {
if ($(‘#posted-date-4’).is(‘:checked’)) {
$(‘label[for=”posted-date-4″]’).css(‘color’, ‘#0e1941’);
} else {
$(‘label[for=”posted-date-4″]’).css(‘color’, ”);
}
});
$(‘input[name=”date”]’).change(function() {
if ($(‘#posted-date-3’).is(‘:checked’)) {
$(‘label[for=”posted-date-3″]’).css(‘color’, ‘#0e1941’);
} else {
$(‘label[for=”posted-date-3″]’).css(‘color’, ”);
}
});
$(‘input[name=”date”]’).change(function() {
if ($(‘#posted-date-2’).is(‘:checked’)) {
$(‘label[for=”posted-date-2″]’).css(‘color’, ‘#0e1941’);
} else {
$(‘label[for=”posted-date-2″]’).css(‘color’, ”);
}
});
$(‘.job-results img’).removeAttr(‘tabindex’);

});
$(document).ready(function() {
/*
— commenting below setInterval function, as related section ‘altruvideocode’ has been removed from EJD page
**
var widgetContainers = $(‘.altru-widget-container’);

var interval = setInterval(function() {
if (widgetContainers.length > 0) {
widgetContainers.each(function() {
var widgetContainer = $(this);
var aviaCodeblock = $(‘.jd-content .avia_codeblock.altruvideocode’);
aviaCodeblock.append(widgetContainer);
});

clearInterval(interval); // Clear the interval once elements are appended
}
}, 200);
});
$(document).ready(function(){
/* $(‘.viewmorebtn a’).on(‘click’, function(e){
// e.preventDefault();
$(‘.widget_joblist_row:nth-child(n+4)’).toggle();
$(this).focus();// Toggle visibility of hidden rows
});*/
/* ejd similar jobs – a11y */
$(‘.ejd-similar-job-section .allstatejdtabs’).attr(‘id’, ‘ejd-similar-jobs’);
$(‘#similar-opportunities .viewmorebtn a’).attr({‘aria-expanded’: ‘false’, ‘aria-controls’: ‘ejd-similar-jobs’, ‘role’: ‘button’});
/* END ejd similar jobs – a11y */
$(‘.viewmorebtn a’).on(‘click’, function(e) {
e.preventDefault();
var $hiddenRows = $(‘.widget_joblist_row:nth-child(n+5)’);

if ($hiddenRows.is(‘:visible’)) {
$hiddenRows.hide();
$(this).text(‘View more jobs’); // Change the text to “Show button”
$(‘#similar-opportunities .viewmorebtn a’).attr({‘aria-expanded’: ‘false’});
} else {
$hiddenRows.show();
$(this).text(‘Hide more jobs’); // Change the text to “Hide button”
$(‘#similar-opportunities .viewmorebtn a’).attr({‘aria-expanded’: ‘true’});
}
});
var jobRows = $(‘.widget_joblist_row’);

if (jobRows.length < 5) { $('.viewmorebtn').hide(); } }); $(document).ready(function() { // Append the "Show More" link $('.filter-checkbox-wrapper.container-primary-category-wrap').after('

‘);

// Define your variables
var checkboxes = $(“.filter-checkbox-wrapper.container-primary-category-wrap .search-checkbox-item”);
var isOpen = false;

// Use event delegation to handle the click event for dynamically added elements
$(document).on(‘click’, ‘#show-more’, function(e) {
e.preventDefault();

if (isOpen) {
// Hide checkboxes
checkboxes.slice(5).css(‘display’, ‘none’);
$(‘#show-more’).text(“Show More”).attr(‘aria-expanded’, ‘false’);
} else {
// Show checkboxes
checkboxes.slice(5).css(‘display’, ‘flex’);
$(‘#show-more’).text(“Show Less”).attr(‘aria-expanded’, ‘true’);
}

isOpen = !isOpen;
});
});

/* Veteran Page*/
$(document).ready(function(){
$(‘.social-follow a[title=”Facebook”]’).attr(‘href’ , ‘https://www.facebook.com/Allstate’);
$(‘.social-follow a[title=”Instagram”]’).attr(‘href’ , ‘https://www.instagram.com/allstate/’);
$(‘.social-follow a[title=”Twitter”]’).attr(‘href’ , ‘https://twitter.com/allstate’);
$(‘.veteran_bg’).css({‘background-image’: ‘url(https://cdn-static.findly.com/wp-content/uploads/sites/2101/2023/09/14191505/veterans_header_img.png)’});
$(‘.veterans_footer_bg’).attr(‘style’,’background-image:url(https://cdn-static.findly.com/wp-content/uploads/sites/2101/2023/09/14191651/A21_mart_5861_F.png)’);
$(‘.ubermenu-has-submenu-mega .ubermenu-submenu’).attr(‘role’ , ‘menu’);
$(‘.ubermenu-nav .ubermenu-item-has-children a’).attr(‘aria-haspopup’ , ‘true’);

//duplicate id
setTimeout(function(){
if($(‘#altru-widget-selector-c205nf2own352’).length>0){
$(‘#altru-widget-selector-c205nf2own352’).addClass(‘altru-widget-selector-c205nf2own352’);
$(‘.altru-widget-selector-c205nf2own352’).removeAttr(‘id’);
}
if($(‘#menu-item-19705’).length>0){
$(‘#menu-item-19705’).addClass(‘menu-item-19705’);
$(‘.menu-item-19705’).removeAttr(‘id’);
}
$(‘.altru-user-info-text-wrapper’).removeAttr(‘aria-label’);
$(‘#altru-widget’).removeAttr(‘aria-label’);
$(‘.benefits-icon_container img’).removeAttr(‘tabindex’);
},2000);

$(document).on(‘click’, ‘.slick-prev,.slick-next’, function() {
setTimeout(function() {
if ($(‘.slick-slide.slick-current.slick-active’).length > 0) {
$(‘.slick-slide’).removeAttr(‘tabindex’);
$(‘.slick-slide.slick-current.slick-active’).attr(‘tabindex’, ‘0’);
//$(‘.slick-slide.slick-current.slick-active’).focus();
}
}, 1500);
});

$(document).on(‘click’, ‘.next-slide,.prev-slide’, function() {
setTimeout(function() {
if ($(‘.slide-entry-wrap.active-slide’).length > 0) {
$(‘.slide-entry-wrap’).removeAttr(‘tabindex’);
$(‘.slide-entry-wrap.active-slide’).attr(‘tabindex’, ‘0’);
//$(‘.slide-entry-wrap.active-slide’).focus();
}
}, 1500);
});

});

jQuery(document).ready(function(){
$(‘#header_meta .menu-item-16232 a’).attr(‘aria-label’, ‘Application status open in new window’);
$(‘#header_meta .menu-item-16230 a’).attr(‘aria-label’, ‘Allstate.com open in new window’);
$(‘#header_meta .menu-item-19313 a’).attr(‘aria-label’, ‘Allstate corporation open in new window’);
$(‘#menu-item-3502 a span’).attr(‘aria-label’, ‘Career areas’);
$(‘#widget-jobsearch-results-pages’).attr(‘aria-label’, ‘Pagination’);
$(‘.search-results-table’).removeAttr(‘aria-busy’);
$(‘#cws_quickjobsearch #cws_quickjobsearch_keywords’).removeAttr(‘aria-label’);
$(‘#logo-bottom img’).removeAttr(‘tabindex’);
setTimeout(function(){
$(‘#advanced_menu_toggle’).attr(‘aria-expanded’,’false’);
$(‘#advanced_menu_hide’).attr(‘aria-expanded’,’true’);
$(“.widget-jobsearch-results .job-innerwrap.g-cols”).attr(“role”,”presentation”);
$(‘.job-innerwrap .job-arrow-btn’).remove();
$(‘.widget-jobsearch-results .search-results-table’).attr(‘aria-label’, ‘Job search results’).removeAttr(‘aria-busy’);

$(‘.search-results-table .flex_column[role=”columnheader”]’).attr(‘aria-sort’, ‘none’);
$(‘.search-columns div[role=”columnheader”]’).removeAttr(‘aria-label’);

}, 1000);
setTimeout(function() {
$(‘.search-results-table .flex_column[role=”columnheader”]’).attr(‘aria-sort’, ‘none’);

$(‘.search-results-table .flex_column[role=”columnheader”]’).click(function() {
$(this).attr(‘aria-sort’, function(i, attr) {
return attr == ‘ascending’ ? ‘descending’ : ‘ascending’
});

});
}, 500);
$(‘.ejd-hero-bg’).attr(‘aria-hidden’, ‘true’);
$(‘.search-results-table’).attr(‘role’ ,’table’);
$(‘.search-results-table>.entry-content-wrapper’).removeAttr(‘aria-busy’);
$(‘.search-results-table>.entry-content-wrapper’).removeAttr(‘role’, ‘row’);

$(‘.blog-pad article h3 a’).removeAttr(‘title’);
$(‘#widget_job_search_full-7 .geolocation-icon ‘).slice().insertBefore(‘#widget_job_search_full-7 .location-wrapper .loc_auto ‘);
$(‘#widget_job_search_full-5 .geolocation-icon ‘).slice().insertBefore(‘#widget_job_search_full-5 .location-wrapper .loc_auto ‘);
/* Slider AA*/
$(‘.test-slider-section.ejd-slider .avia-slideshow-arrows’).slice().insertAfter(‘.test-slider-section.ejd-slider .avia-content-slider-inner’);
$(‘.test-slider-section.ejd-slider’).attr(‘role’ , ‘region’).attr(‘aria-label’, ‘Workplace Carousel’);
$(‘.test-slider-section.ejd-slider .avia-slideshow-arrows a’).attr(‘role’ , ‘button’);
/* */
/* new Slider AA*/
$(‘.new-slider-section.ejd-slider .avia-slideshow-arrows’).slice().insertAfter(‘.new-slider-section.ejd-slider .avia-content-slider-inner’);
$(‘.new-slider-section.ejd-slider’).attr(‘role’ , ‘region’).attr(‘aria-label’, ‘ Carousel’);
$(‘.new-slider-section.ejd-slider .avia-slideshow-arrows a’).attr(‘role’ , ‘button’);
/* */

/** if ($(‘#search-filters’).length > 0) {
// Insert the

element before the button inside #search-filters
$(‘

Selected Filters

‘).insertBefore(‘#search-filters button’);
} **/

var labelText = $(‘#gtm-jobdetail-title’).text() + ‘ Apply Now open in new window’ ;
$(‘#gtm-jobdetail-apply .apply-btn’).attr(‘aria-label’, labelText);
// $(‘#widget_job_search_full-5 #cws-adv-search-btn’).attr(‘id’ , ‘cws-adv-search-btnew’);

/********** REACTIVATE
var nationwide_input_html = $(‘.Nationwide label.location_type’).html();
$(‘.Nationwide label.location_type’).empty();
nationwide_input_html = nationwide_input_html.replace(‘ Nationwide’,’Countrywide: In Office’);
$(‘.Nationwide label.location_type’).append(nationwide_input_html);

var replace_loc_label_nation = function(html, job){
return html.replace(‘Nationwide’, ‘Countrywide: In Office’);
};
CWS.add_filter(‘after_job_column_city_state_or_locationtype’, replace_loc_label_nation);
var remote_input_html = $(‘.Remote label.location_type’).html();
$(‘.Remote label.location_type’).empty();
remote_input_html = remote_input_html.replace(‘ Remote’,’Remote: Home Based Worker’);
$(‘#live-results’).html(function() {return $(this).html().replace(“Live Results”,”Jobs”)});
$(‘#live-results’).slice().insertAfter(‘#search-filters’);
$(‘.Remote label.location_type’).append(remote_input_html);
});
***********************/

/*$(‘#cws-search-form .search-checkbox-label’).each(function() {
// Check if the label text contains ‘US’ (case insensitive)
if ($(this).text().toUpperCase().includes(‘US’)) {
// If ‘US’ is found in the label text, add aria-label ‘United States’
$(this).attr(‘aria-label’, ‘United States’);
}
});
*/

jQuery(document).ready(function () {
$(‘.video-link’).attr(‘tabindex’, ‘0’);
$(‘.video-link’).attr(‘aria-label’, ‘Play Video’);
$(‘.image-overlay-inside’).attr(‘tabindex’, ‘0’);
//$(‘.avia_image ‘).attr(‘tabindex’, ‘0’);
$(‘.togglecontainer’).attr(‘role’, ‘tablist’);
$(‘#skipnav a’).addClass(‘screen-reader-text’);

jQuery(“#skipnav”).append(
Sitemap
);
$(“#skipnav”).attr({
role: “navigation”,
“aria-label”: “skip to main content and site map navigation”,
});
jQuery(“.single-tribe_events .av-single-event-meta-bar-inner”).hide();
});

jQuery(document).ready(function(){
similarJobsAdditionalInfo();
$(‘#wfboxPrevious’).text(‘Previous’);
$(‘#wfboxNext’).text(‘Next’);
$(‘#wfboxSlideshow’).text(‘Slideshow’);
$(‘.cs-job-search #cws_quickjobsearch_primary_category’).val(‘Call Center’).trigger(‘change’);
});

/* Similar Jobs Addtional Location and Job Type */
function similarJobsAdditionalInfo(){
if (window.location.href.indexOf(“job”) > -1) {
if($(‘.widget_joblist_row’).length){
setTimeout(function(){
$(‘.widget_joblist_loc’).each(function() {
if ($(this).text().trim() !== ‘Remote’) {
$(this).hide();
// $(thisRow).append(‘

‘+data.city+’ , ‘+data.state+’

‘);
}
});
/*$(‘.ejd-similar-job-section .widget_joblist_row’).each(function(){
var thisRow = this;
var jobUrl = $(this).find(‘a’).attr(‘href’);
var splitUrl = jobUrl.split(‘/’);
//var jobAPI = ‘https://jobsapi-internal.m-cloud.io/api/job?jobid=’+splitUrl[2];
var jobAPI = ‘https://jobsapi-internal.m-cloud.io/api/stjob?jobid=’+splitUrl[2];
//var jobAPI = ‘https://jobsapi-internal.cert.m-cloud.io/api/job?organization=2030&facet=id:’ + splitUrl[2];
$.getJSON( jobAPI, {
format: “json”
}).done(function( data ) {

$(thisRow).append(‘

‘+data.level+’

‘);
$(thisRow).append(‘

‘+data.brand+’

‘);
//$(‘.widget_joblist_row .widget_joblist_loc’).append(‘

‘+data.level+’ ‘+data.industry+’ ‘+data.update_date+’

‘);

});
});*/
$(‘.ejd-similar-job-section .widget_joblist_row’).each(function(){
var thisRow = this;
var jobUrl = $(this).find(‘a’).attr(‘href’);
var splitUrl = jobUrl.split(‘/’);
$.ajax({
url: ‘https://jobsapi-internal.m-cloud.io/api/job?organization=2030&facet=id:’ + splitUrl[2],
type: ‘GET’,
dataType: ‘jsonp’,
success: function(data) {
//var level = data.queryResult[0].level;
// var brand = data.queryResult[0].brand;
var brandsimjob = data.queryResult[0].brand;
var brandsimjobimg = “”
if (brandsimjob == ‘Allstate’) {
brandsimjobimg = ‘https://cdn-static.findly.com/wp-content/uploads/sites/3526/2024/12/12235016/Allstate-Gray-Logo-MB%402x.png’;
} else if (brandsimjob == ‘Direct Auto’) {
brandsimjobimg = ‘https://cdn-static.findly.com/wp-content/uploads/sites/3526/2024/12/12235023/Direct-Auto-Gray-Logo-MB%402x.png’;
} else if (brandsimjob == ‘Arity’) {
brandsimjobimg = ‘https://cdn-static.findly.com/wp-content/uploads/sites/3526/2024/12/12235020/Arity-Gray-Logo-MB%402x.png’;
} else if (brandsimjob == ‘National General’) {
brandsimjobimg = ‘https://cdn-static.findly.com/wp-content/uploads/sites/3526/2024/12/12235026/National-General-Gray-Logo-MB%402x.png’;
}
$(thisRow).append(‘

‘+data.queryResult[0].level+’

‘);
$(thisRow).append(‘

'+brandsimjob+' logo

‘);
},
error: function(request, error) {
console.log(“Request: ” + JSON.stringify(request));
}
});
/**$.ajax({
url: ‘https://jobsapi-internal.m-cloud.io/api/job?organization=2030&facet=id:’ + splitUrl[2],
type: ‘GET’,
dataType: ‘jsonp’,
success: function(data) {
//var level = data.queryResult[0].level;
// var brand = data.queryResult[0].brand;
$(thisRow).append(‘

‘+data.queryResult[0].level+’

‘);
$(thisRow).append(‘

‘+data.queryResult[0].brand+’

‘);
},
error: function(request, error) {
console.log(“Request: ” + JSON.stringify(request));
}
}); ***/
});
}, 2000);
}
}
}
/* END Similar Jobs Addtional Location and Job Type */

$(document).ready(function() {
setTimeout(function(){
$(‘.checkbox-project-management label’).text(‘Project Management’);
$(“.ejd-similar-job-section .widget_joblist_row”).each(function() {
// var brandName = $(this).find(“.brand_name”);
// var jobTitle = $(this).find(“a”);
// var jobLocation = $(this).find(“.widget_joblist_loc”);
// brandName.after(jobLocation);
});
}, 3000);
$(‘#header_main .logo img’).attr(‘alt’ , ‘Allstate Logo’);
$(‘#show-more’).attr(‘role’ , ‘button’);
$(‘.ubermenu-nav .ubermenu-item-has-children a’).attr(‘aria-haspopup’ , ‘true’);
$(‘.ubermenu-nav .ubermenu-submenu’).attr(‘role’ , ‘menu’);
$(‘.ubermenu-has-submenu-mega .ubermenu-submenu’).attr(‘role’ , ‘menu’);
$(‘.ubermenu-has-submenu-mega .ubermenu-submenu’).attr(‘role’ , ‘menu’);

$(‘.ubermenu-nav .ubermenu-submenu a, .ubermenu-nav .ubermenu-submenu’).removeAttr(‘aria-haspopup’);
// Select the form and any filter elements you want to monitor
var $form = $(‘#cws-search-form’);
var $filterInputs = $form.find(‘select, input’);

// Function to handle changes in the filters
/*** function handleFilterChange() {
// Your code to respond to filter changes goes here
if ($(‘#search-filters’).length && $(‘.Selectfiletrs’).length === 0) {
$(‘

Selected Filters

‘).insertBefore(‘#search-filters button’);
}
} ****/
// Attach the change or input event handler to the filter elements
//$filterInputs.on(‘change input’, handleFilterChange);
});

$(‘.ejd-similar-job-section .widget_joblist_row’).each(function() {

$(this).find(‘.brand_name’).slice().insertBefore($(this).find(‘a’));
$(this).find(‘.widget_joblist_loc’).slice().insertBefore($(this).find(‘.sm_level’));

setTimeout(function(){

$(‘.ejd-similar-job-section .widget_joblist_row’).each(function() {
$(this).find(‘.brand_name’).slice().insertBefore($(this).find(‘a’));
$(this).find(‘.widget_joblist_category’).slice().insertAfter($(this).find(‘.sm_level’));
$(this).find(‘.widget_joblist_posted’).slice().insertAfter($(this).find(‘.widget_joblist_category’));
});
$(‘.ejd-similar-job-section .widget_joblist_loc’).each(function() {
var text = $(this).text();
text = text.replace(/(Remote, Remo)/g, ‘Remote’);
$(this).text(text);
});
},6000);
});
var replace_loc_label_remote = function(html, job){
//console.log(“html element is: “+html);
html=html.replace(‘>Remote<', '>Remote: Home Based Worker<'); //console.log("html element after replacing is: "+html); return html; }; CWS.add_filter('after_job_column_city_state_or_locationtype', replace_loc_label_remote); jQuery(document).ready(function(){ const ejdSliderCount = $('.ejd-slider .test-slider .slide-entry-wrap').length; $('.ejd-slider .test-slider').append('

‘);
const ejdPBwidth = 100 / ejdSliderCount;
$(‘.ejd-slider-pb’).css(‘width’, ejdPBwidth+’%’);

$(‘.ejd-slider .test-slider .avia-slideshow-controls a’).on(‘click’, function(){
if($(‘.ejd-slider .test-slider .slide-entry-wrap:nth-child(1)’).hasClass(‘active-slide’)){
$(‘.ejd-slider-pb’).css(‘width’, ‘33.333%’);
}
if($(‘.ejd-slider .test-slider .slide-entry-wrap:nth-child(2)’).hasClass(‘active-slide’)){
$(‘.ejd-slider-pb’).css(‘width’, ‘66.666%’);
}
if($(‘.ejd-slider .test-slider .slide-entry-wrap:nth-child(3)’).hasClass(‘active-slide’)){
$(‘.ejd-slider-pb’).css(‘width’, ‘100%’);
}
});
//

setTimeout(function(){
$(‘#logo-bottom img’).removeAttr(‘tabindex’);
$(‘.ubermenu-has-submenu-mega .ubermenu-submenu’).attr(‘role’ , ‘menu’);
$(‘#altru-widget’).attr(‘role’ , ‘region’);

$(‘#altru-widget’).removeAttr(‘aria-label’);
$(‘.altru-user-info-text-wrapper’).removeAttr(‘aria-label’);
$(‘#benefit_select’).select2({
minimumResultsForSearch: -1
});
$(‘.benefit_dropdown_con .select2-selection–single’).attr(‘aria-labelledby’,’see_benefit’);
$(‘.benefit_dropdown_con .select2-selection__rendered’).removeAttr(‘tabindex’);
$(‘.testimonial_img .avia_image’).removeAttr(‘tabindex’);
$(‘.check_application_btn a’).attr(‘aria-label’,’Check application open in new window’);

$(‘.main_menu’).attr(‘role’,’presentation’);

},1500);
/* scroll functionality on dropdown */
$(‘#benefit_select’).on(‘change’, function(){
$(‘body,html’).animate({ scrollTop: $(‘#’ + $(this).val()).position().top });
});

/* menu AA */

$(‘#ubermenu-nav-main-3-avia’).attr(‘role’,’menubar’);
$(‘#ubermenu-nav-main-3-avia>li’).attr(‘role’,’presentation’);
$(‘#ubermenu-nav-main-3-avia>li>a’).attr(‘role’,’menuitem’);
$(‘.ubermenu-nav li>ul’).attr(‘aria-haspopup’,’true’);

//$(‘#ubermenu-nav-main-3-avia>li>ul’).attr(‘role’,’menu’);
$(‘#ubermenu-nav-main-3-avia>li>ul>li’).attr(‘role’,’presentation’);
$(‘#ubermenu-nav-main-3-avia>li>ul>li>a’).attr(‘role’,’menuitem’);
//$(‘.ubermenu-has-submenu-mega>a’).attr(‘aria-haspopup’,’true’);
//$(‘.ubermenu-has-submenu-mega>a’).attr(‘aria-expanded’,’false’);

$(‘nav’).removeAttr(‘role’);

/*
$(‘.main_menu’).replaceWith(function () {
return “

“;
});
*/

$(‘#mobile-advanced’).attr(‘role’,’menubar’);
$(‘#mobile-advanced>li’).attr(‘role’,’presentation’);
$(‘#mobile-advanced>li>a’).attr(‘role’,’menuitem’);

$(‘.benefit-border-left-heading’).attr(‘role’,’list’);
$(‘.benefit-border-left-heading h3’).attr(‘role’,’listitem’);

/* footer disclaimer */
$(‘.benefit_page .footer-top’).prepend(‘

Note: Some benefits described in this overview are subject to plan enrollment. The information presented describes only the highlights of the plans and programs and does not constitute official plan documents. Additional terms, conditions and eligibility requirements apply. If there are any discrepancies between the information contained herein and the official plan documents or policies, the plan documents and policies will govern. Allstate reserves the right to change, amend, or terminate the plans, benefits and/or programs at any time and for any reason. This overview is not intended to give rise to any right to employment, continued employment, or any benefit with or from Allstate. It is the policy of Allstate to employ the best qualified individuals for all jobs without regard to race, color, religion, sex, age, national origin, sexual orientation, gender identity/gender expression, disability, and citizenship, status as a veteran with a disability or veterans of the Vietnam Era.

‘);
$(‘.benefit_page .footer-top’).prepend(‘

More information about these benefits can be found at AllstateGoodLife.com. The benefits described in this article are generally available to regular full-time employees.

‘);

/* duplicate id */
if($(‘#avia2-menu’).length>0){
$(‘#avia2-menu’).addClass(‘avia2-menu’);
$(‘.avia2-menu’).removeAttr(‘id’);
}
if($(‘#menu-item-19313’).length>0){
$(‘#menu-item-19313’).addClass(‘menu-item-19313’);
$(‘.menu-item-19313’).removeAttr(‘id’);
}
if($(‘#menu-item-16232’).length>0){
$(‘#menu-item-16232’).addClass(‘menu-item-16232’);
$(‘.menu-item-16232’).removeAttr(‘id’);
}
if($(‘#menu-item-16230’).length>0){
$(‘#menu-item-16230’).addClass(‘menu-item-16230’);
$(‘.menu-item-16230’).removeAttr(‘id’);
}

setTimeout(function(){
if($(‘#altru-widget-selector-c205nf2own352’).length>0){
$(‘#altru-widget-selector-c205nf2own352’).addClass(‘altru-widget-selector-c205nf2own352’);
$(‘.altru-widget-selector-c205nf2own352’).removeAttr(‘id’);
}
$(‘.altru-user-info-text-wrapper’).removeAttr(‘aria-label’);
},2000);

/* video slider */
setTimeout(function(){
$(‘.healthier_life_sec .next-slide,.healthier_life_sec .prev-slide’).click(function(){
$(‘.healthier_life_sec .path-slider .slide-entry-wrap’).each(function(){
var iframesrc=$(this).find(‘iframe’).attr(‘src’);
$(this).find(‘iframe’).attr(‘src’,iframesrc);
});
});

},1000);
});

$(window).scroll(function()
{
if ($(this).scrollTop() > 150)
{
$(‘#header’).addClass(“sticky_header”);
$(‘body’).addClass(“sticky”);
$(“.covid-banner .inner-container”).hide();
}
else
{
$(‘#header’).removeClass(“sticky_header”);
$(‘body’).removeClass(“sticky”);
$(“.covid-banner .inner-container”).show();
}
});

/* Global Footer beacon */
$(‘#footer’).before(‘

Beacon Box

good work. good life. good hands.®

‘);

$(document).ready(function() {
var echo_bar=’

‘;
$(echo_bar).insertAfter(‘#header_main’);

$( “.title_container” ).addClass( “wide-container” );
$( “.breadcrumb .sep” ).html( “>” );
$(‘.mobile_img > p’).contents().unwrap();
$(‘.mobile_img br:first’).remove();

$( “#mobile-advanced” ).wrap( “

” );
$(“.logo”).clone().insertBefore(“#mobile-advanced”);
$(“#header_meta .sub_menu”).clone().insertAfter(“#mobile-advanced”);
$(“#mobile-advanced li.ubermenu-item-has-children”).click(function(){

// $(“.mob-menu .logo a img”).attr(‘src’, ‘https://cdn-static.findly.com/wp-content/uploads/sites/2003/2021/11/17092627/logo-blue.svg’);
});

$(“#mobile-advanced li.ubermenu-item-has-children.sub-menu-open”).click(function(){

// $(“.mob-menu .logo a img”).attr(‘src’, ‘https://cdn-static.findly.com/wp-content/uploads/sites/2003/2021/11/10113150/Allstate_logo.svg’);

});
$(“#advanced_menu_hide”).click(function(){
$(“.mob-menu”).removeClass( “sub-menu-active” );
$(“#mobile-advanced li.ubermenu-item-has-children”).removeClass( “sub-menu-open” );

// $(“.mob-menu .logo a img”).attr(‘src’, ‘https://cdn-static.findly.com/wp-content/uploads/sites/2003/2021/11/10113150/Allstate_logo.svg’);

});

$(“#mobile-advanced .ubermenu-submenu li”).click(function() {

});

$(‘.job-results .featured-blogs .slide-entry-wrap’).prepend(‘

A woman standing while using a laptop.

Transforming the way we work


We’re transitioning from a primarily office-based setup to a mix of home and hybrid models. We’re also developing new systems that promote seamless collaboration – whether you work from home or the office.


);
//$(‘#header_main .inner-container’).append(‘

Search Icon

‘);

var images = [‘https://cdn-static.findly.com/wp-content/uploads/sites/2003/2021/12/16085605/home-hero-1×2-1.jpg’, ‘https://cdn-static.findly.com/wp-content/uploads/sites/2003/2021/12/16085542/home-hero-2×2-1.jpg’, ‘https://cdn-static.findly.com/wp-content/uploads/sites/2003/2021/12/16085532/home-hero-3×2-1.jpg’, ‘https://cdn-static.findly.com/wp-content/uploads/sites/2003/2021/12/16085553/home-hero-4×2-1.jpg’];
$(‘.random-bg’).css({‘background-image’: ‘url(‘ + images[Math.floor(Math.random() * images.length)] + ‘)’});

//var images = [‘https://cdn-static.findly.com/wp-content/uploads/sites/2003/2021/12/16085605/home-hero-1×2-1.jpg’, ‘https://cdn-static.findly.com/wp-content/uploads/sites/2003/2021/12/16085542/home-hero-2×2-1.jpg’, ‘https://cdn-static.findly.com/wp-content/uploads/sites/2003/2021/12/16085532/home-hero-3×2-1.jpg’, ‘https://cdn-static.findly.com/wp-content/uploads/sites/2003/2021/12/16085553/home-hero-4×2-1.jpg’];
$(‘.benefit-bg’).css({‘background-image’: ‘url(https://cdn-static.findly.com/wp-content/uploads/sites/2003/2023/05/09054600/benefit_header.png)’});
$(‘.benefit_footer_bg’).css({‘background-image’: ‘url(https://cdn-static.findly.com/wp-content/uploads/sites/2003/2023/05/09055216/benefit_background_bg.png)’});

$(“#discover-allstate .flex_column, .featured-blogs article”).click(function() {
window.location = $(this).find(“a”).attr(“href”);
return false;
});

$(‘#gtm-jobdetail-desc p’).each(function() {
var $this = $(this);
if($this.html().replace(/\s| /g, ”).length === 0)
$this.remove(); });

$(“#header_main .ubermenu-main #menu-item-15987”).focusout(function(){
$(“#header_main .ubermenu-main .ubermenu-item “).removeClass(“ubermenu-active”);
});

$(“.jobdetail-desc a[href^=http]”).each(function(){
if(this.href.indexOf(location.hostname) == -1) {
$(this).attr({
target: “_blank”,
title: “Opens in a new window”
});
}
});

});

$(document).ready(function() {

function tabsecfocus(){
/*console.log($(‘span.copyright a:last-child’).length );*/
if($(‘a.tabshow-lead’).length > 0) {
$(‘a.tabshow-lead’).attr(‘tabindex’, ‘0’);
} else {
setTimeout(tabsecfocus, 300);
}
}
tabsecfocus();
});

$(document).ready(function() {
$(‘.myinfobtn’).on(‘click’, function(){
var showlessbtn = setTimeout(function(){
if($(‘.myinfobtn’).length > 0) {
$(‘a#invstmnt’).attr(‘tabindex’, ‘0’).focus();
}
else {
setTimeout(showlessbtn, 500);
}
},500);
});

$(‘.tabshow-lead’).on(‘click’, function(){
var tabshwbtn = setTimeout(function(){
if($(‘.tabshow-lead’).length > 0) {
$(‘.showmorecontent’).attr(‘tabindex’, ‘0’).focus();
}
else {
setTimeout(tabshwbtn, 500);
}
},500);
});

});

jQuery(function(){
jQuery(‘.tab_titles’).attr(‘role’,’tablist’);
jQuery(‘.tab’).attr(‘role’,’tab’);
jQuery(‘.tab_content’).attr(‘role’,’tabpanel’).attr(‘tabindex’,’0′);
jQuery(‘.toggler’).attr(‘tabindex’,’0′);
jQuery(‘.tab_inner_content .show-hide’).attr(‘tabindex’,’0′);
jQuery(‘.hodes-menu li’).attr(‘role’,’none’);
jQuery(‘.hodes-menu li a’).attr(‘role’,’menuitem’);
jQuery(‘.hodes-menu’).attr(‘role’,’menu’);
jQuery(‘.main_menu’).attr(‘role’,”);
//jQuery(‘.ubermenu-submenu li’).attr(‘role’,’none’);
//jQuery(‘.ubermenu-submenu li a’).attr(‘role’,’menuitem’);
jQuery( “#cws-search-form .checkbox-group h5″ ).remove();

setTimeout(function () {
jQuery(‘.widget-jobsearch-results .job-arrow-btn’).text(‘Arrow’);
jQuery(‘.leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow’).attr(‘alt’,”);
}, 3500);

});

/**** REACTIVATE
$(document).on(‘keyup’, function(e){
if (e.which == 37) {
if($(“.tab_titles .tab”).hasClass(‘active_tab’)){
activeTabId = $(“.tab_titles .tab.active_tab”).attr(‘data-fake-id’);
}
}
if (e.which == 39) {
if($(“.tab_titles .tab”).hasClass(‘active_tab’)){
activeTabId = $(“.tab_titles .tab.active_tab”).attr(‘data-fake-id’);
}
}
if(activeTabId == ‘#tab-id-2’ || activeTabId == ‘#tab-id-3’){
$(‘.rn-gptw-ancc-logo-d , .rn-gptw-ancc-logo-m’).addClass(‘hide-rn-gptw-ancc-logo ‘);
}else if(activeTabId == ‘#tab-id-1’){
$(‘.rn-gptw-ancc-logo-d , .rn-gptw-ancc-logo-m’).removeClass(‘hide-rn-gptw-ancc-logo ‘);
}
});
*******/

// For mobile
$(“.tabcontainer .tab”).on(‘touchstart click’, function(){
activeTabId = $(this).attr(‘data-fake-id’);
if(activeTabId == ‘#tab-id-2’ || activeTabId == ‘#tab-id-3’){
$(‘.rn-gptw-ancc-logo-d , .rn-gptw-ancc-logo-m’).addClass(‘hide-rn-gptw-ancc-logo ‘);
}else if(activeTabId == ‘#tab-id-1’){
$(‘.rn-gptw-ancc-logo-d , .rn-gptw-ancc-logo-m’).removeClass(‘hide-rn-gptw-ancc-logo ‘);
}
});

jQuery(document).ready(function() {
$(‘.infobtn’).attr(‘tabindex’, ‘0’);

$(function(){
$(“.tabshow-lead”).click(function () {
$(this).text(function(i, text){
return text === “show more” ? “show less” : “show more”;
})

});
$(“.tabshow-lead0”).click(function () {
$(“.tabshowmorecont-lead0”).toggleClass(“hide”);
});
$(“.tabshow-lead1”).click(function () {
$(“.tabshowmorecont-lead1”).toggleClass(“hide”);
});
$(“.tabshow-lead2”).click(function () {
$(“.tabshowmorecont-lead2”).toggleClass(“hide”);
});
$(“.tabshow-lead3”).click(function () {
$(“.tabshowmorecont-lead3”).toggleClass(“hide”);
});
})

//
$(“.myinfobtn”).click(function(){
$(“.leadinfo2”).addClass(“showdepart”);
$(“.infolessbtn “).attr(‘style’ , ‘display:block;’);
$(“.myinfobtn “).attr(‘style’ , ‘display:none;’);

});
$(“.infolessbtn “).click(function(){
$(“.leadinfo2”).removeClass(“showdepart”);
$(“.myinfobtn “).attr(‘style’ , ‘display:block;’);
$(“.infolessbtn “).attr(‘style’ , ‘display:none;’);

});

$(“.tabshow-lead0”).click(function(){
$(“.tabcon-lead0”).toggleClass(“leadextrap0”);

});
$(“.tabshow-lead1”).click(function(){

$(“.tabcon-lead1”).toggleClass(“leadextrap1”);
});
$(“.tabshow-lead2”).click(function(){
$(“.tabcon-lead2”).toggleClass(“leadextrap2”);
});
$(“.tabshow-lead3”).click(function(){
$(“.tabcon-lead3”).toggleClass(“leadextrap3”);
});
});

/* Testimonial Slider */
//jQuery( “.avia-content-slider-inner” ).attr(“tabindex”,”0″);
jQuery( “.avia-slideshow-dots.avia-slideshow-controls a” ).attr(“aria-label”,”Dot slide control”);
//jQuery( “.slider-with-arrows .avia-smallarrow-slider-heading” ).append( “

” );
//jQuery( “.slider-with-arrows-custom .avia-smallarrow-slider-heading” ).append( “

” );
jQuery( “a.prev-slide” ).attr(“aria-hidden”,”false”);
jQuery( “a.next-slide” ).attr(“aria-hidden”,”false”);

// CWSM 4203- COVI banner update by SAndhya
/* jQuery(document).ready(function(){
var curr_url=window.location.pathname.split(‘/’);
var get_page_name=curr_url[1];
if (get_page_name == ” || get_page_name == ‘job-search-results’ || get_page_name == ‘legal-home’ || get_page_name == ‘sales-home’ || get_page_name == ‘technology-home’ || get_page_name == ‘claims-home’ || get_page_name == ‘continuous-improvement-industrial-engineering’ || get_page_name == ‘claims’ || get_page_name == ‘customer-service-support’ || get_page_name == ‘data-science-analytics’ || get_page_name == ‘finance-investments’ || get_page_name == ‘marketing-corporate-relations’ || get_page_name == ‘human-resources’ || get_page_name == ‘legal’ || get_page_name == ‘sales’ || get_page_name == ‘product-pricing’ || get_page_name == ‘technology’ || get_page_name == ‘inside-sales’ || get_page_name == ‘customer-service-support-2’ ){
$(‘body’).addClass(‘covid-section’);
}
var covid_text=’

Your safety is our top priority. Stay updated on how Allstate is taking measures to protect you with:

‘;
$(covid_text).insertBefore(‘#header_meta’);
}); */

/***************** REACTIVATE
jQuery(document).ready(function(){
var nationwide_input_html = $(‘.Nationwide label.location_type’).html();
$(‘.Nationwide label.location_type’).empty();
nationwide_input_html = nationwide_input_html.replace(‘ Nationwide’,’Countrywide: In Office’);
$(‘.Nationwide label.location_type’).append(nationwide_input_html);

var replace_loc_label_nation = function(html, job){
return html.replace(‘Nationwide’, ‘Countrywide: In Office’);
};
*****************/
/***************** REACTIVATE
CWS.add_filter(‘after_job_column_city_state_or_locationtype’, replace_loc_label_nation);
*****************/
/***************** REACTIVATE
var remote_input_html = $(‘.Remote label.location_type’).html();
$(‘.Remote label.location_type’).empty();
remote_input_html = remote_input_html.replace(‘ Remote’,’Remote: Home Based Worker’);
$(‘.Remote label.location_type’).append(remote_input_html);

var replace_loc_label_remote = function(html, job){
//console.log(“html element is: “+html);
html=html.replace(‘>Remote<', '>Remote: Home Based Worker<'); //console.log("html element after replacing is: "+html); return html; }; CWS.add_filter('after_job_column_city_state_or_locationtype', replace_loc_label_remote); *****************/ }); /*** Change Lcoation type to Remote: Home Based Worker on Results table.Above script is not applying to all setInterval(function(){ $(".widget-jobsearch-results .flex_column.joblist-location.av_one_fourth").each(function(){ if($(this).find(".child.locationtype").text() == "Remote"){ console.log("Type is Remote. Need to Change"); $(".child.locationtype").text("Remote: Home Based Worker"); } }); },1000); /*** Ends ***/ /*var replace_loctype_label = function(loc_html, job){ console.log("loc_html is : "+loc_html); var loctype=job.location_type; console.log("location type is : "+loctype); if(loctype === "Remote"){ console.log("Inside If "); //loc_html=loc_html.replace("Remote", "Remote: Home Based Worker"); $(loc_html).find('.locationtype').html("Remote: Home based worker"); console.log("after replacing loc_html :"+loc_html); } return loc_html; }; CWS.add_filter('after_job_column_city_state_or_locationtype', replace_loctype_label);*/ // Main Menu 'Career Areas' Hover function jQuery("li#menu-item-3502").hover(function(){ jQuery("li#menu-item-3502 img").attr("src", "https://cdn-static.findly.com/wp-content/uploads/sites/1027/2019/10/Up-Arrow.png"); jQuery("li#menu-item-3502 img").attr("alt", "Up arrow"); }, function(){ jQuery("li#menu-item-3502 img").attr("src", "https://cdn-static.findly.com/wp-content/uploads/sites/1027/2019/10/Down-Arrow.png"); jQuery("li#menu-item-3502 img").attr("alt", "Down arrow"); }); // Main Menu 'Life @ Allstate' Hover function jQuery("li#menu-item-2770").hover(function(){ jQuery("li#menu-item-2770 img").attr("src", "https://cdn-static.findly.com/wp-content/uploads/sites/1027/2019/10/Up-Arrow.png"); jQuery("li#menu-item-2770 img").attr("alt", "Up arrow"); }, function(){ jQuery("li#menu-item-2770 img").attr("src", "https://cdn-static.findly.com/wp-content/uploads/sites/1027/2019/10/Down-Arrow.png"); jQuery("li#menu-item-2770 img").attr("alt", "Down arrow"); }); //Adds an aria label to the search fields jQuery("#top .keyword_suggest").attr("aria-label","Enter a Job or Keyword"); jQuery("#cws_jobsearch__proximity").attr("aria-label","Within"); jQuery(".text_input.loc_auto").attr("aria-label","Enter a location"); jQuery("#cws_quickjobsearch_primary_category").attr("aria-label","Departments"); jQuery("#cws_jobsearch_primary_category").attr("aria-label","Select a category"); jQuery("#cws_jobsearch_multiCategory").attr("aria-label","Select one or more categories"); jQuery("#cws_jobsearch_level").attr("aria-label","Job Level"); jQuery("a.clear-btn").attr("aria-label","Clear selection"); // Aria Label for Sliders jQuery("a.next-slide").attr("aria-label","Next Slide"); jQuery("a.prev-slide").attr("aria-label","Previous Slide"); /* Persona Pages/Career Area Pages (Setting default category value) */ if (window.location.href.indexOf("/technology/") > -1 || window.location.href.indexOf(“/technology-home/”) > -1 || window.location.href.indexOf(“/women-in-tech-transcript/”) > -1 ) {
$(‘select option:contains(“Information Technology”)’).prop(‘selected’,true);
}
if (window.location.href.indexOf(“/legal/”) > -1 || window.location.href.indexOf(“/legal-home/”) > -1 ) {
$(‘select option:contains(“Legal”)’).prop(‘selected’,true);
}
if (window.location.href.indexOf(“/claims/”) > -1 || window.location.href.indexOf(“/claims-home/”) > -1 ) {
$(‘select option:contains(“Claims”)’).prop(‘selected’,true);
}
if (window.location.href.indexOf(“/sales/”) > -1 || window.location.href.indexOf(“/sales-home/”) > -1 ) {
$(‘select option:contains(“Sales”)’).prop(‘selected’,true);
}
if (window.location.href.indexOf(“/human-resources/”) > -1) {
$(‘select option:contains(“Human Resources”)’).prop(‘selected’,true);
}
if (window.location.href.indexOf(“/data-science-analytics/”) > -1) {
$(‘select option:contains(“Data Science & Analytics”)’).prop(‘selected’,true);
}
if (window.location.href.indexOf(“/finance-investments/”) > -1) {
$(‘select option:contains(“Finance & Economics”)’).prop(‘selected’,true);
}
if (window.location.href.indexOf(“/marketing-corporate-relations/”) > -1) {
$(‘select option:contains(“Marketing”)’).prop(‘selected’,true);
}
if (window.location.href.indexOf(“/product-pricing/”) > -1) {
$(‘select option:contains(“Product”)’).prop(‘selected’,true);
}
if (window.location.href.indexOf(“/customer-service-support/”) > -1) {
$(‘select option:contains(“Call Center”)’).prop(‘selected’,true);
}

/* Article Pods */
jQuery(“.article-pods .entry-content p”).text(function(index, currentText) {
return currentText.substr(0, 60)+’…’;
});
jQuery( “.article-pods .av_one_third” ).each(function() {
$(” .article-pods a.more-link”).text(“Read The Article”);
$(“.post_delimiter”).remove();
});

var firstArtHead = jQuery(“.article-pods .first-article h2.post-title.entry-title”).height();
var secondArtHead = jQuery(“.article-pods .second-article h2.post-title.entry-title”).height();
if (firstArtHead > secondArtHead){
jQuery(“.article-pods .second-article h2.post-title.entry-title”).css(“height”, firstArtHead);
}else{
jQuery(“.article-pods .first-article h2.post-title.entry-title”).css(“height”, secondArtHead);
}

var firstArtTxt = jQuery(“.article-pods .first-article .entry-content p”).height();
var secondArtTxt = jQuery(“.article-pods .second-article .entry-content p”).height();
if (firstArtTxt > secondArtTxt){
jQuery(“.article-pods .second-article .entry-content p”).css(“height”, firstArtTxt);
}else{
jQuery(“.article-pods .first-article .entry-content p”).css(“height”, secondArtTxt);
}

/* Article Pods End */

/* Page Pods Start */

$( document ).ready(function() {
var firstPageHead = jQuery(“.article-pods .first-page-pod .page-pod-text”).height();
var secondPageHead = jQuery(“.article-pods .second-page-pod .page-pod-text”).height();
var thirdPageHead = jQuery(“.article-pods .third-page-pod .page-pod-text”).height();
var podHeight = Math.max(firstPageHead, secondPageHead, thirdPageHead);
jQuery(“.article-pods .first-page-pod .page-pod-text”).css(“height”, podHeight);
jQuery(“.article-pods .second-page-pod .page-pod-text”).css(“height”, podHeight);
jQuery(“.article-pods .third-page-pod .page-pod-text”).css(“height”, podHeight);

});

/*
$( document ).ready(function() {
var firstPageTxt = jQuery(“.article-pods .first-page-pod .page-pod-text”).height();
var secondPageTxt = jQuery(“.article-pods .second-page-pod .page-pod-text”).height();
if (firstPageTxt > secondPageTxt){
jQuery(“.article-pods .second-page-pod .page-pod-text”).css(“min-height”, firstPageTxt);
jQuery(“.article-pods .third-page-pod .page-pod-text”).css(“min-height”, firstPageTxt);
}else{
jQuery(“.article-pods .first-page-pod .page-pod-text”).css(“min-height”, secondPageTxt);
jQuery(“.article-pods .third-page-pod .page-pod-text”).css(“min-height”, secondPageTxt);
}
});
*/

/* Page Pods End */

/* Future Events */
jQuery( “#future-events a.av-upcoming-event-entry” ).wrap( “

” );
jQuery( “VIEW THIS EVENT Link arrow” ).insertAfter( $( “span.av-upcoming-event-meta” ) );
jQuery(document).ready(function() {
if ($(‘#future-events .single-event’).length === 0) {
jQuery( “There are no events scheduled at this time. Please check back soon.” ).insertAfter( $( “#future-events h2” ) )
}
});

/* Events Page */
jQuery( “#all-events a.av-upcoming-event-entry” ).wrap( “

” );
jQuery(document).ready(function() {
if ($(‘#all-events .single-event’).length === 0) {
jQuery( “There are no events scheduled at this time. Please check back soon.” ).insertAfter( $( “#all-events h2” ) )
}
});
/** Event Details Page **/
jQuery( “

” ).insertBefore( “.av-single-event-content” );

// EJD Mobile Headers (Couldn’t be done with conditionals because of ampersand)
$( document ).ready(function() {
jQuery(“#top.data-science—analytics img.ejd-default-mobile”).attr(“src”, “https://cdn-static.findly.com/wp-content/uploads/sites/1027/2019/11/EJD_Heroes_Mobile_0007_Data-Science-_-Analytics-Careers.jpg”);
});

/**** REACTIVATE
// EJD – captures job category, strips out spaces and special charaacters and uses them as a class in body tag
var jdstr = jQuery( “span.catcapture” ).text();
var refstr = current_job.ref;
jdstr = jdstr.replace(/[^a-z0-9\s]/gi, ‘-‘).replace(/[_\s]/g, ‘-‘).toLowerCase();
jQuery( “#top” ).addClass( jdstr );
if(refstr == “593322-en_US” || refstr == “593318-en_US” || refstr == “629709-en_US” ) {
jQuery( “#top” ).addClass(“no_bg”);
}
*****/

/* custom requirement for Job Dupes https://symphonytalent.atlassian.net/browse/MCPR-821 STARTS*/
/**** REACTIVATE
var child_job_str = current_job.is_child_job;
var master_req1 = “593318-en_US”;
var master_req2 = “593322-en_US”;
var master_req3 = “629709-en_US”;
if( ((refstr.indexOf(master_req1) != -1) || (refstr.indexOf(master_req2) != -1) || (refstr.indexOf(master_req3) != -1)) && child_job_str == “true”) {
jQuery( “#top” ).addClass(“no_bg”);
}
*****/
/* custom requirement for Job Dupes https://symphonytalent.atlassian.net/browse/MCPR-821 ENDS */

// EJD – captures job level, strips out spaces and special charaacters and uses them as a class in body tag
var jdlev = jQuery( “span.levelcapture” ).text();
jdlev = jdlev.replace(/[^a-z0-9\s]/gi, ‘-‘).replace(/[_\s]/g, ‘-‘).toLowerCase();
jQuery( “#top” ).addClass( jdlev );

/* Read More function on EJD */
/*(function($) {
$.fn.textOverflowEllipsis = function() {
var $this = $(this),
lines = $this.attr(“data-lines”),
$viewMore = $(this).next();

var moretext = “Read less”;
var lesstext = “Read more”;

var fullHeight = $(this).height();
var shortHeight = ( Math.ceil(parseInt($this.css(“line-height”))) * lines );
if(fullHeight < shortHeight){ $viewMore.css({"display":"none"}); } $this.css({"height":+shortHeight+"px","overflow":"hidden"}); $viewMore.on("click",function() { if($(this).hasClass("less")) { $(this).removeClass("less"); if ($('html').is(':lang(en-US)')) { $(this).html(moretext); } $(this).prev().css({"height":"auto"}); } else { $(this).addClass("less"); if ($('html').is(':lang(en-US)')) { $(this).html(lesstext); } $(this).prev().css({"height":+shortHeight+"px","overflow":"hidden"}); $('html, body').animate({ scrollTop: $('.jobdetail-desc').offset().top }, 200); } }); }; })(jQuery);*/ //Initialise read more and read less jQuery("[data-lines]").each(function(){jQuery(this).textOverflowEllipsis();}); /* Read More function on EJD End */ /* Similar Opportunities on EJD */ jQuery( "#similar-opportunities span.posted-text" ).text( "Posted - "); /* Remove two of the four same calendar buttons on Event details page */ jQuery(".tribe-events-cal-links:first").remove(); /*Job Search Results Page */ /*Removed as part of Zenddesk #213592 */ /*jQuery( "For a fully accessible alternative to the interactive locations map on this page, follow this link to view the text alternative” ).insertAfter( “#widget_job_search_results-2 .clearfix:first” );*/

/* Accordion Compliance */
jQuery( “.single_toggle” ).attr(“role”,”tablist”);

// ****************** ADA TABS ****************** //
// completely rescripted tab elements in order to provide more complete accessibility (ADA)
// adapted from: https://www.w3.org/TR/wai-aria-practices/examples/tabs/tabs-1/tabs.html
$(function() {

var tabsections = Array.prototype.slice.call(document.querySelectorAll(‘.tabada’));
tabsections.forEach(function(element) {

//var container = this;
var tablist = element.querySelectorAll(‘[role=”tablist”]’)[0];
var tabs;
var panels;
var delay = determineDelay();

generateArrays();

function generateArrays () {
tabs = element.querySelectorAll(‘[role=”tab”]’);
panels = element.querySelectorAll(‘[role=”tabpanel”]’);
};

// For easy reference
var keys = {
end: 35,
home: 36,
left: 37,
up: 38,
right: 39,
down: 40,
delete: 46
};

// Add or substract depending on key pressed
var direction = {
37: -1,
38: -1,
39: 1,
40: 1
};

// Bind listeners
for (i = 0; i < tabs.length; ++i) { addListeners(i); }; function addListeners (index) { tabs[index].addEventListener('click', clickEventListener); tabs[index].addEventListener('keydown', keydownEventListener); tabs[index].addEventListener('keyup', keyupEventListener); // Build an array with all tabs (

« All News

Allstate’s First Global Learning Week

It’s an exciting week at Allstate. This is our first ever Global Learning Week. Global Learning Week focuses on continuous learning and development, while providing employees opportunities to hear from speakers who are experts in a variety of different fields.

Global Learning Week is part of Allstate’s culture of learning and supporting employees’ development. Allstate is committed to preparing employees for the careers of the future, and Global Learning Week gives employees the opportunity to explore all different topics of interest.

Global Learning Week 2019 will focus on four themes: problem solving and critical thinking, communication and collaboration, data and analytics, and cyber security and future of work. Each day this week there are three to four global sessions that all employees can watch via a live-stream.

In addition, site leaders at each office have planned specialized sessions called Spark Topics for their areas depending on topics of interest and business goals. Spark topics will take place in offices around the country led by site leaders or Global Learning Week Catalysts.

Erik, regional claim leader in the Kansas City Market Claim Office and Global Learning Week catalyst, shared how his office is taking part in the week’s activities.

“During the week, a big theme – which a lot of our sessions will cover – is change. Claims, as well as most of the organization, is going through a lot of change. As change is


happening, we have to continue to re-educate ourselves and reinvigorate our development to meet the demands of that change. As the industry moves toward a metric-centric or tech-centric environment, we have to retool. Global Learning Week is a great time for us to celebrate the opportunity to have these viewing experiences, but also look at and discuss as teams: How can we sustain that change moving forward?

We chose to pick one global session each day to feature in our office that was relevant to our business. Our sessions focus on embracing change, putting the customer first, leading from our seats, being courageous and being an adopter.

We also have Spark sessions. I’m leading one of those, a developmental discussion. It’s on the three pillars of success: performance, behaviors and presence. These are all part of an employee’s development. What I’m trying to do is engage front-line leaders and discuss their personal development plans – and how it fits into these three pillars. We hope this will lead into a conversation about creating a development plan.

I’m 28 years into my Claims profession. At this point, I feel I’m looked upon as a resource to help teach, coach and help others learn. But in a lot of those transactions, I’m learning just as much. Let’s face it: As we’re going through all this change, we have an influx of new talent, new faces, new personalities and new generations. Global Learning Week is a chance for me to get to know new people and things – and learn for myself, as well.”