Archive for category:
Brandon Lewis enlisted in the Marine Corps in 2004. By the time he retired in 2015, he’d been deployed twice, seen combat and watched fellow servicemembers die. Living with the effects of a traumatic brain injury and post-traumatic stress disorder, Brandon prepared to transition to civilian life. He realized the stresses of war would follow him home. He wasn’t alone. Brandon saw physicians weekly and took new medications that were supposed to help with his mental and physical challenges. But, after months, he felt no change.
“[With the medication], my family used to think of me as a person with no emotions,” Brandon said. “But the truth is, having no emotions isn’t fun. It’s not easy to have a conversation with people. You learn how to make everything numb. I knew I needed to get better.”
In 2017, he met his saving grace: Boothe, a 2-year-old black lab service dog. Boothe changed things for him. He experiences dizziness frequently as a result of his injuries, and Boothe stays with him at all times to keep him stable. Boothe also helps calm his anxiety and migraines, both symptoms of TBI and PTSD. Beyond that, Boothe is there to listen.
“A lot of vets are like me: They don’t want to talk,” Brandon said. “The dogs are there to help you open up. I can tell Boothe everything, and he won’t go and talk to anybody else.”
And in February 2018, Boothe became the first service dog to join the Lubbock Market Claim Office (MCO). “My sister told me that Allstate was hiring, so I decided to apply,” Brandon said. After accepting the job at Allstate, Brandon decided to come to the office prior to his first day to meet his team – and introduce Boothe to his new surroundings. “It was important to me to let everyone know about Boothe,” Brandon said. Today, Boothe is part of the team.
“I want people at Allstate – and any company – to know that if you are a vet with PTSD, you are not alone,” Brandon said. “Veterans are not ticking time bombs; they can truly help this business. I want to let veterans know if you speak up, you will be OK.”
The Allstate Veterans Engagement Team and Supporters (AVETS) employee resource group offers a network of resources, shares Joe Pennington, director of Allstate’s military program. From there, AVETS and Allstate will connect a veteran with local resources they need.
“When we have employees come to Allstate dealing with PTSD, we don’t zero in on that,” Joe said. “What’s important to Allstate is his or her talent, and to have that employee as part of the Allstate team.”
Brandon will soon be joining Joe’s team on a talent share to help support Allstate’s military program. He will also be featured along with Boothe in a new documentary, “To Be of Service”. Check out a clip here. Stream the full film on Netflix.
We want you to bring your whole, authentic self to work.
We’re committed to recruiting Veteran candidates.
We’re here to help you thrive and succeed.
Tell us about your Allstate story:
I joined Allstate as a Key Management Engineer in January of 2019 and currently work with high end cryptographic technology for storing, servicing and encrypting all the data for various Allstate platforms. Prior to Allstate I worked overseas (Malaysia and other Middle Eastern countries) with cryptography and Key Management systems, primarily in cybersecurity. I’ve made numerous friends in this short tenure who understand how critical it is to protect customer data.
What made you decide to join the company?
What really stood out to me was the new technology and high-end devices utilized in the role. I don’t like routine work and this role provides me endless possibilities of doing what I love because I’m able to challenge myself to come up with new designs and help protect Allstate data and customer information.
What’s different about Allstate?
This company is very vibrant and diverse with people of different cultural backgrounds working under the same roof. The environment is always friendly, especially with me coming from a different background and geographical location.
What work are you most proud of?
The everyday work I complete in our Key Management Systems (KMS). We help encrypt all our critical and customer related data to protect them from potential breaches. I think every day is just as important as the next since everything is connected.
I put together KMS industry best practices, standards and supporting documentation for our Enterprise. The proud and exciting part is that I get to develop this critical practice for a Fortune 100 company like Allstate.
What values are important to you at a job?
Freedom to do my own work and having a platform to showcase my talents and designs, while also being heard.
How do you experience those values here?
Ever since my first day, my manager (Ganapathy) and team have helped me understand the culture and life at Allstate. With English not being my native language, it was hard to catch on at first, but they have really helped me along the way. Everyone within the organization has given me an opportunity to share my ideas & designs.
My manager is also extremely understanding and flexible with my work. I can work on my own, at my own pace, giving me the opportunity to accomplish my work in a reasonable amount of time.
What are your favorite parts about your team?
Our team has a sense of trust where we are always willing to help each other when needed and can confidently express ideas to create new and creative solutions. The ability to work from home is also great!
What qualities do people need to be successful here?
In a world where technology is constantly changing, you must have the ability to communicate well, be hungry and curious to learn, foster new ideas, and take constructive feedback.
Outside of work you can be found doing?
I spend a lot of time with my (Japanese Akita) dog-son named Leo and setting up my new house.
Fun fact: I love travelling and exploring new places.
Interested in joining Allstate Technology and Strategic Ventures? Search open roles today.
We want you to bring your whole, authentic self to work.
We’re committed to recruiting Veteran candidates.
We’re here to help you thrive and succeed.
Tell us about your Allstate story:
I joined Allstate an Application Security Engineer in the Tempe, AZ office in July. Prior to joining the company, I worked in a similar role in the hospitality industry. The role of an Application Security Engineer (Pen Tester) is to perform security analysis or penetration testing on application(s) for various technology teams. We verify if there are any security vulnerabilities that are exposed and can be breached. If we find vulnerabilities that are exposed, we document our findings and send them back to the team, so they can retrace our steps and reproduce the process to take the appropriate steps to fix the vulnerabilities and mitigate the risk.
What made you decide to join the company and what is different about Allstate?
I decided to move away from the hospitality industry and apply for different positions when I received a call from an Allstate recruiter. As we were speaking, what appealed to me was the work life balance, flexibility and the tools given for career growth. I’ve already experienced how Allstate supports the employees’ wellbeing and professional development through education and training.
Equal opportunity is something that is important with our culture considering we are very diverse. The managers and leaders really support their employees whether they are looking to go into a different role or just want additional training. There are so many opportunities to choose from. Allstate even has offices in my hometown of Pune, India. If I ever go home to visit, I can work from that office.
What work are you most proud of?
I’m proud of how I’ve learned to use new technology, such as open-source intelligent tools, to gather the information needed to complete my work on a day-to-day basis. Working on a remote team was new to me so I’m happy at how I’ve become accustomed to collaborating and communicating with people who are in different locations.
What values are important to you at a job and how do you experience them at Allstate?
Autonomy, freedom to do what you want and how you want. I want to be able to work at my own pace because everyone’s style and way of doing things can be different. I believe professional development is important in any job and there should be opportunities for an employee to learn and grow in their career. Last, but not least, I should be able to voice my ideas and be heard.
At Allstate, I’m given the freedom to choose the tools used to complete my tasks, set my pace and deadlines, without being micromanaged and successfully finish them. The company invests in my professional growth by providing me with training and online courses. If I don’t fully understand something or if I’ve new idea to pitch in, I know I can go to my team for support without hesitation
What are your biggest motivators at work?
My Pen Test team because they are amazingly talented in the work they do, they’re kind and extremely helpful. The Tempe office colleagues are warm and welcoming, which helped me settle in quickly.
The overall all work that we do also drives me because pen testing is about security and protecting Allstate from outside attacks and breaches, so I feel like we are all superheroes in our team. We motivate and help each other to make our applications as secure as possible.
What are your favorite parts about your job, the team, and the workspace?
I enjoy the fact that we all learn from each other as a team and can always count on each other for guidance. The team has been so great to me; welcoming me in with open arms from day one. My manager helped me settle into my new role, mentored me through training and continues to reach out to make sure I’m ok. The work life balance is also great because I have the flexibility to work from home or anywhere else if needed
What qualities do people need to be successful here?
Anyone looking to work at Allstate needs to have the ability to work independently and, on a team, be a self-starter, have perseverance, and be passionate about their work. You need to have good communication skills and have an open mind, as the teams you are work with can be located anywhere in the world within the company that come from different backgrounds.
Any advice for someone who is considering working at Allstate?
If you are thinking about working at Allstate, just do it, and take the chance because there are numerous opportunities to choose from in the company. You can grow in your current career path and keep learning or change your domains to a different career path. The company, its leaders and the team will give you their complete support, regardless of what you want to do. The company will provide education and training in any career field you choose.
Outside of work you can be found doing?
I love hiking and exploring the beautiful canyons in and around Arizona and taking road trips to national parks- Yellowstone, Bryce, Zion, Moab and others. If I’m not on the road you can catch me at home playing board games with friends, watching anime or gardening.
Fun fact: Right now, I am planning my next trip to South America. Oh, and I own over 300 pairs of shoes!
Interested in joining Allstate Technology and Strategic Ventures? Search open roles today.
We want you to bring your whole, authentic self to work.
We’re committed to recruiting Veteran candidates.
We’re here to help you thrive and succeed.
Recently, we sat down with Allstate’s Military and Veterans program team to discuss the efforts going on across the enterprise to achieve this honor.
Allstate’s Military and Veterans Program really focuses on three pillars: recruiting, retention and community outreach.
The first focus is recruiting. Allstate strives to have an all-inclusive program that fits vets as they’re ending their service, no matter what career level or position. We also want to make sure that just because a hiring manager isn’t on the military team, everyone can have a stake in hiring a military employee.
After recruiting, we focus heavily on retention. The Military and Veterans Program team has introduced new programs to help change the culture for military employees. One new opportunity we offer is a mentorship program for new employees. In its first year, there were 20 veteran mentees and 20 veteran mentors. For 2020, the team is partnering with American Corporate Partners, to expand the program to all new and existing Veteran and spouse employees. The program was created to ease a person’s transition into a corporate environment and connect a new employee to someone they can turn to when they have questions.
At Allstate, it’s important to show up in the communities we live and work in. So, the Military and Veteran Program team has also partnered with many local nonprofits, such as organizations dedicated to supporting active members of our military and organizations dedicated to serving veterans.
“It is always exciting to be recognized because we know this program is bigger than a score or an award. The program has been around for three years and to know we’ve made an impact in people’s lives is very rewarding,” shared Joseph, director of Military Programs.
We want you to bring your whole, authentic self to work.
We’re committed to recruiting Veteran candidates.
We’re here to help you thrive and succeed.
Allstate offices across the country are hosting Purple Purse activities throughout the month of October to support Domestic Violence Awareness Month. Kristy is a Claims Strategic Research Consultant currently on a talent share on the The Allstate Foundation Purple Purse team. Talent shares are short-term development opportunities designed to provide Allstaters access to short-term projects and experiences outside of their current roles.
As part of her six-week talent share, she’s helping coordinate the Northbrook, IL supply drive to support three local domestic violence nonprofits during the month of October. Employees can donate toiletries at one of the supply drive boxes located throughout the Northbrook campus or purchase an item from an Amazon Wishlist for easy ordering.
Outside of Northbrook, Allstate offices across the country are hosting Purple Purse activities as well. This year, there are 140 Purple Purse coordinators across 65 Allstate offices. A Purple Purse coordinator is an Allstate employee who has raised their hand to lead domestic violence and financial abuse awareness events or volunteer projects for their team, department or office in October. They host an event of their choice, plan and run it, while Kristy provides support to them along the way.
“It is great to see the passion that the coordinators have and the stories that come out of it. One woman spoke to me about how she wanted to do more, and it shows how much Allstaters truly care,” she shares. As she is wrapping up her talent share, she’s confident that she will be taking communication skills back to her role.
The Allstate Foundation’s Purple Purse program is dedicated to breaking the cycle of domestic violence through financial empowerment. Visit https://www.purplepurse.com/ to learn more.
We want you to bring your whole, authentic self to work.
We’re committed to recruiting Veteran candidates.
We’re here to help you thrive and succeed.
$(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);*/
$(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(‘
‘);
}
});
/*$(‘.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(‘
‘);
$(thisRow).append(‘
‘);
//$(‘.widget_joblist_row .widget_joblist_loc’).append(‘
‘);
});
});*/
$(‘.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;
$(thisRow).append(‘
‘);
$(thisRow).append(‘
‘);
},
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) {
$(‘
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(‘
‘);
$(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(‘
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(‘
‘);
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=’
‘;
$(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 ” ).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 (
// When a tab is clicked, activateTab is fired to activate it
function clickEventListener (event) {
var tab = event.target;
activateTab(tab, false);
};
// Handle keydown on tabs
function keydownEventListener (event) {
var key = event.keyCode;
switch (key) {
case keys.end:
event.preventDefault();
// Activate last tab
activateTab(tabs[tabs.length – 1]);
break;
case keys.home:
event.preventDefault();
// Activate first tab
activateTab(tabs[0]);
break;
// Up and down are in keydown
// because we need to prevent page scroll >:)
case keys.up:
case keys.down:
determineOrientation(event);
break;
};
};
// Handle keyup on tabs
function keyupEventListener (event) {
var key = event.keyCode;
switch (key) {
case keys.left:
case keys.right:
determineOrientation(event);
break;
case keys.delete:
determineDeletable(event);
break;
};
};
// When a tablist’s aria-orientation is set to vertical,
// only up and down arrow should function.
// In all other cases only left and right arrow function.
function determineOrientation (event) {
var key = event.keyCode;
var vertical = tablist.getAttribute(‘aria-orientation’) == ‘vertical’;
var proceed = false;
if (vertical) {
if (key === keys.up || key === keys.down) {
event.preventDefault();
proceed = true;
};
}
else {
if (key === keys.left || key === keys.right) {
proceed = true;
};
};
if (proceed) {
switchTabOnArrowPress(event);
};
};
// Either focus the next, previous, first, or last tab
// depening on key pressed
function switchTabOnArrowPress (event) {
var pressed = event.keyCode;
for (x = 0; x < tabs.length; x++) { tabs[x].addEventListener('focus', focusEventHandler); }; if (direction[pressed]) { var target = event.target; if (target.index !== undefined) { if (tabs[target.index + direction[pressed]]) { tabs[target.index + direction[pressed]].focus(); } else if (pressed === keys.left || pressed === keys.up) { focusLastTab(); } else if (pressed === keys.right || pressed == keys.down) { focusFirstTab(); }; }; }; }; // Activates any given tab panel function activateTab (tab, setFocus) { setFocus = setFocus || true; // Deactivate all other tabs deactivateTabs(); // Remove tabindex attribute tab.removeAttribute('tabindex'); // Set the tab as selected tab.setAttribute('aria-selected', 'true'); // Get the value of aria-controls (which is an ID) var controls = tab.getAttribute('aria-controls'); // Remove hidden attribute from tab panel to make it visible document.getElementById(controls).removeAttribute('hidden'); // Set focus when required if (setFocus) { tab.focus(); }; }; // Deactivate all tabs and tab panels function deactivateTabs () { for (t = 0; t < tabs.length; t++) { tabs[t].setAttribute('tabindex', '-1'); tabs[t].setAttribute('aria-selected', 'false'); tabs[t].removeEventListener('focus', focusEventHandler); }; for (p = 0; p < panels.length; p++) { panels[p].setAttribute('hidden', 'hidden'); }; }; // Make a guess function focusFirstTab () { tabs[0].focus(); }; // Make a guess function focusLastTab () { tabs[tabs.length - 1].focus(); }; // Detect if a tab is deletable function determineDeletable (event) { target = event.target; if (target.getAttribute('data-deletable') !== null) { // Delete target tab deleteTab(event, target); // Update arrays related to tabs widget generateArrays(); // Activate the closest tab to the one that was just deleted if (target.index - 1 < 0) { activateTab(tabs[0]); } else { activateTab(tabs[target.index - 1]); }; }; }; // Deletes a tab and its panel function deleteTab (event) { var target = event.target; var panel = document.getElementById(target.getAttribute('aria-controls')); target.parentElement.removeChild(target); panel.parentElement.removeChild(panel); }; // Determine whether there should be a delay // when user navigates with the arrow keys function determineDelay () { var hasDelay = tablist.hasAttribute('data-delay'); var delay = 0; if (hasDelay) { var delayValue = tablist.getAttribute('data-delay'); if (delayValue) { delay = delayValue; } else { // If no value is specified, default to 300ms delay = 300; }; }; return delay; }; // function focusEventHandler (event) { var target = event.target; setTimeout(checkTabFocus, delay, target); }; // Only activate tab on focus if it still has focus after the delay function checkTabFocus (target) { focused = document.activeElement; if (target === focused) { activateTab(target, false); }; }; }) }()); /** Blog ADA **/ jQuery( "#top #search-2 #searchsubmit" ).attr("aria-label","Search Button"); jQuery( "#top #allstate-blog input[type='text']" ).attr("aria-label","Search Posts"); jQuery( "article.slide-entry img" ).attr("alt","''"); jQuery( "a.slide-image" ).each(function( index ) { $(this).removeAttr("href"); }); /** Single Blog Page **/ jQuery( "
” ).insertBefore( “#top.single-post .post-entry,#top.archive #main .post-loop-1” );
/** Sitemap **/
jQuery( “#sitemap-menu li a” ).each(function( index ) {
var href = $(this).attr(‘href’);
if(href==’#’){
$(this).removeAttr(“href”);
}
});
/** Reload page on orientation change **/
window.addEventListener(‘orientationchange’, function () {
var originalBodyStyle = getComputedStyle(document.body).getPropertyValue(‘display’);
document.body.style.display=’none’;
setTimeout(function () {
document.body.style.display = originalBodyStyle;
}, 10);
});
$(document).ready(function() {
function meetPeople(){
if($(‘#meet-people .av-masonry-entry’).length>0){
setTimeout(function(){$(‘#meet-people .av-masonry-entry’).attr(‘tabindex’,’0′);},2000);
}else{
// setTimeout(‘meetPeople’,500);
}
}
meetPeople();
});
/*meet people video popup*/
/* if(!$(“body”).hasClass(“page-id-14264”)){
$(‘#meet-people a’).each(function(){
$(this).removeAttr(‘title’);
$(this).removeAttr(‘href’);
});
}else{*/
$(‘#meet-people a’).each(function(){
$(this).removeAttr(‘title’);
if($(this).attr(‘href’)==’#’){
$(this).removeAttr(‘href’);
}
});
/*}*/
jQuery(document).ready(function(){
$(‘#meet-people a.lightbox-added’).click(function(){
var link =location.origin+”/”+ $(this).find(‘.video-trascript-link’).text();
var title = $(this).text();
setTimeout(function(){$(“.mfp-content”).append(‘View video transcript‘);
$(“.mfp-close”).focus();
var imgtitle = $(“.video-link”).find(“img”).attr(“alt”);
if(!imgtitle || imgtitle == “undefined”)
imgtitle = title;
$(“.mfp-iframe”).attr(“title”,imgtitle);
$(‘#wrap_all’).attr(‘tabindex’,’-1′);
$(‘.mfp-wrap’).attr(‘role’,’dialog’);
$(‘#wrap_all’).attr(‘aria-hidden’,’true’);
$(“.mfp-close”).focus();
}, 500);
});
setTimeout(function(){
$(‘.benefit-bg’).css({‘background-image’: ‘url(https://cdn-static.findly.com/wp-content/uploads/sites/2101/2023/03/27061321/benefit_header.png)’});
$(‘.benefit_footer_bg’).css({‘background-image’: ‘url(https://cdn-static.findly.com/wp-content/uploads/sites/2101/2023/03/23204916/benefit_background_bg.png)’});
},1000);
});
/*Allowing thru external media appended url tracking codes*/
var apply_href = jQuery(‘.apply-btn’).attr(‘href’);
var current_querystring = location.search;
if (typeof apply_href !== ‘undefined’) {
if (apply_href.indexOf(‘?’) !== -1) current_querystring = ‘&’ + current_querystring.substring(1);
apply_href += current_querystring;
jQuery(‘.apply-btn’).attr(‘href’, apply_href);
}
/*utm_source parameter*/
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
//if(window.location.host==’allstate.site.findly.com’){
if(window.location.pathname.split(‘/’)[1]===”job”||window.location.pathname===”/job/”){
//console.log(‘testtt’);
var utm_source = getUrlVars()[“utm_source”];
console.log(‘utm_source value’+utm_source);
if(utm_source!=”&&utm_source!= ‘undefined’ && utm_source!= undefined){
console.log(‘utm_source ttttt’+utm_source);
var utmsource=$(‘#gtm-jobdetail-apply a’).attr(‘href’).replace(“utm_source=ExternalCS&utm_campaign=Allstate_Jobs&”, “”);
$(‘#gtm-jobdetail-apply a’).attr(‘href’, utmsource);
}
}
//}
/*hide code block text from blog category lists*/
$(‘.archive.category .avia_codeblock’).each(function(){
if($(this).text()== ‘ [avia_codeblock_placeholder uid=”0″] ‘){
$(this).hide();
}
});
});
/* START: Pass src parameter to ATS – ******************/
/*Allowing thru external media appended url tracking codes – Kevin K. 4-9-2020 */
var apply_href = jQuery(‘.apply-btn’).attr(‘href’);
var current_querystring = location.search;
if (typeof apply_href !== ‘undefined’) {
if (apply_href.indexOf(‘?’) !== -1) current_querystring = ‘?’ + current_querystring.substring(1);
apply_href += current_querystring;
jQuery(‘.apply-btn’).attr(‘href’, apply_href);
}
//}, 3000);
function updateRightMargin() {
var outerSpace = $(‘.join-our-careers > .container’).outerWidth(true) – $(‘.join-our-careers > .container’).width();
var style = $(‘
‘);
$(‘head’).append(style);
}
function checkScreenWidth() {
return $(window).width() > 768;
}
if (checkScreenWidth()) {
updateRightMargin();
}
$(window).resize(function() {
if (checkScreenWidth()) {
updateRightMargin();
}
});
/* jobs search result page – if location_type = ‘Fully Remote’ then update country to complement */
function add_column(job_html, job) {
var jobhtml = $.parseHTML(job_html);
if (job.location_type == “Fully Remote”) {
// Update the content of location
$(jobhtml).find(‘.location’).html(job.compliment);
}
if (job.location_type != “Fully Remote”) {
// Update the content of location
$(jobhtml).find(‘.location’).html(job.primary_city + ‘, ‘ +job.primary_state + ‘, ‘ + job.compliment);
}
// Check if primary_country is CA and redirect to sub category node URL
/*if (job.primary_country === “CA”) {
var jobTitleTag = $(jobhtml).find(‘.jobTitle a’);
jobTitleTag.attr(‘href’, job.sub_category);
}*/
var updated_jobhtml = $(jobhtml)[0].outerHTML;
return updated_jobhtml;
}
CWS.add_filter(‘after_job_columns’, add_column);
/* a11y fix */
$(document).ready(function() {
setTimeout(function(){
/* remove submenu role from mobile menu */
$(‘.ubermenu-submenu’).removeAttr(‘role’);
/* END remove submenu role from mobile menu */
$(‘.ejd-page #new-slider-container .avia-content-slider-element-container’).attr({‘aria-label’ : ‘Grow your career in meaningful ways.’, ‘aria-roledescription’:’carousel’, ‘role’: ‘region’});
$(‘.ejd-page #new-slider-container .avia-content-slider-inner’).attr(‘aria-live’, ‘polite’).attr(‘aria-relevant’, ‘additions’);
$(‘.ejd-page #new-slider-container .avia-content-slider-inner .slide-entry-wrap’).attr({‘aria-roledescription’:’slide’, ‘role’: ‘group’});
$(‘.ejd-page .ejd-slider .avia-content-slider-element-container’).attr({‘aria-label’ : ‘Grow your career in meaningful ways.’, ‘aria-roledescription’:’carousel’, ‘role’: ‘region’});
$(‘.ejd-page .ejd-slider .avia-content-slider-inner’).attr(‘aria-live’, ‘polite’).attr(‘aria-relevant’, ‘additions’);
$(‘.ejd-page .ejd-slider .avia-content-slider-inner .slide-entry-wrap’).attr({‘aria-roledescription’:’slide’, ‘role’: ‘group’});
$(‘#header .echo-bar-header’).attr(‘aria-hidden’, ‘true’);
$(‘#aria-live’).attr({‘aria-live’: ‘off’, ‘aria-hidden’:’true’});
$(‘.ejd-page p’).filter(function() {
return $.trim($(this).text()).length == 0;
}).attr(‘aria-hidden’, ‘true’);
}, 2000);
/* EJD social share links */
$(‘.ejd-page .av-share-box-list li’).each(function(){
$(this).find(‘a’).attr(‘aria-label’, $(this).find(‘a’).attr(‘aria-label’)+’ open in new window’ )
})
/* END EJD social share links */
$(‘.ejd-page .job-desc-tabs a[target=”_blank”]’).each(function(){
$(this).attr(‘aria-label’, $(this).text()+’ open in new window’ );
});
$(‘.ejd-page .join-our-community-btn a[target=”_blank”]’).attr(‘aria-label’, ‘Join our careers community open in new window’ );
$(‘.ejd-page br’).attr(‘aria-hidden’, ‘true’);
$(‘.job-desc-tabs .tab’).on(‘click’, function(){
$(‘.job-desc-tabs .tab’).attr(‘aria-selected’, ‘false’);
$(this).attr(‘aria-selected’, ‘true’);
})
});
/* END a11y fix */
/*EJD social icons order*/
$(‘.av-social-link-facebook’).slice().insertAfter(‘.av-social-link-linkedin’);
/*end*/
$(‘a[target=_blank]’).each(function() {
var getAL = $(this).text();
$(this).attr(‘aria-label’, getAL+’ opens in new window’);
if(getAL==””){
var getAL = $(this).attr(‘title’);
$(this).attr(‘aria-label’, getAL+’ opens in new window’);
}
});
/****
$(document).ready(function() {
setTimeout(function() {
$(“.ot-sdk-show-settings”).html(“Cookie Policy”);
}, 2000);
});
****/
/*** Move chatbot position at bottom of page. ****/
$(window).load(function() {
setTimeout(function() {
$(‘#apply-widget .el-popover__reference-wrapper’, $(‘body apply-widget’)[0].shadowRoot).append(“
“);
}, 2000);
});
It is the Company's policy to employ the best qualified individuals available for all jobs. Therefore, any discriminatory action taken on account of an employee's ancestry, age, color, disability, genetic information, gender, gender identity, gender expression, sexual and reproductive health decision, marital status, medical condition, military or veteran status, national origin, race (include traits historically associated with race, including, but not limited to, hair texture and protective hairstyles), religion (including religious dress), sex, or sexual orientation that adversely affects an employee's terms or conditions of employment is prohibited. This policy applies to all aspects of the employment relationship, including, but not limited to, hiring, training, salary administration, promotion, job assignment, benefits, discipline, and separation of employment.
To view the "Know Your Rights" poster click here. This poster summarizes the federal laws prohibiting job discrimination and explains how employees or applicants can file a complaint if they believe they have experienced discrimination.
© 2024 Allstate Insurance Company. All rights reserved.