MediaWiki:Common.js: Difference between revisions

From Iskomunidad
Iskwiki.admin (talk | contribs)
No edit summary
Iskwiki.admin (talk | contribs)
No edit summary
 
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/' target='_blank'>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>");
});