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

Content deleted Content added
No edit summary
No edit summary
Line 42:
<div class="appeal-layout">
<div class="appeal-text">
<p class="headline">Support<span id="donor-greeting">S</span>upport Wikipedia, your daily source of trusted knowledge.</p>
<p class="paragraph">Your support matters! Sustain this great fountain of knowledge built by people, for people. Keep Wikipedia thriving.</p>
</div>
</div>
<script>
// Get the URL parameters from the current URL
const urlParams = new URLSearchParams(window.location.search);
if (urlParams.has("fname")) {
 
document.getElementById('donor-greeting').innerHTML = `${urlParams.get("fname")}, s`;
// Check if the "fname" parameter exists
if (urlParams.has("fname")) {
// If it exists, assign its value to a variable
const fnameValue = urlParams.get("fname");
console.log("fname parameter exists, and its value is: " + fnameValue);
} else {
console.log("fname parameter does not exist in the URL.");
}
</script>