Files
changedetection.io/changedetectionio/static/js/diff-render.js
T
2025-09-23 14:43:19 +02:00

29 lines
624 B
JavaScript

$(document).ready(function () {
var inputs;
$('#jump-next-diff').click(function () {
var element = inputs[inputs.current];
var headerOffset = 80;
var elementPosition = element.getBoundingClientRect().top;
var offsetPosition = elementPosition - headerOffset + window.scrollY;
window.scrollTo({
top: offsetPosition,
behavior: "smooth",
});
inputs.current++;
if (inputs.current >= inputs.length) {
inputs.current = 0;
}
});
function changed() {
//$('#jump-next-diff').click();
}
});