MediaWiki:Common.js: Difference between revisions
MediaWiki interface page
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
/* mw.loader.load('https://www.zd10.net/new_wiki/skins/pivot/assets/scripts/foundation/foundation.js&action=raw&ctype=text/javascript' ); */ | /* mw.loader.load('https://www.zd10.net/new_wiki/skins/pivot/assets/scripts/foundation/foundation.js&action=raw&ctype=text/javascript' ); */ | ||
/* Code for the reading progress bar, no longer set to use. */ | |||
/* $(document).ready(function() { | |||
var docHeight = $(document).height(), | var docHeight = $(document).height(), | ||
windowHeight = $(window).height(), | windowHeight = $(window).height(), | ||
| Line 15: | Line 16: | ||
}); | }); | ||
}); | }); | ||
*/ | |||
Revision as of 11:47, 19 March 2019
/* Any JavaScript here will be loaded for all users on every page load. */
/* mw.loader.load('https://www.zd10.net/new_wiki/skins/pivot/assets/scripts/vendor/jquery.js&action=raw&ctype=text/javascript' ); */
/* mw.loader.load('https://www.zd10.net/new_wiki/skins/pivot/assets/scripts/foundation/foundation.js&action=raw&ctype=text/javascript' ); */
/* Code for the reading progress bar, no longer set to use. */
/* $(document).ready(function() {
var docHeight = $(document).height(),
windowHeight = $(window).height(),
scrollPercent;
$(window).scroll(function() {
scrollPercent = $(window).scrollTop() / (docHeight - windowHeight) * 100;
$('.scroll-progress').width(scrollPercent + '%');
});
});
*/