Greasy Fork is available in English.

BS Favoritendarstellung

Übersichtlichere Darstellung der Favoriten

< Feedback on BS Favoritendarstellung

سوئال / ئىنكاس

§
يوللانغان ۋاقتى: 2017-07-10

neuer code

document.getElementById("other-series-nav").children[0].onmouseenter = function () {
var list = document.getElementById("other-series-nav").children[1].children;
var width = document.getElementById("other-series-nav").getBoundingClientRect().width;
var offset = 0;
var amount = 0;
for (var i = 0; i < list.length; i++) {
list[i].style.width = list[i].parentElement.parentElement.children[0].offsetWidth + "px";
list[i].style.position = "absolute";
list[i].style.top = amount + "px";
list[i].style.left = (offset * width) + "px";
amount += JSON.parse(document.defaultView.getComputedStyle(list[i]).height.split("px")[0]);
if (document.getElementById("other-series-nav").getBoundingClientRect().top+amount > sc.g.W().innerHeight - 100) {
offset++;
amount = 0;
}
}
};

جاۋاب قايتۇرۇش

جاۋاب قايتۇرۇش ئۈچۈن كىرىش.