MediaWiki:Common.js: Difference between revisions
From Cives
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
if(userloginForm != null){ | 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 "; | ||
/* | |||
var termsLink = document.createElement("a"); | var termsLink = document.createElement("a"); | ||
termsLink.textContent = "Terms of use and privacy policy"; | termsLink.textContent = "Terms of use and privacy policy"; | ||
termsLink.href = "https://cives.uni-lj.si/index.php?title=Terms_of_use"; | termsLink.href = "https://cives.uni-lj.si/index.php?title=Terms_of_use"; | ||
paragraph.appendChild(termsLink); | paragraph.appendChild(termsLink); | ||
userloginForm.appendChild(paragraph); | userloginForm.appendChild(paragraph);*/ | ||
} | } | ||
console.log("Hello world!"); | console.log("Hello world!"); | ||
Revision as of 15:22, 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!");