Download Jar. Uses 240K of libraries. Click here for Pure Java version (10218L/67K/224K).
1 | !7 |
2 | |
3 | p { ai_spec_init(); } |
4 | |
5 | html { |
6 | bool authed = creatorAuthed(); |
7 | |
8 | S _topic = params.get("topic"); |
9 | if (empty(_topic)) |
10 | _topic = ai_randomString(); |
11 | fS topic = _topic; |
12 | if (nempty(params.get("topic"))) { // not from "random topic" url |
13 | // post user's answers (verified or unverified) |
14 | |
15 | } |
16 | |
17 | S formURL = |
18 | smartBotRealURL() + "/dyn/" + psI(programID()) + "?topic=" + urlencode(topic); |
19 | |
20 | L<Map> data = ll(); |
21 | |
22 | // Main HTML |
23 | |
24 | ret hstyle_matrixBackground() |
25 | + htitle_htmlencode("Matrix: " + topic) + loadJQuery() |
26 | + div(small(authed ? "Authed" : "Not authed"), style := "position:absolute; right: 10px; top: 10px;") |
27 | + hcenter( |
28 | hform("Topic: " + hinputfield('topic, value := topic), action := smartBot_emptyMatrixLink()) |
29 | + p(b( |
30 | hfontsize(15, "Matrix Parsing Page for:") + "<br>" + |
31 | targetBlank(smartBot_encyclopediaLink(topic), hfontsize(40, topic), style := "text-decoration: none")) + "<br>" |
32 | /*+ ahref(smartBot_encyclopediaLink(topic), "[more]")*/, style := "margin-top: 3em") |
33 | + hpostform(hhidden(+topic) |
34 | + hsubmit("Save answers") + "<br><br>" |
35 | + htable_noEncode(data), action := formURL)); |
36 | } |
Began life as a copy of #1013031
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
Snippet ID: | #1013141 |
Snippet name: | Matrix Parsing Module [Smart Bot Dyn, dev.] |
Eternal ID of this version: | #1013141/3 |
Text MD5: | 6d93fb2790fe00786d852532be0b32e2 |
Transpilation MD5: | 0d2194e8daac1cd63f7fb64901b2ab47 |
Author: | stefan |
Category: | javax / a.i. / html |
Type: | JavaX module |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-26 06:35:45 |
Source code size: | 1203 bytes / 36 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 472 / 1167 |
Version history: | 2 change(s) |
Referenced in: | [show references] |