Difference between revisions of "MediaWiki:Chameleon.js"
From Eli's Software Encyclopedia
m |
m |
||
(5 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
$('.back-top').css('visibility','hidden'); | $('.back-top').css('visibility','hidden'); | ||
} | } | ||
$('.ve-ui-toolbar-floating > .oo-ui-toolbar-bar').css('top','41px !important'); | |||
}); | }); | ||
$('.back-top | $('.back-top').bind({ | ||
click: function(e) { | click: function(e) { | ||
e.preventDefault(); | |||
$('html, body').animate({ scrollTop: "0" }); | |||
}, | |||
tap: function(e) { | |||
e.preventDefault(); | e.preventDefault(); | ||
$('html, body').animate({ scrollTop: "0" }); | $('html, body').animate({ scrollTop: "0" }); | ||
Line 14: | Line 19: | ||
}); | }); | ||
$('a.image').addClass('col-6'); | $('a.image').addClass('col-6 p-0'); | ||
$('a.image').closest('p').addClass('row'); | $('a.image').closest('p').addClass('row px-3'); |
Latest revision as of 12:23, September 22, 2020
$(window).scroll(function(){
if ($(this).scrollTop()) {
$('.back-top').css('visibility','visible');
} else {
$('.back-top').css('visibility','hidden');
}
$('.ve-ui-toolbar-floating > .oo-ui-toolbar-bar').css('top','41px !important');
});
$('.back-top').bind({
click: function(e) {
e.preventDefault();
$('html, body').animate({ scrollTop: "0" });
},
tap: function(e) {
e.preventDefault();
$('html, body').animate({ scrollTop: "0" });
}
});
$('a.image').addClass('col-6 p-0');
$('a.image').closest('p').addClass('row px-3');