X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=inliner.js;h=f079dd86cfe9060762b84925b8623e83da5f4530;hb=e9155b69c3c94fee754db7a9b938215312f048e4;hp=bd2338db89836ff87f4bdc14ea0f2cae12a7eb6c;hpb=94f9b944bb5d5d719ecddbd76b25d351fa6e5f78;p=app.webkitpdf diff --git a/inliner.js b/inliner.js index bd2338d..f079dd8 100644 --- a/inliner.js +++ b/inliner.js @@ -1,4 +1,17 @@ - +/** + * + * could this work by findind all the visible text, + * then making them hidden.. + * + * -- make a snapshot of the background.. + * + * -- delete the whole page... + * -- show the image as the background. + * -- then overlay all the text given their calculated positions.. + * + * + * + */ (function(){ @@ -9,7 +22,7 @@ - var fillStyle = function(dom, pstyle), + var fillStyle = function(dom, pstyle) { if (!dom || dom.nodeType != 1) { //console.log("SKIP: " + dom.nodeName); @@ -48,7 +61,9 @@ // pstyle = window.getComputedStyle(dom.parentElement, null); //} - + if (dom.nodeName == 'SPAM') { + pstyle = false; //?? others?? + } //if (dom.nodeName == 'LI') { throw 'done'; } @@ -100,5 +115,6 @@ } changeit(); + console.log("done"); })(); \ No newline at end of file