Difference between revisions of "MediaWiki:Common.js"
From Electrical Contacts
Doduco Admin (talk | contribs) |
Doduco Admin (talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
$(function() { | $(function() { | ||
$(window).scroll(function() { | $(window).scroll(function() { |
Latest revision as of 14:59, 8 May 2014
$(function() { $(window).scroll(function() { if($(this).scrollTop() != 0) { $('#backtotop').fadeIn(); } else { $('#backtotop').fadeOut(); } }); $('#backtotop').click(function() { $('body,html').animate({scrollTop:0},800); }); }); $(function(){ $('#wpLicense option').each(function(){ if($(this).val() != ''){ $(this).attr('selected', true);} }) })