MediaWiki:Common.js: Difference between revisions
From Cives
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
var userloginForm = document.getElementById("userloginForm"); | var userloginForm = document.getElementById("userloginForm"); | ||
if(userloginForm != null){ | |||
var paragraph = document.createElement("p"); | var paragraph = document.createElement("p"); | ||
paragraph.textContent = "By logging in, you agree to the "; | paragraph.textContent = "By logging in, you agree to the "; | ||
| Line 11: | Line 12: | ||
paragraph.appendChild(termsLink); | paragraph.appendChild(termsLink); | ||
userloginForm.appendChild(paragraph); | userloginForm.appendChild(paragraph); | ||
} | |||
console.log("Hello world!"); | console.log("Hello world!"); | ||
Revision as of 15:21, 12 March 2024
/* Any JavaScript here will be loaded for all users on every page load. */
$('#t-print').remove();
var userloginForm = document.getElementById("userloginForm");
if(userloginForm != null){
var paragraph = document.createElement("p");
paragraph.textContent = "By logging in, you agree to the ";
var termsLink = document.createElement("a");
termsLink.textContent = "Terms of use and privacy policy";
termsLink.href = "https://cives.uni-lj.si/index.php?title=Terms_of_use";
paragraph.appendChild(termsLink);
userloginForm.appendChild(paragraph);
}
console.log("Hello world!");