diff --git a/changedetectionio/static/js/watch-overview.js b/changedetectionio/static/js/watch-overview.js index acee1e35..fbb812c7 100644 --- a/changedetectionio/static/js/watch-overview.js +++ b/changedetectionio/static/js/watch-overview.js @@ -3,4 +3,20 @@ $(function () { $('.diff-link').click(function () { $(this).closest('.unviewed').removeClass('unviewed'); }); + + // 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 ); }); diff --git a/changedetectionio/templates/watch-overview.html b/changedetectionio/templates/watch-overview.html index 02bb20fb..e16a7cc4 100644 --- a/changedetectionio/templates/watch-overview.html +++ b/changedetectionio/templates/watch-overview.html @@ -2,7 +2,10 @@ {% block content %} {% from '_helpers.jinja' import render_simple_field %} + + +