fixed scroll issue of thesis

This commit is contained in:
nglk 2021-03-01 14:13:00 +01:00
parent 35cebcf5be
commit d60e544e0e

2
static/js/d3_map.js vendored
View File

@ -146,7 +146,7 @@ d3.json("/static/js/group1.json", function(error, json) {
$("#bio" + name).fadeIn() $("#bio" + name).fadeIn()
var dada = document.getElementById("text" + name); var dada = document.getElementById("text" + name);
dada.className += " active"; dada.className += " active";
dada.scrollIntoView(); dada.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' });
}; };
}); });