Difference between revisions of "MediaWiki:Common.js"
From Electrical Contacts
Doduco Admin (talk | contribs) |
Doduco Admin (talk | contribs) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | |||
$(function() { | $(function() { | ||
$(window).scroll(function() { | $(window).scroll(function() { | ||
| Line 15: | Line 14: | ||
$(function(){ | $(function(){ | ||
$('#wpLicense option').each(function(){ | $('#wpLicense option').each(function(){ | ||
| − | if($(this).val() != '') $(this).attr('selected', true); | + | if($(this).val() != ''){ $(this).attr('selected', true);} |
}) | }) | ||
}) | }) | ||
Latest revision as of 13: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);}
})
})