tech4biz/assets/js/home/tech4biz-change-more-quick-fix.js
2024-10-25 17:11:31 +05:30

34 lines
1.4 KiB
JavaScript

// // Change more - Quick fix - 4/27/2023
var href_window = window.location.href;
$(function() {
// TileGrid - Rad Template - image alt for web acc
$(".rad-card").each(function() {
// var alt_title = $(this).find(".rad-card__title").text().trim();
$(this).find("img").attr("alt", "");
})
// Rad Card - Global and Recognition Awards - External Links.
$(".rad-awards-card__rte a").each(function(){
var rad_card_a = $(this);
if(rad_card_a.attr("target").indexOf("blank") > -1){
if(rad_card_a.attr("title") == undefined || rad_card_a.attr("title") == "") {
rad_card_a.attr("title", "This opens a new tab away from Accenture.com.");
}
}
})
//Rad Card - TileGrid V2 - localization of links with (anchor link) - 11/30/2023
var g_h = window.location.pathname
var g_h_2 = g_h.replace(".html", "");
if(href_window.indexOf("www.accenture.com") > -1){
$(".tilegrid .rad-content-grid-card a").each(function(){
var th = $(this);
var a_t = th.attr("href");
if (a_t.indexOf("built-for-change-podcast") > -1){
th.attr("href", g_h + "/insights/company/built-for-change-podcast#episode32");
}
})
// if(href_window.indexOf("adobeaemcloud") > -1){
// th.attr("href", g_h_2 + "/insights/company/built-for-change-podcast#episode32");
// }
}
})