You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
changedetection.io/changedetectionio/static/js/watch-overview.js

23 lines
616 B

$(function () {
// Remove unviewed status when normally clicked
$('.diff-link').click(function () {
$(this).closest('.unviewed').removeClass('unviewed');
});
3 years ago
// after page fetch, inject this JS
// build a map of all elements and their positions (maybe that only include text?)
var p = $( "*" );
for (var i = 0; i < p.length; i++) {
console.log($(p[i]).offset());
console.log($(p[i]).width());
console.log($(p[i]).height());
console.log(getXPath( p[i]));
}
// overlay it on a rendered image of the page
//p.html( "left: " + offset.left + ", top: " + offset.top );
});