Show HN: Nash, I made a standalone note with single HTML file
keepworking.github.io
Show HN: Nash, I made a standalone note with single HTML file
1–10 of 153 posts
Re: Show HN: Nash, I made a standalone note with single HTML file
#2Re: Show HN: Nash, I made a standalone note with single HTML file
#3This uses HTML, CSS and JavaScript... but all in one file.
I wanted the document to be edited without a separate editor.
Re: Show HN: Nash, I made a standalone note with single HTML file
#4Re: Show HN: Nash, I made a standalone note with single HTML file
#5Re: Show HN: Nash, I made a standalone note with single HTML file
#6I still don't understand what is this even though I read all you wrote both here and on the web page.
How is this useful? For quick writing and sharing of HTML files, but not the links, but the files themselves.
Very interesting,thank you.
Re: Show HN: Nash, I made a standalone note with single HTML file
#7Nash appears to simplify my job, thanks!
* plus this for an easy TOC https://codepen.io/cgurski/pen/qBrNrPo
Re: Show HN: Nash, I made a standalone note with single HTML file
#8Re: Show HN: Nash, I made a standalone note with single HTML file
#9Consider changing the behavior so that when the page is opened in the browser from the local disk, then it opens edit mode automatically, but when it's published to someone's website and accessed on the open web (check if the address is http/https), then it's a normal, read-only view expected from most pages.
Of course:
1. there should be a way to override this (a query string param or magic URL fragment) so you can look at it in edit mode, too
2. there should be a blanket exception for certain domains/URL prefixes—defaulting to keepworking.github.io (or https://keepworking.github.io/nash/>)—so it activates edit mode on that site, too, which means that you personally don't have to do anything special to make the demo work (best if this exception is user-modifiable, so e.g. someone else can get the same behavior if they want without using the trick from #1)