MediaWiki:Common.js: Difference between revisions

From Iskomunidad
Iskwiki.admin (talk | contribs)
No edit summary
Iskwiki.admin (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready(function(){
$('#toc').addClass('tochidden');
$('#toc ul').css('display', 'none');
$('.togglelink').text('show');
});
$(window).on('load', function(){
$(window).on('load', function(){
$('#toc').addClass('tochidden');
$('#site-tools ul').append("<li><a href='https://iskwiki.upd.edu.ph' target='_blank'>Flipbook</li>");
$('#toc ul').css('display', 'none');
$('.togglelink').text('show');
$('#site-tools ul').append("<li><a href='https://iskomunidad.upd.edu.ph/flipbook/'>Flipbook</li>");
});
});

Latest revision as of 11:57, 4 November 2022

/* Any JavaScript here will be loaded for all users on every page load. */
$(window).on('load', function(){
	$('#site-tools ul').append("<li><a href='https://iskwiki.upd.edu.ph' target='_blank'>Flipbook</li>");
});