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

From Donate
Jump to navigation Jump to search
Content deleted Content added
Created page with "<html> <style> .appeal-layout { padding: 0 40px; display: flex; align-items: center; justify-content: center; gap: 24px; } .appeal-text { line-height: 1.8; } .appeal-text p.headline { line-height:1.7; font-size:26px; font-weight:bold; } .appeal-text p.paragraph { font-size:16px; } @media (max-width: 1400px) { .appeal-layout { flex-wr..."
 
Prevent XSS attack using .textContent
 
(12 intermediate revisions by the same user not shown)
Line 42: Line 42:
<div class="appeal-layout">
<div class="appeal-layout">
<div class="appeal-text">
<div class="appeal-text">
<p class="headline">Support Wikipedia, your daily source of trusted knowledge.</p>
<p class="headline"><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>
<p class="paragraph">Your support matters! Sustain this great fountain of knowledge built by people, for people. Keep Wikipedia thriving.</p>
</div>
</div>
</div>
</div>
<script>
<script>
const urlParams = new URLSearchParams(window.location.search);
console.log("hello!");
const firstName = urlParams.get("fname");
if (firstName){
if(firstName !== 'Wikimedia Supporter'){
const capitalizedName = firstName.charAt(0).toUpperCase() + firstName.slice(1); //Capitalize name
document.getElementById('donor-greeting').textContent = `${capitalizedName}, s`;
}
}
</script>
</script>
</html>
</html>

Latest revision as of 00:50, 4 November 2023

Support Wikipedia, your daily source of trusted knowledge.

Your support matters! Sustain this great fountain of knowledge built by people, for people. Keep Wikipedia thriving.