Libraryless. Click here for Pure Java version (1789L/12K/39K).
!752 static class Entry { S text; long time; S who; } static PersistentLog<Entry> unimind; p { unimind = new PersistentLog("unimind"); } static S html(S uri, Map<S, S> params) { S line = params.get("line"); if (nempty(line)) { new Entry e; e.time = now(); e.text = line; unimind.add(e); ret hrefresh(pageLink()); } new L<Map> lines; for (Entry e : unimind) lines.add(litmap("Line", e.text)); S formContents = tag("input", "", "type", "text", "name", "line", "autofocus", "1"); formContents += " " + tag("input", "", "type", "submit", "value", "Say"); ret htmlTable(lines) + tag("form", p(formContents), "method", "POST"); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment