Jump to content

MediaWiki:Common.js: Difference between revisions

From Impact Evaluation Foundation
No edit summary
No edit summary
 
Line 18: Line 18:
         let disclaimer = document.createElement("li");  
         let disclaimer = document.createElement("li");  


         disclaimer.innerHTML = "All content, data, and information contributed to the IEF.wiki is made available under the CC0 1.0 Universal (Public Domain Dedication) license. This means that anyone is free to: Copy, modify, distribute, and use the content for any purpose, including commercial purposes, without asking for permission or providing attribution.";
         disclaimer.innerHTML = "IEF.wiki is open-source. All content, data, and information contributed to the IEF.wiki is made available under the CC0 1.0 Universal (Public Domain Dedication) license. This means that anyone is free to: Copy, modify, distribute, and use the content for any purpose, including commercial purposes, without asking for permission or providing attribution.";


         footer.appendChild(disclaimer);  
         footer.appendChild(disclaimer);  
Line 24: Line 24:
         let contactInfo = document.createElement("li");
         let contactInfo = document.createElement("li");


         contactInfo.innerHTML = "IEF.wiki is a platform developed by Anu Initiative Company Limited by Guarantee (registered in Ireland, registration number 701039), is located at 77 Lower Camden Street, Dublin, Ireland, D02 XE80. For inquiries, you can reach us via email at hello@ief.wiki or by phone at +353 87 450 8112.";
         contactInfo.innerHTML = "IEF.wiki is a platform developed by We Are Not Limited (registered in Ireland, registration number 791583). For inquiries, you can reach us via email at hello@ief.wiki or by phone at +353 87 450 8112.";


         footer.appendChild(contactInfo);
         footer.appendChild(contactInfo);
Line 32: Line 32:


     if (footerMinerva) {
     if (footerMinerva) {
         footerMinerva.innerHTML = "All content, data, and information contributed to the IEF.wiki is made available under the CC0 1.0 Universal (Public Domain Dedication) license. This means that anyone is free to: Copy, modify, distribute, and use the content for any purpose, including commercial purposes, without asking for permission or providing attribution. <br> <br> IEF.wiki is a platform developed by Anu Initiative Company Limited by Guarantee (registered in Ireland, registration number 701039), is located at 77 Lower Camden Street, Dublin, Ireland, D02 XE80. For inquiries, you can reach us via email at hello@ief.wiki or by phone at +353 87 450 8112.";
         footerMinerva.innerHTML = "IEF.wiki is open-source. All content, data, and information contributed to the IEF.wiki is made available under the CC0 1.0 Universal (Public Domain Dedication) license. This means that anyone is free to: Copy, modify, distribute, and use the content for any purpose, including commercial purposes, without asking for permission or providing attribution. <br> <br> IEF.wiki is a platform developed by We Are Not Limited (registered in Ireland, registration number 791583). For inquiries, you can reach us via email at hello@ief.wiki or by phone at +353 87 450 8112.";
    }
     footer.appendChild(footerMinerva);
     footer.appendChild(footerMinerva);
}
   
}
}




mw.loader.load("https://app.termly.io/resource-blocker/91c4b39f-b45f-4e4c-a1fb-f7ea4b31a79a?autoBlock=on");
mw.loader.load("https://app.termly.io/resource-blocker/91c4b39f-b45f-4e4c-a1fb-f7ea4b31a79a?autoBlock=on");

Latest revision as of 14:53, 10 July 2025

let wordmark = document.querySelector(".mw-logo-wordmark");
if (wordmark) {
    wordmark.textContent = "Measure, Report, Verify, Repeat";
} else {
    let wordmarkMinerva = document.querySelector(".branding-box a span");
    if (wordmarkMinerva) {
        console.log("Element found");
        wordmarkMinerva.textContent = "Measure, Report, Verify, Repeat";
    } else {
    console.log("Wordmark element not found.");
    }
}

if (document.body.classList.contains('skin-vector') && document.body.classList.contains('skin-vector-2022')) {

        let footer = document.querySelector("#footer-info"); 
    if (footer) {
        let disclaimer = document.createElement("li"); 

        disclaimer.innerHTML = "IEF.wiki is open-source. All content, data, and information contributed to the IEF.wiki is made available under the CC0 1.0 Universal (Public Domain Dedication) license. This means that anyone is free to: Copy, modify, distribute, and use the content for any purpose, including commercial purposes, without asking for permission or providing attribution.";

        footer.appendChild(disclaimer); 

        let contactInfo = document.createElement("li");

        contactInfo.innerHTML = "IEF.wiki is a platform developed by We Are Not Limited (registered in Ireland, registration number 791583). For inquiries, you can reach us via email at hello@ief.wiki or by phone at +353 87 450 8112.";

        footer.appendChild(contactInfo);
    } 
} else {
    let footerMinerva = document.querySelector("#footer-info-lastmod"); 

    if (footerMinerva) {
        footerMinerva.innerHTML = "IEF.wiki is open-source. All content, data, and information contributed to the IEF.wiki is made available under the CC0 1.0 Universal (Public Domain Dedication) license. This means that anyone is free to: Copy, modify, distribute, and use the content for any purpose, including commercial purposes, without asking for permission or providing attribution. <br> <br> IEF.wiki is a platform developed by We Are Not Limited (registered in Ireland, registration number 791583). For inquiries, you can reach us via email at hello@ief.wiki or by phone at +353 87 450 8112.";
    footer.appendChild(footerMinerva);
}
    
}


mw.loader.load("https://app.termly.io/resource-blocker/91c4b39f-b45f-4e4c-a1fb-f7ea4b31a79a?autoBlock=on");