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

23
LINES

< > BotCompany Repo | #1006016 // HTML screenshot linking functions

JavaX fragment (include)

1  
sS screenshotLin2(S imgID, S progID) {
2  
  ret screenshotLink(progID, imgID);
3  
}
4  
5  
sS screenshotLink(S progID, S imgID) {
6  
  ret ahref(snippetLink(imgID), himgw(snippetImgLink(imgID), 200))
7  
    + " " + ahref(snippetLink(progID), "(src)");
8  
}
9  
10  
static S bigScreenshot(S imgID, S progID) {
11  
  ret bigScreenshot(imgID, progID, "");
12  
}
13  
14  
static S bigScreenshot(S imgID, S progID, S title) {
15  
  if (empty(title)) title = getSnippetTitle(imgID);
16  
  ret h2(htmlencode("= " + title + " ="))
17  
    + bigScreenshot_noTitle(imgID, progID);
18  
}
19  
20  
static S bigScreenshot_noTitle(S imgID, S progID) {
21  
  ret p(ahref(snippetLink(progID), himg(snippetImgLink(imgID)))
22  
    + "<br>" + ahref(snippetLink(progID), "(src)"));
23  
}

Author comment

Began life as a copy of #1003253

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006016
Snippet name: HTML screenshot linking functions
Eternal ID of this version: #1006016/1
Text MD5: e15d11657ed7b5414417bf7b7cbd1d3b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-10 14:24:13
Source code size: 712 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 429 / 918
Referenced in: [show references]