Hacker News new | ask | show | jobs
by matt1 5622 days ago
Hey, thanks for the note.

The import tool will be a bookmarklet that, when clicked, will analyze the DOM using jQuery then post that data back to jMockups, which will create a mockup based on the data that it received from the bookmarklet. It winds up being just one canvas, the same as jMockups uses now. When you share it, it will be an image, not HTML (though long term an export to HTML/CSS feature would be nice).

The tricky part, as you point out, is all the styles. You've got all the background images, repeats, position, sprites, border width, color, style, etc etc etc. Fortunately, most sites only use a fraction of them, which means that at least for the initial version, it doesn't have to handle everything. It won't be perfect, but I've found it works well on 90% of 90% of the websites.

If you have any ideas on how to improve the tool itself, let me know. Thank you again for the feedback.