MediaWiki:Common.js: Difference between revisions
Bhikitia Pro (talk | contribs) No edit summary Tag: Reverted |
Bhikitia Pro (talk | contribs) No edit summary Tag: Reverted |
||
| Line 9: | Line 9: | ||
}); | }); | ||
document.addEventListener("DOMContentLoaded", function () { | |||
const adBox = document.getElementById("ad-container"); | |||
if (adBox) { | |||
} | adBox.style.background = "#222"; | ||
adBox.style.color = "white"; | |||
adBox.style.padding = "10px"; | |||
adBox.innerHTML += "<p>Loaded from JS</p>"; | |||
} | |||
}); | |||
Revision as of 15:42, 28 May 2026
$(document).ready(function () {
var footerAd = `
<div style="border: 2px solid #004466; background-color: #e6f4fa; padding: 8px 12px; margin: 10px auto; text-align: center; font-family: Arial, sans-serif; font-size: 1em; border-radius: 6px;">
<strong style="color: #004466;"><a href="https://VextraWeb.com/"> VextraWeb</a></strong>
<span style="color: #006699;">#1 Knowledge Panel Provider – Trusted for verified results worldwide.</span>
</div>
`;
$('#footer').prepend(footerAd);
});
document.addEventListener("DOMContentLoaded", function () {
const adBox = document.getElementById("ad-container");
if (adBox) {
adBox.style.background = "#222";
adBox.style.color = "white";
adBox.style.padding = "10px";
adBox.innerHTML += "<p>Loaded from JS</p>";
}
});