kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Fix auto jump on viewing the diff
rodzic
934d8c6211
commit
35fc76c02c
|
@ -90,6 +90,10 @@ function changed() {
|
|||
|
||||
result.textContent = '';
|
||||
result.appendChild(fragment);
|
||||
|
||||
// Jump at start
|
||||
inputs.current=0;
|
||||
next_diff();
|
||||
}
|
||||
|
||||
window.onload = function() {
|
||||
|
@ -112,6 +116,7 @@ window.onload = function() {
|
|||
|
||||
onDiffTypeChange(document.querySelector('#settings [name="diff_type"]:checked'));
|
||||
changed();
|
||||
|
||||
};
|
||||
|
||||
a.onpaste = a.onchange =
|
||||
|
@ -139,8 +144,7 @@ for (var i = 0; i < radio.length; i++) {
|
|||
|
||||
var inputs = document.getElementsByClassName('change');
|
||||
inputs.current=0;
|
||||
// Jump at start
|
||||
next_diff();
|
||||
|
||||
|
||||
function next_diff() {
|
||||
|
||||
|
@ -161,6 +165,7 @@ function next_diff() {
|
|||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue