Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

36
LINES

< > BotCompany Repo | #1013141 // Matrix Parsing Module [Smart Bot Dyn, dev.]

JavaX module [tags: use-pretranspiled]

Download Jar. Uses 240K of libraries. Click here for Pure Java version (10218L/67K/224K).

!7

p { ai_spec_init(); }

html {
  bool authed = creatorAuthed();
  
  S _topic = params.get("topic");
  if (empty(_topic))
    _topic = ai_randomString();
  fS topic = _topic;
  if (nempty(params.get("topic"))) { // not from "random topic" url
    // post user's answers (verified or unverified)
    
  }
  
  S formURL =
    smartBotRealURL() + "/dyn/" + psI(programID()) + "?topic=" + urlencode(topic);

  L<Map> data = ll();
  
  // Main HTML
  
  ret hstyle_matrixBackground()
    + htitle_htmlencode("Matrix: " + topic) + loadJQuery() 
    + div(small(authed ? "Authed" : "Not authed"), style := "position:absolute; right: 10px; top: 10px;")
    + hcenter(
      hform("Topic: " + hinputfield('topic, value := topic), action := smartBot_emptyMatrixLink())
    + p(b(
      hfontsize(15, "Matrix Parsing Page for:") + "<br>" +
      targetBlank(smartBot_encyclopediaLink(topic), hfontsize(40, topic), style := "text-decoration: none")) + "<br>"
      /*+ ahref(smartBot_encyclopediaLink(topic), "[more]")*/, style := "margin-top: 3em")
    + hpostform(hhidden(+topic)
    + hsubmit("Save answers") + "<br><br>"
    + htable_noEncode(data), action := formURL));
}

Author comment

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: 311 / 761
Version history: 2 change(s)
Referenced in: [show references]