A no-reload HTML/CSS/JS playground with instant editor / output sync
blog.pdf.ist
blog.pdf.ist
edit: In the spirit of trying to not just complain: an HTML playground with bidirectional sync of code state <> dom state is pretty cool! I look forward to seeing the open-source core :)
If you right-click in the playground (https://try.webpdf.pro/) and pick the "Foreign (Markdown)" context menu item, you will find an example that uses https://zerodevx.github.io/zero-md/ for Markdown editing/formatting via web components.
The reason I force update-by-(re)load on other foreign elements is because there are lots of low-quality web component custom elements that do not deal with attribute or content changes as well as the standard HTML elements.
https://try.webpdf.pro/canvas/
Draw
• draw in the gray box to update img src
• right-click/long-tap on canvas to clear
Play
• add text around canvas or img elements
• change canvas style attribute value
syncHTML.io
<iframe src="form.pdf"></iframe>iframe-ing a PDF document wholesale does not let us interact with the individual pages directly. We are trying to bring complete programmatic/stylistic control to the hands of web developers, basically making PDFs a more open file format.
The first demos of the WebPDF.pro as a product will re-implement splitting/merging PDFs in less than 10 lines of code (deferring to a select few other libraries where they shine, such as Sortable JS).
We aim to offer more and more custom elements as well as other solutions at just the right levels of abstraction to enable anyone to achieve more document-processing tasks with less code. (Solution levels: Directory → File → Page → Sub-page (forms, text, images, measurements, annotations, signatures, structured fragments))
As an example, we open-sourced https://github.com/pdf-ist/paper which lets anyone style any element with paper aspect-ratios to prevent layout shifts or serve as placeholders in mockups: created an example here: https://try.webpdf.pro/paper/
let x=0;
while (x < 10) {
b.textContent=x;
x+=1;
}
You can cut and paste it, but you can't type it in.Seems quite interesting, is the playground open source?
editor → output: open-source library; needs minor improvements
editor ← output: custom implementation; needs battle-testing in the field
domain name: product-specific; need to find an independent name
/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c\ude32-\ude3a]|[\ud83c\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/
But why not /[^a-zA-Z0-9 -]/Take a look at the punctuation used on the front page and you’ll see why
Submitters: please don't use visual gimmicks like that. Those count as clickbait and therefore are against the site guidelines: https://news.ycombinator.com/newsguidelines.html.