Libraryless. Click here for Pure Java version (2461L/16K).
1 | // returns a success message |
2 | sS agiBlue_server_postSearchResult(S q, LS results) { |
3 | O bot = eleu_getBot(#1013835); |
4 | if (bot == null) ret print("agiBlue_server_postSearchResult: no node manager"); |
5 | print("Sending " + n2(results, "search result") + " to " + quote(q)); |
6 | ret print((S) call(bot, 'sendEval, litmap(flag := "agi.blue: " + q, code := |
7 | [[document.getElementById("extraStuff").innerHTML = ]] + jsQuote( |
8 | h3("Search results (" + l(results) + ")") |
9 | + p_nemptyLines(map agiBlue_linkForPhrase(results)) |
10 | ) + [[;]]))); |
11 | } |
Began life as a copy of #1024059
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024064 |
Snippet name: | agiBlue_server_postSearchResult |
Eternal ID of this version: | #1024064/13 |
Text MD5: | 5c452e57ca533f8f29247b03d9f6dab2 |
Transpilation MD5: | ac9ebf418e9f78217b1ce350984e6a88 |
Author: | stefan |
Category: | javax / agi.blue |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-26 15:15:39 |
Source code size: | 553 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 224 / 344 |
Version history: | 12 change(s) |
Referenced in: | [show references] |