MediaWiki:Minerva.js: verschil tussen versies
MediaWiki interface page
Geen bewerkingssamenvatting |
Geen bewerkingssamenvatting |
||
Regel 6: | Regel 6: | ||
clearInterval(timer); | clearInterval(timer); | ||
$('.menu ul:first').after('<ul> | $('.menu ul:first').after( | ||
'<ul><li> \ | |||
<a href="/wiki/Informatie"> \ | <a href="/wiki/Informatie"> \ | ||
<span>Over ons</span> \ | <span>Over ons</span> \ | ||
Regel 26: | Regel 26: | ||
<span>Vrijwilligers</span> \ | <span>Vrijwilligers</span> \ | ||
</a> \ | </a> \ | ||
</li>' + | </li></ul>' + | ||
'<li> \ | '<ul><li> \ | ||
<a href="/wiki/Nieuws"> \ | <a href="/wiki/Nieuws"> \ | ||
<span>Nieuws</span> \ | <span>Nieuws</span> \ | ||
Regel 36: | Regel 36: | ||
<span>Jaaragenda</span> \ | <span>Jaaragenda</span> \ | ||
</a> \ | </a> \ | ||
</li>' + | </li></ul>' + | ||
'<li> \ | '<ul><li> \ | ||
<a href="/wiki/Verhuur"> \ | <a href="/wiki/Verhuur"> \ | ||
<span>Verhuur</span> \ | <span>Verhuur</span> \ | ||
Regel 51: | Regel 51: | ||
<span>Contact</span> \ | <span>Contact</span> \ | ||
</a> \ | </a> \ | ||
</li> | </li></ul>'); | ||
$(".menu").find(".collapsible-content").hide(); | $(".menu").find(".collapsible-content").hide(); |
Versie van 9 jun 2022 20:26
/* All JavaScript here will be loaded for users of the MinervaNeue skin */ var timer = setInterval(buildMenu, 10); function buildMenu() { if ($('.menu ul:first').length) { clearInterval(timer); $('.menu ul:first').after( '<ul><li> \ <a href="/wiki/Informatie"> \ <span>Over ons</span> \ </a> \ </li>' + '<li> \ <a href="/wiki/Groepen"> \ <span>Groepen</span> \ </a> \ </li>' + '<li> \ <a href="/wiki/Bestuur"> \ <span>Bestuur</span> \ </a> \ </li>' + '<li> \ <a href="/wiki/Vrijwilligers"> \ <span>Vrijwilligers</span> \ </a> \ </li></ul>' + '<ul><li> \ <a href="/wiki/Nieuws"> \ <span>Nieuws</span> \ </a> \ </li>' + '<li> \ <a href="/wiki/Jaaragenda"> \ <span>Jaaragenda</span> \ </a> \ </li></ul>' + '<ul><li> \ <a href="/wiki/Verhuur"> \ <span>Verhuur</span> \ </a> \ </li>' + '<li> \ <a href="/wiki/Inschrijven"> \ <span>Inschrijven</span> \ </a> \ </li>' + '<li> \ <a href="/wiki/Contact"> \ <span>Contact</span> \ </a> \ </li></ul>'); $(".menu").find(".collapsible-content").hide(); $(".collapsible").click(function(event){ $(this).find(".collapsible-content").slideToggle(500); }); } } mw.util.addPortletLink("page-actions", mw.config.get( 'wgServer' ) + "/w/index.php?title=" + encodeURIComponent(mw.config.get('wgPageName')) + "&action=formedit", "Bewerken met formulier", "page-actions-formedit", "Bewerken met formulier", "", "#page-actions-edit"); $("#page-actions-formedit span").addClass("mw-ui-icon-wikimedia-edit-base20"); mw.util.addPortletLink("page-actions-overflow", mw.config.get( 'wgServer' ) + "/w/index.php?title=" + encodeURIComponent(mw.config.get('wgPageName')) + "&action=edit", "Brontekst bewerken", "page-actions-overflow-edit", "Brontekst bewerken", "", "#page-actions-overflow-edit");