MediaWiki:Common.js
From MunichBeerGardens.com
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* Any JavaScript here will be loaded for all users on every page load. */ //setTimeout("alert('test')",10000); //document.getElementsByTagName('body')[0].style.margin = '110px'; var RecaptchaOptions = { theme : 'white' }; /* emulate sticky CSS if (document.getElementById('p-Matched_content') !=null) { window.onscroll = function() { var header_height = document.getElementById("p-Matched_content").scrollHeight; if (window.scrollY + 330 > header_height){ document.getElementById("p-Matched_content").style.position="fixed"; document.getElementById("p-Matched_content").style.top="0px"; } else{ document.getElementById("p-Matched_content").style.position="static"; } } } if (document.getElementById('p-advertisement') !=null) { window.onscroll = function() { var header_height = document.getElementById("p-advertisement").scrollHeight; if (window.scrollY + 330 > header_height){ document.getElementById("p-advertisement").style.position="fixed"; document.getElementById("p-advertisement").style.top="0px"; } else{ document.getElementById("p-advertisement").style.position="static"; } } } */ /* GDPR */ if (window.addEventListener) { window.addEventListener('load', run_onload, false); } function run_onload(){ GDPR_state_value = "undecided"; if (GDPR_state_value == "undecided"){ undecided(); } } function undecided(){ alert(''); }