Difference between revisions of "MediaWiki:Common.js"
From DARO
Admin-daro (talk | contribs) |
Admin-daro (talk | contribs) |
||
Line 3: | Line 3: | ||
function showCard(id){ | function showCard(id){ | ||
− | document.getElementById(id).style.display = " | + | document.getElementById(id).style.display = "block"; |
} | } | ||
function hideCard(id){ | function hideCard(id){ | ||
− | document.getElementById(id).style.display = " | + | document.getElementById(id).style.display = "none"; |
} | } | ||
Revision as of 17:02, 1 March 2021
/* Any JavaScript here will be loaded for all users on every page load. */ function showCard(id){ document.getElementById(id).style.display = "block"; } function hideCard(id){ document.getElementById(id).style.display = "none"; } function testShowCard() { var x = document.getElementById('poring'); if (x.style.display === 'none') { x.style.display = 'block'; } else { x.style.display = 'none'; } }