MediaWiki:Common.js: verschil tussen versies
Naar navigatie springen
Naar zoeken springen
Regel 18: | Regel 18: | ||
function imageposting() { | function imageposting() { | ||
const parentDOM = document.getElementById("parent-id"); | const parentDOM = document.getElementById("parent-id"); | ||
− | let logo = parentDOM.getElementsByClassName("mw-wiki-logo")[0] | + | let 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)'; | ||
logo.style.backgroundSize = 'cover'; | logo.style.backgroundSize = 'cover'; |
Versie van 22 sep 2022 18:40
/* 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() { const parentDOM = document.getElementById("parent-id"); let 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()