Difference between revisions of "MediaWiki:Chameleon.js"

From Eli's Software Encyclopedia
m
m
Line 14: Line 14:
});
});


$(':not(.chameleon-infobox) a.image').addClass('col-6');
$('a.image:not(.img-fluid)').addClass('col-6');
$(':not(.chameleon-infobox) a.image').parent().addClass('row');
$('a.image:not(.img-fluid)').parent().addClass('row');

Revision as of 18:38, September 21, 2020

$(window).scroll(function(){
    if ($(this).scrollTop()) {
        $('.back-top').css('visibility','visible');
    } else {
        $('.back-top').css('visibility','hidden');
    }
});

$('.back-top a').bind({
	click: function(e) {
		e.preventDefault();
		$('html, body').animate({ scrollTop: "0" }); 
	}
});

$('a.image:not(.img-fluid)').addClass('col-6');
$('a.image:not(.img-fluid)').parent().addClass('row');