MediaWiki:Common.js: verschil tussen versies
Naar navigatie springen
Naar zoeken springen
Regel 17: | Regel 17: | ||
function imageposting() { | function imageposting() { | ||
− | var parentDOM = document.getElementById(" | + | var parentDOM = document.getElementById("p-logo"); |
var logo = parentDOM.getElementsByClassName("mw-wiki-logo")[0]; | var logo = parentDOM.getElementsByClassName("mw-wiki-logo")[0]; | ||
logo.style.backgroundImage = 'url(/images/5/5f/Hackalot_side_wiki_logo_with_resolution.png), url(/images/6/64/000024.3003636429.jpeg)'; | logo.style.backgroundImage = 'url(/images/5/5f/Hackalot_side_wiki_logo_with_resolution.png), url(/images/6/64/000024.3003636429.jpeg)'; |
Versie van 22 sep 2022 18:41
/* JavaScript die hier wordt geplaatst heeft invloed op alle pagina's voor alle gebruikers */ jQuery.ajax({ method: 'GET', url: 'https://hackalot.nl/statejson', }).done(function(res) { jQuery("<div id=spacestatus class="+(res.state.open ? "open" : "closed")+"></div>").appendTo(jQuery("#p-logo")); }); if ($("#kiekjes").length) { $.get("https://kiekjes.hackalot.nl/latest?amount=1", function (data) { var item = data.latest[0]; $("#kiekjes").find('img').attr('src', 'https://kiekjes.hackalot.nl' + item.thumbnail) $("#kiekjes").find('img').attr('srcset', 'https://kiekjes.hackalot.nl' + item.thumbnail) }); } function imageposting() { var parentDOM = document.getElementById("p-logo"); var logo = parentDOM.getElementsByClassName("mw-wiki-logo")[0]; logo.style.backgroundImage = 'url(/images/5/5f/Hackalot_side_wiki_logo_with_resolution.png), url(/images/6/64/000024.3003636429.jpeg)'; logo.style.backgroundSize = 'cover'; } imageposting()