Template:Appeal/FY2324 E3 XH/en: Difference between revisions
Content deleted Content added
No edit summary |
Prevent XSS attack using .textContent |
||
(11 intermediate revisions by the same user not shown) | |||
Line 42:
<div class="appeal-layout">
<div class="appeal-text">
<p class="headline">
<p class="paragraph">Your support matters! Sustain this great fountain of knowledge built by people, for people. Keep Wikipedia thriving.</p>
</div>
</div>
<script>
const urlParams = new URLSearchParams(window.location.search);
if (firstName){
if(firstName !== 'Wikimedia Supporter'){
const capitalizedName = firstName.charAt(0).toUpperCase() + firstName.slice(1); //Capitalize name
document.getElementById('donor-greeting').textContent = `${capitalizedName}, s`;
▲ const fnameValue = urlParams.get("fname");
▲ } else {
}
</script>
|