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

10
LINES

< > BotCompany Repo | #1002138 // HTML Image Bot - serve an image in the center of the screen

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (97L/1K/3K).

!752

static S html(S subUri, Map<S, S> params) {
  S id = params.get("id");
  if (id == null) ret "please specify id";
  S imgURL = snippetImageURL(id);
  ret "<html><head><title>TinyBrain Image</title></head>\n" +
    "<table width='100%' height='100%' border=0><tr><td align=center><img src=" + htmlQuote(imgURL) + "></td></tr></table>\n" +
    "<body></body></html>";
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002138
Snippet name: HTML Image Bot - serve an image in the center of the screen
Eternal ID of this version: #1002138/1
Text MD5: 5fefb8d1efdf57f793542aa5e4aff569
Transpilation MD5: d83c705f9a79fd4844a8228d276ab865
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-21 20:34:41
Source code size: 382 bytes / 10 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 611 / 1252
Referenced in: #1002139 - HTML Image Bot (with bottom link)
#1003219 - hcenterimage - HTML code for an image in the center of the screen
#1003220 - Bot Company Splash Page
#3000202 - Answer for stefanreich (>> T conversion bot)
#3000238 - Answer for stefanreich (>> t power bot)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)