Libraryless. Click here for Pure Java version (97L/1K/3K).
1 | !752 |
2 | |
3 | static S html(S subUri, Map<S, S> params) { |
4 | S id = params.get("id"); |
5 | if (id == null) ret "please specify id"; |
6 | S imgURL = snippetImageURL(id); |
7 | ret "<html><head><title>TinyBrain Image</title></head>\n" + |
8 | "<table width='100%' height='100%' border=0><tr><td align=center><img src=" + htmlQuote(imgURL) + "></td></tr></table>\n" + |
9 | "<body></body></html>"; |
10 | } |
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: | 629 / 1278 |
Referenced in: | [show references] |