Difference between revisions of "MediaWiki:Chameleon.js"
From Eli's Software Encyclopedia
m |
m |
||
Line 15: | Line 15: | ||
$('a.image').addClass('col-6 p-0'); | $('a.image').addClass('col-6 p-0'); | ||
$('a.image').closest('p').addClass('row'); | $('a.image').closest('p').addClass('row px-3'); |
Revision as of 21:41, 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').addClass('col-6 p-0');
$('a.image').closest('p').addClass('row px-3');