mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
23 lines
539 B
JavaScript
23 lines
539 B
JavaScript
var topElements = document.getElementsByClassName("scrollTop");
|
|
if (!topElements.length) {
|
|
topElements = [document.body];
|
|
}
|
|
|
|
function doScroll(d)
|
|
{
|
|
for (var i = 0; i < topElements.length; ++i) {
|
|
topElements[i].scrollTop = d;
|
|
}
|
|
}
|
|
|
|
if (document.location.search == '?ref') {
|
|
doScroll(20);
|
|
} else {
|
|
doScroll(1);
|
|
document.documentElement.setAttribute("class", "reftest-wait");
|
|
window.addEventListener("MozReftestInvalidate", function() {
|
|
document.documentElement.removeAttribute("class");
|
|
doScroll(20);
|
|
}, false);
|
|
}
|