Commit a257961b authored by okhin's avatar okhin 🚴

Gentle scrolling to the navbar

parent 1f602bf6
Pipeline #832 passed with stage
in 1 second
......@@ -62,6 +62,9 @@ function display_mep(contact) {
.addClass('collection-item avatar')
.click(function() {
update_mep($(this));
$('html, body').animate({
scrollTop: $('#navbar').offset().top
}, 500);
})
.attr('data-json', JSON.stringify(contact));
if ( contact['photo'] === '') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment