MediaWiki:Common.js: Difference between revisions

From Bhikitia Pro, An open encyclopedia
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 9: Line 9:
});
});


(function(myijg){
document.addEventListener("DOMContentLoaded", function () {
    var d = document,
        s = d.createElement('script'),
        box = document.getElementById("ad-container");


     s.settings = myijg || {};
     const adBox = document.getElementById("ad-container");
    s.src = "//sophisticatedpin.com/bOXlV.sLdrGml/0CY/WRcC/wesm/9UuhZIUWlCklPaTLc_wUO/D/U/4qOhDQEQtkN/zWAM4FN/TQg/4XN/QX";
    s.async = true;


     box.appendChild(s);
     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>";
    }

});