Template:Appeal/FY2324 E3 XH/en: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 49:
const urlParams = new URLSearchParams(window.location.search);
const firstName = urlParams.get("fname");
if (firstName){
|| firstname if(firstName !== 'Wikimedia Supporter'){
const capitalizedName = firstName.charAt(0).toUpperCase() + firstName.slice(1); //Capitalize name
document.getElementById('donor-greeting').innerHTML = `${capitalizedName}, s`;
}
}
</script>